导航菜单

页面标题

页面副标题

moonshot.企业版 v8.14.46 - C1250.java 源代码

正在查看: moonshot.企业版 v8.14.46 应用的 C1250.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl;

import android.app.RemoteInput;
import android.content.ClipData;
import android.content.ClipDescription;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2074;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2092;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2094;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2113;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public final class C1250 {

    public static final String f4235 = "android.remoteinput.resultsData";

    private static final String f4236 = "RemoteInput";

    public static final int f4237 = 0;

    public static final int f4238 = 1;

    public static final int f4239 = 1;

    private static final String f4240 = "android.remoteinput.dataTypeResultsData";

    private static final String f4241 = "android.remoteinput.resultsSource";

    public static final String f4242 = "android.remoteinput.results";

    public static final int f4243 = 2;

    public static final int f4244 = 0;

    private final CharSequence[] f4245;

    private final String f4246;

    private final Bundle f4247;

    private final boolean f4248;

    private final Set<String> f4249;

    private final CharSequence f4250;

    private final int f4251;

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1251 {
    }

    public static final class C1252 {

        private final String f4253;

        private CharSequence f4255;

        private CharSequence[] f4258;

        private final Set<String> f4257 = new HashSet();

        private final Bundle f4252 = new Bundle();

        private boolean f4254 = true;

        private int f4256 = 0;

        public C1252(@InterfaceC2094 String str) {
            if (str == null) {
                throw new IllegalArgumentException("Result key can't be null");
            }
            this.f4253 = str;
        }

        @InterfaceC2094
        public C1252 m8903(@InterfaceC2092 CharSequence charSequence) {
            this.f4255 = charSequence;
            return this;
        }

        @InterfaceC2094
        public Bundle m8904() {
            return this.f4252;
        }

        @InterfaceC2094
        public C1252 m8905(@InterfaceC2094 Bundle bundle) {
            if (bundle != null) {
                this.f4252.putAll(bundle);
            }
            return this;
        }

        @InterfaceC2094
        public C1252 m8906(@InterfaceC2092 CharSequence[] charSequenceArr) {
            this.f4258 = charSequenceArr;
            return this;
        }

        @InterfaceC2094
        public C1252 m8907(@InterfaceC2094 String str, boolean z) {
            if (z) {
                this.f4257.add(str);
            } else {
                this.f4257.remove(str);
            }
            return this;
        }

        @InterfaceC2094
        public C1252 m8908(int i) {
            this.f4256 = i;
            return this;
        }

        @InterfaceC2094
        public C1250 m8909() {
            return new C1250(this.f4253, this.f4255, this.f4258, this.f4254, this.f4256, this.f4252, this.f4257);
        }

        @InterfaceC2094
        public C1252 m8910(boolean z) {
            this.f4254 = z;
            return this;
        }
    }

    @Retention(RetentionPolicy.SOURCE)
    @InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
    public @interface InterfaceC1253 {
    }

    public C1250(String str, CharSequence charSequence, CharSequence[] charSequenceArr, boolean z, int i, Bundle bundle, Set<String> set) {
        this.f4246 = str;
        this.f4250 = charSequence;
        this.f4245 = charSequenceArr;
        this.f4248 = z;
        this.f4251 = i;
        this.f4247 = bundle;
        this.f4249 = set;
        if (m8900() == 2 && !m8897()) {
            throw new IllegalArgumentException("setEditChoicesBeforeSending requires setAllowFreeFormInput");
        }
    }

    public static Map<String, Uri> m8884(Intent intent, String str) {
        Intent m8893;
        String string;
        int i = Build.VERSION.SDK_INT;
        if (i >= 26) {
            return RemoteInput.getDataResultsFromIntent(intent, str);
        }
        if (i < 16 || (m8893 = m8893(intent)) == null) {
            return null;
        }
        HashMap hashMap = new HashMap();
        for (String str2 : m8893.getExtras().keySet()) {
            if (str2.startsWith(f4240)) {
                String substring = str2.substring(39);
                if (!substring.isEmpty() && (string = m8893.getBundleExtra(str2).getString(str)) != null && !string.isEmpty()) {
                    hashMap.put(substring, Uri.parse(string));
                }
            }
        }
        if (hashMap.isEmpty()) {
            return null;
        }
        return hashMap;
    }

    @InterfaceC2113(20)
    public static RemoteInput m8885(C1250 c1250) {
        RemoteInput.Builder addExtras = new RemoteInput.Builder(c1250.m8896()).setLabel(c1250.m8898()).setChoices(c1250.m8895()).setAllowFreeFormInput(c1250.m8897()).addExtras(c1250.m8902());
        if (Build.VERSION.SDK_INT >= 29) {
            addExtras.setEditChoicesBeforeSending(c1250.m8900());
        }
        return addExtras.build();
    }

    public static void m8886(C1250 c1250, Intent intent, Map<String, Uri> map) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 26) {
            RemoteInput.addDataResultToIntent(m8885(c1250), intent, map);
            return;
        }
        if (i >= 16) {
            Intent m8893 = m8893(intent);
            if (m8893 == null) {
                m8893 = new Intent();
            }
            for (Map.Entry<String, Uri> entry : map.entrySet()) {
                String key = entry.getKey();
                Uri value = entry.getValue();
                if (key != null) {
                    Bundle bundleExtra = m8893.getBundleExtra(m8891(key));
                    if (bundleExtra == null) {
                        bundleExtra = new Bundle();
                    }
                    bundleExtra.putString(c1250.m8896(), value.toString());
                    m8893.putExtra(m8891(key), bundleExtra);
                }
            }
            intent.setClipData(ClipData.newIntent(f4242, m8893));
        }
    }

    public static Bundle m8887(Intent intent) {
        Intent m8893;
        int i = Build.VERSION.SDK_INT;
        if (i >= 20) {
            return RemoteInput.getResultsFromIntent(intent);
        }
        if (i < 16 || (m8893 = m8893(intent)) == null) {
            return null;
        }
        return (Bundle) m8893.getExtras().getParcelable(f4235);
    }

    public static void m8888(@InterfaceC2094 Intent intent, int i) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 28) {
            RemoteInput.setResultsSource(intent, i);
            return;
        }
        if (i2 >= 16) {
            Intent m8893 = m8893(intent);
            if (m8893 == null) {
                m8893 = new Intent();
            }
            m8893.putExtra(f4241, i);
            intent.setClipData(ClipData.newIntent(f4242, m8893));
        }
    }

    @InterfaceC2113(20)
    public static RemoteInput[] m8889(C1250[] c1250Arr) {
        if (c1250Arr == null) {
            return null;
        }
        RemoteInput[] remoteInputArr = new RemoteInput[c1250Arr.length];
        for (int i = 0; i < c1250Arr.length; i++) {
            remoteInputArr[i] = m8885(c1250Arr[i]);
        }
        return remoteInputArr;
    }

    public static void m8890(C1250[] c1250Arr, Intent intent, Bundle bundle) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 26) {
            RemoteInput.addResultsToIntent(m8889(c1250Arr), intent, bundle);
            return;
        }
        if (i >= 20) {
            Bundle m8887 = m8887(intent);
            int m8894 = m8894(intent);
            if (m8887 != null) {
                m8887.putAll(bundle);
                bundle = m8887;
            }
            for (C1250 c1250 : c1250Arr) {
                Map<String, Uri> m8884 = m8884(intent, c1250.m8896());
                RemoteInput.addResultsToIntent(m8889(new C1250[]{c1250}), intent, bundle);
                if (m8884 != null) {
                    m8886(c1250, intent, m8884);
                }
            }
            m8888(intent, m8894);
            return;
        }
        if (i >= 16) {
            Intent m8893 = m8893(intent);
            if (m8893 == null) {
                m8893 = new Intent();
            }
            Bundle bundleExtra = m8893.getBundleExtra(f4235);
            if (bundleExtra == null) {
                bundleExtra = new Bundle();
            }
            for (C1250 c12502 : c1250Arr) {
                Object obj = bundle.get(c12502.m8896());
                if (obj instanceof CharSequence) {
                    bundleExtra.putCharSequence(c12502.m8896(), (CharSequence) obj);
                }
            }
            m8893.putExtra(f4235, bundleExtra);
            intent.setClipData(ClipData.newIntent(f4242, m8893));
        }
    }

    private static String m8891(String str) {
        return f4240 + str;
    }

    @InterfaceC2113(20)
    public static C1250 m8892(RemoteInput remoteInput) {
        C1252 m8905 = new C1252(remoteInput.getResultKey()).m8903(remoteInput.getLabel()).m8906(remoteInput.getChoices()).m8910(remoteInput.getAllowFreeFormInput()).m8905(remoteInput.getExtras());
        if (Build.VERSION.SDK_INT >= 29) {
            m8905.m8908(remoteInput.getEditChoicesBeforeSending());
        }
        return m8905.m8909();
    }

    @InterfaceC2113(16)
    private static Intent m8893(Intent intent) {
        ClipData clipData = intent.getClipData();
        if (clipData == null) {
            return null;
        }
        ClipDescription description = clipData.getDescription();
        if (description.hasMimeType("text/vnd.android.intent") && description.getLabel().toString().contentEquals(f4242)) {
            return clipData.getItemAt(0).getIntent();
        }
        return null;
    }

    public static int m8894(@InterfaceC2094 Intent intent) {
        Intent m8893;
        int i = Build.VERSION.SDK_INT;
        if (i >= 28) {
            return RemoteInput.getResultsSource(intent);
        }
        if (i < 16 || (m8893 = m8893(intent)) == null) {
            return 0;
        }
        return m8893.getExtras().getInt(f4241, 0);
    }

    public CharSequence[] m8895() {
        return this.f4245;
    }

    public String m8896() {
        return this.f4246;
    }

    public boolean m8897() {
        return this.f4248;
    }

    public CharSequence m8898() {
        return this.f4250;
    }

    public boolean m8899() {
        return (m8897() || (m8895() != null && m8895().length != 0) || m8901() == null || m8901().isEmpty()) ? false : true;
    }

    public int m8900() {
        return this.f4251;
    }

    public Set<String> m8901() {
        return this.f4249;
    }

    public Bundle m8902() {
        return this.f4247;
    }
}