You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.7 KiB
117 lines
3.7 KiB
package p069x;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.os.Process;
|
|
import android.text.TextUtils;
|
|
import java.io.File;
|
|
import p011d0.C0598a;
|
|
import p020g0.C0734d;
|
|
import p067w.C1785n;
|
|
import p071y.C1821i;
|
|
|
|
/* renamed from: x.a */
|
|
/* loaded from: classes.dex */
|
|
public class C1794a {
|
|
|
|
/* renamed from: a */
|
|
public static final Object f4519a = new Object();
|
|
|
|
/* renamed from: b */
|
|
public static final Object f4520b = new Object();
|
|
|
|
/* renamed from: x.a$a */
|
|
/* loaded from: classes.dex */
|
|
public static class C1795a {
|
|
/* renamed from: a */
|
|
public static void m386a(Context context, Intent[] intentArr, Bundle bundle) {
|
|
context.startActivities(intentArr, bundle);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static void m385b(Context context, Intent intent, Bundle bundle) {
|
|
context.startActivity(intent, bundle);
|
|
}
|
|
}
|
|
|
|
/* renamed from: x.a$b */
|
|
/* loaded from: classes.dex */
|
|
public static class C1796b {
|
|
/* renamed from: a */
|
|
public static File m384a(Context context) {
|
|
File codeCacheDir;
|
|
codeCacheDir = context.getCodeCacheDir();
|
|
return codeCacheDir;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static Drawable m383b(Context context, int i) {
|
|
Drawable drawable;
|
|
drawable = context.getDrawable(i);
|
|
return drawable;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static File m382c(Context context) {
|
|
File noBackupFilesDir;
|
|
noBackupFilesDir = context.getNoBackupFilesDir();
|
|
return noBackupFilesDir;
|
|
}
|
|
}
|
|
|
|
/* renamed from: x.a$c */
|
|
/* loaded from: classes.dex */
|
|
public static class C1797c {
|
|
/* renamed from: a */
|
|
public static int m381a(Context context, int i) {
|
|
int color;
|
|
color = context.getColor(i);
|
|
return color;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static <T> T m380b(Context context, Class<T> cls) {
|
|
Object systemService;
|
|
systemService = context.getSystemService(cls);
|
|
return (T) systemService;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static String m379c(Context context, Class<?> cls) {
|
|
String systemServiceName;
|
|
systemServiceName = context.getSystemServiceName(cls);
|
|
return systemServiceName;
|
|
}
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static int m391a(Context context, String str) {
|
|
C0734d.m3041c(str, "permission must be non-null");
|
|
return (C0598a.m3289c() || !TextUtils.equals("android.permission.POST_NOTIFICATIONS", str)) ? context.checkPermission(str, Process.myPid(), Process.myUid()) : C1785n.m408b(context).m409a() ? 0 : -1;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static int m390b(Context context, int i) {
|
|
return Build.VERSION.SDK_INT >= 23 ? C1797c.m381a(context, i) : context.getResources().getColor(i);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static ColorStateList m389c(Context context, int i) {
|
|
return C1821i.m289c(context.getResources(), i, context.getTheme());
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public static Drawable m388d(Context context, int i) {
|
|
return Build.VERSION.SDK_INT >= 21 ? C1796b.m383b(context, i) : context.getResources().getDrawable(i);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public static boolean m387e(Context context, Intent[] intentArr, Bundle bundle) {
|
|
C1795a.m386a(context, intentArr, bundle);
|
|
return true;
|
|
}
|
|
} |