Home
last modified time | relevance | path

Searched refs:conditionId (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeSettingsFooterPreferenceControllerTest.java201 when(mConfigWrapper.parseAutomaticRuleEndTime(rule.conditionId)).thenReturn(2000L); in testDefaultNotifPolicy_automaticRuleEndsLast_hasManualRule_setFooterTitle()
217 when(mConfigWrapper.parseAutomaticRuleEndTime(rule1.conditionId)).thenReturn(10000L); in testDefaultNotifPolicy_multipleAutomaticRules_autoRuleApp_setFooterTitle()
223 when(mConfigWrapper.parseAutomaticRuleEndTime(rule3.conditionId)).thenReturn(9000L); in testDefaultNotifPolicy_multipleAutomaticRules_autoRuleApp_setFooterTitle()
239 when(mConfigWrapper.parseAutomaticRuleEndTime(rule1.conditionId)).thenReturn(2000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle()
242 when(mConfigWrapper.parseAutomaticRuleEndTime(rule2.conditionId)).thenReturn(8000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle()
245 when(mConfigWrapper.parseAutomaticRuleEndTime(rule3.conditionId)).thenReturn(12000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle()
259 injectedManualRule.conditionId = null; in injectManualRuleWithIndefiniteEnd()
278 injectedManualRule.conditionId = mock(Uri.class); in injectManualRuleWithTimeCountdown()
279 when(mConfigWrapper.parseManualRuleTime(injectedManualRule.conditionId)).thenReturn(time); in injectManualRuleWithTimeCountdown()
291 injectedRule.conditionId = new Uri.Builder().authority(nameAndId).build(); // unique uri in injectNewAutomaticRule()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleNameDialog.java55 public static void show(Fragment parent, String ruleName, Uri conditionId, PositiveClickListener in show() argument
59 args.putParcelable(EXTRA_CONDITION_ID, conditionId); in show()
71 Uri conditionId = arguments.getParcelable(EXTRA_CONDITION_ID); in onCreateDialog() local
88 .setTitle(getTitleResource(conditionId, isNew)) in onCreateDialog()
113 private int getTitleResource(Uri conditionId, boolean isNew) {
114 final boolean isEvent = ZenModeConfig.isValidEventConditionId(conditionId);
115 final boolean isTime = ZenModeConfig.isValidScheduleConditionId(conditionId);
DZenModeSettingsFooterPreferenceController.java129 final Uri id = config.manualRule.conditionId; in getDefaultPolicyFooter()
158 if (!mZenModeConfigWrapper.isTimeRule(automaticRule.conditionId)) { in getDefaultPolicyFooter()
164 automaticRule.conditionId); in getDefaultPolicyFooter()
DZenModeBehaviorFooterPreferenceController.java64 final Uri id = config.manualRule.conditionId; in getFooterText()
DZenModeBackend.java107 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, minutes, in setZenModeForDuration() local
110 conditionId, TAG); in setZenModeForDuration()
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DCountMetricsTests.java76 int conditionId = 4; in testEventCountWithCondition() local
92 .setId(conditionId) in testEventCountWithCondition()
100 .setCondition(conditionId)) in testEventCountWithCondition()
136 int conditionId = 4; in testEventCountWithConditionAndActivation() local
159 .setId(conditionId) in testEventCountWithConditionAndActivation()
167 .setCondition(conditionId) in testEventCountWithConditionAndActivation()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowNotificationManager.java37 protected void setZenMode(int mode, Uri conditionId, String reason) { in setZenMode() argument
/packages/modules/StatsD/statsd/benchmark/
Dget_dimensions_for_condition_benchmark.cpp47 link->conditionId = 1; in createLogEventAndLink()
/packages/modules/StatsD/statsd/src/
DHashableDimensionKey.h42 int64_t conditionId; member
/packages/modules/StatsD/statsd/src/metrics/
DEventMetricProducer.cpp71 mc.conditionId = link.condition(); in EventMetricProducer()
DDurationMetricProducer.cpp125 mc.conditionId = link.condition(); in DurationMetricProducer()
764 getDimensionForCondition(values, link, &conditionKey[link.conditionId]); in handleMatchedLogEventValuesLocked()
DMetricProducer.cpp123 getDimensionForCondition(event.getValues(), link, &conditionKey[link.conditionId]); in onMatchedLogEventLocked()
DCountMetricProducer.cpp98 mc.conditionId = link.condition(); in CountMetricProducer()
DGaugeMetricProducer.cpp128 mc.conditionId = link.condition();
DValueMetricProducer.cpp142 mc.conditionId = link.condition(); in ValueMetricProducer()