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;
56 mController = new ZenAccessController(mContext, "key"); in setUp()
67 ZenAccessController.logSpecialPermissionChange(true, "app", mContext); in logSpecialPermissionChange()
72 ZenAccessController.logSpecialPermissionChange(false, "app", mContext); in logSpecialPermissionChange()
84 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()
90 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenAccessSettings.java38 import com.android.settings.applications.specialaccess.zenaccess.ZenAccessController;
108 ZenAccessController.getPackagesRequestingNotificationPolicyAccess(); in reloadList()
121 autoApproved.addAll(ZenAccessController.getPackagesWithManageNotifications()); in reloadList()
159 final boolean enabled = ZenAccessController.hasAccess(getContext(), packageName); in getPreferenceSummary()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessDetails.java55 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.java39 public class ZenAccessController extends BasePreferenceController { class
43 public ZenAccessController(Context context, String preferenceKey) { in ZenAccessController() method in ZenAccessController
DScaryWarningDialogFragment.java71 ZenAccessController.setAccess(getContext(), pkg, true); in onCreateDialog()