/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TimePickerBindingAdapter.java | 29 @BindingAdapter("android:hour") 30 public static void setHour(TimePicker view, int hour) { argument 32 if (view.getHour() != hour) { 33 view.setHour(hour); 36 if (view.getCurrentHour() != hour) { 37 view.setCurrentHour(hour); 56 @InverseBindingAdapter(attribute = "android:hour") 62 Integer hour = view.getCurrentHour(); 63 if (hour == null) { 66 return hour; [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTimerRecordSources.java | 51 * 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 D | TimeStatsAggregator.java | 90 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 D | MtpUtils.cpp | 31 hh is replaced by the hour (00-23), mm is replaced by the minute (00-59), and ss by the 37 int year, month, day, hour, minute, second; local 39 &year, &month, &day, &hour, &minute, &second) != 6) 61 tm.tm_hour = hour;
|
/frameworks/base/core/java/com/android/internal/http/ |
H A D | HttpDateTime.java | 75 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/ex/common/java/com/android/common/ |
H A D | LegacyHttpDateTime.java | 75 this.hour = h; 80 int hour; field in class:LegacyHttpDateTime.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 D | TimeTest.java | 43 // + ' ' + t.hour + ':' + t.minute 198 || local.monthDay != test.day2 || local.hour != test.hour2 203 local.year, local.month, local.monthDay, local.hour, local.minute); 216 || local.monthDay != test.day2 || local.hour != test.hour2 221 local.year, local.month, local.monthDay, local.hour, local.minute); 239 || local.monthDay != test.day2 || local.hour != test.hour2 245 local.year, local.month, local.monthDay, local.hour, local.minute, 261 || local.monthDay != test.day2 || local.hour != test.hour2 267 local.year, local.month, local.monthDay, local.hour, local.minute, 375 t.hour ! [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 76 * True if this is an allDay event. The hour, minute, second fields are 94 public int hour; field in class:Time 308 this.hour = 0; 332 * hour}, {@code minute}, and {@code second} are not 0. 386 * field of this Time class is set to true and the <code>hour</code>, 459 // hour 462 hour = n; 481 hour = 0; 530 * the {@link #allDay} field is set to true and the {@link #hour}, 587 // hour 803 set(int second, int minute, int hour, int monthDay, int month, int year) argument [all...] |
H A D | DateFormat.java | 163 * Returns true if user preference is set to 24-hour format. 165 * @return true if 24 hour time format is selected, false otherwise. 172 * Returns true if user preference with the given user handle is set to 24-hour format. 175 * @return true if 24 hour time format is selected, false otherwise. 252 * to the current locale and the user's 12-/24-hour clock preference. 262 * to the current locale and the user's 12-/24-hour clock preference. 272 * to the current locale and the user's 12-/24-hour clock preference. 474 case 'K': // hour in am/pm (0-11) 475 case 'h': // hour in am/pm (1-12) 477 int hour [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsCbEtwsInfo.java | 153 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); 175 time.hour = hour;
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 164 * When in 24-hour mode, indicates that the current hour is between 206 * @param newValue the new value as minute in hour (0-59) or hour in 445 public void initialize(int hour, int minute, boolean is24HourMode) { argument 451 setCurrentHourInternal(hour, false, false); 477 * Sets the current hour in 24-hour time. 479 * @param hour the current hour betwee 481 setCurrentHour(int hour) argument 493 setCurrentHourInternal(int hour, boolean callback, boolean autoAdvance) argument 545 getDegreesForHour(int hour) argument 560 getInnerCircleForHour(int hour) argument [all...] |
H A D | TimePicker.java | 47 * A widget for selecting the time of day, in either 24-hour or AM/PM mode. 96 * @param hourOfDay The current hour. 168 * Sets the currently selected hour using 24-hour time. 170 * @param hour the hour to set, in the range (0-23) 173 public void setHour(@IntRange(from = 0, to = 23) int hour) { argument 174 mDelegate.setHour(MathUtils.constrain(hour, 0, 23)); 178 * Returns the currently selected hour using 24-hour tim 363 setHour(@ntRangefrom = 0, to = 23) int hour) argument 463 SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode) argument 467 SavedState(Parcelable superState, int hour, int minute, boolean is24HourMode, int currentItemShowing) argument [all...] |
H A D | TextInputTimePickerView.java | 30 * View to show text input based time picker with hour and minute fields and an optional AM/PM 196 final int hour = Integer.parseInt(input); 197 if (!isValidLocalizedHour(hour)) { 201 MathUtils.constrain(hour, minHour, maxHour))); 204 mListener.onValueChanged(HOURS, getHourOfDayFromLocalizedHour(hour));
|
H A D | AnalogClock.java | 240 int hour = mCalendar.hour; 245 mHour = hour + mMinutes / 60.0f;
|
H A D | TimePickerClockDelegate.java | 62 * hour / minute fields to the radial picker. 144 // Set up hour/minute labels. 292 * Updates hour formatting based on the current locale and 24-hour mode. 294 * Determines how the hour should be formatted, sets member variables for 295 * leading zero and starting hour, and sets the hour view's presentation. 318 // Update hour text field. 464 * Set the current hour. 467 public void setHour(int hour) { argument 471 setHourInternal(int hour, @ChangeSource int source, boolean announce) argument [all...] |
H A D | TimePickerSpinnerDelegate.java | 89 // hour 90 mHourSpinner = delegator.findViewById(R.id.hour); 235 // the hour format that we found. 261 * separator as the character which is just after the hour marker in the returned pattern. 287 public void setHour(int hour) { argument 288 setCurrentHour(hour, true); 347 // cache the current hour since spinner range changes and BEFORE changing mIs24HourView!! 506 // 'k' means 1-24 hour 515 // 'K' means 0-11 hour
|
H A D | DateTimeView.java | 123 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); 160 t.hour -= 12; 162 t.hour += 12; 164 t.hour = 0;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
H A D | TimePicker.java | 39 * current system locale. The time can be selected by hour, minute, and AM/PM picker columns. 41 * {@link #setIs24Hour(boolean)} or the widget attribute {@code is24HourFormat} (true for 24-hour 42 * mode, false for 12-hour mode). Otherwise, TimePicker retrieves the mode based on the current 43 * context. In 24-hour mode, TimePicker displays only the hour and minute columns. 47 * {@link #setMinute(int)} using 24-hour time format. The time format can also be changed at any 120 // the hour column range can change depending on whether 12 or 24 hour format is set at 222 * Updates the range in the hour column and notifies column changed if notifyChanged is true. 223 * Hour column can have either [0-23] or [1-12] depending on whether the 24 hour forma 259 setHour(@ntRangefrom = 0, to = 23) int hour) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | TwilightManager.java | 95 final int hour = calendar.get(Calendar.HOUR_OF_DAY); 96 return hour < SUNRISE || hour >= SUNSET;
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceProcessor.java | 258 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...] |
/frameworks/base/core/java/android/app/ |
H A D | TimePickerDialog.java | 42 private static final String HOUR = "hour"; 63 * @param hourOfDay the hour that was set 74 * @param hourOfDay the initial hour 76 * @param is24HourView whether this is a 24 hour view or AM/PM 105 * @param hourOfDay the initial hour 107 * @param is24HourView Whether this is a 24 hour view, or AM/PM. 165 // Note this skips input validation and just uses the last valid time and hour 182 * @param hourOfDay The current hour within the day. 183 * @param minuteOfHour The current minute within the hour. 202 final int hour [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ScheduleCalendar.java | 69 private long getTime(long millis, int hour, int min) { argument 71 mCalendar.set(Calendar.HOUR_OF_DAY, hour);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | TwoWayBindingObject.java | 48 public final ObservableInt hour = new ObservableInt(); field in class:TwoWayBindingObject
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneInfo.java | 80 int hourMinute = recycledTime.hour * 60 + 113 return recycledTime.hour;
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | TimePickerDialog.java | 121 * @param hourOfDay The hour that was set. 573 // If we're in 24hour mode, we'll need to check if the input is full. If in AM/PM mode, 620 // For 24-hour mode, the time is legal if the hours and minutes are each legal. Note: 621 // getEnteredTime() will ONLY call isTypedTimeFullyLegal() when NOT in 24hour mode. 669 int hour = mTimePicker.getHours(); 671 setHour(hour, true); 674 updateAmPmDisplay(hour < 12? AM : PM); 747 int hour = -1; 758 hour = val; 760 hour [all...] |