Searched refs:conditionId (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | ZenModeSettingsFooterPreferenceControllerTest.java | 200 when(mConfigWrapper.parseAutomaticRuleEndTime(rule.conditionId)).thenReturn(2000L); in testDefaultNotifPolicy_automaticRuleEndsLast_hasManualRule_setFooterTitle() 216 when(mConfigWrapper.parseAutomaticRuleEndTime(rule1.conditionId)).thenReturn(10000L); in testDefaultNotifPolicy_multipleAutomaticRules_autoRuleApp_setFooterTitle() 222 when(mConfigWrapper.parseAutomaticRuleEndTime(rule3.conditionId)).thenReturn(9000L); in testDefaultNotifPolicy_multipleAutomaticRules_autoRuleApp_setFooterTitle() 238 when(mConfigWrapper.parseAutomaticRuleEndTime(rule1.conditionId)).thenReturn(2000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle() 241 when(mConfigWrapper.parseAutomaticRuleEndTime(rule2.conditionId)).thenReturn(8000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle() 244 when(mConfigWrapper.parseAutomaticRuleEndTime(rule3.conditionId)).thenReturn(12000L); in testDefaultNotifPolicy_multipleAutomaticRules_setFooterTitle() 258 injectedManualRule.conditionId = null; in injectManualRuleWithIndefiniteEnd() 277 injectedManualRule.conditionId = mock(Uri.class); in injectManualRuleWithTimeCountdown() 278 when(mConfigWrapper.parseManualRuleTime(injectedManualRule.conditionId)).thenReturn(time); in injectManualRuleWithTimeCountdown() 290 injectedRule.conditionId = new Uri.Builder().authority(nameAndId).build(); // unique uri in injectNewAutomaticRule() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenRuleNameDialog.java | 55 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);
|
D | ZenModeSettingsFooterPreferenceController.java | 129 final Uri id = config.manualRule.conditionId; in getDefaultPolicyFooter() 158 if (!mZenModeConfigWrapper.isTimeRule(automaticRule.conditionId)) { in getDefaultPolicyFooter() 164 automaticRule.conditionId); in getDefaultPolicyFooter()
|
D | ZenModeBackend.java | 103 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, minutes, in setZenModeForDuration() local 106 conditionId, TAG); in setZenModeForDuration()
|
D | ZenModeBehaviorFooterPreferenceController.java | 64 final Uri id = config.manualRule.conditionId; in getFooterText()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRuleNameDialog.java | 55 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);
|
D | ZenModeSettingsFooterPreferenceController.java | 129 final Uri id = config.manualRule.conditionId; in getDefaultPolicyFooter() 158 if (!mZenModeConfigWrapper.isTimeRule(automaticRule.conditionId)) { in getDefaultPolicyFooter() 164 automaticRule.conditionId); in getDefaultPolicyFooter()
|
D | ZenModeBackend.java | 103 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, minutes, in setZenModeForDuration() local 106 conditionId, TAG); in setZenModeForDuration()
|
D | ZenModeBehaviorFooterPreferenceController.java | 64 final Uri id = config.manualRule.conditionId; in getFooterText()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowNotificationManager.java | 37 protected void setZenMode(int mode, Uri conditionId, String reason) { in setZenMode() argument
|