正在查看: moonshot.企业版 v8.14.46 应用的 C3555.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C3555.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.InterfaceC4379;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4397;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4399;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4418;
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 C3555 {
public static final String f11896 = "android.remoteinput.resultsData";
private static final String f11897 = "RemoteInput";
public static final int f11898 = 0;
public static final int f11899 = 1;
public static final int f11900 = 1;
private static final String f11901 = "android.remoteinput.dataTypeResultsData";
private static final String f11902 = "android.remoteinput.resultsSource";
public static final String f11903 = "android.remoteinput.results";
public static final int f11904 = 2;
public static final int f11905 = 0;
private final CharSequence[] f11906;
private final String f11907;
private final Bundle f11908;
private final boolean f11909;
private final Set<String> f11910;
private final CharSequence f11911;
private final int f11912;
@Retention(RetentionPolicy.SOURCE)
@InterfaceC4379({InterfaceC4379.EnumC4380.f16531})
public @interface InterfaceC3556 {
}
public static final class C3557 {
private final String f11914;
private CharSequence f11916;
private CharSequence[] f11919;
private final Set<String> f11918 = new HashSet();
private final Bundle f11913 = new Bundle();
private boolean f11915 = true;
private int f11917 = 0;
public C3557(@InterfaceC4399 String str) {
if (str == null) {
throw new IllegalArgumentException("Result key can't be null");
}
this.f11914 = str;
}
@InterfaceC4399
public C3557 m16896(@InterfaceC4397 CharSequence charSequence) {
this.f11916 = charSequence;
return this;
}
@InterfaceC4399
public Bundle m16897() {
return this.f11913;
}
@InterfaceC4399
public C3557 m16898(@InterfaceC4399 Bundle bundle) {
if (bundle != null) {
this.f11913.putAll(bundle);
}
return this;
}
@InterfaceC4399
public C3557 m16899(@InterfaceC4397 CharSequence[] charSequenceArr) {
this.f11919 = charSequenceArr;
return this;
}
@InterfaceC4399
public C3557 m16900(@InterfaceC4399 String str, boolean z) {
if (z) {
this.f11918.add(str);
} else {
this.f11918.remove(str);
}
return this;
}
@InterfaceC4399
public C3557 m16901(int i) {
this.f11917 = i;
return this;
}
@InterfaceC4399
public C3555 m16902() {
return new C3555(this.f11914, this.f11916, this.f11919, this.f11915, this.f11917, this.f11913, this.f11918);
}
@InterfaceC4399
public C3557 m16903(boolean z) {
this.f11915 = z;
return this;
}
}
@Retention(RetentionPolicy.SOURCE)
@InterfaceC4379({InterfaceC4379.EnumC4380.f16531})
public @interface InterfaceC3558 {
}
public C3555(String str, CharSequence charSequence, CharSequence[] charSequenceArr, boolean z, int i, Bundle bundle, Set<String> set) {
this.f11907 = str;
this.f11911 = charSequence;
this.f11906 = charSequenceArr;
this.f11909 = z;
this.f11912 = i;
this.f11908 = bundle;
this.f11910 = set;
if (m16893() == 2 && !m16890()) {
throw new IllegalArgumentException("setEditChoicesBeforeSending requires setAllowFreeFormInput");
}
}
public static Map<String, Uri> m16877(Intent intent, String str) {
Intent m16886;
String string;
int i = Build.VERSION.SDK_INT;
if (i >= 26) {
return RemoteInput.getDataResultsFromIntent(intent, str);
}
if (i < 16 || (m16886 = m16886(intent)) == null) {
return null;
}
HashMap hashMap = new HashMap();
for (String str2 : m16886.getExtras().keySet()) {
if (str2.startsWith(f11901)) {
String substring = str2.substring(39);
if (!substring.isEmpty() && (string = m16886.getBundleExtra(str2).getString(str)) != null && !string.isEmpty()) {
hashMap.put(substring, Uri.parse(string));
}
}
}
if (hashMap.isEmpty()) {
return null;
}
return hashMap;
}
@InterfaceC4418(20)
public static RemoteInput m16878(C3555 c3555) {
RemoteInput.Builder addExtras = new RemoteInput.Builder(c3555.m16889()).setLabel(c3555.m16891()).setChoices(c3555.m16888()).setAllowFreeFormInput(c3555.m16890()).addExtras(c3555.m16895());
if (Build.VERSION.SDK_INT >= 29) {
addExtras.setEditChoicesBeforeSending(c3555.m16893());
}
return addExtras.build();
}
public static void m16879(C3555 c3555, Intent intent, Map<String, Uri> map) {
int i = Build.VERSION.SDK_INT;
if (i >= 26) {
RemoteInput.addDataResultToIntent(m16878(c3555), intent, map);
return;
}
if (i >= 16) {
Intent m16886 = m16886(intent);
if (m16886 == null) {
m16886 = new Intent();
}
for (Map.Entry<String, Uri> entry : map.entrySet()) {
String key = entry.getKey();
Uri value = entry.getValue();
if (key != null) {
Bundle bundleExtra = m16886.getBundleExtra(m16884(key));
if (bundleExtra == null) {
bundleExtra = new Bundle();
}
bundleExtra.putString(c3555.m16889(), value.toString());
m16886.putExtra(m16884(key), bundleExtra);
}
}
intent.setClipData(ClipData.newIntent(f11903, m16886));
}
}
public static Bundle m16880(Intent intent) {
Intent m16886;
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
return RemoteInput.getResultsFromIntent(intent);
}
if (i < 16 || (m16886 = m16886(intent)) == null) {
return null;
}
return (Bundle) m16886.getExtras().getParcelable(f11896);
}
public static void m16881(@InterfaceC4399 Intent intent, int i) {
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 28) {
RemoteInput.setResultsSource(intent, i);
return;
}
if (i2 >= 16) {
Intent m16886 = m16886(intent);
if (m16886 == null) {
m16886 = new Intent();
}
m16886.putExtra(f11902, i);
intent.setClipData(ClipData.newIntent(f11903, m16886));
}
}
@InterfaceC4418(20)
public static RemoteInput[] m16882(C3555[] c3555Arr) {
if (c3555Arr == null) {
return null;
}
RemoteInput[] remoteInputArr = new RemoteInput[c3555Arr.length];
for (int i = 0; i < c3555Arr.length; i++) {
remoteInputArr[i] = m16878(c3555Arr[i]);
}
return remoteInputArr;
}
public static void m16883(C3555[] c3555Arr, Intent intent, Bundle bundle) {
int i = Build.VERSION.SDK_INT;
if (i >= 26) {
RemoteInput.addResultsToIntent(m16882(c3555Arr), intent, bundle);
return;
}
if (i >= 20) {
Bundle m16880 = m16880(intent);
int m16887 = m16887(intent);
if (m16880 != null) {
m16880.putAll(bundle);
bundle = m16880;
}
for (C3555 c3555 : c3555Arr) {
Map<String, Uri> m16877 = m16877(intent, c3555.m16889());
RemoteInput.addResultsToIntent(m16882(new C3555[]{c3555}), intent, bundle);
if (m16877 != null) {
m16879(c3555, intent, m16877);
}
}
m16881(intent, m16887);
return;
}
if (i >= 16) {
Intent m16886 = m16886(intent);
if (m16886 == null) {
m16886 = new Intent();
}
Bundle bundleExtra = m16886.getBundleExtra(f11896);
if (bundleExtra == null) {
bundleExtra = new Bundle();
}
for (C3555 c35552 : c3555Arr) {
Object obj = bundle.get(c35552.m16889());
if (obj instanceof CharSequence) {
bundleExtra.putCharSequence(c35552.m16889(), (CharSequence) obj);
}
}
m16886.putExtra(f11896, bundleExtra);
intent.setClipData(ClipData.newIntent(f11903, m16886));
}
}
private static String m16884(String str) {
return f11901 + str;
}
@InterfaceC4418(20)
public static C3555 m16885(RemoteInput remoteInput) {
C3557 m16898 = new C3557(remoteInput.getResultKey()).m16896(remoteInput.getLabel()).m16899(remoteInput.getChoices()).m16903(remoteInput.getAllowFreeFormInput()).m16898(remoteInput.getExtras());
if (Build.VERSION.SDK_INT >= 29) {
m16898.m16901(remoteInput.getEditChoicesBeforeSending());
}
return m16898.m16902();
}
@InterfaceC4418(16)
private static Intent m16886(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(f11903)) {
return clipData.getItemAt(0).getIntent();
}
return null;
}
public static int m16887(@InterfaceC4399 Intent intent) {
Intent m16886;
int i = Build.VERSION.SDK_INT;
if (i >= 28) {
return RemoteInput.getResultsSource(intent);
}
if (i < 16 || (m16886 = m16886(intent)) == null) {
return 0;
}
return m16886.getExtras().getInt(f11902, 0);
}
public CharSequence[] m16888() {
return this.f11906;
}
public String m16889() {
return this.f11907;
}
public boolean m16890() {
return this.f11909;
}
public CharSequence m16891() {
return this.f11911;
}
public boolean m16892() {
return (m16890() || (m16888() != null && m16888().length != 0) || m16894() == null || m16894().isEmpty()) ? false : true;
}
public int m16893() {
return this.f11912;
}
public Set<String> m16894() {
return this.f11910;
}
public Bundle m16895() {
return this.f11908;
}
}