Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java130 private static final long SECOND = 1000; field in FormatterTest
131 private static final long MINUTE = 60 * SECOND;
151 Formatter.formatShortElapsedTime(mContext, 59 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime()
154 assertEquals("3 min", Formatter.formatShortElapsedTime(mContext, 2 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime()
157 Formatter.formatShortElapsedTime(mContext, 1 * MINUTE + 59 * SECOND + 999)); in testFormatShortElapsedTime()
159 assertEquals("59 sec", Formatter.formatShortElapsedTime(mContext, 59 * SECOND + 999)); in testFormatShortElapsedTime()
160 assertEquals("1 sec", Formatter.formatShortElapsedTime(mContext, 1 * SECOND)); in testFormatShortElapsedTime()
193 mContext, 59 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTimeRoundingUpToMinutes()
197 mContext, 2 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTimeRoundingUpToMinutes()
201 mContext, 1 * MINUTE + 59 * SECOND + 999)); in testFormatShortElapsedTimeRoundingUpToMinutes()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java69 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startToday()
95 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_endToday()
122 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startTomorrow()
150 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_endTomorrow()
215 now.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarm()
240 calNow.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarmInSchedule()
248 calAlarm.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarmInSchedule()
352 cal.set(Calendar.SECOND, 0); in testIsInSchedule_inScheduleOvernight()
370 cal.set(Calendar.SECOND, 0); in testIsInSchedule_inScheduleSingleDay()
387 cal.set(Calendar.SECOND, 0); in testIsInSchedule_notToday()
[all …]
DScheduleConditionProviderTest.java133 now.set(Calendar.SECOND, 59); in testEvaluateSubscription_noAlarmExit_beforeSchedule()
331 now.set(Calendar.SECOND, 0); in getNow()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java86 measureList.add(new Measure(seconds, MeasureUnit.SECOND)); in formatElapsedTime()
90 measureList.add(new Measure(0, withSeconds ? MeasureUnit.SECOND : MeasureUnit.MINUTE)); in formatElapsedTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DDuration.java37 SECOND(0x01), enumConstant
DResponseData.java259 data[6] = byteToBCD(mCalendar.get(java.util.Calendar.SECOND)); in format()
DValueParser.java92 TimeUnit timeUnit = TimeUnit.SECOND; in retrieveDuration()
/frameworks/base/core/java/android/text/format/
DFormatter.java268 new Measure(seconds, MeasureUnit.SECOND)); in formatShortElapsedTime()
270 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.java144 public static final int SECOND = 1; field in Time
261 case SECOND: in getActualMaximum()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java138 cal.add(Calendar.SECOND, sign*seconds); in addTo()
DRecurrenceProcessor.java277 iterator.getActualMaximum(Time.SECOND)); in filter()
779 freqField = Time.SECOND; in expand()
1074 case Time.SECOND: in expand()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java59 mCalendar.set(Calendar.SECOND, 0); in MonthDisplayHelper()
/frameworks/base/core/java/android/webkit/
DDateSorter.java128 c.set(Calendar.SECOND, 0); in beginningOfDay()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java125 calendar.set(Calendar.SECOND, 0); in offsetFromTodayMidnight()
/frameworks/base/cmds/incidentd/testdata/
Dkmsg.txt.gz
Dkmsg.txt41 ******************** [ START SECOND] ********************
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java118 calendar.set(Calendar.SECOND, timeOfDay.second); in parse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java104 c.set(Calendar.SECOND, second); in parse()
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java118 mCalendar.set(Calendar.SECOND, 0); in getTime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java205 calendar.set(Calendar.SECOND, 0); in roundToNextMinute()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java165 c.set(Calendar.SECOND, 0); in getSecondaryLabel()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java293 noon.set(Calendar.SECOND, 0); in calculateTwilightState()
/frameworks/base/core/java/android/widget/
DChronometer.java384 measures.add(new Measure(s, MeasureUnit.SECOND)); in formatDuration()

12