Home
last modified time | relevance | path

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

/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/android/net/
DNetworkMisc.java71 public NetworkMisc(NetworkMisc nm) { in NetworkMisc() argument
72 if (nm != null) { in NetworkMisc()
73 allowBypass = nm.allowBypass; in NetworkMisc()
74 explicitlySelected = nm.explicitlySelected; in NetworkMisc()
75 acceptUnvalidated = nm.acceptUnvalidated; in NetworkMisc()
76 subscriberId = nm.subscriberId; in NetworkMisc()
77 provisioningNotificationDisabled = nm.provisioningNotificationDisabled; in NetworkMisc()
/frameworks/base/core/java/com/android/server/backup/
DNotificationBackupHelper.java47 INotificationManager nm = INotificationManager.Stub.asInterface( in getBackupPayload() local
50 newPayload = nm.getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload()
68 INotificationManager nm = INotificationManager.Stub.asInterface( in applyRestoredPayload() local
71 nm.applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
/frameworks/support/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
DNotificationsActivity.java62 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostDirect() local
63 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); in onPostDirect()
77 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPostInterstitial() local
78 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification()); in onPostInterstitial()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotServiceErrorReceiver.java35 NotificationManager nm = (NotificationManager) in onReceive() local
37 GlobalScreenshot.notifyScreenshotError(context, nm, in onReceive()
DGlobalScreenshot.java936 final NotificationManager nm = in onReceive() local
938 nm.cancel(SystemMessage.NOTE_GLOBAL_SCREENSHOT); in onReceive()
953 final NotificationManager nm = in onReceive() local
956 nm.cancel(SystemMessage.NOTE_GLOBAL_SCREENSHOT); in onReceive()
/frameworks/base/core/java/android/app/
DRecoverableSecurityException.java117 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() local
122 nm.createNotificationChannel(new NotificationChannel(channelId, TAG, in showAsNotification()
147 final NotificationManager nm = context.getSystemService(NotificationManager.class); in showAsNotification() local
154 nm.notify(TAG, mUserAction.getActionIntent().getCreatorUid(), builder.build()); in showAsNotification()
DApplicationPackageManager.java1522 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() local
1523 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
1530 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() local
1531 if (nm.packageName.equals(ssp)) { in handlePackageBroadcast()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java42 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
53 nm.createNotificationChannels(Arrays.asList( in createAll()
79 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/packages/SystemUI/tests/src/com/android/systemui/plugins/
DPluginManagerTest.java153 NotificationManager nm = mock(NotificationManager.class); in testDisableIntent() local
155 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testDisableIntent()
163 verify(nm).cancel(eq(testComponent.getClassName()), eq(SystemMessage.NOTE_PLUGIN)); in testDisableIntent()
DPluginInstanceManagerTest.java149 NotificationManager nm = mock(NotificationManager.class); in testIncorrectVersion() local
150 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, nm); in testIncorrectVersion()
161 verify(nm).notifyAsUser(eq(TestPlugin.class.getName()), eq(SystemMessage.NOTE_PLUGIN), in testIncorrectVersion()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java987 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationPolicyAccess() local
988 nm.setNotificationPolicyAccessGranted(pkg, true); in grantNotificationPolicyAccess()
992 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationPolicyAccess() local
994 nm.removeAutomaticZenRules(pkg); in revokeNotificationPolicyAccess()
996 nm.setNotificationPolicyAccessGranted(pkg, false); in revokeNotificationPolicyAccess()
1000 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in grantNotificationListenerAccess() local
1008 nm.setNotificationListenerAccessGrantedForUser(c, userId, true); in grantNotificationListenerAccess()
1014 NotificationManager nm = mContext.getSystemService(NotificationManager.class); in revokeNotificationListenerAccess() local
1015 List<ComponentName> current = nm.getEnabledNotificationListeners(userId); in revokeNotificationListenerAccess()
1019 nm.setNotificationListenerAccessGrantedForUser(component, userId, false); in revokeNotificationListenerAccess()
/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java52 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() local
142 nm.createNotificationChannels(channelsList); in createAll()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java96 String nm = charSeq.toString(); in convertValueToInt()
104 int len = nm.length(); in convertValueToInt()
107 if ('-' == nm.charAt(0)) { in convertValueToInt()
112 if ('0' == nm.charAt(index)) { in convertValueToInt()
117 char c = nm.charAt(index + 1); in convertValueToInt()
127 else if ('#' == nm.charAt(index)) in convertValueToInt()
133 return Integer.parseInt(nm.substring(index), base) * sign; in convertValueToInt()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java459 NotificationManagerInternal nm = LocalServices.getService( in postNotification()
461 if (nm == null) { in postNotification()
522 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification()
546 nm.enqueueNotification(localPackageName, localPackageName, in postNotification()
DActiveServices.java846 final NotificationManager nm = (NotificationManager) mAm.mContext.getSystemService( in updateForegroundApps() local
913 nm.notifyAsUser(null, SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES, in updateForegroundApps()
916 nm.cancelAsUser(null, SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES, in updateForegroundApps()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java642 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/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/packages/Shell/src/com/android/shell/
DBugreportProgressService.java258 NotificationManager nm = NotificationManager.from(mContext); in onCreate() local
259 nm.createNotificationChannel( in onCreate()