/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | CountingTimerView.java | 329 long hundreds, seconds, minutes, hours; in setTime() local 330 seconds = time / 1000; in setTime() 331 hundreds = (time - seconds * 1000) / 10; in setTime() 332 minutes = seconds / 60; in setTime() 333 seconds = seconds - minutes * 60; in setTime() 343 if (hours == 0 && minutes == 0 && seconds == 0) { in setTime() 350 seconds++; in setTime() 351 if (seconds == 60) { in setTime() 352 seconds = 0; in setTime() 386 mSeconds = String.format(TWO_DIGITS, seconds); in setTime() [all …]
|
D | TimerView.java | 71 mSeconds = (TextView) findViewById(R.id.seconds); in onFinishInflate() 100 int minutesOnesDigit, int seconds) { in setTime() argument 141 mSeconds.setText(String.format("%02d", seconds)); in setTime()
|
D | TimerSetupView.java | 197 final int seconds = mInput[1] * 10 + mInput[0]; 198 final int totalSeconds = hoursInSeconds + minutesInSeconds + seconds; 229 final int seconds = mInput[1] * 10 + mInput[0]; 230 mEnteredTime.setTime(mInput[5], mInput[4], mInput[3], mInput[2], seconds);
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.java | 224 long hundredths, seconds, minutes, hours; in formatTime() local 225 seconds = time / 1000; in formatTime() 226 hundredths = (time - seconds * 1000) / 10; in formatTime() 227 minutes = seconds / 60; in formatTime() 228 seconds = seconds - minutes * 60; in formatTime() 236 minutes, separator, seconds, decimalSeparator, hundredths); in formatTime() 239 minutes, separator, seconds, decimalSeparator, hundredths); in formatTime() 242 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime() 245 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime() 249 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | InCallDateUtils.java | 20 int seconds = 0; in formatDuration() local 30 seconds = elapsedSeconds; in formatDuration() 44 if (seconds > 0) { in formatDuration() 48 … duration.append(res.getQuantityString(R.plurals.duration_seconds, seconds, 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/Dialer/src/com/android/dialer/calllog/ |
D | CallDetailHistoryAdapter.java | 133 long seconds = 0; in formatDuration() local 138 seconds = elapsedSeconds; in formatDuration() 139 return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds); in formatDuration() 141 seconds = elapsedSeconds; in formatDuration() 142 return mContext.getString(R.string.callDetailsShortDurationFormat, seconds); in formatDuration()
|
D | PhoneCallDetailsHelper.java | 349 long seconds = details.duration - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration() local 353 return mResources.getString(R.string.voicemailDurationFormat, minutes, seconds); in getVoicemailDuration()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 791 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime() local 794 seconds += 30; in formatElapsedTime() 798 if (seconds >= SECONDS_PER_DAY) { in formatElapsedTime() 799 days = seconds / SECONDS_PER_DAY; in formatElapsedTime() 800 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime() 802 if (seconds >= SECONDS_PER_HOUR) { in formatElapsedTime() 803 hours = seconds / SECONDS_PER_HOUR; in formatElapsedTime() 804 seconds -= hours * SECONDS_PER_HOUR; in formatElapsedTime() 806 if (seconds >= SECONDS_PER_MINUTE) { in formatElapsedTime() 807 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime() [all …]
|
/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/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/Dialer/src/com/android/dialer/voicemail/ |
D | VoicemailPlaybackLayout.java | 494 int seconds = millis / 1000; in formatAsMinutesAndSeconds() local 495 int minutes = seconds / 60; in formatAsMinutesAndSeconds() 496 seconds -= minutes * 60; in formatAsMinutesAndSeconds() 500 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()
|
D | CalendarDatabaseHelper.java | 2652 int seconds = Integer.parseInt(duration.substring(1, len - 1)); in upgradeToVersion69() local 2653 int days = (seconds + DAY_IN_SECONDS - 1) / DAY_IN_SECONDS; in upgradeToVersion69()
|
D | CalendarProvider2.java | 1579 int seconds = Integer.parseInt(duration.substring(1, len - 1)); in fixAllDayTime() local 1580 int days = (seconds + DAY_IN_SECONDS - 1) / DAY_IN_SECONDS; in fixAllDayTime()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | VideoModule.java | 756 int seconds = in readVideoPreferences() local 758 mMaxVideoDurationInMs = 1000 * seconds; in readVideoPreferences() 1566 long seconds = milliSeconds / 1000; // round down to compute seconds in millisecondToTimeString() local 1567 long minutes = seconds / 60; in millisecondToTimeString() 1570 long remainderSeconds = seconds - (minutes * 60); in millisecondToTimeString() 1600 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/providers/CalendarProvider/tests/ |
D | EMMA_README | 90 # give the device a couple of seconds to install the packages
|
/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/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/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/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/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/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 585 long seconds = (mDtend - mDtstart) / DateUtils.SECOND_IN_MILLIS; in init() local 586 mDuration = "P" + seconds + "S"; in init()
|