Searched refs:mNm (Results 1 – 3 of 3) sorted by relevance
64 NotificationManagerService mNm; field in NotificationAssistantsTest84 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()
51 NotificationManager mNm; field in ZenModeControllerImplTest60 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()
544 private NotificationManager mNm; field in AudioService888 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in onSystemReady()2385 && !mNm.isNotificationPolicyAccessGrantedForPackage(callingPackage)) { in setStreamVolume()2484 switch (mNm.getZenMode()) { in volumeAdjustmentAllowedByDnd()2996 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller)) { in setRingerModeExternal()3114 if (mNm == null) { in muteRingerModeStreams()3115 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in muteRingerModeStreams()3945 && !mNm.isNotificationPolicyAccessGrantedForPackage(caller) in checkForRingerModeChange()3963 if (mNm.getZenMode() != Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in shouldZenMuteStream()3967 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in shouldZenMuteStream()[all …]