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()
3441 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testLocaleChangedCallsUpdateDefaultZenModeRules() local3442 mService.mZenModeHelper = mZenModeHelper; in testLocaleChangedCallsUpdateDefaultZenModeRules()3446 verify(mZenModeHelper, times(1)).updateDefaultZenRules(); in testLocaleChangedCallsUpdateDefaultZenModeRules()3936 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldFields() local3937 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setOldFields()3940 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setOldFields()3956 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setNewFields() local3957 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setNewFields()3960 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setNewFields()3973 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()
726 mZenModeHelper.readXml(parser, forRestore, userId); in readPolicyXml()836 mZenModeHelper.writeXml(out, forBackup, null, userId); in writePolicyXml()1368 mZenModeHelper.updateDefaultZenRules();1576 mZenModeHelper.onUserSwitched(userId);1592 mZenModeHelper.onUserRemoved(userId);1606 mZenModeHelper.onUserUnlocked(userId);1681 protected ZenModeHelper mZenModeHelper; field in NotificationManagerService1829 mZenModeHelper = zenHelper; in setZenHelper()1909 mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), mConditionProviders, in init()1911 mZenModeHelper.addCallback(new ZenModeHelper.Callback() { in init()[all …]
163 private final ZenModeHelper mZenModeHelper; field in PreferencesHelper181 mZenModeHelper = zenHelper; in PreferencesHelper()1577 mAreChannelsBypassingDnd = (mZenModeHelper.getNotificationPolicy().state in syncChannelsBypassingDnd()1631 NotificationManager.Policy policy = mZenModeHelper.getNotificationPolicy(); in updateZenPolicy()1632 mZenModeHelper.setNotificationPolicy(new NotificationManager.Policy( in updateZenPolicy()