Searched refs:mNm (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAssistantsTest.java | 83 NotificationManagerService mNm; field in NotificationAssistantsTest 108 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in setUp() 109 when(mNm.getBinderService()).thenReturn(mINm); in setUp() 139 when(mNm.isNASMigrationDone(anyInt())).thenReturn(true); in setUp() 140 when(mNm.canUseManagedServices(any(), anyInt(), any())).thenReturn(true); in setUp() 148 verify(mNm, times(mUm.getUsers().size())).setDefaultAssistantForUser(anyInt()); in testXmlUpgrade() 181 mNm::canUseManagedServices; in testWriteXml_userTurnedOffNAS() 184 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in testWriteXml_userTurnedOffNAS() 207 mNm::canUseManagedServices; in testReadXml_userDisabled() 230 mNm::canUseManagedServices; in testReadXml_userDisabled_restore() [all …]
|
D | NotificationListenersTest.java | 124 NotificationManagerService mNm; field in NotificationListenersTest 139 mNm = spy(new NotificationManagerService(mContext)); in setUp() 144 doReturn(true).when(mNm).isInteractionVisibleToListener(any(), anyInt()); in setUp() 146 mListeners = spy(mNm.new NotificationListeners( in setUp() 148 when(mNm.getBinderService()).thenReturn(mINm); in setUp() 149 mNm.mPackageManager = mock(IPackageManager.class); in setUp() 151 mNm.mPackageManagerInternal = mPmi; in setUp() 153 when(mNm.mPackageManagerInternal.getPackageStateInternal(any())).thenReturn(psi); in setUp() 154 mNm.mCompanionManager = mock(ICompanionDeviceManager.class); in setUp() 155 when(mNm.mCompanionManager.getAllAssociationsForUser(anyInt())) in setUp() [all …]
|
D | TimeToLiveHelperTest.java | 57 NotificationManagerPrivate mNm; field in TimeToLiveHelperTest 65 mHelper = new TimeToLiveHelper(mNm, mContext); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImplTest.java | 60 NotificationManager mNm; field in ZenModeControllerImplTest 76 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp() 77 when(mNm.getZenModeConfig()).thenReturn(mConfig); in setUp() 118 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 129 when(mNm.getConsolidatedNotificationPolicy()).thenReturn(policy); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | TimeToLiveHelper.java | 53 private final NotificationManagerPrivate mNm; field in TimeToLiveHelper 61 mNm = nm; in TimeToLiveHelper() 171 mNm.timeoutNotification(earliest.second);
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 973 private NotificationManager mNm; field in AudioService 1665 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in onSystemReady() 4754 && !mNm.isNotificationPolicyAccessGrantedForPackage(callingPackage)) { in setStreamVolume() 4898 switch (mNm.getZenMode()) { in volumeAdjustmentAllowedByDnd() 5632 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller)) { in setRingerModeExternal() 5744 if (mNm == null) { in muteRingerModeStreams() 5745 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in muteRingerModeStreams() 7002 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller) in checkForRingerModeChange() 7042 final int zenMode = mNm.getZenMode(); in updateZenModeAffectedStreams() 7055 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in updateZenModeAffectedStreams() [all …]
|