Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java90 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()
96 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java139 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
140 mSwitchPref.setChecked(hasAccess); in refreshUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DUsageAccessDetails.java139 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
140 mSwitchPref.setChecked(hasAccess); in refreshUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/zenaccess/
DZenAccessDetails.java80 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DZenAccessController.java89 public static boolean hasAccess(Context context, String pkg) { in hasAccess() method in ZenAccessController
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessDetails.java80 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DZenAccessController.java89 public static boolean hasAccess(Context context, String pkg) { in hasAccess() method in ZenAccessController
/packages/apps/Settings/src/com/android/settings/notification/
DZenAccessSettings.java157 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenAccessSettings.java157 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()