/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 | DeletedChannelsPreferenceControllerTest.java | 54 private NotificationManager mNm; field in DeletedChannelsPreferenceControllerTest 64 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
|
D | AppLinkPreferenceControllerTest.java | 52 private NotificationManager mNm; field in AppLinkPreferenceControllerTest 62 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
|
D | NotificationsOffPreferenceControllerTest.java | 48 private NotificationManager mNm; field in NotificationsOffPreferenceControllerTest 58 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
|
/packages/modules/NetworkStack/src/com/android/server/ |
D | NetworkStackService.java | 312 private final NetworkMonitor mNm; field in NetworkStackService.NetworkMonitorImpl 315 mNm = nm; in NetworkMonitorImpl() 321 mNm.start(); in start() 327 mNm.launchCaptivePortalApp(); in launchCaptivePortalApp() 333 mNm.notifyCaptivePortalAppFinished(response); in notifyCaptivePortalAppFinished() 339 mNm.setAcceptPartialConnectivity(); in setAcceptPartialConnectivity() 345 mNm.forceReevaluation(uid); in forceReevaluation() 351 mNm.notifyPrivateDnsSettingsChanged(PrivateDnsConfig.fromParcel(config)); in notifyPrivateDnsChanged() 357 mNm.notifyDnsResponse(returnCode); in notifyDnsResponse() 363 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/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/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/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 | 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()
|