导航菜单

页面标题

页面副标题

All File Recovery v1.0.2 - C5772Y.java 源代码

正在查看: All File Recovery v1.0.2 应用的 C5772Y.java JAVA 源代码文件

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


package j0;

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 java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import l.Z;

public final class C5772Y {

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

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

    public static final String f77956j = "android.remoteinput.dataTypeResultsData";

    public static final String f77957k = "android.remoteinput.resultsSource";

    public static final int f77958l = 0;

    public static final int f77959m = 1;

    public static final int f77960n = 0;

    public static final int f77961o = 1;

    public static final int f77962p = 2;

    public final String f77963a;

    public final CharSequence f77964b;

    public final CharSequence[] f77965c;

    public final boolean f77966d;

    public final int f77967e;

    public final Bundle f77968f;

    public final Set<String> f77969g;

    @l.U(20)
    public static class a {
        public static void a(Object obj, Intent intent, Bundle bundle) {
            RemoteInput.addResultsToIntent((RemoteInput[]) obj, intent, bundle);
        }

        public static RemoteInput b(C5772Y c5772y) {
            Set<String> set;
            RemoteInput.Builder addExtras = new RemoteInput.Builder(c5772y.f77963a).setLabel(c5772y.f77964b).setChoices(c5772y.f77965c).setAllowFreeFormInput(c5772y.f77966d).addExtras(c5772y.f77968f);
            if (Build.VERSION.SDK_INT >= 26 && (set = c5772y.f77969g) != null) {
                Iterator<String> it = set.iterator();
                while (it.hasNext()) {
                    b.d(addExtras, it.next(), true);
                }
            }
            if (Build.VERSION.SDK_INT >= 29) {
                d.b(addExtras, c5772y.f77967e);
            }
            return addExtras.build();
        }

        public static C5772Y c(Object obj) {
            Set<String> b10;
            RemoteInput remoteInput = (RemoteInput) obj;
            e eVar = new e(remoteInput.getResultKey());
            eVar.f77973d = remoteInput.getLabel();
            eVar.f77974e = remoteInput.getChoices();
            eVar.f77975f = remoteInput.getAllowFreeFormInput();
            eVar.a(remoteInput.getExtras());
            if (Build.VERSION.SDK_INT >= 26 && (b10 = b.b(remoteInput)) != null) {
                Iterator<String> it = b10.iterator();
                while (it.hasNext()) {
                    eVar.d(it.next(), true);
                }
            }
            if (Build.VERSION.SDK_INT >= 29) {
                eVar.f77976g = d.a(remoteInput);
            }
            return eVar.b();
        }

        public static Bundle d(Intent intent) {
            return RemoteInput.getResultsFromIntent(intent);
        }
    }

    @l.U(26)
    public static class b {
        public static void a(C5772Y c5772y, Intent intent, Map<String, Uri> map) {
            RemoteInput.addDataResultToIntent(a.b(c5772y), intent, map);
        }

        public static Set<String> b(Object obj) {
            return ((RemoteInput) obj).getAllowedDataTypes();
        }

        public static Map<String, Uri> c(Intent intent, String str) {
            return RemoteInput.getDataResultsFromIntent(intent, str);
        }

        public static RemoteInput.Builder d(RemoteInput.Builder builder, String str, boolean z10) {
            return builder.setAllowDataType(str, z10);
        }
    }

    @l.U(28)
    public static class c {
        public static int a(Intent intent) {
            return RemoteInput.getResultsSource(intent);
        }

        public static void b(Intent intent, int i10) {
            RemoteInput.setResultsSource(intent, i10);
        }
    }

    @l.U(29)
    public static class d {
        public static int a(Object obj) {
            return ((RemoteInput) obj).getEditChoicesBeforeSending();
        }

        public static RemoteInput.Builder b(RemoteInput.Builder builder, int i10) {
            return builder.setEditChoicesBeforeSending(i10);
        }
    }

    public static final class e {

        public final String f77970a;

        public CharSequence f77973d;

        public CharSequence[] f77974e;

        public final Set<String> f77971b = new HashSet();

        public final Bundle f77972c = new Bundle();

        public boolean f77975f = true;

        public int f77976g = 0;

        public e(String str) {
            if (str == null) {
                throw new IllegalArgumentException("Result key can't be null");
            }
            this.f77970a = str;
        }

        public e a(Bundle bundle) {
            if (bundle != null) {
                this.f77972c.putAll(bundle);
            }
            return this;
        }

        public C5772Y b() {
            return new C5772Y(this.f77970a, this.f77973d, this.f77974e, this.f77975f, this.f77976g, this.f77972c, this.f77971b);
        }

        public Bundle c() {
            return this.f77972c;
        }

        public e d(String str, boolean z10) {
            if (z10) {
                this.f77971b.add(str);
                return this;
            }
            this.f77971b.remove(str);
            return this;
        }

        public e e(boolean z10) {
            this.f77975f = z10;
            return this;
        }

        public e f(CharSequence[] charSequenceArr) {
            this.f77974e = charSequenceArr;
            return this;
        }

        public e g(int i10) {
            this.f77976g = i10;
            return this;
        }

        public e h(CharSequence charSequence) {
            this.f77973d = charSequence;
            return this;
        }
    }

    @l.Z({Z.a.LIBRARY_GROUP_PREFIX})
    @Retention(RetentionPolicy.SOURCE)
    public @interface f {
    }

    @l.Z({Z.a.LIBRARY_GROUP_PREFIX})
    @Retention(RetentionPolicy.SOURCE)
    public @interface g {
    }

    public C5772Y(String str, CharSequence charSequence, CharSequence[] charSequenceArr, boolean z10, int i10, Bundle bundle, Set<String> set) {
        this.f77963a = str;
        this.f77964b = charSequence;
        this.f77965c = charSequenceArr;
        this.f77966d = z10;
        this.f77967e = i10;
        this.f77968f = bundle;
        this.f77969g = set;
        if (i10 == 2 && !z10) {
            throw new IllegalArgumentException("setEditChoicesBeforeSending requires setAllowFreeFormInput");
        }
    }

    public static void a(C5772Y c5772y, Intent intent, Map<String, Uri> map) {
        if (Build.VERSION.SDK_INT >= 26) {
            b.a(c5772y, intent, map);
            return;
        }
        Intent i10 = i(intent);
        if (i10 == null) {
            i10 = new Intent();
        }
        for (Map.Entry<String, Uri> entry : map.entrySet()) {
            String key = entry.getKey();
            Uri value = entry.getValue();
            if (key != null) {
                Bundle bundleExtra = i10.getBundleExtra(l(key));
                if (bundleExtra == null) {
                    bundleExtra = new Bundle();
                }
                bundleExtra.putString(c5772y.f77963a, value.toString());
                i10.putExtra(l(key), bundleExtra);
            }
        }
        intent.setClipData(ClipData.newIntent(f77954h, i10));
    }

    public static void b(C5772Y[] c5772yArr, Intent intent, Bundle bundle) {
        if (Build.VERSION.SDK_INT >= 26) {
            RemoteInput.addResultsToIntent(d(c5772yArr), intent, bundle);
            return;
        }
        Bundle resultsFromIntent = RemoteInput.getResultsFromIntent(intent);
        int q10 = q(intent);
        if (resultsFromIntent != null) {
            resultsFromIntent.putAll(bundle);
            bundle = resultsFromIntent;
        }
        for (C5772Y c5772y : c5772yArr) {
            Map<String, Uri> j10 = j(intent, c5772y.f77963a);
            RemoteInput.addResultsToIntent(d(new C5772Y[]{c5772y}), intent, bundle);
            if (j10 != null) {
                a(c5772y, intent, j10);
            }
        }
        s(intent, q10);
    }

    @l.U(20)
    public static RemoteInput c(C5772Y c5772y) {
        return a.b(c5772y);
    }

    @l.U(20)
    public static RemoteInput[] d(C5772Y[] c5772yArr) {
        if (c5772yArr == null) {
            return null;
        }
        RemoteInput[] remoteInputArr = new RemoteInput[c5772yArr.length];
        for (int i10 = 0; i10 < c5772yArr.length; i10++) {
            remoteInputArr[i10] = a.b(c5772yArr[i10]);
        }
        return remoteInputArr;
    }

    @l.U(20)
    public static C5772Y e(RemoteInput remoteInput) {
        return a.c(remoteInput);
    }

    public static Intent i(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(f77954h)) {
            return clipData.getItemAt(0).getIntent();
        }
        return null;
    }

    public static Map<String, Uri> j(Intent intent, String str) {
        String string;
        if (Build.VERSION.SDK_INT >= 26) {
            return b.c(intent, str);
        }
        Intent i10 = i(intent);
        if (i10 == null) {
            return null;
        }
        HashMap hashMap = new HashMap();
        for (String str2 : i10.getExtras().keySet()) {
            if (str2.startsWith(f77956j)) {
                String substring = str2.substring(39);
                if (!substring.isEmpty() && (string = i10.getBundleExtra(str2).getString(str)) != null && !string.isEmpty()) {
                    hashMap.put(substring, Uri.parse(string));
                }
            }
        }
        if (hashMap.isEmpty()) {
            return null;
        }
        return hashMap;
    }

    public static String l(String str) {
        return F.w.a(f77956j, str);
    }

    public static Bundle p(Intent intent) {
        return RemoteInput.getResultsFromIntent(intent);
    }

    public static int q(Intent intent) {
        if (Build.VERSION.SDK_INT >= 28) {
            return c.a(intent);
        }
        Intent i10 = i(intent);
        if (i10 == null) {
            return 0;
        }
        return i10.getExtras().getInt(f77957k, 0);
    }

    public static void s(Intent intent, int i10) {
        if (Build.VERSION.SDK_INT >= 28) {
            c.b(intent, i10);
            return;
        }
        Intent i11 = i(intent);
        if (i11 == null) {
            i11 = new Intent();
        }
        i11.putExtra(f77957k, i10);
        intent.setClipData(ClipData.newIntent(f77954h, i11));
    }

    public boolean f() {
        return this.f77966d;
    }

    public Set<String> g() {
        return this.f77969g;
    }

    public CharSequence[] h() {
        return this.f77965c;
    }

    public int k() {
        return this.f77967e;
    }

    public Bundle m() {
        return this.f77968f;
    }

    public CharSequence n() {
        return this.f77964b;
    }

    public String o() {
        return this.f77963a;
    }

    public boolean r() {
        Set<String> set;
        if (this.f77966d) {
            return false;
        }
        CharSequence[] charSequenceArr = this.f77965c;
        return ((charSequenceArr != null && charSequenceArr.length != 0) || (set = this.f77969g) == null || set.isEmpty()) ? false : true;
    }
}