Searched refs:getRule (Results 1 – 24 of 24) sorted by relevance
51 assertThat(zenMode.getRule()).isEqualTo(ZEN_RULE); in testBasicMethods()124 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo( in setPolicy_setsInterruptionFilterPriority()127 assertThat(zenMode.getRule().getZenPolicy()).isEqualTo(ZEN_POLICY); in setPolicy_setsInterruptionFilterPriority()140 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo(INTERRUPTION_FILTER_ALL); in setPolicy_withAllChannelsAllowed_setsInterruptionFilterAll()155 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo(INTERRUPTION_FILTER_ALL); in setPolicy_priorityToAllChannelsAndBack_restoresOldPolicy()163 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo( in setPolicy_priorityToAllChannelsAndBack_restoresOldPolicy()166 assertThat(zenMode.getRule().getZenPolicy()).isEqualTo(ZEN_POLICY); in setPolicy_priorityToAllChannelsAndBack_restoresOldPolicy()177 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo(INTERRUPTION_FILTER_ALL); in setPolicy_alarmsOnlyToAllChannelsAndBack_restoresPolicySimilarToAlarmsOnly()189 assertThat(zenMode.getRule().getInterruptionFilter()).isEqualTo( in setPolicy_alarmsOnlyToAllChannelsAndBack_restoresPolicySimilarToAlarmsOnly()192 assertThat(zenMode.getRule().getZenPolicy()).isEqualTo(alarmsOnlyLikePolicy); in setPolicy_alarmsOnlyToAllChannelsAndBack_restoresPolicySimilarToAlarmsOnly()
123 zenMode.getRule().setEnabled(true); in testUpdateState()147 assertThat(captor.getValue().getRule().isEnabled()).isTrue(); in testOnPreferenceChange()164 verify(mPreference).setSummary(mode.getRule().getTriggerDescription()); in testRuleLink_calendar()189 verify(mPreference).setSummary(mode.getRule().getTriggerDescription()); in testRuleLink_schedule()
106 assertThat(captor.getValue().getRule().getDeviceEffects().shouldDisplayGrayscale()) in testOnPreferenceChange_grayscale()153 assertThat(captor.getValue().getRule().getDeviceEffects().shouldSuppressAmbientDisplay()) in testOnPreferenceChange_aod()202 assertThat(captor.getValue().getRule().getDeviceEffects().shouldDimWallpaper()).isFalse(); in testOnPreferenceChange_wallpaper()250 assertThat(captor.getValue().getRule().getDeviceEffects().shouldUseNightMode()).isFalse(); in testOnPreferenceChange_darkTheme()
79 mode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(scheduleInfo)); in testUpdateState()108 captor.getValue().getRule().getConditionId()); in testOnPreferenceChange()
102 assertThat(out.getRule().getConditionId()).isEqualTo( in updateEventMode_updatesConditionAndTriggerDescription()104 assertThat(out.getRule().getTriggerDescription()).isEqualTo("My events"); in updateEventMode_updatesConditionAndTriggerDescription()
93 assertThat(out.getRule().getConditionId()) in updateScheduleRule_updatesConditionAndTriggerDescription()95 assertThat(out.getRule().getTriggerDescription()).isNotEmpty(); in updateScheduleRule_updatesConditionAndTriggerDescription()
254 assertThat(captor.getValue().getRule().getInterruptionFilter()) in testPreferenceClick_passesCorrectCheckedState_All()294 assertThat(captor.getValue().getRule().getInterruptionFilter()) in testPreferenceClick_passesCorrectCheckedState_None()332 assertThat(captor.getValue().getRule().getInterruptionFilter()) in testPreferenceClick_passesCorrectCheckedState_Priority()
93 assertThat(captor.getValue().getRule().getIconResId()).isEqualTo(R.drawable.ic_android); in selectIcon_updatesMode()
62 ((PrimarySwitchPreference) switchPref).setChecked(zenMode.getRule().isEnabled()); in updateState()69 switch (zenMode.getRule().getType()) { in updateState()72 switchPref.setSummary(zenMode.getRule().getTriggerDescription()); in updateState()82 switchPref.setSummary(zenMode.getRule().getTriggerDescription()); in updateState()101 if (newEnabled != zenMode.getRule().isEnabled()) {102 zenMode.getRule().setEnabled(newEnabled);
96 return l.getRule().getName().compareTo(r.getRule().getName()); in getModes()197 mode.getRule().getDeviceEffects()); in updateMode()202 mNotificationManager.updateAutomaticZenRule(mode.getId(), mode.getRule(), in updateMode()223 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_TRUE, in activateMode()236 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_FALSE, in deactivateMode()
44 setTitle(mZenMode.getRule().getName()); in setZenMode()45 setSummary(mZenMode.getRule().getTriggerDescription()); in setZenMode()
40 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()50 mode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(mSchedule)); in onPreferenceChange()
38 return zenMode.getRule().isManualInvocationAllowed() && zenMode.getRule().isEnabled(); in isAvailable()
37 ZenDeviceEffects effects = zenMode.getRule().getDeviceEffects(); in updateState()78 zenMode.getRule().setDeviceEffects(updatedEffects.build()); in onPreferenceChange()
66 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()119 zenMode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(schedule)); in updateScheduleMode()121 zenMode.getRule().setTriggerDescription( in updateScheduleMode()
88 mEvent = ZenModeConfig.tryParseEventConditionId(zenMode.getRule().getConditionId()); in updateState()125 zenMode.getRule().setConditionId(ZenModeConfig.toEventConditionId(event)); in updateEventMode()127 zenMode.getRule().setTriggerDescription( in updateEventMode()
123 data.title = mode.getRule().getName(); in updateDynamicRawDataToIndex()
170 return mZenMode.getRule(); in getAZR()
74 mode.getRule().setIconResId(resId); in onIconSelected()
116 public AutomaticZenRule getRule() { in getRule() method in ZenMode
194 ZenDeviceEffects currEffects = zenMode.getRule().getDeviceEffects(); in getDisplayEffectsSummary()
75 ResourceLeakageDetector.getRule();
META-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
5634 Landroid/icu/util/AnnualTimeZoneRule;->getRule()Landroid/icu/util/DateTimeRule;6381 Landroid/icu/util/Holiday;->getRule()Landroid/icu/util/DateRule;