Searched refs:mNotificationManager (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWrongPasswordNotifierTest.java46 @Mock NotificationManager mNotificationManager; field in class:WrongPasswordNotifierTest
58 .thenReturn(mNotificationManager);
75 verify(mNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any());
92 reset(mNotificationManager);
95 verify(mNotificationManager).cancel(any(), eq(WrongPasswordNotifier.NOTIFICATION_ID));
107 verify(mNotificationManager, never()).cancel(any(), anyInt());
H A DOpenNetworkNotifierTest.java75 @Mock private NotificationManager mNotificationManager; field in class:OpenNetworkNotifierTest
94 .thenReturn(mNotificationManager);
160 verify(mNotificationManager).notify(anyInt(), any());
171 verify(mNotificationManager, never()).notify(anyInt(), any());
185 verify(mNotificationManager, never()).notify(anyInt(), any());
200 verify(mNotificationManager).notify(anyInt(), any());
204 verify(mNotificationManager).cancel(anyInt());
219 verify(mNotificationManager).notify(anyInt(), any());
224 verify(mNotificationManager).cancel(anyInt());
239 verify(mNotificationManager)
[all...]
/frameworks/base/core/tests/notificationtests/src/android/app/
H A DNotificationStressTest.java62 private NotificationManager mNotificationManager; field in class:NotificationStressTest
71 mNotificationManager = (NotificationManager) mContext.getSystemService(
74 mNotificationManager.cancelAll();
80 mNotificationManager.cancelAll();
89 mNotificationManager.cancel(mNotifyId - 4);
102 assertTrue(mNotificationManager.getActiveNotifications().length == MAX_NOTIFCATIONS);
104 mNotificationManager.cancel(--mNotifyId);
127 mNotificationManager.notify(id, notification);
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DNetworkNotificationManagerTest.java66 @Mock NotificationManager mNotificationManager; field in class:NetworkNotificationManagerTest
87 mManager = new NetworkNotificationManager(mCtx, mTelephonyManager, mNotificationManager);
115 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any());
116 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any());
125 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any());
131 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any());
142 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any());
152 verify(mNotificationManager, times(1))
157 verify(mNotificationManager, times(1))
159 verify(mNotificationManager, time
[all...]
H A DVpnTest.java104 @Mock private NotificationManager mNotificationManager; field in class:VpnTest
118 .thenReturn(mNotificationManager);
360 final InOrder order = inOrder(mNotificationManager);
364 order.verify(mNotificationManager, atLeastOnce())
369 order.verify(mNotificationManager)
374 order.verify(mNotificationManager).cancelAsUser(anyString(), anyInt(), eq(userHandle));
378 order.verify(mNotificationManager)
383 order.verify(mNotificationManager).cancelAsUser(anyString(), anyInt(), eq(userHandle));
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWrongPasswordNotifier.java46 private final NotificationManager mNotificationManager; field in class:WrongPasswordNotifier
52 mNotificationManager =
97 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
108 mNotificationManager.cancel(null, NOTIFICATION_ID);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockLockSettingsContext.java31 private NotificationManager mNotificationManager; field in class:MockLockSettingsContext
41 mNotificationManager = notificationManager;
52 return mNotificationManager;
H A DBaseLockSettingsServiceTests.java73 NotificationManager mNotificationManager; field in class:BaseLockSettingsServiceTests
86 mNotificationManager = mock(NotificationManager.class);
92 mContext = new MockLockSettingsContext(getContext(), mUserManager, mNotificationManager,
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpDocumentsService.java43 private NotificationManager mNotificationManager; field in class:MtpDocumentsService
54 mNotificationManager = getSystemService(NotificationManager.class);
93 mNotificationManager.notify(ids[i], notifications[i]);
99 mNotificationManager.getActiveNotifications();
102 mNotificationManager.cancel(notification.getId());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierServiceStateTrackerTest.java57 @Mock NotificationManager mNotificationManager; field in class:CarrierServiceStateTrackerTest
100 doReturn(mNotificationManager).when(mCarrierSST).getNotificationManager(any());
103 verify(mNotificationManager).cancel(
105 verify(mNotificationManager).cancel(
120 doReturn(mNotificationManager).when(mCarrierSST).getNotificationManager(any());
123 verify(mNotificationManager).notify(
125 verify(mNotificationManager).notify(
/frameworks/base/services/core/java/com/android/server/wm/
H A DAlertWindowNotification.java53 private final NotificationManager mNotificationManager; field in class:AlertWindowNotification
61 mNotificationManager =
88 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID);
128 mNotificationManager.notify(mNotificationTag, NOTIFICATION_ID, builder.build());
144 mNotificationManager.createNotificationChannelGroup(sChannelGroup);
155 mNotificationManager.createNotificationChannel(channel);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
H A DLeakReporterTest.java50 private NotificationManager mNotificationManager; field in class:LeakReporterTest
58 mNotificationManager = mock(NotificationManager.class);
59 mContext.addMockSystemService(NotificationManager.class, mNotificationManager);
81 verify(mNotificationManager).notify(any(), anyInt(), any());
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
H A DFixVibrateSetting.java33 NotificationManager mNotificationManager; field in class:FixVibrateSetting
46 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
126 mNotificationManager.notify(1, n);
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DMediaNotificationManager.java65 private NotificationManagerCompat mNotificationManager; field in class:MediaNotificationManager
83 mNotificationManager = NotificationManagerCompat.from(mService);
97 mNotificationManager.cancelAll();
136 mNotificationManager.cancel(NOTIFICATION_ID);
209 mNotificationManager.notify(NOTIFICATION_ID, notification);
220 mNotificationManager.notify(NOTIFICATION_ID, notification);
345 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DMediaNotificationManager.java65 private NotificationManagerCompat mNotificationManager; field in class:MediaNotificationManager
83 mNotificationManager = NotificationManagerCompat.from(mService);
97 mNotificationManager.cancelAll();
136 mNotificationManager.cancel(NOTIFICATION_ID);
209 mNotificationManager.notify(NOTIFICATION_ID, notification);
220 mNotificationManager.notify(NOTIFICATION_ID, notification);
345 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipNotificationController.java64 private NotificationManager mNotificationManager; field in class:PipNotificationController
101 mNotificationManager = NotificationManager.from(context);
108 mNotificationManager.cancel(NOTIFICATION_TAG, NOTIFICATION_ID);
143 mNotificationManager.cancel(NOTIFICATION_TAG, NOTIFICATION_ID);
167 mNotificationManager.notify(NOTIFICATION_TAG, NOTIFICATION_ID, builder.build());
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DStatusBarTest.java35 NotificationManager mNotificationManager; field in class:StatusBarTest
55 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
174 mNotificationManager.notify(id, not);
267 mNotificationManager.notify(1,
281 mNotificationManager.cancel(1);
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
H A DPipNotification.java56 private final NotificationManager mNotificationManager; field in class:PipNotification
149 mNotificationManager = (NotificationManager) context.getSystemService(
197 mNotificationManager.notify(NOTIFICATION_TAG, SystemMessage.NOTE_TV_PIP,
203 mNotificationManager.cancel(NOTIFICATION_TAG, SystemMessage.NOTE_TV_PIP);
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java60 private NotificationManager mNotificationManager; field in class:StorageNotification
93 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE,
122 mNotificationManager.cancelAsUser(null, SystemMessage.NOTE_STORAGE_MOVE,
159 mNotificationManager = mContext.getSystemService(NotificationManager.class);
199 mNotificationManager.cancelAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE,
224 mNotificationManager.notifyAsUser(fsUuid, SystemMessage.NOTE_STORAGE_PRIVATE,
252 mNotificationManager.notifyAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK,
257 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK,
268 mNotificationManager.cancelAsUser(disk.getId(), SystemMessage.NOTE_STORAGE_DISK,
325 mNotificationManager
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DNotificationController.java68 private final NotificationManager mNotificationManager; field in class:NotificationController
77 mNotificationManager = (NotificationManager)
81 mNotificationManager.createNotificationChannel(
85 mNotificationManager.createNotificationChannel(
131 mNotificationManager.cancel(removedPrintJob.flattenToString(), 0);
219 mNotificationManager.notify(printJob.getId().flattenToString(), 0, builder.build());
/frameworks/support/compat/java/android/support/v4/app/
H A DNotificationManagerCompat.java100 private final NotificationManager mNotificationManager; field in class:NotificationManagerCompat
153 mNotificationManager = (NotificationManager) mContext.getSystemService(
171 mNotificationManager.cancel(tag, id);
179 mNotificationManager.cancelAll();
205 mNotificationManager.cancel(tag, id);
207 mNotificationManager.notify(tag, id, notification);
216 return mNotificationManager.areNotificationsEnabled();
247 return mNotificationManager.getImportance();
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkNotificationManager.java72 private final NotificationManager mNotificationManager; field in class:NetworkNotificationManager
79 mNotificationManager = n;
233 mNotificationManager.notifyAsUser(tag, eventId, notification, UserHandle.ALL);
250 mNotificationManager.cancelAsUser(tag, eventId, UserHandle.ALL);
/frameworks/base/core/java/android/preference/
H A DSeekBarVolumizer.java61 private final NotificationManager mNotificationManager; field in class:SeekBarVolumizer
93 mNotificationManager = context.getSystemService(NotificationManager.class);
100 mZenMode = mNotificationManager.getZenMode();
425 mZenMode = mNotificationManager.getZenMode();
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbDeviceManager.java156 private NotificationManager mNotificationManager; field in class:UsbDeviceManager
306 mNotificationManager = (NotificationManager)
312 mNotificationManager.createNotificationChannel(
1050 if (mNotificationManager == null || !mUseUsbNotification
1059 mNotificationManager.cancelAsUser(null, mUsbNotificationId,
1115 mNotificationManager.cancelAsUser(null, mUsbNotificationId,
1178 mNotificationManager.notifyAsUser(null, id, notification,
1187 if (mNotificationManager == null) return;
1196 mNotificationManager.cancelAsUser(null, id, UserHandle.ALL);
1229 mNotificationManager
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java119 private final NotificationManager mNotificationManager; field in class:SaveImageInBackgroundTask
185 mNotificationManager = nManager;
219 mNotificationManager.notify(SystemMessage.NOTE_GLOBAL_SCREENSHOT,
332 GlobalScreenshot.notifyScreenshotError(mParams.context, mNotificationManager,
367 mNotificationManager.notify(SystemMessage.NOTE_GLOBAL_SCREENSHOT,
384 mNotificationManager.cancel(SystemMessage.NOTE_GLOBAL_SCREENSHOT);
431 private NotificationManager mNotificationManager; field in class:GlobalScreenshot
492 mNotificationManager =
538 mSaveInBgTask = new SaveImageInBackgroundTask(mContext, data, mNotificationManager)
580 notifyScreenshotError(mContext, mNotificationManager,
[all...]

Completed in 883 milliseconds

12