Searched refs:mZenModeHelper (Results 1 – 5 of 5) sorted by relevance
46 ZenModeHelper mZenModeHelper; field in ZenModeExtractorTest56 extractor.setZenHelper(mZenModeHelper); in testExtractIntercepted()61 when(mZenModeHelper.shouldIntercept(any())).thenReturn(true); in testExtractIntercepted()62 when(mZenModeHelper.getConsolidatedNotificationPolicy()).thenReturn( in testExtractIntercepted()73 extractor.setZenHelper(mZenModeHelper); in testExtractVisualDisturbancesNotIntercepted()76 when(mZenModeHelper.shouldIntercept(any())).thenReturn(false); in testExtractVisualDisturbancesNotIntercepted()77 when(mZenModeHelper.getConsolidatedNotificationPolicy()).thenReturn( in testExtractVisualDisturbancesNotIntercepted()88 extractor.setZenHelper(mZenModeHelper); in testExtractVisualDisturbancesIntercepted()91 when(mZenModeHelper.shouldIntercept(any())).thenReturn(true); in testExtractVisualDisturbancesIntercepted()92 when(mZenModeHelper.getConsolidatedNotificationPolicy()).thenReturn( in testExtractVisualDisturbancesIntercepted()
2809 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testLocaleChangedCallsUpdateDefaultZenModeRules() local2810 mService.mZenModeHelper = mZenModeHelper; in testLocaleChangedCallsUpdateDefaultZenModeRules()2814 verify(mZenModeHelper, times(1)).updateDefaultZenRules(); in testLocaleChangedCallsUpdateDefaultZenModeRules()3223 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldFields() local3224 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setOldFields()3227 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setOldFields()3243 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setNewFields() local3244 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setNewFields()3247 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setNewFields()3260 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldNewFields() local[all …]
30 private ZenModeHelper mZenModeHelper; field in ZenModeExtractor42 if (mZenModeHelper == null) { in process()47 record.setIntercepted(mZenModeHelper.shouldIntercept(record)); in process()50 mZenModeHelper.getConsolidatedNotificationPolicy().suppressedVisualEffects); in process()65 mZenModeHelper = helper; in setZenHelper()
599 mZenModeHelper.readXml(parser, forRestore, userId); in readPolicyXml()706 mZenModeHelper.writeXml(out, forBackup, null, userId); in writePolicyXml()1143 mZenModeHelper.updateDefaultZenRules();1349 mZenModeHelper.onUserSwitched(userId);1365 mZenModeHelper.onUserRemoved(userId);1378 mZenModeHelper.onUserUnlocked(userId);1477 protected ZenModeHelper mZenModeHelper; field in NotificationManagerService1607 mZenModeHelper = zenHelper; in setZenHelper()1682 mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), mConditionProviders); in init()1683 mZenModeHelper.addCallback(new ZenModeHelper.Callback() { in init()[all …]
133 private final ZenModeHelper mZenModeHelper; field in PreferencesHelper143 mZenModeHelper = zenHelper; in PreferencesHelper()1223 mAreChannelsBypassingDnd = (mZenModeHelper.getNotificationPolicy().state in syncChannelsBypassingDnd()1277 NotificationManager.Policy policy = mZenModeHelper.getNotificationPolicy(); in updateZenPolicy()1278 mZenModeHelper.setNotificationPolicy(new NotificationManager.Policy( in updateZenPolicy()