/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | ApplicationContext.java | 64 public ApplicationContext(Context context) { in ApplicationContext() argument 65 mContextRef = new WeakReference<>(context); in ApplicationContext() 70 Context context = mContextRef.get(); in getAssets() local 71 if (context != null) { in getAssets() 72 return context.getAssets(); in getAssets() 79 Context context = mContextRef.get(); in getResources() local 80 if (context != null) { in getResources() 81 return context.getResources(); in getResources() 88 Context context = mContextRef.get(); in getPackageManager() local 89 if (context != null) { in getPackageManager() [all …]
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/theme/ |
D | AndroidColorScheme.kt | 40 class AndroidColorScheme(context: Context) { 41 val onSecondaryFixedVariant = getColor(context, R.attr.materialColorOnSecondaryFixedVariant) 42 val onTertiaryFixedVariant = getColor(context, R.attr.materialColorOnTertiaryFixedVariant) 43 val surfaceContainerLowest = getColor(context, R.attr.materialColorSurfaceContainerLowest) 44 val onPrimaryFixedVariant = getColor(context, R.attr.materialColorOnPrimaryFixedVariant) 45 val onSecondaryContainer = getColor(context, R.attr.materialColorOnSecondaryContainer) 46 val onTertiaryContainer = getColor(context, R.attr.materialColorOnTertiaryContainer) 47 val surfaceContainerLow = getColor(context, R.attr.materialColorSurfaceContainerLow) 48 val onPrimaryContainer = getColor(context, R.attr.materialColorOnPrimaryContainer) 49 val secondaryFixedDim = getColor(context, R.attr.materialColorSecondaryFixedDim) [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | FrameworkServicesModule.java | 133 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager() argument 134 return context.getSystemService(AccessibilityManager.class); in provideAccessibilityManager() 139 static ActivityManager provideActivityManager(Context context) { in provideActivityManager() argument 140 return context.getSystemService(ActivityManager.class); in provideActivityManager() 145 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager() argument 146 return context.getSystemService(AlarmManager.class); in provideAlarmManager() 151 static Optional<SystemUpdateManager> provideSystemUpdateManager(Context context) { in provideSystemUpdateManager() argument 152 return Optional.ofNullable(context.getSystemService(SystemUpdateManager.class)); in provideSystemUpdateManager() 158 static AmbientContextManager provideAmbientContextManager(Context context) { in provideAmbientContextManager() argument 159 return context.getSystemService(AmbientContextManager.class); in provideAmbientContextManager() [all …]
|
/frameworks/av/media/libeffects/hapticgenerator/ |
D | EffectHapticGenerator.cpp | 125 int HapticGenerator_Init(struct HapticGeneratorContext *context) { in HapticGenerator_Init() argument 126 context->itfe = &gHapticGeneratorInterface; in HapticGenerator_Init() 128 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in HapticGenerator_Init() 129 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in HapticGenerator_Init() 130 context->config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in HapticGenerator_Init() 131 context->config.inputCfg.samplingRate = 0; in HapticGenerator_Init() 132 context->config.inputCfg.bufferProvider.getBuffer = nullptr; in HapticGenerator_Init() 133 context->config.inputCfg.bufferProvider.releaseBuffer = nullptr; in HapticGenerator_Init() 134 context->config.inputCfg.bufferProvider.cookie = nullptr; in HapticGenerator_Init() 135 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in HapticGenerator_Init() [all …]
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction() argument 63 onEnableAllMeteredApns(intent, context); in applyCarrierAction() 66 onDisableAllMeteredApns(intent, context); in applyCarrierAction() 69 onDisableRadio(intent, context); in applyCarrierAction() 72 onEnableRadio(intent, context); in applyCarrierAction() 75 onShowCaptivePortalNotification(intent, context); in applyCarrierAction() 78 onShowNoDataServiceNotification(context); in applyCarrierAction() 81 onCancelAllNotifications(context); in applyCarrierAction() 84 onEnableDefaultURLHandler(context); in applyCarrierAction() 87 onDisableDefaultURLHandler(context); in applyCarrierAction() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 94 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState() argument 96 return checkReadPhoneState(context, subId, Binder.getCallingPid(), Binder.getCallingUid(), in checkCallingOrSelfReadPhoneState() 102 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow() argument 105 return checkCallingOrSelfReadPhoneState(context, subId, callingPackage, in checkCallingOrSelfReadPhoneStateNoThrow() 118 public static boolean checkInternetPermissionNoThrow(Context context, String message) { in checkInternetPermissionNoThrow() argument 120 context.enforcePermission(Manifest.permission.INTERNET, in checkInternetPermissionNoThrow() 136 Context context, String message) { in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() argument 138 context.enforcePermission( in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() 170 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() argument 173 context.enforcePermission( in checkReadPhoneState() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | PermissionUtilsTest.kt | 51 private val context = mock(Context::class.java) constant 56 doReturn(packageManager).`when`(context).packageManager in setup() 61 doReturn(PERMISSION_GRANTED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION1) in testEnforceAnyPermissionOf() 62 doReturn(PERMISSION_DENIED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION2) in testEnforceAnyPermissionOf() 63 assertTrue(checkAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2)) in testEnforceAnyPermissionOf() 64 enforceAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2) in testEnforceAnyPermissionOf() 66 doReturn(PERMISSION_DENIED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION1) in testEnforceAnyPermissionOf() 67 doReturn(PERMISSION_GRANTED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION2) in testEnforceAnyPermissionOf() 68 assertTrue(checkAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2)) in testEnforceAnyPermissionOf() 69 enforceAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2) in testEnforceAnyPermissionOf() [all …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputSettings.java | 79 public static int getPointerSpeed(Context context) { in getPointerSpeed() argument 80 return Settings.System.getInt(context.getContentResolver(), in getPointerSpeed() 97 public static void setPointerSpeed(Context context, int speed) { in setPointerSpeed() argument 102 Settings.System.putInt(context.getContentResolver(), in setPointerSpeed() 121 public static float getMaximumObscuringOpacityForTouch(Context context) { in getMaximumObscuringOpacityForTouch() argument 122 return Settings.Global.getFloat(context.getContentResolver(), in getMaximumObscuringOpacityForTouch() 154 @NonNull Context context, in setMaximumObscuringOpacityForTouch() 160 Settings.Global.putFloat(context.getContentResolver(), in setMaximumObscuringOpacityForTouch() 168 public static boolean isStylusEverUsed(@NonNull Context context) { in isStylusEverUsed() argument 169 return Settings.Global.getInt(context.getContentResolver(), in isStylusEverUsed() [all …]
|
/frameworks/base/core/jni/ |
D | runtime_native_boot-flags-test.sh | 66 local context=$1 70 say "[$context] Check that the device configuration flag is set..." 81 local context=$1 84 say "[$context] Check that the device configuration flag is not set..." 108 local context=$1 112 say "[$context] Check that the persistent system property is set..." 123 local context=$1 126 say "[$context] Check that the persistent system property is not set..." 147 local context=$1 151 "[$context] Check that all zygote processes are passed \`$runtime_option\` as runtime option..." [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | PowerUtil.java | 57 public static String getBatteryRemainingStringFormatted(Context context, long drainTimeMs, in getBatteryRemainingStringFormatted() argument 62 return getShutdownImminentString(context, percentageString); in getBatteryRemainingStringFormatted() 65 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted() 68 return getUnderFifteenString(context, timeString, percentageString); in getBatteryRemainingStringFormatted() 71 return getMoreThanTwoDaysString(context, percentageString); in getBatteryRemainingStringFormatted() 74 return getMoreThanOneDayString(context, drainTimeMs, in getBatteryRemainingStringFormatted() 78 return getRegularTimeRemainingString(context, drainTimeMs, in getBatteryRemainingStringFormatted() 97 Context context, long drainTimeMs) { in getBatteryRemainingShortStringFormatted() argument 103 return getRegularTimeRemainingShortString(context, drainTimeMs); in getBatteryRemainingShortStringFormatted() 105 return getMoreThanOneDayShortString(context, drainTimeMs, in getBatteryRemainingShortStringFormatted() [all …]
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 151 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument 154 return checkPermissionForDataDelivery(context, permission, pid, new AttributionSource(uid, in checkPermissionForDataDelivery() 194 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument 197 return checkPermissionForDataDelivery(context, permission, pid, uid, in checkPermissionForDataDelivery() 232 public static int checkPermissionForDataDeliveryFromDataSource(@NonNull Context context, in checkPermissionForDataDeliveryFromDataSource() argument 235 return checkPermissionForDataDeliveryCommon(context, permission, attributionSource, in checkPermissionForDataDeliveryFromDataSource() 269 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument 272 return checkPermissionForDataDelivery(context, permission, pid, attributionSource, in checkPermissionForDataDelivery() 307 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument 310 return checkPermissionForDataDeliveryCommon(context, permission, attributionSource, in checkPermissionForDataDelivery() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 57 public static boolean isRotationSupported(Context context) { in isRotationSupported() argument 58 PackageManager pm = context.getPackageManager(); in isRotationSupported() 62 && context.getResources().getBoolean( in isRotationSupported() 74 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation() argument 75 if (areAllRotationsAllowed(context)) { in getRotationLockOrientation() 78 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in getRotationLockOrientation() 80 context.getResources().getConfiguration().windowConfiguration.getRotation(); in getRotationLockOrientation() 90 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible() argument 91 return isRotationSupported(context) && in isRotationLockToggleVisible() 92 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricNotificationDialogFactory.java | 46 Dialog createReenrollDialog(final Context context, final SystemUIDialog sysuiDialog, in createReenrollDialog() argument 49 sysuiDialog.setTitle(context.getString(R.string.face_re_enroll_dialog_title)); in createReenrollDialog() 50 sysuiDialog.setMessage(context.getString(R.string.face_re_enroll_dialog_content)); in createReenrollDialog() 52 FingerprintManager fingerprintManager = context.getSystemService( in createReenrollDialog() 54 sysuiDialog.setTitle(context.getString(R.string.fingerprint_re_enroll_dialog_title)); in createReenrollDialog() 56 sysuiDialog.setMessage(context.getString( in createReenrollDialog() 59 sysuiDialog.setMessage(context.getString( in createReenrollDialog() 65 (dialog, which) -> onReenrollDialogConfirm(context, biometricSourceType)); in createReenrollDialog() 71 private static Dialog createReenrollFailureDialog(Context context, in createReenrollFailureDialog() argument 73 final SystemUIDialog sysuiDialog = new SystemUIDialog(context); in createReenrollFailureDialog() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 65 private static void createAll(Context context) { in createAll() argument 68 context.getText(R.string.notification_channel_network_alert), in createAll() 77 context.getText(R.string.notification_channel_mobile_data_status), in createAll() 84 context.getText(R.string.notification_channel_sim), in createAll() 91 context.getText(R.string.notification_channel_call_forward), in createAll() 93 migrateCallFowardNotificationChannel(context, callforwardChannel); in createAll() 95 context.getSystemService(NotificationManager.class) in createAll() 98 context.getText(R.string.notification_channel_sms), in createAll() 101 context.getText(R.string.notification_channel_wfc), in createAll() 104 context.getText(R.string.notification_channel_sim_high_prio), in createAll() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 561 public @NonNull DevicePolicyManager getManager(@NonNull Context context) { in getManager() argument 565 mManager = (DevicePolicyManager)context.getSystemService( in getManager() 575 public @NonNull ComponentName getWho(@NonNull Context context) { in getWho() argument 579 mWho = new ComponentName(context, getClass()); in getWho() 596 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled() argument 598 Log.v(TAG, getClass().getName() + ".onEnabled() on user " + context.getUserId()); in onEnabled() 613 public @Nullable CharSequence onDisableRequested(@NonNull Context context, in onDisableRequested() argument 617 + context.getUserId()); in onDisableRequested() 630 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled() argument 632 Log.v(TAG, getClass().getName() + ".onDisabled() on user " + context.getUserId()); in onDisabled() [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | Utils.java | 236 static String getAppLabel(Context context, String packageName) { in getAppLabel() argument 238 ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo( in getAppLabel() 241 return appInfo.loadLabel(context.getPackageManager()).toString(); in getAppLabel() 247 static String getConnectedDescription(@NonNull Context context, in getConnectedDescription() argument 253 final StringJoiner sj = new StringJoiner(context.getString( in getConnectedDescription() 262 getSuggestionOrSpecifierLabel(context, wifiConfiguration); in getConnectedDescription() 266 sj.add(context.getString(R.string.wifitrackerlib_connected_via_app, in getConnectedDescription() 270 sj.add(context.getString(R.string.wifitrackerlib_available_via_app, in getConnectedDescription() 278 sj.add(context.getString(R.string.wifi_connected_low_quality)); in getConnectedDescription() 287 sj.add(context.getString(context.getResources() in getConnectedDescription() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/ |
D | SettingsTonalPalette.kt | 200 internal fun dynamicTonalPalette(context: Context) = SettingsTonalPalette( in tonalPalette() 202 neutral100 = ColorResourceHelper.getColor(context, R.color.system_neutral1_0), in tonalPalette() 203 neutral99 = ColorResourceHelper.getColor(context, R.color.system_neutral1_10), in tonalPalette() 204 neutral95 = ColorResourceHelper.getColor(context, R.color.system_neutral1_50), in tonalPalette() 205 neutral90 = ColorResourceHelper.getColor(context, R.color.system_neutral1_100), in tonalPalette() 206 neutral80 = ColorResourceHelper.getColor(context, R.color.system_neutral1_200), in tonalPalette() 207 neutral70 = ColorResourceHelper.getColor(context, R.color.system_neutral1_300), in tonalPalette() 208 neutral60 = ColorResourceHelper.getColor(context, R.color.system_neutral1_400), in tonalPalette() 209 neutral50 = ColorResourceHelper.getColor(context, R.color.system_neutral1_500), in tonalPalette() 210 neutral40 = ColorResourceHelper.getColor(context, R.color.system_neutral1_600), in tonalPalette() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorContext.java | 68 final Context context = phoneWindow.getContext(); in setPhoneWindow() local 69 mContext = new WeakReference<>(context); in setPhoneWindow() 70 mResources = context.getResources(); in setPhoneWindow() 78 final Context context = mContext.get(); in getSystemService() local 80 if (context != null && mContentCaptureManager == null) { in getSystemService() 81 mContentCaptureManager = (ContentCaptureManager) context.getSystemService(name); in getSystemService() 87 return (context != null) ? context.getSystemService(name) : super.getSystemService(name); in getSystemService() 92 Context context = mContext.get(); in getResources() local 95 if (context != null) { in getResources() 96 mResources = context.getResources(); in getResources() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 99 public Parameters(Context context) { in Parameters() argument 100 mContext = context; in Parameters() 123 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() argument 128 final ContentResolver cr = context.getContentResolver(); in setPowerSaveMode() 133 && maybeShowBatterySaverConfirmation(context, confirmationExtras)) { in setPowerSaveMode() 137 setBatterySaverConfirmationAcknowledged(context); in setPowerSaveMode() 140 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode() 146 final Parameters parameters = new Parameters(context); in setPowerSaveMode() 153 sendSystemUiBroadcast(context, ACTION_SHOW_AUTO_SAVER_SUGGESTION, in setPowerSaveMode() 157 recordBatterySaverEnabledReason(context, enable, reason); in setPowerSaveMode() [all …]
|
/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
D | AccessibilityTargetHelper.java | 73 public static List<AccessibilityTarget> getTargets(Context context, in getTargets() argument 76 final List<AccessibilityTarget> installedTargets = getInstalledTargets(context, in getTargets() 80 final AccessibilityManager am = (AccessibilityManager) context.getSystemService( in getTargets() 115 static List<AccessibilityTarget> getInstalledTargets(Context context, in getInstalledTargets() argument 118 targets.addAll(getAccessibilityFilteredTargets(context, shortcutType)); in getInstalledTargets() 119 targets.addAll(getAllowListingFeatureTargets(context, shortcutType)); in getInstalledTargets() 124 private static List<AccessibilityTarget> getAccessibilityFilteredTargets(Context context, in getAccessibilityFilteredTargets() argument 127 getAccessibilityServiceTargets(context, shortcutType); in getAccessibilityFilteredTargets() 129 getAccessibilityActivityTargets(context, shortcutType); in getAccessibilityFilteredTargets() 157 private static List<AccessibilityTarget> getAccessibilityServiceTargets(Context context, in getAccessibilityServiceTargets() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 124 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() argument 125 return get(context).getBoolean(key, defaultValue); in getBoolean() 128 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean() argument 129 get(context).edit().putBoolean(key, value).apply(); in putBoolean() 132 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() argument 133 return get(context).getInt(key, defaultValue); in getInt() 136 public static void putInt(Context context, @Key String key, int value) { in putInt() argument 137 get(context).edit().putInt(key, value).apply(); in putInt() 140 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() argument 141 return get(context).getLong(key, defaultValue); in getLong() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | BiometricNotificationUtils.java | 61 public static void showReEnrollmentNotification(@NonNull Context context) { in showReEnrollmentNotification() argument 63 context.getSystemService(NotificationManager.class); in showReEnrollmentNotification() 66 context.getString(R.string.face_recalibrate_notification_name); in showReEnrollmentNotification() 68 context.getString(R.string.face_recalibrate_notification_title); in showReEnrollmentNotification() 70 context.getString(R.string.face_recalibrate_notification_content); in showReEnrollmentNotification() 76 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showReEnrollmentNotification() 80 showNotificationHelper(context, name, title, content, pendingIntent, FACE_RE_ENROLL_CHANNEL, in showReEnrollmentNotification() 88 public static void showFaceEnrollNotification(@NonNull Context context) { in showFaceEnrollNotification() argument 91 context.getString(R.string.device_unlock_notification_name); in showFaceEnrollNotification() 93 context.getString(R.string.alternative_unlock_setup_notification_title); in showFaceEnrollNotification() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/ |
D | CustomImageView.java | 26 public CustomImageView(Context context) { in CustomImageView() argument 27 super(context); in CustomImageView() 28 init(context); in CustomImageView() 31 public CustomImageView(Context context, AttributeSet attrs) { in CustomImageView() argument 32 super(context, attrs); in CustomImageView() 33 init(context); in CustomImageView() 36 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr) { in CustomImageView() argument 37 super(context, attrs, defStyleAttr); in CustomImageView() 38 init(context); in CustomImageView() 41 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomImageView() argument [all …]
|
D | HtmlTextView.java | 25 public HtmlTextView(Context context) { in HtmlTextView() argument 26 super(context); in HtmlTextView() 27 init(context); in HtmlTextView() 30 public HtmlTextView(Context context, AttributeSet attrs) { in HtmlTextView() argument 31 super(context, attrs); in HtmlTextView() 32 init(context); in HtmlTextView() 35 public HtmlTextView(Context context, AttributeSet attrs, int defStyleAttr) { in HtmlTextView() argument 36 super(context, attrs, defStyleAttr); in HtmlTextView() 37 init(context); in HtmlTextView() 40 public HtmlTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in HtmlTextView() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 67 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock() argument 68 Drawable restrictedPadlock = context.getDrawable(android.R.drawable.ic_info); in getRestrictedPadlock() 69 final int iconSize = context.getResources().getDimensionPixelSize( in getRestrictedPadlock() 72 TypedArray ta = context.obtainStyledAttributes(new int[]{android.R.attr.colorAccent}); in getRestrictedPadlock() 92 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced() argument 94 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() 100 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() 128 final EnforcedAdmin admin = getProfileOrDeviceOwner(context, enforcingUser.getUserHandle()); in checkIfRestrictionEnforced() 135 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() argument 137 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction() [all …]
|