Searched refs:hour (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiTimerRecordSources.java51 * TimeOrDuration duration = HdmiTimerRecordSource.ofDuration(1, 00); // 1 hour duration.
52 * // For 1 hour from 6PM, August 10th every SaturDay and Sunday.
145 * @param hour hour in range of [0, 23]
148 * @throws IllegalArgumentException if hour or minute is out of range
150 public static Time timeOf(int hour, int minute) { argument
151 checkTimeValue(hour, minute);
152 return new Time(hour, minute);
155 private static void checkTimeValue(int hour, int minute) { argument
156 if (hour <
172 durationOf(int hour, int minute) argument
177 checkDurationValue(int hour, int minute) argument
195 TimeUnit(int hour, int minute) argument
219 Time(int hour, int minute) argument
230 Duration(int hour, int minute) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DTimeStatsAggregator.java90 private static String getTimeOfDay(int hour) { argument
91 if (hour >= 5 && hour < 11) {
93 } else if (hour >= 11 && hour < 14) {
95 } else if (hour >= 14 && hour < 18) {
97 } else if (hour >= 18 && hour < 21) {
99 } else if ((hour >
126 getPeriodOfDay(int hour) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpUtils.cpp33 hh is replaced by the hour (00-23), mm is replaced by the minute (00-59), and ss by the
38 int year, month, day, hour, minute, second; local
42 &year, &month, &day, &hour, &minute, &second) != 6)
57 tm.tm_hour = hour;
/frameworks/base/core/java/com/android/internal/http/
H A DHttpDateTime.java75 this.hour = h;
80 int hour; field in class:HttpDateTime.TimeOfDay
119 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date,
209 int hour = timeString.charAt(i++) - '0';
211 hour = hour * 10 + (timeString.charAt(i++) - '0');
223 return new TimeOfDay(hour, minute, second);
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java36 // + ' ' + t.hour + ':' + t.minute
191 || local.monthDay != test.day2 || local.hour != test.hour2
196 local.year, local.month, local.monthDay, local.hour, local.minute);
209 || local.monthDay != test.day2 || local.hour != test.hour2
214 local.year, local.month, local.monthDay, local.hour, local.minute);
232 || local.monthDay != test.day2 || local.hour != test.hour2
238 local.year, local.month, local.monthDay, local.hour, local.minute,
254 || local.monthDay != test.day2 || local.hour != test.hour2
260 local.year, local.month, local.monthDay, local.hour, local.minute,
368 t.hour !
[all...]
/frameworks/base/core/java/android/text/format/
H A DTime.java75 * True if this is an allDay event. The hour, minute, second fields are
93 public int hour; field in class:Time
305 this.hour = 0;
324 * hour}, {@code minute}, and {@code second} are not 0.
378 * field of this Time class is set to true and the <code>hour</code>,
451 // hour
454 hour = n;
473 hour = 0;
522 * the {@link #allDay} field is set to true and the {@link #hour},
579 // hour
787 set(int second, int minute, int hour, int monthDay, int month, int year) argument
[all...]
H A DDateFormat.java165 * Returns true if user preference is set to 24-hour format.
167 * @return true if 24 hour time format is selected, false otherwise.
174 * Returns true if user preference with the given user handle is set to 24-hour format.
177 * @return true if 24 hour time format is selected, false otherwise.
254 * to the current locale and the user's 12-/24-hour clock preference.
264 * to the current locale and the user's 12-/24-hour clock preference.
274 * to the current locale and the user's 12-/24-hour clock preference.
529 case 'K': // hour in am/pm (0-11)
530 case 'h': // hour in am/pm (1-12)
532 int hour
[all...]
H A DTimeFormatter.java224 int hour = (wallTime.getHour() % 12 != 0) ? (wallTime.getHour() % 12) : 12;
225 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), hour);
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbEtwsInfo.java139 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]);
161 time.hour = hour;
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java258 iterator.hour,
882 int iteratorHour = iterator.hour;
953 // hour
956 int hour = usebyhour
959 if (SPEW) Log.i(TAG, " hour=" + hour + " usebyhour=" + usebyhour);
980 generated.set(second, minute, hour, day, month, iteratorYear);
1081 iterator.hour += value;
1130 * when time jumps forward an hour, then the "normalized" value will be
1141 int hour
[all...]
H A DRecurrenceSet.java307 dtstartTime.hour = 0;
366 dtstartTime.hour = 0;
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java200 cycle.hour = cycle.minute = cycle.second = 0;
207 lastMonth.hour = lastMonth.minute = lastMonth.second = 0;
230 cycle.hour = cycle.minute = cycle.second = 0;
237 nextMonth.hour = nextMonth.minute = nextMonth.second = 0;
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java103 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0);
121 t.hour -= 12;
123 t.hour += 12;
125 t.hour = 0;
H A DRadialTimePickerView.java161 * When in 24-hour mode, indicates that the current hour is between
454 public void initialize(int hour, int minute, boolean is24HourMode) { argument
460 setCurrentHourInternal(hour, false, false);
486 * Sets the current hour in 24-hour time.
488 * @param hour the current hour between 0 and 23 (inclusive)
490 public void setCurrentHour(int hour) { argument
491 setCurrentHourInternal(hour, tru
502 setCurrentHourInternal(int hour, boolean callback, boolean autoAdvance) argument
554 getDegreesForHour(int hour) argument
[all...]
H A DAnalogClock.java240 int hour = mCalendar.hour;
245 mHour = hour + mMinutes / 60.0f;
H A DTimePickerClockDelegate.java140 // Set up hour/minute labels.
159 // Now that we have text appearances out of the way, make sure the hour
306 * Set the current hour.
323 * @return The current hour in the range (0-23).
365 * Set whether in 24 hour or AM/PM mode.
367 * @param is24HourView True = 24 hour mode. False = AM/PM.
376 int hour = mRadialTimePickerView.getCurrentHour();
377 mInitialHourOfDay = hour;
378 updateHeaderHour(hour, false);
385 * @return true if this is in 24 hour vie
536 SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode, boolean isKbMode, ArrayList<Integer> typedTimes, int currentItemShowing) argument
[all...]
H A DTimePickerSpinnerDelegate.java92 // hour
93 mHourSpinner = (NumberPicker) delegator.findViewById(R.id.hour);
232 // the hour format that we found.
258 * separator as the character which is just after the hour marker in the returned pattern.
345 // cache the current hour since spinner range changes and BEFORE changing mIs24HourView!!
502 // 'k' means 1-24 hour
511 // 'K' means 0-11 hour
565 private SavedState(Parcelable superState, int hour, int minute) { argument
567 mHour = hour;
/frameworks/base/core/java/android/app/
H A DTimePickerDialog.java42 private static final String HOUR = "hour";
61 * @param hourOfDay The hour that was set.
70 * @param hourOfDay The initial hour.
72 * @param is24HourView Whether this is a 24 hour view, or AM/PM.
94 * @param hourOfDay The initial hour.
96 * @param is24HourView Whether this is a 24 hour view, or AM/PM.
146 * @param hourOfDay The current hour within the day.
147 * @param minuteOfHour The current minute within the hour.
166 final int hour = savedInstanceState.getInt(HOUR);
169 mTimePicker.setCurrentHour(hour);
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DDowntimeCalendar.java66 private long getTime(long millis, int hour, int min) { argument
68 mCalendar.set(Calendar.HOUR_OF_DAY, hour);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DTimePickerDialog.java121 * @param hourOfDay The hour that was set.
572 // If we're in 24hour mode, we'll need to check if the input is full. If in AM/PM mode,
619 // For 24-hour mode, the time is legal if the hours and minutes are each legal. Note:
620 // getEnteredTime() will ONLY call isTypedTimeFullyLegal() when NOT in 24hour mode.
668 int hour = mTimePicker.getHours();
670 setHour(hour, true);
673 updateAmPmDisplay(hour < 12? AM : PM);
746 int hour = -1;
757 hour = val;
759 hour
[all...]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneInfo.java88 int hourMinute = recycledTime.hour * 60 +
121 return recycledTime.hour;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java248 int hour = IccUtils.cdmaBcdByteToInt(data[3]);
249 if (hour < 0 || hour > 23) return null;
250 ts.hour = hour;
267 builder.append(", hour=" + hour);
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java579 final int hour = tryParseInt(value.substring(0, i), -1);
581 return isValidHour(hour) && isValidMinute(minute) ? new int[] { hour, minute } : null;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java585 int hour = IccUtils.gsmBcdByteToInt(mPdu[mCur++]);
607 time.hour = hour;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
H A DCdmaSmsTest.java294 assertEquals(bearerData.msgCenterTimeStamp.hour, 11);
302 assertEquals(bearerData.deferredDeliveryTimeAbsolute.hour, 0);
341 assertEquals(bearerData.msgCenterTimeStamp.hour, 11);
349 assertEquals(bearerData.deferredDeliveryTimeAbsolute.hour, 0);

Completed in 629 milliseconds

12