Home
last modified time | relevance | path

Searched refs:hasAccess (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Permission/tests/cts/permissionui/UsePermissionAppLatest/src/android/permissionui/cts/usepermission/
DCheckCalendarAccessActivity.kt32 val hasAccess: Boolean in onCreate() constant
46 hasAccess = in onCreate()
68 setResult(RESULT_OK, Intent().apply { putExtra("$packageName.HAS_ACCESS", hasAccess) }) in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java81 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()
87 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java172 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
175 if (shouldEnable && !hasAccess) { in refreshUi()
181 mSwitchPref.setChecked(hasAccess); in refreshUi()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DNotificationAccessController.java36 public static boolean hasAccess(Context context, ComponentName cn) { in hasAccess() method in NotificationAccessController
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessDetails.java77 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DZenAccessController.java92 public static boolean hasAccess(Context context, String pkg) { in hasAccess() method in ZenAccessController
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DDisplayMirroringFragment.java171 if (!disp.hasAccess(uidSelf)) { in getDisplays()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenAccessSettings.java160 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/key/
DInjectKeyTestFragment.java166 if (!disp.hasAccess(uidSelf)) { in getDisplays()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/
DPowerTestFragment.java280 if (!disp.hasAccess(uidSelf)) { in getDisplays()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DInjectMotionTestFragment.java332 if (!disp.hasAccess(uidSelf)) { in getDisplays()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java457 if (!disp.hasAccess(uidSelf)) { in getDisplays()
DSimpleUserPickerFragment.java482 if (!disp.hasAccess(uidSelf)) { in getDisplays()