导航菜单

页面标题

页面副标题

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

正在查看: All File Recovery v1.0.2 应用的 C1284Y.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 C1284Y {

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

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

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

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

    public static final int f26952l = 0;

    public static final int f26953m = 1;

    public static final int f26954n = 0;

    public static final int f26955o = 1;

    public static final int f26956p = 2;

    public final String f26957a;

    public final CharSequence f26958b;

    public final CharSequence[] f26959c;

    public final boolean f26960d;

    public final int f26961e;

    public final Bundle f26962f;

    public final Set<String> f26963g;

    @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(C1284Y c1284y) {
            Set<String> set;
            RemoteInput.Builder addExtras = new RemoteInput.Builder(c1284y.f26957a).setLabel(c1284y.f26958b).setChoices(c1284y.f26959c).setAllowFreeFormInput(c1284y.f26960d).addExtras(c1284y.f26962f);
            if (Build.VERSION.SDK_INT >= 26 && (set = c1284y.f26963g) != null) {
                Iterator<String> it = set.iterator();
                while (it.hasNext()) {
                    b.d(addExtras, it.next(), true);
                }
            }
            if (Build.VERSION.SDK_INT >= 29) {
                d.b(addExtras, c1284y.f26961e);
            }
            return addExtras.build();
        }

        public static C1284Y c(Object obj) {
            Set<String> b4;
            RemoteInput remoteInput = (RemoteInput) obj;
            e eVar = new e(remoteInput.getResultKey());
            eVar.f26967d = remoteInput.getLabel();
            eVar.f26968e = remoteInput.getChoices();
            eVar.f26969f = remoteInput.getAllowFreeFormInput();
            eVar.a(remoteInput.getExtras());
            if (Build.VERSION.SDK_INT >= 26 && (b4 = b.b(remoteInput)) != null) {
                Iterator<String> it = b4.iterator();
                while (it.hasNext()) {
                    eVar.d(it.next(), true);
                }
            }
            if (Build.VERSION.SDK_INT >= 29) {
                eVar.f26970g = 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(C1284Y c1284y, Intent intent, Map<String, Uri> map) {
            RemoteInput.addDataResultToIntent(a.b(c1284y), 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 z3) {
            return builder.setAllowDataType(str, z3);
        }
    }

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

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

    @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 i4) {
            return builder.setEditChoicesBeforeSending(i4);
        }
    }

    public static final class e {

        public final String f26964a;

        public CharSequence f26967d;

        public CharSequence[] f26968e;

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

        public final Bundle f26966c = new Bundle();

        public boolean f26969f = true;

        public int f26970g = 0;

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

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

        public C1284Y b() {
            return new C1284Y(this.f26964a, this.f26967d, this.f26968e, this.f26969f, this.f26970g, this.f26966c, this.f26965b);
        }

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

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

        public e e(boolean z3) {
            this.f26969f = z3;
            return this;
        }

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

        public e g(int i4) {
            this.f26970g = i4;
            return this;
        }

        public e h(CharSequence charSequence) {
            this.f26967d = 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 C1284Y(String str, CharSequence charSequence, CharSequence[] charSequenceArr, boolean z3, int i4, Bundle bundle, Set<String> set) {
        this.f26957a = str;
        this.f26958b = charSequence;
        this.f26959c = charSequenceArr;
        this.f26960d = z3;
        this.f26961e = i4;
        this.f26962f = bundle;
        this.f26963g = set;
        if (i4 == 2 && !z3) {
            throw new IllegalArgumentException("setEditChoicesBeforeSending requires setAllowFreeFormInput");
        }
    }

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

    public static void b(C1284Y[] c1284yArr, Intent intent, Bundle bundle) {
        if (Build.VERSION.SDK_INT >= 26) {
            RemoteInput.addResultsToIntent(d(c1284yArr), intent, bundle);
            return;
        }
        Bundle resultsFromIntent = RemoteInput.getResultsFromIntent(intent);
        int q4 = q(intent);
        if (resultsFromIntent != null) {
            resultsFromIntent.putAll(bundle);
            bundle = resultsFromIntent;
        }
        for (C1284Y c1284y : c1284yArr) {
            Map<String, Uri> j4 = j(intent, c1284y.f26957a);
            RemoteInput.addResultsToIntent(d(new C1284Y[]{c1284y}), intent, bundle);
            if (j4 != null) {
                a(c1284y, intent, j4);
            }
        }
        s(intent, q4);
    }

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

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

    @l.U(20)
    public static C1284Y 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(f26948h)) {
            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 i4 = i(intent);
        if (i4 == null) {
            return null;
        }
        HashMap hashMap = new HashMap();
        for (String str2 : i4.getExtras().keySet()) {
            if (str2.startsWith(f26950j)) {
                String substring = str2.substring(39);
                if (!substring.isEmpty() && (string = i4.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(f26950j, 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 i4 = i(intent);
        if (i4 == null) {
            return 0;
        }
        return i4.getExtras().getInt(f26951k, 0);
    }

    public static void s(Intent intent, int i4) {
        if (Build.VERSION.SDK_INT >= 28) {
            c.b(intent, i4);
            return;
        }
        Intent i5 = i(intent);
        if (i5 == null) {
            i5 = new Intent();
        }
        i5.putExtra(f26951k, i4);
        intent.setClipData(ClipData.newIntent(f26948h, i5));
    }

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

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

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

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

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

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

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

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