Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt176 val previousInstanceTime = Calendar.getInstance(currentTime.timeZone) in getPreviousAlarmTime() constant
177 previousInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getPreviousAlarmTime()
178 previousInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getPreviousAlarmTime()
179 previousInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getPreviousAlarmTime()
180 previousInstanceTime[Calendar.HOUR_OF_DAY] = hour in getPreviousAlarmTime()
181 previousInstanceTime[Calendar.MINUTE] = minutes in getPreviousAlarmTime()
182 previousInstanceTime[Calendar.SECOND] = 0 in getPreviousAlarmTime()
183 previousInstanceTime[Calendar.MILLISECOND] = 0 in getPreviousAlarmTime()
185 val subtractDays = daysOfWeek.getDistanceToPreviousDay(previousInstanceTime) in getPreviousAlarmTime()
187 previousInstanceTime.add(Calendar.DAY_OF_WEEK, -subtractDays) in getPreviousAlarmTime()
[all …]