Home
last modified time | relevance | path

Searched refs:mZenModeHelper (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeExtractorTest.java46 ZenModeHelper mZenModeHelper; field in ZenModeExtractorTest
56 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()
DNotificationManagerServiceTest.java3441 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testLocaleChangedCallsUpdateDefaultZenModeRules() local
3442 mService.mZenModeHelper = mZenModeHelper; in testLocaleChangedCallsUpdateDefaultZenModeRules()
3446 verify(mZenModeHelper, times(1)).updateDefaultZenRules(); in testLocaleChangedCallsUpdateDefaultZenModeRules()
3936 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldFields() local
3937 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() local
3957 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 …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeExtractor.java30 private ZenModeHelper mZenModeHelper; field in ZenModeExtractor
42 if (mZenModeHelper == null) { in process()
47 record.setIntercepted(mZenModeHelper.shouldIntercept(record)); in process()
50 mZenModeHelper.getConsolidatedNotificationPolicy().suppressedVisualEffects); in process()
65 mZenModeHelper = helper; in setZenHelper()
DNotificationManagerService.java726 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 NotificationManagerService
1829 mZenModeHelper = zenHelper; in setZenHelper()
1909 mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), mConditionProviders, in init()
1911 mZenModeHelper.addCallback(new ZenModeHelper.Callback() { in init()
[all …]
DPreferencesHelper.java163 private final ZenModeHelper mZenModeHelper; field in PreferencesHelper
181 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()