Home
last modified time | relevance | path

Searched refs:getConditionId (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRulePreference.java117 rule.getConditionId(), true); in setAttributes()
118 final boolean isEvent = ZenModeConfig.isValidEventConditionId(rule.getConditionId()); in setAttributes()
153 ZenModeConfig.tryParseScheduleConditionId(rule.getConditionId()); in computeRuleSummary()
163 ZenModeConfig.tryParseEventConditionId(rule.getConditionId()); in computeRuleSummary()
DZenAutomaticRuleHeaderPreferenceController.java88 if (ZenModeConfig.isValidScheduleConditionId(mRule.getConditionId())) { in getIcon()
90 } else if (ZenModeConfig.isValidEventConditionId(mRule.getConditionId())) { in getIcon()
DZenModeBackend.java558 final int type = ZenModeConfig.isValidScheduleConditionId(rule.getConditionId())
559 ? 1 : ZenModeConfig.isValidEventConditionId(rule.getConditionId())
DZenModeEventRuleSettings.java62 mEvent = rule != null ? ZenModeConfig.tryParseEventConditionId(rule.getConditionId()) in setRule()
DZenModeScheduleRuleSettings.java71 mSchedule = rule != null ? ZenModeConfig.tryParseScheduleConditionId(rule.getConditionId()) in setRule()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardController.java89 mConditionManager.onPrimaryClick(mContext, card.getConditionId()); in onPrimaryClick()
95 mConditionManager.onActionClick(card.getConditionId()); in onActionClick()
DConditionalContextualCard.java51 public long getConditionId() { in getConditionId() method in ConditionalContextualCard
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModesBackendTest.java121 zenRule.condition = new Condition(rule.getConditionId(), "", in configWithRule()
324 eq(new Condition(ZEN_RULE.getConditionId(), "", Condition.STATE_TRUE, in activateMode_zenRule_setsRuleStateActive()
347 eq(new Condition(ZEN_RULE.getConditionId(), "", Condition.STATE_FALSE, in deactivateMode_zenRule_setsRuleStateInactive()
DZenModeExitAtAlarmPreferenceControllerTest.java108 captor.getValue().getRule().getConditionId()); in testOnPreferenceChange()
DZenModeSetCalendarPreferenceControllerTest.java102 assertThat(out.getRule().getConditionId()).isEqualTo( in updateEventMode_updatesConditionAndTriggerDescription()
DZenModeSetSchedulePreferenceControllerTest.java93 assertThat(out.getRule().getConditionId()) in updateScheduleRule_updatesConditionAndTriggerDescription()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModeExitAtAlarmPreferenceController.java40 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()
DZenModesBackend.java223 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_TRUE, in activateMode()
236 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_FALSE, in deactivateMode()
DZenModeSetSchedulePreferenceController.java66 mSchedule = ZenModeConfig.tryParseScheduleConditionId(zenMode.getRule().getConditionId()); in updateState()
DZenModeSetCalendarPreferenceController.java88 mEvent = ZenModeConfig.tryParseEventConditionId(zenMode.getRule().getConditionId()); in updateState()
/packages/modules/StatsD/statsd/src/condition/
DConditionTracker.h132 inline int64_t getConditionId() const { in getConditionId() function
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeScheduleRuleSettingsTest.java125 assertThat(updatedRuleCaptor.getValue().getConditionId()) in updateScheduleRule_updatesConditionAndTriggerDescription()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp808 ASSERT_EQ(oldConditionTrackers[0]->getConditionId(), simple1Id); in TEST_F()
923 EXPECT_EQ(newConditionTrackers[simple1Index]->getConditionId(), simple1Id); in TEST_F()
926 EXPECT_EQ(newConditionTrackers[simple2Index]->getConditionId(), simple2Id); in TEST_F()
929 EXPECT_EQ(newConditionTrackers[simple3Index]->getConditionId(), simple3Id); in TEST_F()
932 EXPECT_EQ(newConditionTrackers[combination1Index]->getConditionId(), combination1Id); in TEST_F()
935 EXPECT_EQ(newConditionTrackers[combination2Index]->getConditionId(), combination2Id); in TEST_F()
938 EXPECT_EQ(newConditionTrackers[combination4Index]->getConditionId(), combination4Id); in TEST_F()
Dmetrics_manager_util_test.cpp1480 EXPECT_EQ(tracker->getConditionId(), id); in TEST_F()
1508 EXPECT_EQ(tracker->getConditionId(), id); in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dconfig_update_utils.cpp431 (long long)newConditionTrackers[conditionIndex]->getConditionId()); in updateConditions()