Home
last modified time | relevance | path

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

/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java33 public int days; field in Duration
51 days = 0; in parse()
116 days = n; in parse()
135 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
148 + (24*60*60*days) in getMillis()
DRecurrenceProcessor.java496 int days = 0; in generateDaysList() local
538 days |= 1 << j; in generateDaysList()
549 days |= 1 << j; in generateDaysList()
565 days |= 1 << j; in generateDaysList()
583 days |= 1 << v; in generateDaysList()
587 days |= 1 << j; in generateDaysList()
596 if ((days&(1<<j)) != 0) { in generateDaysList()
602 days &= ~(1<<j); in generateDaysList()
609 return days; in generateDaysList()
762 DaySet days = mDays; in expand() local
[all …]
/frameworks/base/core/java/android/text/format/
DFormatter.java230 int days = 0, hours = 0, minutes = 0; in formatShortElapsedTime() local
232 days = (int)(secondsLong / SECONDS_PER_DAY); in formatShortElapsedTime()
233 secondsLong -= days * SECONDS_PER_DAY; in formatShortElapsedTime()
248 if (days >= 2 || (days > 0 && hours == 0)) { in formatShortElapsedTime()
249 days += (hours+12)/24; in formatShortElapsedTime()
250 return measureFormat.format(new Measure(days, MeasureUnit.DAY)); in formatShortElapsedTime()
251 } else if (days > 0) { in formatShortElapsedTime()
253 new Measure(days, MeasureUnit.DAY), in formatShortElapsedTime()
DRelativeDateTimeFormatter.java287 int days = Math.abs(DateUtilsBridge.dayDistance(timeCalendar, nowCalendar)); in getRelativeDateTimeString() local
295 if (days > 0 && minResolution < DAY_IN_MILLIS) { in getRelativeDateTimeString()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java51 mScheduleInfo.days = new int[] {1, 2, 3, 4, 5}; in setUp()
71 mScheduleInfo.days = new int[] {getTodayDay()}; in testGetNextChangeTime_startToday()
97 mScheduleInfo.days = new int[] {getTodayDay()}; in testGetNextChangeTime_endToday()
124 mScheduleInfo.days = new int[] {getTodayDay(), getTodayDay(1)}; in testGetNextChangeTime_startTomorrow()
152 mScheduleInfo.days = new int[] {getTodayDay(), getTodayDay(1)}; in testGetNextChangeTime_endTomorrow()
219 mScheduleInfo.days = new int[] {getTodayDay()}; in testShouldExitForAlarm_oldAlarm()
253 mScheduleInfo.days = new int[] {getTodayDay(), getTodayDay(1)}; in testShouldExitForAlarm_oldAlarmInSchedule()
354 mScheduleInfo.days = new int[] {getTodayDay()}; in testIsInSchedule_inScheduleOvernight()
372 mScheduleInfo.days = new int[] {getTodayDay()}; in testIsInSchedule_inScheduleSingleDay()
390 mScheduleInfo.days = new int[] {Calendar.FRIDAY, Calendar.SUNDAY}; in testIsInSchedule_notToday()
[all …]
DScheduleConditionProviderTest.java67 info.days = new int[] {1, 2, 4}; in testIsValidConditionId()
84 info.days = new int[] {Calendar.FRIDAY}; in testEvaluateSubscription_noAlarmExit_InSchedule()
108 info.days = new int[] {Calendar.FRIDAY}; in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
139 info.days = new int[] {Calendar.FRIDAY}; in testEvaluateSubscription_noAlarmExit_beforeSchedule()
162 info.days = new int[] {Calendar.FRIDAY}; in testEvaluateSubscription_noAlarmExit_endSchedule()
339 info.days = new int[] {Calendar.FRIDAY}; in getScheduleEndsInHour()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java27 int sign, int weeks, int days, int hours, in verifyDuration() argument
35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java61 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
63 days = seconds / SECONDS_PER_DAY; in formatElapsedTime()
64 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime()
76 if (days > 0) { in formatElapsedTime()
77 measureList.add(new Measure(days, MeasureUnit.DAY)); in formatElapsedTime()
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java184 if (mSchedule != null && mSchedule.days != null) { in updateDays()
185 for (int i = 0; i < mSchedule.days.length; i++) { in updateDays()
186 mDays.add(mSchedule.days[i]); in updateDays()
191 private long addDays(long time, int days) { in addDays() argument
193 mCalendar.add(Calendar.DATE, days); in addDays()
DZenModeConfig.java446 private static String toDayList(int[] days) { in toDayList() argument
447 if (days == null || days.length == 0) return ""; in toDayList()
449 for (int i = 0; i < days.length; i++) { in toDayList()
451 sb.append(days[i]); in toDayList()
1135 if (schedule == null || schedule.days == null || schedule.days.length == 0) return null; in toScheduleCalendar()
1338 .appendQueryParameter("days", toDayList(schedule.days)) in toScheduleConditionId()
1353 if (info == null || info.days == null || info.days.length == 0) { in isValidScheduleConditionId()
1371 if (info == null || (!allowNever && (info.days == null || info.days.length == 0))) { in isValidScheduleConditionId()
1389 rt.days = tryParseDayList(conditionId.getQueryParameter("days"), "\\."); in tryParseScheduleConditionId()
1404 public int[] days; field in ZenModeConfig.ScheduleInfo
[all …]
/frameworks/base/core/java/android/util/
DTimeUtils.java242 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
245 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
246 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
260 int myLen = accumField(days, 1, false, 0); in formatDurationLocked()
277 pos = printFieldLocked(formatStr, days, 'd', pos, false, 0); in formatDurationLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h127 auto [days, dayRemainderMs] = std::div(timeMs, MS_PER_DAY); in getDateFormatFromMs()
133 days, hours, mins, sec, secRemainderMs); in getDateFormatFromMs()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1962 private List<Configuration> getRecentConfigurations(int days) {
1966 final long nDaysAgo = now - (days * 24 * 60 * 60 * 1000);
2244 int days = -1;
2252 days = Integer.parseInt(getNextArgRequired());
2253 if (days <= 0) {
2302 if (days >= 0) {
2303 final List<Configuration> recentConfigs = getRecentConfigurations(days);
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2091 final long days = duration; in formatDurationHMS() local
2094 if (days > 0) { in formatDurationHMS()
2095 sb.append(days); in formatDurationHMS()
/frameworks/base/core/java/android/os/
DBatteryStats.java3132 long days = seconds / (60 * 60 * 24); in formatTimeRaw() local
3133 if (days != 0) { in formatTimeRaw()
3134 out.append(days); in formatTimeRaw()
3137 long used = days * 60 * 60 * 24; in formatTimeRaw()
/frameworks/ml/nn/runtime/
DNOTICE641 non-compliance by some reasonable means prior to 60 days after You have
646 from such Contributor, and You become compliant prior to 30 days after
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt32443 Landroid/icu/util/UniversalTimeScale;->days:J
107216 Ljava/time/Period;->days:I