Searched defs:mNotificationManager (Results 1 - 25 of 42) sorted by last modified time

12

/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaNotificationManager.java66 private NotificationManagerCompat mNotificationManager; field in class:MediaNotificationManager
84 mNotificationManager = NotificationManagerCompat.from(mService);
98 mNotificationManager.cancelAll();
137 mNotificationManager.cancel(NOTIFICATION_ID);
210 mNotificationManager.notify(NOTIFICATION_ID, notification);
221 mNotificationManager.notify(NOTIFICATION_ID, notification);
346 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaNotificationManager.java66 private NotificationManagerCompat mNotificationManager; field in class:MediaNotificationManager
84 mNotificationManager = NotificationManagerCompat.from(mService);
98 mNotificationManager.cancelAll();
137 mNotificationManager.cancel(NOTIFICATION_ID);
210 mNotificationManager.notify(NOTIFICATION_ID, notification);
221 mNotificationManager.notify(NOTIFICATION_ID, notification);
346 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMockMediaSessionService2.java41 private NotificationManager mNotificationManager; field in class:MockMediaSessionService2
47 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
85 mNotificationManager.createNotificationChannel(mDefaultNotificationChannel);
/frameworks/support/media/src/main/java/androidx/media/
H A DMediaSessionService2.java135 private NotificationManager mNotificationManager; field in class:MediaSessionService2
172 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DNotificationManagerCompat.java104 private final NotificationManager mNotificationManager; field in class:NotificationManagerCompat
158 mNotificationManager = (NotificationManager) mContext.getSystemService(
176 mNotificationManager.cancel(tag, id);
184 mNotificationManager.cancelAll();
210 mNotificationManager.cancel(tag, id);
212 mNotificationManager.notify(tag, id, notification);
221 return mNotificationManager.areNotificationsEnabled();
252 return mNotificationManager.getImportance();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierServiceStateTrackerTest.java65 NotificationManager mNotificationManager; field in class:CarrierServiceStateTrackerTest
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, atLeas
[all...]
H A DContextFixture.java224 return mNotificationManager;
533 private final NotificationManager mNotificationManager = mock(NotificationManager.class); field in class:ContextFixture
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWakeupOnboarding.java57 private NotificationManager mNotificationManager; field in class:WakeupOnboarding
190 if (mNotificationManager == null) {
191 mNotificationManager = (NotificationManager)
194 return mNotificationManager;
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DCarrierNetworkNotifierTest.java83 @Mock private NotificationManager mNotificationManager; field in class:CarrierNetworkNotifierTest
101 .thenReturn(mNotificationManager);
167 verify(mNotificationManager).notify(anyInt(), any());
177 verify(mNotificationManager, never()).notify(anyInt(), any());
190 verify(mNotificationManager, never()).notify(anyInt(), any());
205 verify(mNotificationManager).notify(anyInt(), any());
209 verify(mNotificationManager).cancel(anyInt());
224 verify(mNotificationManager).notify(anyInt(), any());
229 verify(mNotificationManager).cancel(anyInt());
244 verify(mNotificationManager)
[all...]
H A DOpenNetworkNotifierTest.java82 @Mock private NotificationManager mNotificationManager; field in class:OpenNetworkNotifierTest
100 .thenReturn(mNotificationManager);
166 verify(mNotificationManager).notify(anyInt(), any());
176 verify(mNotificationManager, never()).notify(anyInt(), any());
189 verify(mNotificationManager, never()).notify(anyInt(), any());
204 verify(mNotificationManager).notify(anyInt(), any());
208 verify(mNotificationManager).cancel(anyInt());
223 verify(mNotificationManager).notify(anyInt(), any());
228 verify(mNotificationManager).cancel(anyInt());
243 verify(mNotificationManager)
[all...]
H A DWakeupOnboardingTest.java56 @Mock private NotificationManager mNotificationManager; field in class:WakeupOnboardingTest
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)
[all...]
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());
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DNetworkNotificationManagerTest.java75 @Mock NotificationManager mNotificationManager; field in class:NetworkNotificationManagerTest
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, time
[all...]
H A DVpnTest.java147 @Mock private NotificationManager mNotificationManager; field in class:VpnTest
162 .thenReturn(mNotificationManager);
409 final InOrder order = inOrder(mNotificationManager);
413 order.verify(mNotificationManager, atLeastOnce())
418 order.verify(mNotificationManager)
423 order.verify(mNotificationManager).cancelAsUser(anyString(), anyInt(), eq(userHandle));
427 order.verify(mNotificationManager)
432 order.verify(mNotificationManager).cancelAsUser(anyString(), anyInt(), eq(userHandle));
/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/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/base/services/core/java/com/android/server/input/
H A DInputManagerService.java147 private NotificationManager mNotificationManager; field in class:InputManagerService
370 mNotificationManager = (NotificationManager)mContext.getSystemService(
805 if (mNotificationManager != null) {
1028 mNotificationManager.notifyAsUser(null,
1039 mNotificationManager.cancelAsUser(null,
/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsService.java181 private final NotificationManager mNotificationManager; field in class:LockSettingsService
435 mNotificationManager = injector.getNotificationManager();
516 mNotificationManager.notifyAsUser(null, SystemMessage.NOTE_FBE_ENCRYPTED_NOTIFICATION,
522 mNotificationManager.cancelAsUser(null, SystemMessage.NOTE_FBE_ENCRYPTED_NOTIFICATION,
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java123 private final INotificationManager mNotificationManager; field in class:MediaSessionService
155 mNotificationManager = INotificationManager.Stub.asInterface(
657 return mNotificationManager.isNotificationListenerAccessGrantedForUser(
1795 mNotificationManager.getEnabledNotificationListeners(userId);
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeHelper.java99 @VisibleForTesting protected final NotificationManager mNotificationManager; field in class:ZenModeHelper
131 mNotificationManager = context.getSystemService(NotificationManager.class);
1191 mNotificationManager.notify(TAG, SystemMessage.NOTE_ZEN_UPGRADE,
/frameworks/base/services/core/java/com/android/server/vr/
H A DVrManagerService.java163 private INotificationManager mNotificationManager; field in class:VrManagerService
783 mNotificationManager = INotificationManager.Stub.asInterface(
/frameworks/base/services/core/java/com/android/server/wm/
H A DAlertWindowNotification.java55 private final NotificationManager mNotificationManager; field in class:AlertWindowNotification
63 mNotificationManager =
90 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID);
92 mNotificationManager.deleteNotificationChannel(mNotificationTag);
136 mNotificationManager.notify(mNotificationTag, NOTIFICATION_ID, builder.build());
152 mNotificationManager.createNotificationChannelGroup(sChannelGroup);
158 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag);
168 mNotificationManager.createNotificationChannel(channel);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DBaseLockSettingsServiceTests.java79 NotificationManager mNotificationManager; field in class:BaseLockSettingsServiceTests
94 mNotificationManager = mock(NotificationManager.class);
105 mContext = new MockLockSettingsContext(getContext(), mUserManager, mNotificationManager,
H A DMockLockSettingsContext.java32 private NotificationManager mNotificationManager; field in class:MockLockSettingsContext
44 mNotificationManager = notificationManager;
56 return mNotificationManager;

Completed in 570 milliseconds

12