Home
last modified time | relevance | path

Searched refs:SECOND (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java70 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startToday()
96 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_endToday()
123 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startTomorrow()
151 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_endTomorrow()
201 expected.set(Calendar.SECOND, 0); in testGetNextChangeTime_startTomorrowInDaylight()
239 expected.set(Calendar.SECOND, 0); in testGetNextChangeTime_startTomorrowWhenTodayIsDaylight()
277 expected.set(Calendar.SECOND, 0); in testGetNextChangeTime_startTomorrowWhenTodayIsDaylightBackward()
329 now.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarm()
354 calNow.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarmInSchedule()
362 calAlarm.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarmInSchedule()
[all …]
DScheduleConditionProviderTest.java137 now.set(Calendar.SECOND, 59); in testEvaluateSubscription_noAlarmExit_beforeSchedule()
341 now.set(Calendar.SECOND, 0); in getNow()
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java132 private static final long SECOND = 1000; field in FormatterTest
133 private static final long MINUTE = 60 * SECOND;
153 Formatter.formatShortElapsedTime(mContext, 59 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime()
156 assertEquals("3 min", Formatter.formatShortElapsedTime(mContext, 2 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime()
159 Formatter.formatShortElapsedTime(mContext, 1 * MINUTE + 59 * SECOND + 999)); in testFormatShortElapsedTime()
161 assertEquals("59 sec", Formatter.formatShortElapsedTime(mContext, 59 * SECOND + 999)); in testFormatShortElapsedTime()
162 assertEquals("1 sec", Formatter.formatShortElapsedTime(mContext, 1 * SECOND)); in testFormatShortElapsedTime()
195 mContext, 59 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTimeRoundingUpToMinutes()
199 mContext, 2 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTimeRoundingUpToMinutes()
203 mContext, 1 * MINUTE + 59 * SECOND + 999)); in testFormatShortElapsedTimeRoundingUpToMinutes()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DTime.java44 public static final int SECOND = 1; field in Time
121 second = mCalendar.get(Calendar.SECOND); in readFieldsFromCalendar()
192 case SECOND: return Calendar.SECOND; in getCalendarField()
343 return mCalendar.get(Calendar.SECOND); in getSecond()
348 mCalendar.set(Calendar.SECOND, second); in setSecond()
DDuration.java138 cal.add(Calendar.SECOND, sign*seconds); in addTo()
DRecurrenceProcessor.java275 iterator.getActualMaximum(Time.SECOND)); in filter()
777 freqField = Time.SECOND; in expand()
1072 case Time.SECOND: in expand()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java93 measureList.add(new Measure(seconds, MeasureUnit.SECOND)); in formatElapsedTime()
97 measureList.add(new Measure(0, withSeconds ? MeasureUnit.SECOND : MeasureUnit.MINUTE)); in formatElapsedTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DDuration.java38 SECOND(0x01), enumConstant
DResponseData.java260 data[6] = byteToBCD(mCalendar.get(java.util.Calendar.SECOND)); in format()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsScheduler.java191 cal.set(Calendar.SECOND, 0); in alignToWallClock()
209 cal.set(Calendar.SECOND, 0); in alignToWallClock()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java126 calendar.set(Calendar.SECOND, 0); in offsetFromTodayMidnight()
/frameworks/base/core/java/android/webkit/
DDateSorter.java134 c.set(Calendar.SECOND, 0); in beginningOfDay()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java60 mCalendar.set(Calendar.SECOND, 0); in MonthDisplayHelper()
/frameworks/base/cmds/incidentd/testdata/
Dkmsg.txt41 ******************** [ START SECOND] ********************
Dkmsg.txt.gz
/frameworks/base/core/java/android/text/format/
DFormatter.java365 new Measure(seconds, MeasureUnit.SECOND)); in formatShortElapsedTime()
367 return measureFormat.format(new Measure(seconds, MeasureUnit.SECOND)); in formatShortElapsedTime()
DDateIntervalFormat.java123 && c.get(Calendar.SECOND) == 0 in isExactlyMidnight()
DDateUtilsBridge.java172 return c.get(Calendar.MINUTE) == 0 && c.get(Calendar.SECOND) == 0; in onTheHour()
DTime.java145 public static final int SECOND = 1; field in Time
262 case SECOND: in getActualMaximum()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java118 calendar.set(Calendar.SECOND, timeOfDay.second); in parse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java215 calendar.set(Calendar.SECOND, 0); in roundToNextMinute()
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java119 mCalendar.set(Calendar.SECOND, 0); in getTime()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java291 noon.set(Calendar.SECOND, 0); in calculateTwilightState()
/frameworks/base/core/java/android/widget/
DChronometer.java384 measures.add(new Measure(s, MeasureUnit.SECOND)); in formatDuration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java200 c.set(Calendar.SECOND, 0); in getSecondaryLabel()

12