Home
last modified time | relevance | path

Searched refs:getAutomaticZenRule (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModesBackendTest.java200 when(mNm.getAutomaticZenRule(eq(ZEN_RULE_ID))).thenReturn(ZEN_RULE); in getMode_zenRule_returnsMode()
209 when(mNm.getAutomaticZenRule(any())).thenReturn(null); in getMode_missingRule_returnsNull()
214 verify(mNm).getAutomaticZenRule(eq(ZEN_RULE_ID)); in getMode_missingRule_returnsNull()
247 when(mNm.getAutomaticZenRule(eq(ZEN_RULE_ID))).thenReturn(ZEN_RULE); in getMode_zenRule_returnsCorrectActiveState()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenCustomRuleSettingsBase.java79 mRule = mBackend.getAutomaticZenRule(mId); in updateRule()
DZenModeBackend.java454 protected AutomaticZenRule getAutomaticZenRule(String id) { in getAutomaticZenRule() method in ZenModeBackend
455 return NotificationManager.from(mContext).getAutomaticZenRule(id); in getAutomaticZenRule()
DZenModeRuleSettingsBase.java217 return NotificationManager.from(mContext).getAutomaticZenRule(mId); in getZenRule()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenRuleCustomPolicyPreferenceControllerTest.java73 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleDefaultPolicyPreferenceControllerTest.java73 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleVisEffectsAllPreferenceControllerTest.java72 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleVisEffectsNonePreferenceControllerTest.java72 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleVisEffectsCustomPreferenceControllerTest.java72 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleRepeatCallersPreferenceControllerTest.java76 when(mBackend.getAutomaticZenRule(anyString())).thenReturn(mRule); in setup()
DZenRuleStarredContactsPreferenceControllerTest.java88 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRuleVisEffectPreferenceControllerTest.java83 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
DZenRulePrioritySendersPreferenceControllerTest.java109 when(mZenBackend.getAutomaticZenRule(mId)).thenReturn(mRule); in setup()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModesBackend.java108 AutomaticZenRule rule = mNotificationManager.getAutomaticZenRule(id); in getMode()