Home
last modified time | relevance | path

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

12

/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/
DNotificationDelegateAndPost.java38 NotificationManager nm = getSystemService(NotificationManager.class); in onResume() local
40 nm.createNotificationChannel(new NotificationChannel(CHANNEL, CHANNEL, IMPORTANCE_LOW)); in onResume()
41 nm.setNotificationDelegate(DELEGATE); in onResume()
42 Log.d(TAG, "Set delegate: " + nm.getNotificationDelegate()); in onResume()
51 nm.notify(9, n); in onResume()
DNotificationRevoker.java32 NotificationManager nm = getSystemService(NotificationManager.class); in onResume() local
33 nm.setNotificationDelegate(null); in onResume()
34 Log.d(TAG, "Removed delegate: " + nm.getNotificationDelegate()); in onResume()
35 nm.cancelAll(); in onResume()
DNotificationDelegator.java37 NotificationManager nm = getSystemService(NotificationManager.class); in onResume() local
39 nm.createNotificationChannel(new NotificationChannel(CHANNEL, CHANNEL, IMPORTANCE_LOW)); in onResume()
40 nm.setNotificationDelegate(DELEGATE); in onResume()
41 Log.d(TAG, "Set delegate: " + nm.getNotificationDelegate()); in onResume()
/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.java178 NotificationManager nm = getSystemService(NotificationManager.class); in doShowNotification() local
182 nm.createNotificationChannel(channel); in doShowNotification()
184 nm.notify( in doShowNotification()
191 nm.cancel(notificationId); in doShowNotification()
196 NotificationManager nm = getSystemService(NotificationManager.class); in doCreateChannelGroup() local
200 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/tests/notification/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_common/src/android/alarmmanager/alarmtestapp/cts/common/
DTestService.java38 NotificationManager nm = context.getSystemService(NotificationManager.class); in getNotificationChannelId() local
47 nm.createNotificationChannel(channel); in getNotificationChannelId()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DCallResources.java74 NotificationManager nm = context.getSystemService(NotificationManager.class); in postInitialCallStyleNotification() local
75 nm.notify(mNotificationId, mNotification); in postInitialCallStyleNotification()
/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/tests/security/src/android/security/cts/
DTestForegroundService.java70 final NotificationManager nm = in createNotificationChannelId() local
78 nm.createNotificationChannel(channel); in createNotificationChannelId()
/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/tests/app/app/src/android/app/stubs/
DBootCompletedFgs.java86 final NotificationManager nm = in createNotificationChannelId() local
94 nm.createNotificationChannel(channel); in createNotificationChannelId()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp108 String8 nm = s.getName(); in get_sensor_list() local
109 std::string nstr = nm.c_str(); in get_sensor_list()
/cts/tests/tests/media/common/src/android/media/cts/
DUtils.java128 NotificationManager nm = (NotificationManager) instrumentation.getContext() in toggleNotificationPolicyAccess() local
131 + nm.isNotificationPolicyAccessGranted() + " not " + on + " for " in toggleNotificationPolicyAccess()
132 + packageName, on, nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java109 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
111 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
112 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java366 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
368 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
369 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
392 final NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleSecondaryListenerAccess() local
395 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleSecondaryListenerAccess()
DConditionProviderServiceTest.java296 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
298 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
299 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestNotificationListener.java110 final NotificationManager nm = context.getSystemService(NotificationManager.class); in toggleListenerAccess() local
112 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleListenerAccess()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHelper.java208 final NotificationManager nm = mContext.getSystemService(NotificationManager.class); in disableListener() local
210 false, nm.isNotificationListenerAccessGranted(component)); in disableListener()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java936 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in testCameraManagerWithDnD() local
938 nm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE); in testCameraManagerWithDnD()
957 nm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL); in testCameraManagerWithDnD()
1066 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
1068 nm.isNotificationPolicyAccessGranted() + " not " + on, on, in toggleNotificationPolicyAccess()
1069 nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java378 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in toggleNotificationPolicyAccess() local
380 + nm.isNotificationPolicyAccessGranted() + " not " + on + " for " in toggleNotificationPolicyAccess()
381 + packageName, on, nm.isNotificationPolicyAccessGranted()); in toggleNotificationPolicyAccess()
/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()

12