Home
last modified time | relevance | path

Searched refs:SECOND (Results 1 – 25 of 42) 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.java254 data[6] = byteToBCD(mCalendar.get(java.util.Calendar.SECOND)); in format()
DValueParser.java90 TimeUnit timeUnit = TimeUnit.SECOND; in retrieveDuration()
/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/text/format/
DFormatter.java268 new Measure(seconds, MeasureUnit.SECOND)); in formatShortElapsedTime()
270 return measureFormat.format(new Measure(seconds, MeasureUnit.SECOND)); in formatShortElapsedTime()
DTime.java145 public static final int SECOND = 1; field in Time
262 case SECOND: in getActualMaximum()
/frameworks/base/core/java/android/webkit/
DDateSorter.java128 c.set(Calendar.SECOND, 0); in beginningOfDay()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java59 mCalendar.set(Calendar.SECOND, 0); in MonthDisplayHelper()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java116 calendar.set(Calendar.SECOND, 0); in tomorrowMidnight()
/frameworks/base/cmds/incidentd/testdata/
Dkmsg.txt41 ******************** [ START SECOND] ********************
Dkmsg.txt.gz1[0] bldr_log_init: bldr_log_base=0x83600000, bldr_log_size=458752 2B - 626409 - ...
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java105 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.java202 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.java292 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/obex/javax/obex/
DObexHelper.java279 temp.set(Calendar.SECOND, Integer.parseInt(dateString in updateHeaderSet()
488 temp = dateHeader.get(Calendar.SECOND); in createHeader()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java319 c.get(Calendar.SECOND)); in toUTCString()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java438 date.set(java.util.Calendar.SECOND, 0); in getMidnightTimestamp()

12