Searched refs:hasAccess (Results 1 – 9 of 9) sorted by relevance
90 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()96 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
139 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()140 mSwitchPref.setChecked(hasAccess); in refreshUi()
80 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
89 public static boolean hasAccess(Context context, String pkg) { in hasAccess() method in ZenAccessController
157 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()