Home
last modified time | relevance | path

Searched refs:nm (Results 1 – 25 of 27) 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/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java46 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
81 nm.createNotificationChannels(Arrays.asList( in createAll()
87 nm.getNotificationChannel(SCREENSHOTS_LEGACY)), in createAll()
95 nm.deleteNotificationChannel(SCREENSHOTS_LEGACY); in createAll()
102 nm.createNotificationChannel(new NotificationChannel( in createAll()
/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/core/java/com/android/internal/notification/
DSystemNotificationChannels.java62 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
194 nm.createNotificationChannels(channelsList); in createAll()
199 final NotificationManager nm = context.getSystemService(NotificationManager.class); in removeDeprecated() local
200 nm.deleteNotificationChannel(DEVICE_ADMIN_DEPRECATED); in removeDeprecated()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp139 String8 nm; in name() local
141 nm = reply.readString8(); in name()
143 return nm; in name()
231 String8 nm = name(); in onTransact() local
232 reply->writeString8(nm); in onTransact()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiService.java86 final NotificationManager nm = ctx.getSystemService(NotificationManager.class); in createNotificationChannels() local
111 nm.createNotificationChannels(channelsList); in createNotificationChannels()
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/
DTestNetworkStackService.kt88 val nm = NetworkMonitor(this@TestNetworkStackService, cb, in makeNetworkMonitor() constant
94 cb.onNetworkMonitorCreated(NetworkMonitorConnector(nm, TestPermissionChecker())) in makeNetworkMonitor()
/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.java1890 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() local
1891 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
1898 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() local
1899 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java1027 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationPolicyAccess() local
1028 nm.setNotificationPolicyAccessGranted(pkg, true); in grantNotificationPolicyAccess()
1032 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationPolicyAccess() local
1034 nm.removeAutomaticZenRules(pkg); in revokeNotificationPolicyAccess()
1036 nm.setNotificationPolicyAccessGranted(pkg, false); in revokeNotificationPolicyAccess()
1040 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationListenerAccess() local
1048 nm.setNotificationListenerAccessGrantedForUser(c, userId, true); in grantNotificationListenerAccess()
1054 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationListenerAccess() local
1055 List<ComponentName> current = nm.getEnabledNotificationListeners(userId); in revokeNotificationListenerAccess()
1059 nm.setNotificationListenerAccessGrantedForUser(component, userId, false); in revokeNotificationListenerAccess()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginManagerTest.java204 NotificationManager nm = mock(NotificationManager.class); in testDisableIntent() local
205 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testDisableIntent()
213 verify(nm).cancel(eq(testComponent.getClassName()), eq(SystemMessage.NOTE_PLUGIN)); in testDisableIntent()
DPluginInstanceManagerTest.java158 NotificationManager nm = mock(NotificationManager.class); in testIncorrectVersion() local
159 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testIncorrectVersion()
170 verify(nm).notify(eq(SystemMessage.NOTE_PLUGIN), any()); in testIncorrectVersion()
/frameworks/base/packages/Shell/src/com/android/shell/
DHeapDumpReceiver.java146 NotificationManager nm = NotificationManager.from(context); in showDumpNotification() local
147 nm.createNotificationChannel( in showDumpNotification()
DBugreportProgressService.java279 NotificationManager nm = NotificationManager.from(mContext); in onCreate() local
280 nm.createNotificationChannel( in onCreate()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java822 NotificationManagerInternal nm = LocalServices.getService( in postNotification()
824 if (nm == null) { in postNotification()
885 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification()
909 nm.enqueueNotification(localPackageName, localPackageName, in postNotification()
935 NotificationManagerInternal nm = LocalServices.getService( in cancelNotification()
937 if (nm == null) { in cancelNotification()
941 nm.cancelNotification(localPackageName, localPackageName, appUid, appPid, in cancelNotification()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java1583 final NotificationManager nm = (NotificationManager) in testSetPsNotifications() local
1596 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetPsNotifications()
1603 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.PS_NOTIFICATION); in testSetPsNotifications()
1615 final NotificationManager nm = (NotificationManager) in testSetCsNotifications() local
1629 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetCsNotifications()
1636 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.CS_NOTIFICATION); in testSetCsNotifications()
1648 final NotificationManager nm = (NotificationManager) in testSetCsNormalNotifications() local
1661 verify(nm).notify(anyString(), anyInt(), notificationArgumentCaptor.capture()); in testSetCsNormalNotifications()
1668 verify(nm).cancel(Integer.toString(sst.mSubId), ServiceStateTracker.CS_NOTIFICATION); in testSetCsNormalNotifications()
1680 final NotificationManager nm = (NotificationManager) in testSetCsEmergencyNotifications() local
[all …]
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java104 String nm = charSeq.toString(); in convertValueToInt() local
112 int len = nm.length(); in convertValueToInt()
115 if ('-' == nm.charAt(0)) { in convertValueToInt()
120 if ('0' == nm.charAt(index)) { in convertValueToInt()
125 char c = nm.charAt(index + 1); in convertValueToInt()
135 else if ('#' == nm.charAt(index)) in convertValueToInt()
141 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtilHelper.java111 String nm = charSeq.toString(); in convertValueToInt() local
119 int len = nm.length(); in convertValueToInt()
122 if ('-' == nm.charAt(0)) { in convertValueToInt()
127 if ('0' == nm.charAt(index)) { in convertValueToInt()
132 char c = nm.charAt(index + 1); in convertValueToInt()
142 else if ('#' == nm.charAt(index)) in convertValueToInt()
148 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotNotificationsController.java287 final NotificationManager nm = in cancelScreenshotNotification() local
289 nm.cancel(SystemMessageProto.SystemMessage.NOTE_GLOBAL_SCREENSHOT); in cancelScreenshotNotification()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java644 NotificationManager nm = NotificationManager.from(mContext); in cancelExistingNotifications() local
645 StatusBarNotification[] activeNotifications = nm.getActiveNotifications(); in cancelExistingNotifications()
652 nm.cancelAll(); in cancelExistingNotifications()
656 int total = nm.getActiveNotifications().length; in cancelExistingNotifications()
661 nm.cancelAll(); in cancelExistingNotifications()
664 assertEquals("old notifications were not cancelled", 0, nm.getActiveNotifications().length); in cancelExistingNotifications()
/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/
DConnectivityService.java3844 final NetworkMonitorManager nm = getNetworkMonitorManager(mNetwork); in appResponse() local
3845 if (nm == null) return; in appResponse()
3846 nm.notifyCaptivePortalAppFinished(response); in appResponse()
3851 final NetworkMonitorManager nm = getNetworkMonitorManager(mNetwork); in appRequest() local
3852 if (nm == null) return; in appRequest()
3856 nm.forceReevaluation(Binder.getCallingUid()); in appRequest()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java3730 NotificationManager nm = getNotificationService(); in interceptKeyBeforeQueueing() local
3731 if (nm != null && !mHandleVolumeKeysInWM) { in interceptKeyBeforeQueueing()
3732 nm.silenceNotificationSound(); in interceptKeyBeforeQueueing()

12