HomeSort by relevance Sort by last modified time
    Searched refs:mNotificationManager (Results 1 - 25 of 153) sorted by null

1 2 3 4 5 6 7

  /cts/tests/app/src/android/app/cts/
NotificationManagerTest.java 76 private NotificationManager mNotificationManager;
86 mNotificationManager = (NotificationManager) mContext.getSystemService(
89 mNotificationManager.cancelAll();
90 mNotificationManager.createNotificationChannel(new NotificationChannel(
103 mNotificationManager.cancelAll();
104 List<NotificationChannel> channels = mNotificationManager.getNotificationChannels();
110 mNotificationManager.deleteNotificationChannel(nc.getId());
116 List<NotificationChannelGroup> groups = mNotificationManager.getNotificationChannelGroups();
119 mNotificationManager.deleteNotificationChannelGroup(ncg.getId());
134 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy
    [all...]
  /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...]
  /external/sl4a/Utils/src/com/googlecode/android_scripting/
ForegroundService.java 32 private NotificationManager mNotificationManager;
48 if (mNotificationManager == null) {
49 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
51 return mNotificationManager;
  /packages/apps/Settings/src/com/android/settings/dashboard/conditional/
RingerMutedCondition.java 31 private final NotificationManager mNotificationManager;
35 mNotificationManager =
42 if (mNotificationManager != null) {
43 zen = mNotificationManager.getZenMode();
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
NotificationsPreference.java 33 private final INotificationManager mNotificationManager;
40 mNotificationManager = NotificationManager.getService();
59 mNotificationManager.areNotificationsEnabledForPackage(mEntry.info.packageName,
78 mNotificationManager.setNotificationsEnabledForPackage(
  /platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
NotificationSecurityTests.java 32 private NotificationManager mNotificationManager = null;
42 mNotificationManager = (NotificationManager) mContext
45 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager);
52 mNotificationManager.cancelAll();
66 StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications();
NotificationDNDTests.java 48 private NotificationManager mNotificationManager;
61 mNotificationManager = (NotificationManager) mContext
63 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager);
79 mNotificationManager.cancelAll();
80 isGranted = mNotificationManager.isNotificationPolicyAccessGranted();
85 mNotificationManager.cancelAll();
96 int setting = mNotificationManager.getCurrentInterruptionFilter();
98 mNotificationManager
106 assertTrue(zF.shouldIntercept(mNotificationManager.getZenMode(), mConfig, nr));
108 mNotificationManager.setInterruptionFilter(setting)
    [all...]
NotificationSecurityLargeTests.java 37 private NotificationManager mNotificationManager = null;
48 mNotificationManager = (NotificationManager) mContext
51 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager);
62 mNotificationManager.cancelAll();
  /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...]
WrongPasswordNotifierTest.java 46 @Mock NotificationManager mNotificationManager;
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());
CarrierNetworkNotifierTest.java 83 @Mock private NotificationManager mNotificationManager;
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).notify(anyInt(), any())
    [all...]
OpenNetworkNotifierTest.java 82 @Mock private NotificationManager mNotificationManager;
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).notify(anyInt(), any())
    [all...]
  /cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/
LegacyNotificationManagerTest.java 65 private NotificationManager mNotificationManager;
75 mNotificationManager = (NotificationManager) mContext.getSystemService(
77 mNotificationManager.createNotificationChannel(new NotificationChannel(
91 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy();
100 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0));
101 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy();
110 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy(
113 policy = mNotificationManager.getNotificationPolicy();
133 NotificationManager.Policy userPolicy = mNotificationManager.getNotificationPolicy();
137 mNotificationManager.setNotificationPolicy(appPolicy)
    [all...]
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
ResumeNotificationHelperTest.java 45 private NotificationManager mNotificationManager;
52 mNotificationManager = mContext.getSystemService(NotificationManager.class);
63 MatcherAssert.assertThat(mNotificationManager.getActiveNotifications().length,
70 StatusBarNotification[] notifications = mNotificationManager.getActiveNotifications();
82 && mNotificationManager.getActiveNotifications().length == 0) {
88 mNotificationManager.cancelAll();
  /frameworks/base/core/tests/notificationtests/src/android/app/
NotificationStressTest.java 62 private NotificationManager mNotificationManager;
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);
  /development/samples/Alarm/src/com/example/android/newalarm/
AlarmService.java 68 NotificationManager mNotificationManager;
133 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
158 mNotificationManager.cancel(R.string.alarm_service_started);
205 mNotificationManager.notify(
  /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/
WrongPasswordNotifier.java 46 private final NotificationManager mNotificationManager;
52 mNotificationManager =
97 mNotificationManager.notify(NOTIFICATION_ID, builder.build());
108 mNotificationManager.cancel(null, NOTIFICATION_ID);
  /packages/services/Car/service/src/com/android/car/
CanBusErrorNotifier.java 39 private final NotificationManager mNotificationManager;
47 mNotificationManager = (NotificationManager) context.getSystemService(
96 mNotificationManager.notify(TAG, NOTIFICATION_ID, notification);
104 mNotificationManager.cancel(TAG, NOTIFICATION_ID);
  /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
MockLockSettingsContext.java 32 private NotificationManager mNotificationManager;
44 mNotificationManager = notificationManager;
56 return mNotificationManager;
  /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
ZenModeBlockedEffectsPreferenceControllerTest.java 44 private NotificationManager mNotificationManager;
56 shadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
59 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy);
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
RecommendationBuilder.java 41 private NotificationManager mNotificationManager;
104 if (mNotificationManager == null) {
105 mNotificationManager = (NotificationManager) mContext
135 mNotificationManager.notify(mId, notification);
136 mNotificationManager = null;
  /frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
MtpDocumentsService.java 43 private NotificationManager mNotificationManager;
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/
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...]
  /developers/build/prebuilts/gradle/ActiveNotifications/Application/src/main/java/com/example/android/activenotifications/
ActiveNotificationsFragment.java 52 private NotificationManager mNotificationManager;
77 mNotificationManager = (NotificationManager) getActivity().getSystemService(
120 mNotificationManager.notify(getNewNotificationId(), notification);
145 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification);
148 mNotificationManager.cancel(NOTIFICATION_GROUP_SUMMARY_ID);
181 final StatusBarNotification[] activeNotifications = mNotificationManager

Completed in 2642 milliseconds

1 2 3 4 5 6 7