Searched refs:previousInstanceTime (Results 1 – 2 of 2) sorted by relevance
177 val previousInstanceTime = Calendar.getInstance(currentTime.timeZone) in getPreviousAlarmTime() constant178 previousInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getPreviousAlarmTime()179 previousInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getPreviousAlarmTime()180 previousInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getPreviousAlarmTime()181 previousInstanceTime[Calendar.HOUR_OF_DAY] = hour in getPreviousAlarmTime()182 previousInstanceTime[Calendar.MINUTE] = minutes in getPreviousAlarmTime()183 previousInstanceTime[Calendar.SECOND] = 0 in getPreviousAlarmTime()184 previousInstanceTime[Calendar.MILLISECOND] = 0 in getPreviousAlarmTime()186 val subtractDays = daysOfWeek.getDistanceToPreviousDay(previousInstanceTime) in getPreviousAlarmTime()188 previousInstanceTime.add(Calendar.DAY_OF_WEEK, -subtractDays) in getPreviousAlarmTime()[all …]
395 final Calendar previousInstanceTime = Calendar.getInstance(currentTime.getTimeZone());396 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));397 previousInstanceTime.set(Calendar.MONTH, currentTime.get(Calendar.MONTH));398 previousInstanceTime.set(Calendar.DAY_OF_MONTH, currentTime.get(Calendar.DAY_OF_MONTH));399 previousInstanceTime.set(Calendar.HOUR_OF_DAY, hour);400 previousInstanceTime.set(Calendar.MINUTE, minutes);401 previousInstanceTime.set(Calendar.SECOND, 0);402 previousInstanceTime.set(Calendar.MILLISECOND, 0);404 final int subtractDays = daysOfWeek.getDistanceToPreviousDay(previousInstanceTime);406 previousInstanceTime.add(Calendar.DAY_OF_WEEK, -subtractDays);[all …]