Searched refs:scheduleInfo (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SystemZenRulesTest.java | 132 ScheduleInfo scheduleInfo = new ScheduleInfo(); in getTriggerDescriptionForScheduleTime_noOrSingleDays() local 133 scheduleInfo.startHour = 10; in getTriggerDescriptionForScheduleTime_noOrSingleDays() 134 scheduleInfo.endHour = 16; in getTriggerDescriptionForScheduleTime_noOrSingleDays() 137 scheduleInfo.days = new int[]{}; in getTriggerDescriptionForScheduleTime_noOrSingleDays() 138 assertThat(getTriggerDescriptionForScheduleTime(mContext, scheduleInfo)).isNull(); in getTriggerDescriptionForScheduleTime_noOrSingleDays() 141 scheduleInfo.days = new int[]{Calendar.SUNDAY}; in getTriggerDescriptionForScheduleTime_noOrSingleDays() 142 assertThat(getTriggerDescriptionForScheduleTime(mContext, scheduleInfo)) in getTriggerDescriptionForScheduleTime_noOrSingleDays() 146 scheduleInfo.days = new int[]{Calendar.THURSDAY}; in getTriggerDescriptionForScheduleTime_noOrSingleDays() 147 assertThat(getTriggerDescriptionForScheduleTime(mContext, scheduleInfo)) in getTriggerDescriptionForScheduleTime_noOrSingleDays() 151 scheduleInfo.days = new int[]{Calendar.SATURDAY}; in getTriggerDescriptionForScheduleTime_noOrSingleDays() [all …]
|
D | ZenModeHelperTest.java | 2213 ScheduleInfo scheduleInfo = new ScheduleInfo(); in testUpdateDefaultAutoRule() local 2214 scheduleInfo.days = new int[] { Calendar.SUNDAY }; in testUpdateDefaultAutoRule() 2215 scheduleInfo.startHour = 18; in testUpdateDefaultAutoRule() 2216 scheduleInfo.endHour = 19; in testUpdateDefaultAutoRule() 2217 customDefaultRule.conditionId = ZenModeConfig.toScheduleConditionId(scheduleInfo); in testUpdateDefaultAutoRule() 2549 ScheduleInfo scheduleInfo = new ScheduleInfo(); in testRulesWithSameUri() local 2550 scheduleInfo.days = new int[]{1, 2}; in testRulesWithSameUri() 2551 scheduleInfo.endHour = 1; in testRulesWithSameUri() 2552 Uri sharedUri = ZenModeConfig.toScheduleConditionId(scheduleInfo); in testRulesWithSameUri()
|
/frameworks/base/packages/SettingsLib/SchedulesProvider/src/com/android/settingslib/schedulesprovider/ |
D | SchedulesProvider.java | 130 .anyMatch(scheduleInfo -> !scheduleInfo.isValid()); in dumpInvalidData() 137 .filter(scheduleInfo -> !scheduleInfo.isValid()) in dumpInvalidData() 138 .forEach(scheduleInfo -> Log.w(TAG, scheduleInfo.toString())); in dumpInvalidData()
|
/frameworks/base/core/java/android/service/notification/ |
D | SystemZenRules.java | 73 ScheduleInfo scheduleInfo = ZenModeConfig.tryParseScheduleConditionId(rule.conditionId); in upgradeSystemProviderRule() local 74 if (scheduleInfo != null) { in upgradeSystemProviderRule() 76 rule.triggerDescription = getTriggerDescriptionForScheduleTime(context, scheduleInfo); in upgradeSystemProviderRule() 95 ScheduleInfo scheduleInfo = ZenModeConfig.tryParseScheduleConditionId(rule.conditionId); in updateTriggerDescription() local 96 if (scheduleInfo != null) { in updateTriggerDescription() 98 getTriggerDescriptionForScheduleTime(context, scheduleInfo)); in updateTriggerDescription()
|
D | ZenModeConfig.java | 414 ScheduleInfo scheduleInfo = new ScheduleInfo(); in getDefaultConfig() local 415 scheduleInfo.days = new int[] {1, 2, 3, 4, 5, 6, 7}; in getDefaultConfig() 416 scheduleInfo.startHour = 22; in getDefaultConfig() 417 scheduleInfo.endHour = 7; in getDefaultConfig() 418 scheduleInfo.exitAtAlarm = true; in getDefaultConfig() 421 sleeping.conditionId = toScheduleConditionId(scheduleInfo); in getDefaultConfig()
|