package ῲ.ᨨ.ῲ;

import android.accounts.AccountManager;
import android.app.ActivityManager;
import android.app.AlarmManager;
import android.app.AppOpsManager;
import android.app.DownloadManager;
import android.app.KeyguardManager;
import android.app.NotificationManager;
import android.app.SearchManager;
import android.app.UiModeManager;
import android.app.WallpaperManager;
import android.app.admin.DevicePolicyManager;
import android.app.job.JobScheduler;
import android.app.usage.UsageStatsManager;
import android.appwidget.AppWidgetManager;
import android.bluetooth.BluetoothManager;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.RestrictionsManager;
import android.content.pm.LauncherApps;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.hardware.ConsumerIrManager;
import android.hardware.SensorManager;
import android.hardware.camera2.CameraManager;
import android.hardware.display.DisplayManager;
import android.hardware.input.InputManager;
import android.hardware.usb.UsbManager;
import android.location.LocationManager;
import android.media.AudioManager;
import android.media.MediaRouter;
import android.media.projection.MediaProjectionManager;
import android.media.session.MediaSessionManager;
import android.media.tv.TvInputManager;
import android.net.ConnectivityManager;
import android.net.nsd.NsdManager;
import android.net.wifi.WifiManager;
import android.net.wifi.p2p.WifiP2pManager;
import android.nfc.NfcManager;
import android.os.BatteryManager;
import android.os.Build;
import android.os.Bundle;
import android.os.DropBoxManager;
import android.os.PowerManager;
import android.os.Process;
import android.os.UserManager;
import android.os.Vibrator;
import android.os.storage.StorageManager;
import android.print.PrintManager;
import android.telecom.TelecomManager;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.view.LayoutInflater;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityManager;
import android.view.accessibility.CaptioningManager;
import android.view.inputmethod.InputMethodManager;
import android.view.textservice.TextServicesManager;
import com.facebook.internal.ServerProtocol;
import com.facebook.places.PlaceManager;
import com.facebook.places.model.PlaceFields;
import java.io.File;
import java.util.HashMap;

/* renamed from: ῲ.ᨨ.ῲ.K  reason: contains not printable characters */
/* compiled from: ContextCompat */
public class C1806 {

    /* renamed from: K  reason: contains not printable characters */
    public static final Object f6168 = new Object();

    /* renamed from: ῲ.ᨨ.ῲ.K$K  reason: contains not printable characters */
    /* compiled from: ContextCompat */
    public static final class C1807 {

        /* renamed from: K  reason: contains not printable characters */
        public static final HashMap<Class<?>, String> f6169 = new HashMap<>();

        static {
            int i = Build.VERSION.SDK_INT;
            f6169.put(SubscriptionManager.class, "telephony_subscription_service");
            f6169.put(UsageStatsManager.class, "usagestats");
            int i2 = Build.VERSION.SDK_INT;
            f6169.put(AppWidgetManager.class, "appwidget");
            f6169.put(BatteryManager.class, "batterymanager");
            f6169.put(CameraManager.class, "camera");
            f6169.put(JobScheduler.class, "jobscheduler");
            f6169.put(LauncherApps.class, "launcherapps");
            f6169.put(MediaProjectionManager.class, "media_projection");
            f6169.put(MediaSessionManager.class, "media_session");
            f6169.put(RestrictionsManager.class, "restrictions");
            f6169.put(TelecomManager.class, "telecom");
            f6169.put(TvInputManager.class, "tv_input");
            int i3 = Build.VERSION.SDK_INT;
            f6169.put(AppOpsManager.class, "appops");
            f6169.put(CaptioningManager.class, "captioning");
            f6169.put(ConsumerIrManager.class, "consumer_ir");
            f6169.put(PrintManager.class, "print");
            int i4 = Build.VERSION.SDK_INT;
            f6169.put(BluetoothManager.class, PlaceManager.PARAM_BLUETOOTH);
            int i5 = Build.VERSION.SDK_INT;
            f6169.put(DisplayManager.class, ServerProtocol.DIALOG_PARAM_DISPLAY);
            f6169.put(UserManager.class, "user");
            int i6 = Build.VERSION.SDK_INT;
            f6169.put(InputManager.class, "input");
            f6169.put(MediaRouter.class, "media_router");
            f6169.put(NsdManager.class, "servicediscovery");
            f6169.put(AccessibilityManager.class, "accessibility");
            f6169.put(AccountManager.class, "account");
            f6169.put(ActivityManager.class, "activity");
            f6169.put(AlarmManager.class, "alarm");
            f6169.put(AudioManager.class, "audio");
            f6169.put(ClipboardManager.class, "clipboard");
            f6169.put(ConnectivityManager.class, "connectivity");
            f6169.put(DevicePolicyManager.class, "device_policy");
            f6169.put(DownloadManager.class, "download");
            f6169.put(DropBoxManager.class, "dropbox");
            f6169.put(InputMethodManager.class, "input_method");
            f6169.put(KeyguardManager.class, "keyguard");
            f6169.put(LayoutInflater.class, "layout_inflater");
            f6169.put(LocationManager.class, PlaceFields.LOCATION);
            f6169.put(NfcManager.class, "nfc");
            f6169.put(NotificationManager.class, "notification");
            f6169.put(PowerManager.class, "power");
            f6169.put(SearchManager.class, "search");
            f6169.put(SensorManager.class, "sensor");
            f6169.put(StorageManager.class, "storage");
            f6169.put(TelephonyManager.class, PlaceFields.PHONE);
            f6169.put(TextServicesManager.class, "textservices");
            f6169.put(UiModeManager.class, "uimode");
            f6169.put(UsbManager.class, "usb");
            f6169.put(Vibrator.class, "vibrator");
            f6169.put(WallpaperManager.class, "wallpaper");
            f6169.put(WifiP2pManager.class, "wifip2p");
            f6169.put(WifiManager.class, PlaceManager.PARAM_WIFI);
            f6169.put(WindowManager.class, "window");
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public static Drawable m4683(Context context, int i) {
        int i2 = Build.VERSION.SDK_INT;
        return context.getDrawable(i);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static File[] m4685(Context context, String str) {
        int i = Build.VERSION.SDK_INT;
        return context.getExternalFilesDirs(str);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m4690(Context context, Intent[] intentArr, Bundle bundle) {
        int i = Build.VERSION.SDK_INT;
        context.startActivities(intentArr, bundle);
        return true;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static ColorStateList m4684(Context context, int i) {
        if (Build.VERSION.SDK_INT >= 23) {
            return context.getColorStateList(i);
        }
        return context.getResources().getColorStateList(i);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m4689(Context context, Intent intent, Bundle bundle) {
        int i = Build.VERSION.SDK_INT;
        context.startActivity(intent, bundle);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static File[] m4691(Context context) {
        int i = Build.VERSION.SDK_INT;
        return context.getExternalCacheDirs();
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m4686(Context context, int i) {
        if (Build.VERSION.SDK_INT >= 23) {
            return context.getColor(i);
        }
        return context.getResources().getColor(i);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m4687(Context context, String str) {
        if (str != null) {
            return context.checkPermission(str, Process.myPid(), Process.myUid());
        }
        throw new IllegalArgumentException("permission is null");
    }

    /* renamed from: K  reason: contains not printable characters */
    public static <T> T m4688(Context context, Class<T> cls) {
        String str;
        int i = Build.VERSION.SDK_INT;
        if (i >= 23) {
            return (T) context.getSystemService(cls);
        }
        if (i >= 23) {
            str = context.getSystemServiceName(cls);
        } else {
            str = C1807.f6169.get(cls);
        }
        if (str != null) {
            return (T) context.getSystemService(str);
        }
        return null;
    }
}
