Searched refs:minutes (Results 1 - 15 of 15) sorted by relevance

/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java35 public int minutes; field in class:Duration
53 minutes = 0;
105 minutes = n;
134 cal.add(Calendar.MINUTE, sign*minutes);
147 + (60*minutes)
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java28 int minutes, int seconds) throws DateException {
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes);
26 verifyDuration(String str, int sign, int weeks, int days, int hours, int minutes, int seconds) argument
/frameworks/support/v4/java/android/support/v4/util/
H A DTimeUtils.java102 int days = 0, hours = 0, minutes = 0;
113 minutes = seconds / SECONDS_PER_MINUTE;
114 seconds -= minutes * SECONDS_PER_MINUTE;
122 myLen += accumField(minutes, 1, myLen > 0, 2);
139 pos = printField(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0);
/frameworks/base/location/tests/locationtests/src/android/location/
H A DLocationManagerTest.java116 double minutes = Double.parseDouble(loc5b);
117 Log.i(LOG_TAG, "minutes = " + minutes);
118 assertTrue(Math.abs(minutes - 0.5) < 0.0001);
/frameworks/base/core/java/android/util/
H A DTimeUtils.java321 int days = 0, hours = 0, minutes = 0;
332 minutes = seconds / SECONDS_PER_MINUTE;
333 seconds -= minutes * SECONDS_PER_MINUTE;
341 myLen += accumField(minutes, 1, myLen > 0, 2);
358 pos = printField(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0);
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java257 * Time spans in the past are formatted like "42 minutes ago".
258 * Time spans in the future are formatted like "in 42 minutes".
263 * past will be reported as "0 minutes ago" if this is set to MINUTE_IN_MILLIS. Pass one of
274 * Time spans in the past are formatted like "42 minutes ago". Time spans in
275 * the future are formatted like "in 42 minutes".
283 * 3 seconds in the past will be reported as "0 minutes ago" if
373 * the past will be reported as "0 minutes ago" if this is set to
478 * minutes" or "1 second". Returns only largest meaningful unit of time,
490 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS);
492 com.android.internal.R.plurals.duration_minutes, minutes, minute
[all...]
H A DTime.java525 * or subtracting hours or minutes, then you should use
697 int minutes = (offset % 3600) / 60;
700 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes);
H A DDateFormat.java575 int minutes = (offset % 3600) / 60;
578 tb.append(zeroPad(minutes, 2));
/frameworks/base/location/java/android/location/
H A DLocation.java50 * M indicates minutes of arc (1 minute = 1/60th of a degree).
57 * indicates minutes of arc, and S indicates seconds of arc (1
205 int minutes = (int) Math.floor(coordinate);
206 sb.append(minutes);
208 coordinate -= minutes;
250 String minutes = st.nextToken();
256 min = Integer.parseInt(minutes);
260 min = Double.parseDouble(minutes);
/frameworks/base/media/java/android/media/
H A DExifInterface.java401 double minutes = Double.parseDouble(pair[0].trim())
408 double result = degrees + (minutes / 60.0) + (seconds / 3600.0);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java189 // Initialize the hours and minutes numbers.
193 int[] minutes = {0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55};
201 minutesTexts[i] = String.format("%02d", minutes[i]);
231 public void setTime(int hours, int minutes) { argument
233 setItem(MINUTE_INDEX, minutes);
271 * If the hours are showing, return the current hour. If the minutes are showing, return the
327 * circle (5 on the minutes, 1 or 13 on the hours).
422 * For the currently showing view (either hours or minutes), re-calculate the position for the
429 * selection (i.e. minutes), force the selection to one of the visibly-showing values.
432 * @return The value that was selected, i.e. 0-23 for hours, 0-59 for minutes
[all...]
H A DTimePickerDialog.java211 mMinuteView = (TextView) view.findViewById(R.id.minutes);
464 int minutes = mTimePicker.getMinutes();
465 mTimePicker.setContentDescription(mMinutePickerDescription + ": " + minutes);
620 // For 24-hour mode, the time is legal if the hours and minutes are each legal. Note:
661 * Update the hours, minutes, and AM/PM displays with the typed times. If the typedTimes is
727 * Get the currently-entered time, as integer values of the hours and minutes typed.
730 * hours of minutes. This is helpful for deciding whether to show the dashes, or actual 0's.
732 * minutes, and the third will be either TimePickerDialog.AM or TimePickerDialog.PM.
/frameworks/base/core/java/android/widget/
H A DMediaController.java408 int minutes = (totalSeconds / 60) % 60;
413 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
415 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifInterface.java1902 * minutes, and seconds of the GPS location as defined in the
1906 * @return the GPS coordinate represented as degrees + minutes/60 +
1912 double minutes = coordinate[1].toDouble();
1914 double result = degrees + minutes / 60.0 + seconds / 3600.0;
2035 int minutes = (int) value;
2036 value = (value - minutes) * 6000;
2039 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100)
/frameworks/base/core/java/android/provider/
H A DCalendarContract.java74 * the given calendar. Reminders are specified in minutes before the event and
1721 * days and minutes. The instances table is not writable and only provides a
2052 * The minutes prior to the event that the alarm should ring. -1
2057 public static final String MINUTES = "minutes";
2060 * Passing this as a minutes value will use the default reminder
2061 * minutes.
2192 * The number of minutes that this alarm precedes the start time. Column
2196 public static final String MINUTES = "minutes";
2264 long begin, long end, long alarmTime, int minutes) {
2275 values.put(CalendarAlerts.MINUTES, minutes);
2263 insert(ContentResolver cr, long eventId, long begin, long end, long alarmTime, int minutes) argument
[all...]

Completed in 413 milliseconds