Home
last modified time | relevance | path

Searched refs:mNm (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java64 NotificationManagerService mNm; field in NotificationAssistantsTest
84 mAssistants = spy(mNm.new NotificationAssistants(getContext(), mLock, mUserProfiles, miPm)); in setUp()
85 when(mNm.getBinderService()).thenReturn(mINm); in setUp()
120 verify(mNm, times(mUm.getUsers().size())).setDefaultAssistantForUser(anyInt()); in testXmlUpgrade()
135 verify(mNm, never()).setDefaultAssistantForUser(anyInt()); in testXmlUpgradeExistingApprovedComponents()
146 verify(mNm, never()).setNotificationAssistantAccessGrantedForUserInternal( in testSetPackageOrComponentEnabled_onlyOnePackage()
151 verify(mNm, times(1)).setNotificationAssistantAccessGrantedForUserInternal( in testSetPackageOrComponentEnabled_onlyOnePackage()
162 verify(mNm, never()).setNotificationAssistantAccessGrantedForUserInternal( in testSetPackageOrComponentEnabled_samePackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java51 NotificationManager mNm; field in ZenModeControllerImplTest
60 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp()
61 when(mNm.getZenModeConfig()).thenReturn(mConfig); in setUp()
95 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
106 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java556 private NotificationManager mNm; field in AudioService
886 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in onSystemReady()
2302 && !mNm.isNotificationPolicyAccessGrantedForPackage(callingPackage)) { in setStreamVolume()
2409 switch (mNm.getZenMode()) { in volumeAdjustmentAllowedByDnd()
2902 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller)) { in setRingerModeExternal()
3020 if (mNm == null) { in muteRingerModeStreams()
3021 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in muteRingerModeStreams()
3981 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller) in checkForRingerModeChange()
3999 if (mNm.getZenMode() != Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in shouldZenMuteStream()
4003 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in shouldZenMuteStream()
[all …]