Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatches.java120 long hundreds, seconds, minutes, hours; in getTimeText() local
121 seconds = time / 1000; in getTimeText()
122 hundreds = (time - seconds * 1000) / 10; in getTimeText()
123 minutes = seconds / 60; in getTimeText()
124 seconds = seconds - minutes * 60; in getTimeText()
139 seconds, hundreds, decimalSeparator, lap); in getTimeText()
150 long hundreds, seconds, minutes, hours; in formatTimeText() local
151 seconds = time / 1000; in formatTimeText()
152 hundreds = (time - seconds * 1000) / 10; in formatTimeText()
153 minutes = seconds / 60; in formatTimeText()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java331 long hundreds, seconds, minutes, hours; in setTime() local
332 seconds = time / 1000; in setTime()
333 hundreds = (time - seconds * 1000) / 10; in setTime()
334 minutes = seconds / 60; in setTime()
335 seconds = seconds - minutes * 60; in setTime()
345 if (hours == 0 && minutes == 0 && seconds == 0) { in setTime()
352 seconds++; in setTime()
353 if (seconds == 60) { in setTime()
354 seconds = 0; in setTime()
388 mSeconds = String.format(TWO_DIGITS, seconds); in setTime()
[all …]
DTimerReceiver.java312 long seconds = timeUntilBroadcast / 1000; in getBroadcastTime() local
313 seconds = seconds - ( (seconds / 60) * 60 ); in getBroadcastTime()
314 return now + (seconds * 1000); in getBroadcastTime()
373 long seconds, minutes, hours; in buildTimeRemaining() local
374 seconds = timeLeft / 1000; in buildTimeRemaining()
375 minutes = seconds / 60; in buildTimeRemaining()
DTimerView.java72 mSeconds = (TextView) findViewById(R.id.seconds); in onFinishInflate()
104 int minutesOnesDigit, int seconds) { in setTime() argument
141 mSeconds.setText(String.format("%02d", seconds)); in setTime()
/packages/apps/Settings/src/com/android/settings/
DUtils.java997 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime() local
1000 seconds += 30; in formatElapsedTime()
1004 if (seconds >= SECONDS_PER_DAY) { in formatElapsedTime()
1005 days = seconds / SECONDS_PER_DAY; in formatElapsedTime()
1006 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime()
1008 if (seconds >= SECONDS_PER_HOUR) { in formatElapsedTime()
1009 hours = seconds / SECONDS_PER_HOUR; in formatElapsedTime()
1010 seconds -= hours * SECONDS_PER_HOUR; in formatElapsedTime()
1012 if (seconds >= SECONDS_PER_MINUTE) { in formatElapsedTime()
1013 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DInCallDateUtils.java18 int seconds = 0; in formatDuration() local
28 seconds = elapsedSeconds; in formatDuration()
42 if (seconds > 0) { in formatDuration()
46 … duration.append(res.getQuantityString(R.plurals.duration_seconds, seconds, seconds)); in formatDuration()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallDetailHistoryAdapter.java151 long seconds = 0; in formatDuration() local
156 seconds = elapsedSeconds; in formatDuration()
157 return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds); in formatDuration()
159 seconds = elapsedSeconds; in formatDuration()
160 return mContext.getString(R.string.callDetailsShortDurationFormat, seconds); in formatDuration()
/packages/experimental/RpcPerformance/
Drpcperftest.cpp91 double seconds = (after.tv_sec - before.tv_sec); in main() local
92 seconds += (after.tv_nsec - before.tv_nsec) / 1000000000.0; in main()
94 COUNT, seconds, 1000.0 * seconds / COUNT); in main()
/packages/apps/Camera2/src/com/android/camera/data/
DMediaDetails.java176 public static String formatDuration(final Context context, long seconds) { in formatDuration() argument
177 long h = seconds / 3600; in formatDuration()
178 long m = (seconds - h * 3600) / 60; in formatDuration()
179 long s = seconds - (h * 3600 + m * 60); in formatDuration()
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackLayout.java371 int seconds = millis / 1000; in formatAsMinutesAndSeconds() local
372 int minutes = seconds / 60; in formatAsMinutesAndSeconds()
373 seconds -= minutes * 60; in formatAsMinutesAndSeconds()
377 return String.format("%02d:%02d", minutes, seconds); in formatAsMinutesAndSeconds()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java237 duration.seconds = 0; in performInstanceExpansion()
308 duration.seconds = 0; in performInstanceExpansion()
320 duration.seconds = (int) ((dtendMillis - dtstartMillis) / 1000); in performInstanceExpansion()
321 durationStr = "+P" + duration.seconds + "S"; in performInstanceExpansion()
323 duration.seconds = 0; in performInstanceExpansion()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTimeBar.java252 int seconds = totalSeconds % 60; in stringForTime() local
256 return String.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
258 return String.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java756 int seconds = in readVideoPreferences() local
758 mMaxVideoDurationInMs = 1000 * seconds; in readVideoPreferences()
1557 long seconds = milliSeconds / 1000; // round down to compute seconds in millisecondToTimeString() local
1558 long minutes = seconds / 60; in millisecondToTimeString()
1561 long remainderSeconds = seconds - (minutes * 60); in millisecondToTimeString()
1591 long remainderCentiSeconds = (milliSeconds - seconds * 1000) / 10; in millisecondToTimeString()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java740 int seconds = in readVideoPreferences() local
742 mMaxVideoDurationInMs = 1000 * seconds; in readVideoPreferences()
1775 long seconds = milliSeconds / 1000; // round down to compute seconds in millisecondToTimeString() local
1776 long minutes = seconds / 60; in millisecondToTimeString()
1779 long remainderSeconds = seconds - (minutes * 60); in millisecondToTimeString()
1809 long remainderCentiSeconds = (milliSeconds - seconds * 1000) / 10; in millisecondToTimeString()
/packages/apps/Camera/src/com/android/camera/
DVideoModule.java715 int seconds = in readVideoPreferences() local
717 mMaxVideoDurationInMs = 1000 * seconds; in readVideoPreferences()
1797 long seconds = milliSeconds / 1000; // round down to compute seconds in millisecondToTimeString() local
1798 long minutes = seconds / 60; in millisecondToTimeString()
1801 long remainderSeconds = seconds - (minutes * 60); in millisecondToTimeString()
1831 long remainderCentiSeconds = (milliSeconds - seconds * 1000) / 10; in millisecondToTimeString()
DPhotoModule.java1474 int seconds = Integer.parseInt(timer); in onShutterButtonClick() local
1479 mCountDownView.startCountDown(seconds, playSound); in onShutterButtonClick()
1480 } else if (seconds > 0) { in onShutterButtonClick()
1481 mCountDownView.startCountDown(seconds, playSound); in onShutterButtonClick()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java1892 double seconds = coordinate[2].toDouble(); in convertLatOrLongToDouble() local
1893 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble()
2016 int seconds = (int) value; in toExifLatLong() local
2018 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100) in toExifLatLong()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java1913 double seconds = coordinate[2].toDouble(); in convertLatOrLongToDouble() local
1914 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble()
2037 int seconds = (int) value; in toExifLatLong() local
2039 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100) in toExifLatLong()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java1954 double seconds = coordinate[2].toDouble(); in convertLatOrLongToDouble() local
1955 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble()
2078 int seconds = (int) value; in toExifLatLong() local
2080 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100) in toExifLatLong()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
DExifInterface.java1913 double seconds = coordinate[2].toDouble(); in convertLatOrLongToDouble() local
1914 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble()
2037 int seconds = (int) value; in toExifLatLong() local
2039 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100) in toExifLatLong()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarSyncTestingBase.java322 long seconds = (mDtend - mDtstart) / DateUtils.SECOND_IN_MILLIS; in init() local
323 mDuration = "P" + seconds + "S"; in init()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileUtils.java1071 public static boolean waitFor(File file, int seconds) { in waitFor() argument
1077 if (timeout++ > seconds) { in waitFor()
/packages/providers/CalendarProvider/tests/
DEMMA_README90 # give the device a couple of seconds to install the packages
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java925 long seconds = (end - start) / DateUtils.SECOND_IN_MILLIS; in addRecurrenceRule() local
926 duration = "P" + seconds + "S"; in addRecurrenceRule()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmRecordActivity.java90 mSeconds = (TextView) findViewById(R.id.seconds); in onCreate()

12