/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/ |
D | NotificationDelegateAndPost.java | 38 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()
|
D | NotificationRevoker.java | 32 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()
|
D | NotificationDelegator.java | 37 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/ |
D | TestNotificationActivity.java | 60 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/ |
D | StatsdCtsForegroundActivity.java | 178 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/ |
D | SimpleService.java | 65 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()
|
D | SimpleService3.java | 69 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/ |
D | NotificationUriAccessService.kt | 29 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/ |
D | TestService.java | 38 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/ |
D | CallResources.java | 74 NotificationManager nm = context.getSystemService(NotificationManager.class); in postInitialCallStyleNotification() local 75 nm.notify(mNotificationId, mNotification); in postInitialCallStyleNotification()
|
/cts/apps/NotificationBot/src/com/android/cts/robot/ |
D | NotificationBot.java | 105 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/ |
D | TestForegroundService.java | 70 final NotificationManager nm = in createNotificationChannelId() local 78 nm.createNotificationChannel(channel); in createNotificationChannelId()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ActionTriggeredReceiver.java | 43 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/ |
D | BootCompletedFgs.java | 86 final NotificationManager nm = in createNotificationChannelId() local 94 nm.createNotificationChannel(channel); in createNotificationChannelId()
|
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/ |
D | TaskRemovedListenerService.java | 50 final NotificationManager nm = getSystemService(NotificationManager.class); in onStartCommand() local 51 nm.createNotificationChannel( in onStartCommand()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 108 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/ |
D | Utils.java | 128 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/ |
D | NotificationManager29Test.java | 109 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/ |
D | LegacyNotificationManagerTest.java | 366 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()
|
D | ConditionProviderServiceTest.java | 296 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/ |
D | TestNotificationListener.java | 110 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/ |
D | NotificationHelper.java | 208 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/ |
D | CameraManagerTest.java | 936 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/ |
D | BaseNotificationManagerTest.java | 378 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/ |
D | XmlUtils.java | 95 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()
|