/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | ZenOnboardingActivityTest.java | 62 private NotificationManager mNm; field in ZenOnboardingActivityTest 73 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp() 78 mActivity.setNotificationManager(mNm); in setUp() 97 when(mNm.getNotificationPolicy()).thenReturn(policy); in saveNewSetting() 105 verify(mNm).setNotificationPolicy(captor.capture()); in saveNewSetting() 119 when(mNm.getNotificationPolicy()).thenReturn(policy); in keepCurrentSetting() 125 verify(mNm, never()).setNotificationPolicy(any()); in keepCurrentSetting() 131 when(mNm.getNotificationPolicy()).thenReturn(policy); in isSuggestionComplete_zenUpdated() 142 when(mNm.getNotificationPolicy()).thenReturn(policy); in isSuggestionComplete_withinTimeThreshold() 153 when(mNm.getNotificationPolicy()).thenReturn(policy); in isSuggestionComplete_showSettingsSuggestionTrue() [all …]
|
D | DndPreferenceControllerTest.java | 63 private NotificationManager mNm; field in DndPreferenceControllerTest 75 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp() 83 when(mNm.getNotificationPolicy()).thenReturn(new NotificationManager.Policy(0, 0, 0, 0)); in testIsAvailable_app() 91 when(mNm.getNotificationPolicy()).thenReturn(new NotificationManager.Policy(0, 0, 0, 1)); in testIsAvailable_channel()
|
D | AppLinkPreferenceControllerTest.java | 52 private NotificationManager mNm; field in AppLinkPreferenceControllerTest 62 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
|
D | DeletedChannelsPreferenceControllerTest.java | 54 private NotificationManager mNm; field in DeletedChannelsPreferenceControllerTest 64 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 82 private lateinit var mNm: NotificationManager variable in com.android.networkstack.NetworkStackNotifierTest 146 mAllUserContext.mockService(Context.NOTIFICATION_SERVICE, NotificationManager::class, mNm) in setUp() 181 verify(mNm, never()).notify(any(), anyInt(), any()) in testNoNotification() 185 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in verifyConnectedNotification() 197 verify(mNm).cancel(TEST_NETWORK_TAG, mNoteIdCaptor.value) in verifyCanceledNotificationAfterNetworkLost() 203 verify(mNm).cancel(TEST_NETWORK_TAG, mNoteIdCaptor.value) in verifyCanceledNotificationAfterDefaultNetworkLost() 213 verify(mNm, never()).notify(any(), anyInt(), any()) in testConnectedNotification_NoSsid() 280 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in testVenueInfoNotification() 291 doReturn(null).`when`(mNm).getNotificationChannel(CHANNEL_VENUE_INFO) in testVenueInfoNotification_VenueInfoDisabled() 297 verify(mNm, never()).notify(any(), anyInt(), any()) in testVenueInfoNotification_VenueInfoDisabled() [all …]
|
/packages/modules/NetworkStack/src/com/android/server/ |
D | NetworkStackService.java | 553 private final NetworkMonitor mNm; field in NetworkStackService.NetworkMonitorConnector 559 mNm = nm; in NetworkMonitorConnector() 566 mNm.start(); in start() 572 mNm.launchCaptivePortalApp(); in launchCaptivePortalApp() 578 mNm.notifyCaptivePortalAppFinished(response); in notifyCaptivePortalAppFinished() 584 mNm.setAcceptPartialConnectivity(); in setAcceptPartialConnectivity() 590 mNm.forceReevaluation(uid); in forceReevaluation() 596 mNm.notifyPrivateDnsSettingsChanged(PrivateDnsConfig.fromParcel(config)); in notifyPrivateDnsChanged() 602 mNm.notifyDnsResponse(returnCode); in notifyDnsResponse() 608 mNm.notifyNetworkConnected(lp, nc); in notifyNetworkConnected() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationAccessSettings.java | 64 private NotificationManager mNm; field in NotificationAccessSettings 86 mNm = context.getSystemService(NotificationManager.class); in onAttach() 120 return mNm.isNotificationListenerAccessGranted(cn); in isServiceEnabled() 125 mNm.setNotificationListenerAccessGranted(service, true); in enable() 142 parent.mNm.setNotificationListenerAccessGranted(cn, false); in disable() 144 if (!parent.mNm.isNotificationPolicyAccessGrantedForPackage( in disable() 146 parent.mNm.removeAutomaticZenRules(cn.getPackageName()); in disable()
|
D | ZenOnboardingActivity.java | 55 private NotificationManager mNm; field in ZenOnboardingActivity 108 mNm = nm; in setNotificationManager() 124 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in save() 132 mNm.setNotificationPolicy(newPolicy); in save()
|
D | NotificationAccessConfirmationActivity.java | 52 private NotificationManager mNm; field in NotificationAccessConfirmationActivity 58 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate() 111 mNm.setNotificationListenerAccessGranted(mComponentName, true); in onAllow()
|
D | ZenRuleSelectionDialog.java | 60 private static NotificationManager mNm; field in ZenRuleSelectionDialog 81 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in show() 202 && mNm.isNotificationPolicyAccessGrantedForPackage(ri.packageName) 204 >= (mNm.getRuleInstanceCount(ci.getComponentName()) + 1))) {
|
D | NotificationPreferenceController.java | 49 protected final NotificationManager mNm; field in NotificationPreferenceController 59 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in NotificationPreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationAccessSettings.java | 64 private NotificationManager mNm; field in NotificationAccessSettings 86 mNm = context.getSystemService(NotificationManager.class); in onAttach() 120 return mNm.isNotificationListenerAccessGranted(cn); in isServiceEnabled() 125 mNm.setNotificationListenerAccessGranted(service, true); in enable() 142 parent.mNm.setNotificationListenerAccessGranted(cn, false); in disable() 144 if (!parent.mNm.isNotificationPolicyAccessGrantedForPackage( in disable() 146 parent.mNm.removeAutomaticZenRules(cn.getPackageName()); in disable()
|
D | ZenOnboardingActivity.java | 55 private NotificationManager mNm; field in ZenOnboardingActivity 108 mNm = nm; in setNotificationManager() 124 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in save() 132 mNm.setNotificationPolicy(newPolicy); in save()
|
D | NotificationAccessConfirmationActivity.java | 52 private NotificationManager mNm; field in NotificationAccessConfirmationActivity 58 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate() 111 mNm.setNotificationListenerAccessGranted(mComponentName, true); in onAllow()
|
D | ZenRuleSelectionDialog.java | 60 private static NotificationManager mNm; field in ZenRuleSelectionDialog 81 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in show() 202 && mNm.isNotificationPolicyAccessGrantedForPackage(ri.packageName) 204 >= (mNm.getRuleInstanceCount(ci.getComponentName()) + 1))) {
|
D | NotificationPreferenceController.java | 49 protected final NotificationManager mNm; field in NotificationPreferenceController 59 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in NotificationPreferenceController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceController.java | 65 private final NotificationManager mNm; field in NotificationAccessPreferenceController 85 mNm = context.getSystemService(NotificationManager.class); in NotificationAccessPreferenceController() 170 return mNm.isNotificationListenerAccessGranted(service); in isAccessGranted() 174 mNm.setNotificationListenerAccessGranted(service, /* granted= */ true); in grantNotificationAccess() 178 mNm.setNotificationListenerAccessGranted(service, /* granted= */ false); in revokeNotificationAccess() 180 if (!mNm.isNotificationPolicyAccessGrantedForPackage(service.getPackageName())) { in revokeNotificationAccess() 181 mNm.removeAutomaticZenRules(service.getPackageName()); in revokeNotificationAccess()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
D | AppNotificationSettingsTest.java | 65 NotificationManager mNm; field in AppNotificationSettingsTest 82 mNm = (NotificationManager) mTargetContext.getSystemService(Context.NOTIFICATION_SERVICE); in setUp() 86 mNm.createNotificationChannelGroup(mGroup1); in setUp() 87 mNm.createNotificationChannelGroup(mGroup2); in setUp() 151 mNm.createNotificationChannel(channel); in createChannel()
|
D | ChannelNotificationSettingsTest.java | 58 private NotificationManager mNm; field in ChannelNotificationSettingsTest 69 mNm = (NotificationManager) mTargetContext.getSystemService(Context.NOTIFICATION_SERVICE); in setUp() 72 mNm.createNotificationChannel(mNotificationChannel); in setUp() 91 mNm.createNotificationChannel(blocked); in launchNotificationSettings_blockedChannel()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/incident/ |
D | PendingList.java | 104 private final NotificationManager mNm; field in PendingList.Updater 114 mNm = context.getSystemService(NotificationManager.class); in Updater() 207 mNm.cancel(remainingNotifications.valueAt(i), Constants.INCIDENT_NOTIFICATION_ID); in updateState() 275 mNm.notify(rec.report.getUri().toString(), Constants.INCIDENT_NOTIFICATION_ID, in showNotifications() 292 mNm.createNotificationChannel(channel); in createNotificationChannel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/ |
D | ZenServiceListing.java | 41 private final NotificationManager mNm; field in ZenServiceListing 46 mNm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenServiceListing() 73 List<String> enabledNotificationListenerPkgs = mNm.getEnabledNotificationListenerPackages(); in reloadApprovedServices() 79 if (mNm.isNotificationPolicyAccessGrantedForPackage(pkg) in reloadApprovedServices()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | ZenServiceListing.java | 41 private final NotificationManager mNm; field in ZenServiceListing 46 mNm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenServiceListing() 73 List<String> enabledNotificationListenerPkgs = mNm.getEnabledNotificationListenerPackages(); in reloadApprovedServices() 79 if (mNm.isNotificationPolicyAccessGrantedForPackage(pkg) in reloadApprovedServices()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertService.java | 144 NotificationManager mNm; field in AlertService.NotificationMgrWrapper 147 mNm = nm; in NotificationMgrWrapper() 152 mNm.cancel(id); in cancel() 157 mNm.notify(id, nw.mNotification); in notify()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/ |
D | ResetAppsHelper.java | 49 private final INotificationManager mNm; field in ResetAppsHelper 60 mNm = INotificationManager.Stub.asInterface( in ResetAppsHelper() 117 mNm.clearData(app.packageName, app.uid, false); in onClick()
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
D | ResetAppsHelper.java | 50 private final INotificationManager mNm; field in ResetAppsHelper 61 mNm = INotificationManager.Stub.asInterface( in ResetAppsHelper() 125 mNm.clearData(app.packageName, app.uid, false); in onClick()
|