/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
NotificationHelper.java | 76 private NotificationManager mNotificationManager = null; 82 mNotificationManager = nm; 148 mNotificationManager.notify(id, notification.build()); 161 mNotificationManager.notify(l.getKey(), notification.build()); 175 mNotificationManager.notify(lists.get(1), 182 mNotificationManager.notify(lists.get(2), 191 mNotificationManager.notify(lists.get(0), 205 StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); 222 StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); 280 mNotificationManager.notify(notificationId, n.build()) [all...] |
NotificationInteractionTests.java | 69 private NotificationManager mNotificationManager; 82 mNotificationManager = (NotificationManager) mContext 84 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); 86 mNotificationManager.cancelAll(); 96 mNotificationManager.cancelAll(); 118 StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); 128 sbns = mNotificationManager.getActiveNotifications(); 140 sbns = mNotificationManager.getActiveNotifications(); 307 mNotificationManager.cancelAll(); 323 NotificationManager mNotificationManager [all...] |
/cts/tests/admin/src/android/admin/cts/ |
DevicePolicyManagerTest.java | 67 private NotificationManager mNotificationManager; 94 mNotificationManager = [all...] |
/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
MessagingService.java | 48 private NotificationManagerCompat mNotificationManager; 55 mNotificationManager = NotificationManagerCompat.from(getApplicationContext()); 150 mNotificationManager.notify(conversation.getConversationId(), builder.build());
|
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
MessagingService.java | 48 private NotificationManagerCompat mNotificationManager; 55 mNotificationManager = NotificationManagerCompat.from(getApplicationContext()); 150 mNotificationManager.notify(conversation.getConversationId(), builder.build());
|
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/ |
MessagingService.java | 48 private NotificationManagerCompat mNotificationManager; 55 mNotificationManager = NotificationManagerCompat.from(getApplicationContext()); 150 mNotificationManager.notify(conversation.getConversationId(), builder.build());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
BaseLockSettingsServiceTests.java | 79 NotificationManager mNotificationManager; 94 mNotificationManager = mock(NotificationManager.class); 105 mContext = new MockLockSettingsContext(getContext(), mUserManager, mNotificationManager,
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
NetworkNotificationManagerTest.java | 75 @Mock NotificationManager mNotificationManager; 97 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager); 125 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); 126 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); 135 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); 141 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); 152 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); 162 verify(mNotificationManager, times(1)) 167 verify(mNotificationManager, times(1)) 169 verify(mNotificationManager, times(1) [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WakeupOnboarding.java | 57 private NotificationManager mNotificationManager; 190 if (mNotificationManager == null) { 191 mNotificationManager = (NotificationManager) 194 return mNotificationManager;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WakeupOnboardingTest.java | 56 @Mock private NotificationManager mNotificationManager; 75 .thenReturn(mNotificationManager); 90 verify(mNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); 101 verify(mNotificationManager, never()) 114 InOrder inOrder = Mockito.inOrder(mNotificationManager); 115 inOrder.verify(mNotificationManager) 136 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); 160 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); 183 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); 198 verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID) [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
CarrierServiceStateTrackerTest.java | 65 NotificationManager mNotificationManager; 108 mNotificationManager = (NotificationManager) mContext.getSystemService( 135 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); 138 verify(mNotificationManager).cancel( 140 verify(mNotificationManager).cancel( 155 doReturn(mNotificationManager).when(mSpyCarrierSST).getNotificationManager(any()); 158 verify(mNotificationManager).notify( 160 verify(mNotificationManager).notify( 192 verify(mNotificationManager).notify( 200 verify(mNotificationManager, atLeast(1)).cancel [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
SilentSettingsModel.java | 66 private final NotificationManager mNotificationManager; 88 mNotificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE); 187 final int interruptionFilter = mNotificationManager.getCurrentInterruptionFilter();
|
StopwatchModel.java | 45 private final NotificationManagerCompat mNotificationManager; 68 mNotificationManager = NotificationManagerCompat.from(context); 228 mNotificationManager.cancel(mNotificationModel.getStopwatchNotificationId()); 235 mNotificationManager.notify(mNotificationModel.getStopwatchNotificationId(), notification);
|
TimerModel.java | 82 private final NotificationManagerCompat mNotificationManager; 138 mNotificationManager = NotificationManagerCompat.from(context); 730 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); 744 mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); 755 mNotificationManager.notify(notificationId, notification); 766 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); 773 mNotificationManager.cancel(mNotificationModel.getMissedTimerNotificationId()); 780 mNotificationManager.notify(notificationId, notification);
|
/packages/apps/Nfc/src/com/android/nfc/ |
P2pEventManager.java | 39 final NotificationManager mNotificationManager; 53 mNotificationManager = (NotificationManager) mContext.getSystemService(
|
/packages/apps/Settings/src/com/android/settings/notification/ |
AbstractZenModePreferenceController.java | 53 final private NotificationManager mNotificationManager; 67 mNotificationManager = (NotificationManager) context.getSystemService( 106 return mNotificationManager.getNotificationPolicy(); 110 return mNotificationManager.getZenModeConfig();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
ZenModeAutomaticRulesPreferenceControllerTest.java | 61 private NotificationManager mNotificationManager; 75 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); 78 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); 93 when(mNotificationManager.getAutomaticZenRules()).thenReturn( 108 when(mNotificationManager.getAutomaticZenRules()).thenReturn( 129 when(mNotificationManager.getAutomaticZenRules()).thenReturn(ruleMap); 158 when(mNotificationManager.getAutomaticZenRules()).thenReturn(rMap);
|
ZenModeBehaviorFooterPreferenceControllerTest.java | 67 private NotificationManager mNotificationManager; 87 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); 91 when(mNotificationManager.getZenModeConfig()).thenReturn(mZenModeConfig);
|
ZenModeSettingsFooterPreferenceControllerTest.java | 69 private NotificationManager mNotificationManager; 86 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); 90 when(mNotificationManager.getZenModeConfig()).thenReturn(mZenModeConfig);
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
NotificationControllerTest.java | 46 private NotificationManager mNotificationManager; 55 application.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); 67 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); 70 verify(mNotificationManager).cancel(1); 79 verify(mNotificationManager, times(i)).notify(anyInt(), any(Notification.class)); 82 verify(mNotificationManager, times(i)).cancel(1); 89 verifyZeroInteractions(mNotificationManager); 98 verify(mNotificationManager, times(i + 1)).notify(anyInt(), any(Notification.class)); 101 verify(mNotificationManager, times(i + 1)).cancel(1); 108 verifyZeroInteractions(mNotificationManager); [all...] |
AutomaticStorageManagementJobServiceTest.java | 81 @Mock private NotificationManager mNotificationManager; 124 mApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicService.java | 151 NotificationManager mNotificationManager; 188 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); 521 mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
FileOperationService.java | 459 private final NotificationManager mNotificationManager; 466 mNotificationManager = notificationManager; 486 mNotificationManager.notify(
|
/packages/apps/Email/src/com/android/email/ |
EmailNotificationController.java | 81 private final NotificationManager mNotificationManager; 92 mNotificationManager = (NotificationManager) context.getSystemService( 175 mNotificationManager.notify(notificationId, builder.build()); 444 mNotificationManager.cancel(getLoginFailedNotificationId(accountId)); 493 mNotificationManager.cancel(NOTIFICATION_ID_PASSWORD_EXPIRING); 494 mNotificationManager.cancel(NOTIFICATION_ID_PASSWORD_EXPIRED); 559 mNotificationManager.cancel( 586 final NotificationManager notificationManager = getInstance(context).mNotificationManager; [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
BeamTransferManager.java | 122 final NotificationManager mNotificationManager; 175 mNotificationManager = (NotificationManager) mContext.getSystemService( 180 mNotificationManager.createNotificationChannel(notificationChannel); 365 mNotificationManager.notify(null, mTransferId, notBuilder.build());
|