Home
last modified time | relevance | path

Searched refs:minutes (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/java/android/text/format/
DFormatter.java230 int days = 0, hours = 0, minutes = 0; in formatShortElapsedTime() local
240 minutes = (int)(secondsLong / SECONDS_PER_MINUTE); in formatShortElapsedTime()
241 secondsLong -= minutes * SECONDS_PER_MINUTE; in formatShortElapsedTime()
255 } else if (hours >= 2 || (hours > 0 && minutes == 0)) { in formatShortElapsedTime()
256 hours += (minutes+30)/60; in formatShortElapsedTime()
261 new Measure(minutes, MeasureUnit.MINUTE)); in formatShortElapsedTime()
262 } else if (minutes >= 2 || (minutes > 0 && seconds == 0)) { in formatShortElapsedTime()
263 minutes += (seconds+30)/60; in formatShortElapsedTime()
264 return measureFormat.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatShortElapsedTime()
265 } else if (minutes > 0) { in formatShortElapsedTime()
[all …]
DDateUtils.java418 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration() local
419 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()
446 long minutes = 0; in formatElapsedTime() local
453 minutes = elapsedSeconds / 60; in formatElapsedTime()
454 elapsedSeconds -= minutes * 60; in formatElapsedTime()
472 return f.format(sElapsedFormatHMMSS, hours, minutes, seconds).toString(); in formatElapsedTime()
474 return f.format(sElapsedFormatMMSS, minutes, seconds).toString(); in formatElapsedTime()
DDateFormat.java622 int minutes = (offset % 3600) / 60; in formatZoneOffset() local
625 tb.append(zeroPad(minutes, 2)); in formatZoneOffset()
DTime.java931 int minutes = (offset % 3600) / 60; in format3339() local
934 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes); in format3339()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java35 public int minutes; field in Duration
53 minutes = 0; in parse()
108 minutes = n; in parse()
137 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
150 + (60*minutes) in getMillis()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java61 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
71 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime()
72 seconds -= minutes * SECONDS_PER_MINUTE; in formatElapsedTime()
82 if (minutes > 0) { in formatElapsedTime()
83 measureList.add(new Measure(minutes, MeasureUnit.MINUTE)); in formatElapsedTime()
101 final TtsSpan ttsSpan = new TtsSpan.MeasureBuilder().setNumber(minutes) in formatElapsedTime()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java28 int minutes, int seconds) throws DateException { in verifyDuration() argument
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); in verifyDuration()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.cpp39 int minutes = (ms % 3600000) / 60000; in getElapsedTime() local
43 oss << std::setfill('0') << std::setw(2) << hour << ":" << std::setw(2) << minutes << ":" in getElapsedTime()
/frameworks/base/core/java/android/widget/
DTextInputTimePickerView.java250 final int minutes = Integer.parseInt(input); in parseAndSetMinuteInternal() local
251 if (minutes < 0 || minutes > 59) { in parseAndSetMinuteInternal()
252 mListener.onValueChanged(MINUTES, MathUtils.constrain(minutes, 0, 59)); in parseAndSetMinuteInternal()
255 mListener.onValueChanged(MINUTES, minutes); in parseAndSetMinuteInternal()
DMediaController.java443 int minutes = (totalSeconds / 60) % 60; in stringForTime() local
448 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
450 return mFormatter.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
DTimePickerClockDelegate.java159 mMinuteView = (NumericTextView) mainView.findViewById(R.id.minutes); in TimePickerClockDelegate()
1034 case R.id.minutes:
1062 case R.id.minutes:
/frameworks/base/core/java/android/util/
DTimeUtils.java242 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
253 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
254 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
262 myLen += accumField(minutes, 1, myLen > 0, 2); in formatDurationLocked()
279 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java116 double minutes = Double.parseDouble(loc5b); in testLocationConversions() local
117 Log.i(LOG_TAG, "minutes = " + minutes); in testLocationConversions()
118 assertTrue(Math.abs(minutes - 0.5) < 0.0001); in testLocationConversions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSnooze.java250 private SnoozeOption createOption(int minutes, int accessibilityActionId) { in createOption() argument
252 boolean showInHours = minutes >= 60; in createOption()
256 int count = showInHours ? (minutes / 60) : minutes; in createOption()
262 return new NotificationSnoozeOption(null, minutes, description, resultText, action); in createOption()
267 return new NotificationSnoozeOption(null, minutes, description, string, in createOption()
/frameworks/base/location/java/android/location/
DLocation.java259 int minutes = (int) Math.floor(coordinate); in convert() local
260 sb.append(minutes); in convert()
262 coordinate -= minutes; in convert()
306 String minutes = st.nextToken(); in convert() local
313 min = Integer.parseInt(minutes); in convert()
318 min = Double.parseDouble(minutes); in convert()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java136 long minutes = 34; in testToHMS() local
139 long time = (((hours * 60) + minutes) * 60) * 1000 + millis; in testToHMS()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1109 public TimeBuilder(int hours, int minutes) { in TimeBuilder() argument
1112 setMinutes(minutes); in TimeBuilder()
1132 public TimeBuilder setMinutes(int minutes) { in setMinutes() argument
1133 return setIntArgument(TtsSpan.ARG_MINUTES, minutes); in setMinutes()
/frameworks/base/media/java/android/media/
DSRTRenderer.java196 long minutes = Long.parseLong(in.split(":")[1].trim()); in parseMs() local
200 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies; in parseMs()
DTtmlRenderer.java135 String minutes = matcher.group(2); in parseTimeExpression() local
136 durationSeconds += Long.parseLong(minutes) * 60; in parseTimeExpression()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySavingStatsTest.java78 void advanceClock(int minutes) { in advanceClock() argument
79 mTime += 60_000 * minutes; in advanceClock()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java638 int minutes = (int) value; in toExifLatLong() local
639 value = (value - minutes) * 6000; in toExifLatLong()
641 return new int[] { degrees, 1, minutes, 1, seconds, 100 }; in toExifLatLong()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp278 ExifLong minutes = static_cast<ExifLong>(60 * (num - degrees)); in setLatitudeOrLongitudeData() local
280 static_cast<ExifLong>(3600000000u * (num - degrees - minutes / 60.0)); in setLatitudeOrLongitudeData()
282 exif_set_rational(data + sizeof(ExifRational), EXIF_BYTE_ORDER_INTEL, {minutes, 1}); in setLatitudeOrLongitudeData()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifInterface.java1912 double minutes = coordinate[1].toDouble(); in convertLatOrLongToDouble() local
1914 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble()
2035 int minutes = (int) value; in toExifLatLong() local
2036 value = (value - minutes) * 6000; in toExifLatLong()
2039 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100) in toExifLatLong()
/frameworks/base/packages/SystemUI/docs/
Dclock-plugins.md46 t += datetime.timedelta(minutes=1)
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java1193 public static Condition toTimeCondition(Context context, long time, int minutes, in toTimeCondition() argument
1200 if (minutes < 60) { in toTimeCondition()
1202 num = minutes; in toTimeCondition()
1210 } else if (minutes < DAY_MINUTES) { in toTimeCondition()
1212 num = Math.round(minutes / 60f); in toTimeCondition()

12