Searched refs:isNotificationListenerAccessGranted (Results 1 – 17 of 17) sorted by relevance
94 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 …]
106 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()
68 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()
105 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()
104 when(mNotificationManager.isNotificationListenerAccessGranted(any())).thenReturn(true); in updateList_enabledLongName_shown()125 when(mNotificationManager.isNotificationListenerAccessGranted(any())).thenReturn(false); in updateList_disabledLongName_notShown()
38 .isNotificationListenerAccessGranted(cn); in hasAccess()
61 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
158 return mNm.isNotificationListenerAccessGranted(cn); in isServiceEnabled()
85 if (mNm.isNotificationListenerAccessGranted(mCn)) { in getAvailabilityStatus()
212 assertThat(mNotificationManager.isNotificationListenerAccessGranted(mListenerComponent)) in revokeConfirmed_revokesNotificationAccess()255 assertThat(mNotificationManager.isNotificationListenerAccessGranted(mListenerComponent)) in grantConfirmed_grantsNotificationAccess()
145 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList()
121 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList()
197 return notificationManager.isNotificationListenerAccessGranted(component); in isNotificationListener()
653 public boolean isNotificationListenerAccessGranted(ComponentName cn) { in isNotificationListenerAccessGranted() method in NotificationBackend655 return sINM.isNotificationListenerAccessGranted(cn); in isNotificationListenerAccessGranted()
151 boolean isAllowed = mNm.isNotificationListenerAccessGranted(cn); in updateList()
203 return mNm.isNotificationListenerAccessGranted(service); in isAccessGranted()
924 nm.isNotificationListenerAccessGranted(listenerComponent)); in registerNotificationListenerService()