Home
last modified time | relevance | path

Searched refs:nm (Results 1 – 25 of 88) sorted by relevance

1234

/cts/tests/app/NotificationDelegator/src/com/android/test/notificationdelegator/
DNotificationDelegateAndPost.java38 NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() local
40 nm.createNotificationChannel(new NotificationChannel(CHANNEL, CHANNEL, IMPORTANCE_LOW)); in onCreate()
41 nm.setNotificationDelegate(DELEGATE); in onCreate()
42 Log.d(TAG, "Set delegate: " + nm.getNotificationDelegate()); in onCreate()
51 nm.notify(9, n); in onCreate()
DNotificationRevoker.java32 NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() local
33 nm.setNotificationDelegate(null); in onCreate()
34 Log.d(TAG, "Removed delegate: " + nm.getNotificationDelegate()); in onCreate()
35 nm.cancelAll(); in onCreate()
DNotificationDelegator.java37 NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() local
39 nm.createNotificationChannel(new NotificationChannel(CHANNEL, CHANNEL, IMPORTANCE_LOW)); in onCreate()
40 nm.setNotificationDelegate(DELEGATE); in onCreate()
41 Log.d(TAG, "Set delegate: " + nm.getNotificationDelegate()); in onCreate()
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestNotificationActivity.java60 NotificationManager nm = getSystemService(NotificationManager.class); in doShowNotification() local
64 nm.createNotificationChannel(channel); in doShowNotification()
66 nm.notify( in doShowNotification()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundActivity.java168 NotificationManager nm = getSystemService(NotificationManager.class); in doShowNotification() local
172 nm.createNotificationChannel(channel); in doShowNotification()
174 nm.notify( in doShowNotification()
181 nm.cancel(notificationId); in doShowNotification()
186 NotificationManager nm = getSystemService(NotificationManager.class); in doCreateChannelGroup() local
190 nm.createNotificationChannelGroup(channelGroup); in doCreateChannelGroup()
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleService.java65 NotificationManager nm = getSystemService(NotificationManager.class); in onStartCommand() local
66 if (nm.getNotificationChannel(CHANNEL_NAME) == null) { in onStartCommand()
67 nm.createNotificationChannel(new NotificationChannel(CHANNEL_NAME, CHANNEL_NAME, in onStartCommand()
DSimpleService3.java69 NotificationManager nm = getSystemService(NotificationManager.class); in onStartCommand() local
70 if (nm.getNotificationChannel(CHANNEL_NAME) == null) { in onStartCommand()
71 nm.createNotificationChannel(new NotificationChannel(CHANNEL_NAME, CHANNEL_NAME, in onStartCommand()
/cts/tests/app/NotificationListener/src/com/android/test/notificationlistener/
DNotificationUriAccessService.kt29 val nm = getSystemService(NotificationManager::class.java)!! in ensureNotificationListenerServiceConnected() constant
31 check(nm.isNotificationListenerAccessGranted(testListener) == ensureConnected) { in ensureNotificationListenerServiceConnected()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java151 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
153 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
154 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
173 final NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleListenerAccess() local
176 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleListenerAccess()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java105 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetSetupNotification() local
106 nm.cancelAll(); in testShortcutResetSetupNotification()
161 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetInlineReplyReceived() local
162 nm.cancelAll(); in testShortcutResetInlineReplyReceived()
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/
DTestService.java38 NotificationManager nm = context.getSystemService(NotificationManager.class); in getNotificationChannelId() local
47 nm.createNotificationChannel(channel); in getNotificationChannelId()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DActionTriggeredReceiver.java43 NotificationManager nm = context.getSystemService(NotificationManager.class); in sendNotification() local
55 nm.notify(ACTION, 0, n1); in sendNotification()
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/
DTaskRemovedListenerService.java50 final NotificationManager nm = getSystemService(NotificationManager.class); in onStartCommand() local
51 nm.createNotificationChannel( in onStartCommand()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java83 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
85 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
86 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
DNotificationAssistantServiceTest.java786 final NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleListenerAccess() local
788 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleListenerAccess()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp108 String8 nm = s.getName(); in get_sensor_list() local
109 std::string nstr = nm.string(); in get_sensor_list()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java386 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
388 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
389 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
412 final NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleListenerAccess() local
415 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleListenerAccess()
DConditionProviderServiceTest.java283 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
285 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
286 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java130 NotificationManager nm = (NotificationManager) instrumentation.getContext() in toggleNotificationPolicyAccess() local
133 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java900 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in testCameraManagerWithDnD() local
902 nm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE); in testCameraManagerWithDnD()
921 nm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL); in testCameraManagerWithDnD()
932 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
934 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
935 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java92 String nm = charSeq.toString(); in convertValueToInt()
100 int len = nm.length(); in convertValueToInt()
103 if ('-' == nm.charAt(0)) { in convertValueToInt()
108 if ('0' == nm.charAt(index)) { in convertValueToInt()
113 char c = nm.charAt(index + 1); in convertValueToInt()
123 else if ('#' == nm.charAt(index)) in convertValueToInt()
129 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java95 String nm = charSeq.toString(); in convertValueToInt()
103 int len = nm.length(); in convertValueToInt()
106 if ('-' == nm.charAt(0)) { in convertValueToInt()
111 if ('0' == nm.charAt(index)) { in convertValueToInt()
116 char c = nm.charAt(index + 1); in convertValueToInt()
126 else if ('#' == nm.charAt(index)) in convertValueToInt()
132 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java93 String nm = charSeq.toString(); in convertValueToInt()
101 int len = nm.length(); in convertValueToInt()
104 if ('-' == nm.charAt(0)) { in convertValueToInt()
109 if ('0' == nm.charAt(index)) { in convertValueToInt()
114 char c = nm.charAt(index + 1); in convertValueToInt()
124 else if ('#' == nm.charAt(index)) in convertValueToInt()
130 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/cts/tests/app/src/android/app/cts/
DServiceTest.java1215 final NotificationManager nm = getNotificationManager(); in testForegroundService_deferredExistingNotification() local
1217 nm.createNotificationChannel(new NotificationChannel(channelId, channelId, in testForegroundService_deferredExistingNotification()
1223 nm.notify(1, builder.build()); in testForegroundService_deferredExistingNotification()
1247 final NotificationManager nm = getNotificationManager(); in testForegroundService_deferThenImmediateNotify() local
1249 nm.createNotificationChannel(new NotificationChannel(channelId, channelId, in testForegroundService_deferThenImmediateNotify()
1256 nm.notify(1, builder.build()); in testForegroundService_deferThenImmediateNotify()
1275 final NotificationManager nm = getNotificationManager(); in testForegroundService_deferThenDeferrableNotify() local
1277 nm.createNotificationChannel(new NotificationChannel(channelId, channelId, in testForegroundService_deferThenDeferrableNotify()
1284 nm.notify(1, builder.build()); in testForegroundService_deferThenDeferrableNotify()
DNotificationManagerTest.java702 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
704 + nm.isNotificationPolicyAccessGranted() + " not " + on + " for " in toggleNotificationPolicyAccess()
705 + packageName, on, nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
727 final NotificationManager nm = context.getSystemService(NotificationManager.class); in toggleListenerAccess() local
730 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleListenerAccess()

1234