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()
556 private NotificationManager mNm; field in AudioService886 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 …]