Home
last modified time | relevance | path

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

12

/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.java167 NotificationManager nm = getSystemService(NotificationManager.class); in doShowNotification() local
171 nm.createNotificationChannel(channel); in doShowNotification()
173 nm.notify( in doShowNotification()
180 nm.cancel(notificationId); in doShowNotification()
185 NotificationManager nm = getSystemService(NotificationManager.class); in doCreateChannelGroup() local
189 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/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/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/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/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/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/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()
1277 final NotificationManager nm = getNotificationManager(); in testForegroundService_deferThenDeferrableNotify() local
1279 nm.createNotificationChannel(new NotificationChannel(channelId, channelId, in testForegroundService_deferThenDeferrableNotify()
1286 nm.notify(1, builder.build()); in testForegroundService_deferThenDeferrableNotify()
DNotificationManagerTest.java703 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
705 + nm.isNotificationPolicyAccessGranted() + " not " + on + " for " in toggleNotificationPolicyAccess()
706 + packageName, on, nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
728 final NotificationManager nm = context.getSystemService(NotificationManager.class); in toggleListenerAccess() local
731 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleListenerAccess()
/cts/tests/tests/media/assets/hls_variant/344388/
D16.ts775 ��{\S����_TG�WM�I�(���H9J`�Y��u�H孞�(y���@q:�;�}� �������`�� S��nm��q\*c��q�vhex���&�…
848 ��ev��-��{��m�u�݌� &li���nm����)d)wYKV'��s7F���ձ ta�_������d�dZ��c��7׌���|k�c��
/cts/tests/tests/media/assets/hls_variant/165340/
D00.ts666 …�-��ެ�o�*X&^S9S��Q�CGߎ���(S� �E-�*�[~K����z[��v���Y�K��ʊT�z����^��G�!nm�Ԯpz�Z}^��JA�ԀZOG…

12