Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java48 private ZenAccessController mController;
56 mController = new ZenAccessController(mContext, "key"); in setUp()
73 ZenAccessController.logSpecialPermissionChange(true, "app", mContext); in logSpecialPermissionChange()
78 ZenAccessController.logSpecialPermissionChange(false, "app", mContext); in logSpecialPermissionChange()
90 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()
96 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/zenaccess/
DZenAccessDetails.java53 if (!ZenAccessController.isSupported(context.getSystemService(ActivityManager.class))) { in refreshUi()
58 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in refreshUi()
73 final Set<String> autoApproved = ZenAccessController.getAutoApprovedPackages(context); in updatePreference()
80 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DZenAccessSettingObserverMixin.java56 if (!ZenAccessController.isSupported(mContext.getSystemService(ActivityManager.class))) { in onStart()
72 if (!ZenAccessController.isSupported(mContext.getSystemService(ActivityManager.class))) { in onStop()
DFriendlyWarningDialogFragment.java67 ZenAccessController.deleteRules(getContext(), pkg); in onCreateDialog()
68 ZenAccessController.setAccess(getContext(), pkg, false); in onCreateDialog()
DZenAccessController.java39 public class ZenAccessController extends BasePreferenceController { class
45 public ZenAccessController(Context context, String preferenceKey) { in ZenAccessController() method in ZenAccessController
DScaryWarningDialogFragment.java66 (dialog, id) -> ZenAccessController.setAccess(getContext(), pkg, true)) in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessDetails.java53 if (!ZenAccessController.isSupported(context.getSystemService(ActivityManager.class))) { in refreshUi()
58 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in refreshUi()
73 final Set<String> autoApproved = ZenAccessController.getAutoApprovedPackages(context); in updatePreference()
80 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DZenAccessSettingObserverMixin.java56 if (!ZenAccessController.isSupported(mContext.getSystemService(ActivityManager.class))) { in onStart()
72 if (!ZenAccessController.isSupported(mContext.getSystemService(ActivityManager.class))) { in onStop()
DFriendlyWarningDialogFragment.java67 ZenAccessController.deleteRules(getContext(), pkg); in onCreateDialog()
68 ZenAccessController.setAccess(getContext(), pkg, false); in onCreateDialog()
DZenAccessController.java39 public class ZenAccessController extends BasePreferenceController { class
45 public ZenAccessController(Context context, String preferenceKey) { in ZenAccessController() method in ZenAccessController
DScaryWarningDialogFragment.java66 (dialog, id) -> ZenAccessController.setAccess(getContext(), pkg, true)) in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/notification/
DZenAccessSettings.java36 import com.android.settings.applications.specialaccess.zenaccess.ZenAccessController;
106 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in reloadList()
157 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenAccessSettings.java36 import com.android.car.developeroptions.applications.specialaccess.zenaccess.ZenAccessController;
106 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in reloadList()
157 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()