/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | Stopwatches.java | 120 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/ |
D | CountingTimerView.java | 331 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 …]
|
D | TimerReceiver.java | 312 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()
|
D | TimerView.java | 72 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/ |
D | Utils.java | 997 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/ |
D | InCallDateUtils.java | 18 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/ |
D | CallDetailHistoryAdapter.java | 151 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/ |
D | rpcperftest.cpp | 91 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/ |
D | MediaDetails.java | 176 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/ |
D | VoicemailPlaybackLayout.java | 371 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/ |
D | CalendarInstancesHelper.java | 237 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/ |
D | TimeBar.java | 252 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/ |
D | VideoModule.java | 756 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/ |
D | VideoCamera.java | 740 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/ |
D | VideoModule.java | 715 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()
|
D | PhotoModule.java | 1474 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/ |
D | ExifInterface.java | 1892 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/ |
D | ExifInterface.java | 1913 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/ |
D | ExifInterface.java | 1954 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/ |
D | ExifInterface.java | 1913 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/ |
D | CalendarSyncTestingBase.java | 322 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/ |
D | FileUtils.java | 1071 public static boolean waitFor(File file, int seconds) { in waitFor() argument 1077 if (timeout++ > seconds) { in waitFor()
|
/packages/providers/CalendarProvider/tests/ |
D | EMMA_README | 90 # give the device a couple of seconds to install the packages
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventHelper.java | 925 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/ |
D | FmRecordActivity.java | 90 mSeconds = (TextView) findViewById(R.id.seconds); in onCreate()
|