Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/com/android/server/backup/
H A DNotificationBackupHelper.java47 INotificationManager nm = INotificationManager.Stub.asInterface( in getBackupPayload() local
49 newPayload = nm.getBackupPayload(mUserId); in getBackupPayload()
67 INotificationManager nm = INotificationManager.Stub.asInterface( in applyRestoredPayload() local
69 nm.applyRestore(payload, mUserId); in applyRestoredPayload()
/aosp14/frameworks/base/core/java/com/android/internal/notification/
H A DSystemNotificationChannels.java74 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
220 nm.createNotificationChannels(channelsList); in createAll()
231 final NotificationManager nm = context.getSystemService(NotificationManager.class); in removeDeprecated() local
232 nm.deleteNotificationChannel(VIRTUAL_KEYBOARD); in removeDeprecated()
233 nm.deleteNotificationChannel(DEVICE_ADMIN_DEPRECATED); in removeDeprecated()
234 nm.deleteNotificationChannel(SYSTEM_CHANGES_DEPRECATED); in removeDeprecated()
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DTestAlertActivity.java27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause() local
28 nm.cancel(mId); in onPause()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DReviewNotificationPermissionsReceiver.java59 NotificationManager nm = context.getSystemService(NotificationManager.class); in cancelNotification() local
60 if (nm != null) { in cancelNotification()
61 nm.cancel(NotificationManagerService.TAG, in cancelNotification()
H A DNotificationManagerService.java6603 NotificationManager nm = getContext().getSystemService(NotificationManager.class);
6604 nm.notify(TAG,
12207 NotificationManager nm = getContext().getSystemService(NotificationManager.class);
12208 nm.notify(TAG,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DNotificationChannels.java57 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
98 nm.createNotificationChannels(Arrays.asList( in createAll()
113 nm.createNotificationChannel(new NotificationChannel( in createAll()
/aosp14/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
H A DSimpleFgService.java77 final NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() local
78 nm.createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
H A DPluginManagerTest.java171 NotificationManager nm = mock(NotificationManager.class); in testDisableIntent() local
172 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testDisableIntent()
180 verify(nm).cancel(eq(testComponent.getClassName()), eq(SystemMessage.NOTE_PLUGIN)); in testDisableIntent()
/aosp14/frameworks/base/core/java/android/app/
H A DRecoverableSecurityException.java114 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() local
121 nm.notify(TAG, mUserAction.getActionIntent().getCreatorUid(), builder.build()); in showAsNotification()
H A DApplicationPackageManager.java2250 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() local
2251 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
2258 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() local
2259 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
/aosp14/frameworks/base/services/core/java/com/android/server/vr/
H A DVrManagerService.java1031 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationPolicyAccess() local
1032 nm.setNotificationPolicyAccessGranted(pkg, true); in grantNotificationPolicyAccess()
1036 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationPolicyAccess() local
1038 nm.removeAutomaticZenRules(pkg); in revokeNotificationPolicyAccess()
1040 nm.setNotificationPolicyAccessGranted(pkg, false); in revokeNotificationPolicyAccess()
1044 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationListenerAccess() local
1053 nm.setNotificationListenerAccessGrantedForUser(c, userId, true); in grantNotificationListenerAccess()
1062 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationListenerAccess() local
1063 List<ComponentName> current = nm.getEnabledNotificationListeners(userId); in revokeNotificationListenerAccess()
1067 nm.setNotificationListenerAccessGrantedForUser(component, userId, false); in revokeNotificationListenerAccess()
/aosp14/frameworks/base/packages/Shell/src/com/android/shell/
H A DHeapDumpReceiver.java146 NotificationManager nm = NotificationManager.from(context); in showDumpNotification() local
147 nm.createNotificationChannel( in showDumpNotification()
H A DBugreportProgressService.java299 NotificationManager nm = NotificationManager.from(mContext); in onCreate() local
300 nm.createNotificationChannel( in onCreate()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DServiceRecord.java1322 NotificationManagerInternal nm = LocalServices.getService( in updateFgsHasNotificationPermission()
1324 if (nm == null) { in updateFgsHasNotificationPermission()
1328 mFgsHasNotificationPermission = nm.areNotificationsEnabledForPackage( in updateFgsHasNotificationPermission()
1350 NotificationManagerInternal nm = LocalServices.getService( in postNotification()
1352 if (nm == null) { in postNotification()
1356 mFgsHasNotificationPermission = nm.areNotificationsEnabledForPackage( in postNotification()
1416 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification()
1440 nm.enqueueNotification(localPackageName, localPackageName, in postNotification()
1471 NotificationManagerInternal nm = LocalServices.getService( in cancelNotification()
1473 if (nm == null) { in cancelNotification()
[all …]
/aosp14/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportReceiverTest.java555 NotificationManager nm = NotificationManager.from(mContext); in cancelExistingNotifications() local
556 StatusBarNotification[] activeNotifications = nm.getActiveNotifications(); in cancelExistingNotifications()
563 nm.cancelAll(); in cancelExistingNotifications()
567 int total = nm.getActiveNotifications().length; in cancelExistingNotifications()
572 nm.cancelAll(); in cancelExistingNotifications()
575 assertEquals("old notifications were not cancelled", 0, nm.getActiveNotifications().length); in cancelExistingNotifications()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DXmlUtils.java311 String nm = charSeq.toString(); in convertValueToInt() local
319 int len = nm.length(); in convertValueToInt()
322 if ('-' == nm.charAt(0)) { in convertValueToInt()
327 if ('0' == nm.charAt(index)) { in convertValueToInt()
332 char c = nm.charAt(index + 1); in convertValueToInt()
342 else if ('#' == nm.charAt(index)) in convertValueToInt()
348 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLaunchpadActivity.java59 String nm = in.readString(); in MyBadParcelable() local
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/
H A DCompanionDeviceManagerService.java717 NotificationManager nm = getContext().getSystemService(NotificationManager.class); in hasNotificationAccess() local
718 return nm.isNotificationListenerAccessGranted(component); in hasNotificationAccess()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsService.java638 NotificationManager nm = (NotificationManager) in updateActivatedEncryptionNotifications() local
640 for (StatusBarNotification notification : nm.getActiveNotifications()) { in updateActivatedEncryptionNotifications()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java4277 NotificationManager nm = getNotificationService();
4278 if (nm != null && !mHandleVolumeKeysInWM) {
4279 nm.silenceNotificationSound();
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/native/graphics/jni/fuzz/corpus/
H A Dsample_raf.raf638 [�-\%�n{ޟ���n�^K���nm���\��{��O���E]OÖw3E;F"
909 ��8*nm�?���W9��ָ�����K�o�q��(�?����Ǯi�R:��>p���̾(�����0Ooݚ��.�@�$M��p ���3��V��.��9��9Ni�…
1009 …�{>��z�BT��8���*I�P�n���K�a�����5���>��z�) n�KUhF��"n$��7�m���c�d�)nm���Z1��kRO����ۿ`��…
1709 …Hl�I!'��*�ݒW>���xr݌<z��i�p<��ՙ����9�O��ߜ�ֈD�����j�Vo��Op?���U�Ğ��3ҭ#nm�瞾��X���W�s�Jd���c…
26240 …AI�s8$t=C��qF$v��@7�sSt'Cu'qGDr�A<'u>�p]A�gq"Tr?g@)�rSTqOBse�q@�A�nmo6�CGrRts@�pYdqo…