Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java48 private ZenAccessController mController;
54 mController = new ZenAccessController(mContext, "key"); in setUp()
64 ZenAccessController.logSpecialPermissionChange(true, "app", mContext); in logSpecialPermissionChange()
69 ZenAccessController.logSpecialPermissionChange(false, "app", mContext); in logSpecialPermissionChange()
81 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/specialaccess/zenaccess/
DZenAccessDetails.java54 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in refreshUi()
70 final Set<String> autoApproved = ZenAccessController.getAutoApprovedPackages(context); in updatePreference()
77 preference.setChecked(ZenAccessController.hasAccess(context, mPackageName)); in updatePreference()
DFriendlyWarningDialogFragment.java72 ZenAccessController.deleteRules(getContext(), pkg); in onCreateDialog()
73 ZenAccessController.setAccess(getContext(), pkg, false); in onCreateDialog()
DZenAccessController.java38 public class ZenAccessController extends BasePreferenceController { class
42 public ZenAccessController(Context context, String preferenceKey) { in ZenAccessController() method in ZenAccessController
DScaryWarningDialogFragment.java71 ZenAccessController.setAccess(getContext(), pkg, true); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenAccessSettings.java37 import com.android.settings.applications.specialaccess.zenaccess.ZenAccessController;
107 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in reloadList()
120 autoApproved.addAll(ZenAccessController.getPackagesWithManageNotifications()); in reloadList()
160 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()