Searched refs:hasAccess (Results 1 – 13 of 13) sorted by relevance
32 val hasAccess: Boolean in onCreate() constant46 hasAccess = in onCreate()68 setResult(RESULT_OK, Intent().apply { putExtra("$packageName.HAS_ACCESS", hasAccess) }) in onCreate()
81 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()87 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
172 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()175 if (shouldEnable && !hasAccess) { in refreshUi()181 mSwitchPref.setChecked(hasAccess); in refreshUi()
36 public static boolean hasAccess(Context context, ComponentName cn) { in hasAccess() method in NotificationAccessController
77 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
92 public static boolean hasAccess(Context context, String pkg) { in hasAccess() method in ZenAccessController
171 if (!disp.hasAccess(uidSelf)) { in getDisplays()
160 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()
166 if (!disp.hasAccess(uidSelf)) { in getDisplays()
280 if (!disp.hasAccess(uidSelf)) { in getDisplays()
332 if (!disp.hasAccess(uidSelf)) { in getDisplays()
457 if (!disp.hasAccess(uidSelf)) { in getDisplays()
482 if (!disp.hasAccess(uidSelf)) { in getDisplays()