Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationAssistantsTest.java76 NotificationManagerService mNm; field in NotificationAssistantsTest
98 when(mNm.getBinderService()).thenReturn(mINm); in setUp()
127 when(mNm.isNASMigrationDone(anyInt())).thenReturn(true); in setUp()
150 mNm::canUseManagedServices; in testReadXml_userDisabled()
173 mNm::canUseManagedServices; in testReadXml_upgradeUserSet()
193 mNm::canUseManagedServices; in testReadXml_upgradeUserSet_preS_VersionThree()
214 mNm::canUseManagedServices; in testReadXml_upgradeUserSet_preS_VersionOne()
234 mNm::canUseManagedServices; in testReadXml_upgradeUserSet_preS_noUserSet()
254 mNm::canUseManagedServices; in testReadXml_upgradeUserSet_preS_noUserSet_diffDefault()
385 verify(mNm, times(1)).setNASMigrationDone(eq(mZero.id)); in testNASSettingUpgrade_userNotSet_differentDefaultNAS()
[all …]
H A DNotificationListenersTest.java107 NotificationManagerService mNm; field in NotificationListenersTest
127 mListeners = spy(mNm.new NotificationListeners( in setUp()
129 when(mNm.getBinderService()).thenReturn(mINm); in setUp()
156 mListeners = spy(mNm.new NotificationListeners( in loadDefaultsFromConfig_forHeadlessSystemUser_loadUninstalled()
170 mListeners = spy(mNm.new NotificationListeners( in loadDefaultsFromConfig_forNonHeadlessSystemUser_ignoreUninstalled()
483 when(mNm.isInLockDownMode(0)).thenReturn(false); in testNotifyPostedLockedInLockdownMode()
487 when(mNm.isInLockDownMode(1)).thenReturn(false); in testNotifyPostedLockedInLockdownMode()
506 when(mNm.isInLockDownMode(0)).thenReturn(true); in testNotifyPostedLockedInLockdownMode()
532 FieldSetter.setField(mNm, in testNotifyRemovedLockedInLockdownMode()
564 when(mNm.isInLockDownMode(0)).thenReturn(true); in testNotifyRemovedLockedInLockdownMode()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DZenModeControllerImplTest.java59 NotificationManager mNm; field in ZenModeControllerImplTest
75 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp()
76 when(mNm.getZenModeConfig()).thenReturn(mConfig); in setUp()
116 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
127 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java888 private NotificationManager mNm; field in AudioService
4517 && !mNm.isNotificationPolicyAccessGrantedForPackage(callingPackage)) { in setStreamVolume()
4633 switch (mNm.getZenMode()) { in volumeAdjustmentAllowedByDnd()
5362 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller)) { in setRingerModeExternal()
5474 if (mNm == null) { in muteRingerModeStreams()
6709 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller) in checkForRingerModeChange()
6727 if (mNm.getZenMode() != Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in shouldZenMuteStream()
6731 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in shouldZenMuteStream()
6766 final int zenMode = mNm.getZenMode(); in updateZenModeAffectedStreams()
7662 if (mNm.getZenMode() != Settings.Global.ZEN_MODE_NO_INTERRUPTIONS in onAccessoryPlugMediaUnmute()
[all …]