/frameworks/layoutlib/bridge/src/com/android/internal/util/ |
D | XmlUtils_Delegate.java | 36 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/ |
D | NotificationBackupHelper.java | 47 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/ |
D | NotificationChannels.java | 42 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local 77 nm.createNotificationChannels(Arrays.asList( in createAll() 83 nm.getNotificationChannel(SCREENSHOTS_LEGACY)), in createAll() 91 nm.deleteNotificationChannel(SCREENSHOTS_LEGACY); in createAll() 98 nm.createNotificationChannel(new NotificationChannel( in createAll()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotServiceErrorReceiver.java | 35 NotificationManager nm = (NotificationManager) in onReceive() local 37 GlobalScreenshot.notifyScreenshotError(context, nm, in onReceive()
|
D | GlobalScreenshot.java | 1228 final NotificationManager nm = in cancelScreenshotNotification() local 1230 nm.cancel(SystemMessage.NOTE_GLOBAL_SCREENSHOT); in cancelScreenshotNotification()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | TestAlertActivity.java | 27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause() local 28 nm.cancel(mId); in onPause()
|
/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 61 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local 186 nm.createNotificationChannels(channelsList); in createAll() 191 final NotificationManager nm = context.getSystemService(NotificationManager.class); in removeDeprecated() local 192 nm.deleteNotificationChannel(DEVICE_ADMIN_DEPRECATED); in removeDeprecated()
|
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | TestNetworkStackService.kt | 92 val nm = NetworkMonitor(this@TestNetworkStackService, cb, in makeNetworkMonitor() constant 98 cb.onNetworkMonitorCreated(NetworkMonitorConnector(nm, TestPermissionChecker())) in makeNetworkMonitor()
|
/frameworks/base/core/java/android/app/ |
D | RecoverableSecurityException.java | 114 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() local 121 nm.notify(TAG, mUserAction.getActionIntent().getCreatorUid(), builder.build()); in showAsNotification()
|
D | ApplicationPackageManager.java | 1742 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() local 1743 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast() 1750 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() local 1751 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | VrManagerService.java | 1027 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/ |
D | PluginManagerTest.java | 204 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()
|
D | PluginInstanceManagerTest.java | 159 NotificationManager nm = mock(NotificationManager.class); in testIncorrectVersion() local 160 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testIncorrectVersion() 171 verify(nm).notifyAsUser(eq(TestPlugin.class.getName()), eq(SystemMessage.NOTE_PLUGIN), in testIncorrectVersion()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | HeapDumpReceiver.java | 146 NotificationManager nm = NotificationManager.from(context); in showDumpNotification() local 147 nm.createNotificationChannel( in showDumpNotification()
|
D | BugreportProgressService.java | 268 NotificationManager nm = NotificationManager.from(mContext); in onCreate() local 269 nm.createNotificationChannel( in onCreate()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 312 final NetworkMonitorManager nm = mNetworkMonitor; in getAndSetNetworkCapabilities() local 313 if (nm != null) { in getAndSetNetworkCapabilities() 314 nm.notifyNetworkCapabilitiesChanged(nc); in getAndSetNetworkCapabilities()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTrackerTest.java | 1583 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/ |
D | XmlUtils.java | 104 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/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportReceiverTest.java | 642 NotificationManager nm = NotificationManager.from(mContext); in cancelExistingNotifications() local 643 StatusBarNotification[] activeNotifications = nm.getActiveNotifications(); in cancelExistingNotifications() 650 nm.cancelAll(); in cancelExistingNotifications() 654 int total = nm.getActiveNotifications().length; in cancelExistingNotifications() 659 nm.cancelAll(); in cancelExistingNotifications() 662 assertEquals("old notifications were not cancelled", 0, nm.getActiveNotifications().length); in cancelExistingNotifications()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ServiceRecord.java | 804 NotificationManagerInternal nm = LocalServices.getService( in postNotification() 806 if (nm == null) { in postNotification() 867 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification() 891 nm.enqueueNotification(localPackageName, localPackageName, in postNotification()
|
D | ActiveServices.java | 1073 final NotificationManager nm = (NotificationManager) mAm.mContext.getSystemService( in updateForegroundApps() local 1140 nm.notifyAsUser(null, SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES, in updateForegroundApps() 1143 nm.cancelAsUser(null, SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES, in updateForegroundApps()
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | CXADemangle.tcc | 3230 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/ |
D | LaunchpadActivity.java | 59 String nm = in.readString(); in MyBadParcelable() local
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 3836 final NetworkMonitorManager nm = getNetworkMonitorManager(mNetwork); in appResponse() local 3837 if (nm == null) return; in appResponse() 3838 nm.notifyCaptivePortalAppFinished(response); in appResponse() 3843 final NetworkMonitorManager nm = getNetworkMonitorManager(mNetwork); in appRequest() local 3844 if (nm == null) return; in appRequest() 3848 nm.forceReevaluation(Binder.getCallingUid()); in appRequest()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 3817 NotificationManager nm = getNotificationService(); in interceptKeyBeforeQueueing() local 3818 if (nm != null && !mHandleVolumeKeysInWM) { in interceptKeyBeforeQueueing() 3819 nm.silenceNotificationSound(); in interceptKeyBeforeQueueing()
|