Home
last modified time | relevance | path

Searched refs:isNotificationListenerAccessGranted (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceControllerTest.java94 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(false); in testAvailable_notGranted()
102 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_lowTargetSdk_noCustomizations()
111 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_lowTargetSdk_customizations()
122 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_highTargetSdk_noCustomizations()
131 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_noMetaData()
143 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_metaData_notTheDisableFilter()
156 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_metaData_disableFilter_notThisField()
169 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked()
180 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(false); in updateState_disabled()
193 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked()
[all …]
DBridgedAppsPreferenceControllerTest.java106 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_AddsToScreen()
120 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_doesNotReaddToScreen()
138 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_removesExtras()
156 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onRebuildComplete_buildsSetting()
178 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onPreferenceChange_false()
204 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in onPreferenceChange_true()
DBridgedAppsLinkPreferenceControllerTest.java68 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(false); in testAvailable_notGranted()
81 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_lowTargetSdk_noCustomizations()
95 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_lowTargetSdk_customizations()
111 when(mNm.isNotificationListenerAccessGranted(any())).thenReturn(true); in testAvailable_highTargetSdk_noCustomizations()
DApprovalPreferenceControllerTest.java105 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_enabled()
136 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in updateState_checked()
153 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(false); in restrictedSettings_appOpsDisabled()
170 when(mNm.isNotificationListenerAccessGranted(mCn)).thenReturn(true); in restrictedSettings_serviceAlreadyEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAccessSettingsTest.java104 when(mNotificationManager.isNotificationListenerAccessGranted(any())).thenReturn(true); in updateList_enabledLongName_shown()
125 when(mNotificationManager.isNotificationListenerAccessGranted(any())).thenReturn(false); in updateList_disabledLongName_notShown()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DNotificationAccessController.java38 .isNotificationListenerAccessGranted(cn); in hasAccess()
DBridgedAppsLinkPreferenceController.java61 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
DApprovalPreferenceController.java158 return mNm.isNotificationListenerAccessGranted(cn); in isServiceEnabled()
DTypeFilterPreferenceController.java85 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java212 assertThat(mNotificationManager.isNotificationListenerAccessGranted(mListenerComponent)) in revokeConfirmed_revokesNotificationAccess()
255 assertThat(mNotificationManager.isNotificationListenerAccessGranted(mListenerComponent)) in grantConfirmed_grantsNotificationAccess()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DNotificationAccess.java145 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DNotificationAccessState.java121 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DInteractionService.java197 return notificationManager.isNotificationListenerAccessGranted(component); in isNotificationListener()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java653 public boolean isNotificationListenerAccessGranted(ComponentName cn) { in isNotificationListenerAccessGranted() method in NotificationBackend
655 return sINM.isNotificationListenerAccessGranted(cn); in isNotificationListenerAccessGranted()
DNotificationAccessSettings.java151 boolean isAllowed = mNm.isNotificationListenerAccessGranted(cn); in updateList()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceController.java203 return mNm.isNotificationListenerAccessGranted(service); in isAccessGranted()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java924 nm.isNotificationListenerAccessGranted(listenerComponent)); in registerNotificationListenerService()