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.java2809 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testLocaleChangedCallsUpdateDefaultZenModeRules() local
2810 mService.mZenModeHelper = mZenModeHelper; in testLocaleChangedCallsUpdateDefaultZenModeRules()
2814 verify(mZenModeHelper, times(1)).updateDefaultZenRules(); in testLocaleChangedCallsUpdateDefaultZenModeRules()
3223 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldFields() local
3224 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() local
3244 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 …]
/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.java599 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 NotificationManagerService
1607 mZenModeHelper = zenHelper; in setZenHelper()
1682 mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), mConditionProviders); in init()
1683 mZenModeHelper.addCallback(new ZenModeHelper.Callback() { in init()
[all …]
DPreferencesHelper.java133 private final ZenModeHelper mZenModeHelper; field in PreferencesHelper
143 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()