Searched refs:getAutomaticZenRule (Results 1 – 14 of 14) sorted by relevance
200 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()
79 mRule = mBackend.getAutomaticZenRule(mId); in updateRule()
454 protected AutomaticZenRule getAutomaticZenRule(String id) { in getAutomaticZenRule() method in ZenModeBackend455 return NotificationManager.from(mContext).getAutomaticZenRule(id); in getAutomaticZenRule()
217 return NotificationManager.from(mContext).getAutomaticZenRule(mId); in getZenRule()
73 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
72 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
76 when(mBackend.getAutomaticZenRule(anyString())).thenReturn(mRule); in setup()
88 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
83 when(mBackend.getAutomaticZenRule(RULE_ID)).thenReturn(mRule); in setup()
109 when(mZenBackend.getAutomaticZenRule(mId)).thenReturn(mRule); in setup()
108 AutomaticZenRule rule = mNotificationManager.getAutomaticZenRule(id); in getMode()