Home
last modified time | relevance | path

Searched refs:mZenModeHelper (Results 1 – 3 of 3) 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.getNotificationPolicy()).thenReturn( in testExtractIntercepted()
73 extractor.setZenHelper(mZenModeHelper); in testExtractVisualDisturbancesNotIntercepted()
76 when(mZenModeHelper.shouldIntercept(any())).thenReturn(false); in testExtractVisualDisturbancesNotIntercepted()
77 when(mZenModeHelper.getNotificationPolicy()).thenReturn( in testExtractVisualDisturbancesNotIntercepted()
88 extractor.setZenHelper(mZenModeHelper); in testExtractVisualDisturbancesIntercepted()
91 when(mZenModeHelper.shouldIntercept(any())).thenReturn(true); in testExtractVisualDisturbancesIntercepted()
92 when(mZenModeHelper.getNotificationPolicy()).thenReturn( in testExtractVisualDisturbancesIntercepted()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeExtractor.java33 private ZenModeHelper mZenModeHelper; field in ZenModeExtractor
45 if (mZenModeHelper == null) { in process()
50 record.setIntercepted(mZenModeHelper.shouldIntercept(record)); in process()
53 mZenModeHelper.getNotificationPolicy().suppressedVisualEffects); in process()
68 mZenModeHelper = helper; in setZenHelper()
DRankingHelper.java122 private ZenModeHelper mZenModeHelper; field in RankingHelper
129 mZenModeHelper= zenHelper; in RankingHelper()
155 mAreChannelsBypassingDnd = (mZenModeHelper.getNotificationPolicy().state & in RankingHelper()
1008 NotificationManager.Policy policy = mZenModeHelper.getNotificationPolicy(); in updateZenPolicy()
1009 mZenModeHelper.setNotificationPolicy(new NotificationManager.Policy( in updateZenPolicy()