Searched refs:mZenModeHelper (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 268 private ZenModeHelper mZenModeHelper; field in ZenModeHelperTest 318 mZenModeHelper = new ZenModeHelper(mContext, mTestableLooper.getLooper(), mTestClock, in setUp() 337 mZenModeHelper.mPm = mPackageManager; in setUp() 396 mZenModeHelper.writeXml(serializer, false, version, UserHandle.USER_ALL); in writeXmlAndPurge() 399 mZenModeHelper.setConfig(new ZenModeConfig(), null, UPDATE_ORIGIN_INIT, "writing xml", in writeXmlAndPurge() 410 mZenModeHelper.writeXml(serializer, true, version, userId); in writeXmlAndPurgeForUser() 415 mZenModeHelper.setConfig(newConfig, null, UPDATE_ORIGIN_INIT, "writing xml", in writeXmlAndPurgeForUser() 468 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testZenOff_NoMuteApplied() 469 mZenModeHelper.setPriorityOnlyDndExemptPackages(new String[]{PKG_O}); in testZenOff_NoMuteApplied() 470 mZenModeHelper.mConsolidatedPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS in testZenOff_NoMuteApplied() [all …]
|
D | ZenModeExtractorTest.java | 46 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()
|
D | NotificationManagerServiceTest.java | 5906 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testLocaleChangedCallsUpdateDefaultZenModeRules() local 5907 mService.mZenModeHelper = mZenModeHelper; in testLocaleChangedCallsUpdateDefaultZenModeRules() 5911 verify(mZenModeHelper).updateZenRulesOnLocaleChange(); in testLocaleChangedCallsUpdateDefaultZenModeRules() 6988 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldFields() local 6989 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setOldFields() 6992 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setOldFields() 7008 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setNewFields() local 7009 mService.mZenModeHelper = mZenModeHelper; in testSetNotificationPolicy_preP_setNewFields() 7012 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setNewFields() 7025 ZenModeHelper mZenModeHelper = mock(ZenModeHelper.class); in testSetNotificationPolicy_preP_setOldNewFields() local [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeExtractor.java | 30 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()
|
D | NotificationManagerService.java | 1076 mZenModeHelper.readXml(parser, forRestore, userId); in readPolicyXml() 1220 mZenModeHelper.writeXml(out, forBackup, null, userId); in writePolicyXml() 1855 mZenModeHelper.updateZenRulesOnLocaleChange(); 2054 mZenModeHelper.onUserSwitched(userId); 2073 mZenModeHelper.onUserRemoved(userId); 2089 mZenModeHelper.onUserUnlocked(userId); 2206 protected ZenModeHelper mZenModeHelper; field in NotificationManagerService 2365 mZenModeHelper = zenHelper; in setZenHelper() 2449 mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), Clock.systemUTC(), in init() 2451 mZenModeHelper.addCallback(new ZenModeHelper.Callback() { in init() [all …]
|
D | NotificationAttentionHelper.java | 131 private final ZenModeHelper mZenModeHelper; field in NotificationAttentionHelper 181 mZenModeHelper = zenModeHelper; in NotificationAttentionHelper() 958 if (mCallState != TelephonyManager.CALL_STATE_IDLE && !mZenModeHelper.isCall(record)) { in disableNotificationEffects()
|
D | PreferencesHelper.java | 203 private final ZenModeHelper mZenModeHelper; field in PreferencesHelper 231 mZenModeHelper = zenHelper; in PreferencesHelper() 1863 mCurrentUserHasChannelsBypassingDnd = (mZenModeHelper.getNotificationPolicy().state in syncChannelsBypassingDnd() 1925 NotificationManager.Policy policy = mZenModeHelper.getNotificationPolicy(); in updateZenPolicy() 1926 mZenModeHelper.setNotificationPolicy( in updateZenPolicy()
|