Home
last modified time | relevance | path

Searched refs:getRule (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeTest.java51 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()
DZenModeSetTriggerLinkPreferenceControllerTest.java123 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()
DZenModeDisplayEffectPreferenceControllerTest.java106 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()
DZenModeExitAtAlarmPreferenceControllerTest.java79 mode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(scheduleInfo)); in testUpdateState()
108 captor.getValue().getRule().getConditionId()); in testOnPreferenceChange()
DZenModeSetCalendarPreferenceControllerTest.java102 assertThat(out.getRule().getConditionId()).isEqualTo( in updateEventMode_updatesConditionAndTriggerDescription()
104 assertThat(out.getRule().getTriggerDescription()).isEqualTo("My events"); in updateEventMode_updatesConditionAndTriggerDescription()
DZenModeSetSchedulePreferenceControllerTest.java93 assertThat(out.getRule().getConditionId()) in updateScheduleRule_updatesConditionAndTriggerDescription()
95 assertThat(out.getRule().getTriggerDescription()).isNotEmpty(); in updateScheduleRule_updatesConditionAndTriggerDescription()
DZenModeAppsPreferenceControllerTest.java254 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()
DZenModeIconPickerListPreferenceControllerTest.java93 assertThat(captor.getValue().getRule().getIconResId()).isEqualTo(R.drawable.ic_android); in selectIcon_updatesMode()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModeSetTriggerLinkPreferenceController.java62 ((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);
DZenModesBackend.java96 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()
DZenModesListItemPreference.java44 setTitle(mZenMode.getRule().getName()); in setZenMode()
45 setSummary(mZenMode.getRule().getTriggerDescription()); in setZenMode()
DZenModeExitAtAlarmPreferenceController.java40 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()
50 mode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(mSchedule)); in onPreferenceChange()
DZenModeButtonPreferenceController.java38 return zenMode.getRule().isManualInvocationAllowed() && zenMode.getRule().isEnabled(); in isAvailable()
DZenModeDisplayEffectPreferenceController.java37 ZenDeviceEffects effects = zenMode.getRule().getDeviceEffects(); in updateState()
78 zenMode.getRule().setDeviceEffects(updatedEffects.build()); in onPreferenceChange()
DZenModeSetSchedulePreferenceController.java66 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()
119 zenMode.getRule().setConditionId(ZenModeConfig.toScheduleConditionId(schedule)); in updateScheduleMode()
121 zenMode.getRule().setTriggerDescription( in updateScheduleMode()
DZenModeSetCalendarPreferenceController.java88 mEvent = ZenModeConfig.tryParseEventConditionId(zenMode.getRule().getConditionId()); in updateState()
125 zenMode.getRule().setConditionId(ZenModeConfig.toEventConditionId(event)); in updateEventMode()
127 zenMode.getRule().setTriggerDescription( in updateEventMode()
DZenModesListPreferenceController.java123 data.title = mode.getRule().getName(); in updateDynamicRawDataToIndex()
DZenModeFragmentBase.java170 return mZenMode.getRule(); in getAZR()
DZenModeIconPickerListPreferenceController.java74 mode.getRule().setIconResId(resId); in onIconSelected()
DZenMode.java116 public AutomaticZenRule getRule() { in getRule() method in ZenMode
DZenModeSummaryHelper.java194 ZenDeviceEffects currEffects = zenMode.getRule().getDeviceEffects(); in getDisplayEffectsSummary()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java75 ResourceLeakageDetector.getRule();
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-api-services-storage-v1-rev158-1.25.0.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt5634 Landroid/icu/util/AnnualTimeZoneRule;->getRule()Landroid/icu/util/DateTimeRule;
6381 Landroid/icu/util/Holiday;->getRule()Landroid/icu/util/DateRule;