Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/bridge/src/com/android/internal/util/
DXmlUtils_Delegate.java36 String nm = charSeq.toString(); in convertValueToInt()
44 int len = nm.length(); in convertValueToInt()
47 if ('-' == nm.charAt(0)) { in convertValueToInt()
52 if ('0' == nm.charAt(index)) { in convertValueToInt()
57 char c = nm.charAt(index + 1); in convertValueToInt()
67 else if ('#' == nm.charAt(index)) { in convertValueToInt()
72 return ((int)Long.parseLong(nm.substring(index), base)) * sign; in convertValueToInt()
/frameworks/base/core/java/com/android/server/backup/
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()
/frameworks/base/core/java/com/android/internal/notification/
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()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestAlertActivity.java27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause() local
28 nm.cancel(mId); in onPause()
/frameworks/base/services/core/java/com/android/server/notification/
DReviewNotificationPermissionsReceiver.java59 NotificationManager nm = context.getSystemService(NotificationManager.class); in cancelNotification() local
60 if (nm != null) { in cancelNotification()
61 nm.cancel(NotificationManagerService.TAG, in cancelNotification()
DTimeToLiveHelper.java59 public TimeToLiveHelper(NotificationManagerPrivate nm, Context context) { in TimeToLiveHelper() argument
61 mNm = nm; in TimeToLiveHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
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()
/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
DSimpleFgService.java77 final NotificationManager nm = getSystemService(NotificationManager.class); in onCreate() local
78 nm.createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp141 String8 nm; in name() local
143 nm = reply.readString8(); in name()
145 return nm; in name()
247 String8 nm = name(); in onTransact() local
248 reply->writeString8(nm); in onTransact()
/frameworks/base/core/java/android/app/
DRecoverableSecurityException.java114 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() local
121 nm.notify(TAG, mUserAction.getActionIntent().getCreatorUid(), builder.build()); in showAsNotification()
DApplicationPackageManager.java2291 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() local
2292 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
2299 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() local
2300 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
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()
/frameworks/base/services/core/java/com/android/server/vr/
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()
/frameworks/base/packages/Shell/src/com/android/shell/
DHeapDumpReceiver.java146 NotificationManager nm = NotificationManager.from(context); in showDumpNotification() local
147 nm.createNotificationChannel( in showDumpNotification()
DBugreportProgressService.java303 NotificationManager nm = NotificationManager.from(mContext); in onCreate() local
304 nm.createNotificationChannel( in onCreate()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java1570 NotificationManagerInternal nm = LocalServices.getService( in updateFgsHasNotificationPermission()
1572 if (nm == null) { in updateFgsHasNotificationPermission()
1576 mFgsHasNotificationPermission = nm.areNotificationsEnabledForPackage( in updateFgsHasNotificationPermission()
1598 NotificationManagerInternal nm = LocalServices.getService( in postNotification()
1600 if (nm == null) { in postNotification()
1604 mFgsHasNotificationPermission = nm.areNotificationsEnabledForPackage( in postNotification()
1664 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification()
1688 nm.enqueueNotification(localPackageName, localPackageName, in postNotification()
1719 NotificationManagerInternal nm = LocalServices.getService( in cancelNotification()
1721 if (nm == null) { in cancelNotification()
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
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()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java312 String nm = charSeq.toString(); in convertValueToInt() local
320 int len = nm.length(); in convertValueToInt()
323 if ('-' == nm.charAt(0)) { in convertValueToInt()
328 if ('0' == nm.charAt(index)) { in convertValueToInt()
333 char c = nm.charAt(index + 1); in convertValueToInt()
343 else if ('#' == nm.charAt(index)) in convertValueToInt()
349 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java1636 final NotificationManager nm = (NotificationManager) in testSetPsNotifications() local
1652 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetPsNotifications()
1659 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.PS_NOTIFICATION); in testSetPsNotifications()
1669 final NotificationManager nm = (NotificationManager) in testSetCsNotifications() local
1686 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetCsNotifications()
1693 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.CS_NOTIFICATION); in testSetCsNotifications()
1703 final NotificationManager nm = (NotificationManager) in testSetCsNormalNotifications() local
1719 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetCsNormalNotifications()
1726 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.CS_NOTIFICATION); in testSetCsNormalNotifications()
1736 final NotificationManager nm = (NotificationManager) in testSetCsEmergencyNotifications() local
[all …]
/frameworks/base/core/res/geoid_map_assets/
Dexpiration-distance-disk-tile-1.textpb2 …1\240\253\315<\266uo\200\'\v\3707m\031F-MW\024m\333\307\326\001\364iJp\342\nm\001\3406T\363#\350\3…
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java486 NotificationManager nm = getContext().getSystemService(NotificationManager.class); in hasNotificationAccess() local
487 return nm.isNotificationListenerAccessGranted(component); in hasNotificationAccess()
/frameworks/compile/mclinker/include/mcld/Support/
DCXADemangle.tcc3230 auto& nm = db.names.back().first; in parse_binary_expression() local
3231 nm.clear(); in parse_binary_expression()
3233 nm += '('; in parse_binary_expression()
3234 nm += "(" + op1 + ") " + op + " (" + op2 + ")"; in parse_binary_expression()
3236 nm += ')'; in parse_binary_expression()
4510 const typename C::String& nm = db.names.back().first; in parse_encoding() local
4511 if (nm.empty()) in parse_encoding()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadActivity.java59 String nm = in.readString(); in MyBadParcelable() local
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java701 NotificationManager nm = (NotificationManager) in updateActivatedEncryptionNotifications() local
703 for (StatusBarNotification notification : nm.getActiveNotifications()) { in updateActivatedEncryptionNotifications()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java4765 NotificationManager nm = getNotificationService();
4766 if (nm != null && !mHandleVolumeKeysInWM) {
4767 nm.silenceNotificationSound();

12