Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/notification/
DZenModeScheduleRuleSettings.java101 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
103 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal()
105 if (hour == mSchedule.startHour && minute == mSchedule.startMinute) { in onCreateInternal()
108 if (DEBUG) Log.d(TAG, "onPrefChange start h=" + hour + " m=" + minute); in onCreateInternal()
109 mSchedule.startHour = hour; in onCreateInternal()
123 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
125 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal()
127 if (hour == mSchedule.endHour && minute == mSchedule.endMinute) { in onCreateInternal()
130 if (DEBUG) Log.d(TAG, "onPrefChange end h=" + hour + " m=" + minute); in onCreateInternal()
131 mSchedule.endHour = hour; in onCreateInternal()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeScheduleRuleSettings.java101 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
103 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal()
105 if (hour == mSchedule.startHour && minute == mSchedule.startMinute) { in onCreateInternal()
108 if (DEBUG) Log.d(TAG, "onPrefChange start h=" + hour + " m=" + minute); in onCreateInternal()
109 mSchedule.startHour = hour; in onCreateInternal()
123 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
125 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal()
127 if (hour == mSchedule.endHour && minute == mSchedule.endMinute) { in onCreateInternal()
130 if (DEBUG) Log.d(TAG, "onPrefChange end h=" + hour + " m=" + minute); in onCreateInternal()
131 mSchedule.endHour = hour; in onCreateInternal()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java37 private final int hour; field in DateTime
42 …public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZ… in DateTime() argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime()
47 this.hour = hour; in DateTime()
69 …public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, i… in convertToDate() argument
71 c.set(year, month - 1, day, hour, minute, second); in convertToDate()
99 return hour; in getHour()
/packages/apps/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.java74 final int hour = mIntent.getIntExtra(AlarmClock.EXTRA_HOUR, -1); in run() local
78 boolean badInput = isPm != null && hour > 12 && isPm; in run()
79 badInput |= hour < 0 || hour > 23; in run()
85 final String reason = mContext.getString(R.string.invalid_time, hour, minutes, in run()
91 final int hour24 = Boolean.TRUE.equals(isPm) && hour < 12 ? (hour + 12) : hour; in run()
95 if (alarm.hour == hour24 && alarm.minutes == minutes) { in run()
DHandleApiCalls.java303 int hour = -1; in handleSetAlarm() local
305 hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, hour); in handleSetAlarm()
306 if (hour < 0 || hour > 23) { in handleSetAlarm()
308 final String voiceMessage = getString(R.string.invalid_time, hour, mins, " "); in handleSetAlarm()
310 LOGGER.i("Illegal hour: " + hour); in handleSetAlarm()
318 final String voiceMessage = getString(R.string.invalid_time, hour, minutes, " "); in handleSetAlarm()
329 if (hour == -1) { in handleSetAlarm()
340 final String voiceMessage = getString(R.string.invalid_time, hour, minutes, " "); in handleSetAlarm()
348 setSelectionFromIntent(intent, hour, minutes, selection, argsList); in handleSetAlarm()
534 alarm.hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, alarm.hour); in updateAlarmFromIntent()
[all …]
DUtils.java436 final long hour = gmtOffset / DateUtils.HOUR_IN_MILLIS; in getGMTHourOffset() local
441 return String.format(Locale.ENGLISH, "%+d", hour); in getGMTHourOffset()
443 return String.format(Locale.ENGLISH, "GMT %+d:%02d", hour, min); in getGMTHourOffset()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRoutineWatchEvaluatorTest.java294 private int hourMinuteToSec(int hour, int minute) { in hourMinuteToSec() argument
295 return hourMinuteSecondToSec(hour, minute, 0); in hourMinuteToSec()
298 private int hourMinuteSecondToSec(int hour, int minute, int second) { in hourMinuteSecondToSec() argument
299 return hour * 60 * 60 + minute * 60 + second; in hourMinuteSecondToSec()
302 private Calendar todayAtHourMin(int hour, int minute) { in todayAtHourMin() argument
303 return todayAtHourMinSec(hour, minute, 0); in todayAtHourMin()
306 private Calendar todayAtHourMinSec(int hour, int minute, int second) { in todayAtHourMinSec() argument
308 time.set(Calendar.HOUR_OF_DAY, hour); in todayAtHourMinSec()
314 private Calendar tomorrowAtHourMin(int hour, int minute) { in tomorrowAtHourMin() argument
315 Calendar time = todayAtHourMin(hour, minute); in tomorrowAtHourMin()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.java120 values.put(HOUR, alarm.hour); in createContentValues()
241 final int totalAlarmMinutes = alarm.hour * 60 + alarm.minutes;
280 public int hour;
295 public Alarm(int hour, int minutes) {
297 this.hour = hour;
309 hour = c.getInt(HOUR_INDEX);
333 hour = p.readInt();
367 p.writeInt(hour);
399 previousInstanceTime.set(Calendar.HOUR_OF_DAY, hour);
418 nextInstanceTime.set(Calendar.HOUR_OF_DAY, hour);
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java81 private int hour; field in DateTimeParser.Time
86 public Time(int hour, int minute, int second, int zone) { in Time() argument
87 this.hour = hour; in Time()
93 public int getHour() { return hour; } in getHour()
285 h = hour(); in time()
302 final public int hour() throws ParseException { in hour() method in DateTimeParser
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java37 int day, int hour, int minute, int second) throws Exception { in testParseDateTimesHelper() argument
42 assertEquals(hour, cal.get(Calendar.HOUR_OF_DAY)); in testParseDateTimesHelper()
60 int day, int hour, int minute, int second, int millis) throws Exception { in testParseEmailDateTimeHelper() argument
62 hour, minute, second); in testParseEmailDateTimeHelper()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java940 time.hour = mSelectionHour; in getSelectedTimeInMillis()
951 time.hour = mSelectionHour; in getSelectedTime()
963 time.hour = mSelectionHourForAccessibility; in getSelectedTimeForAccessibility()
992 setSelectedHour(mBaseDate.hour); in setSelected()
1005 if (mBaseDate.hour < mFirstHour) { in setSelected()
1007 gotoY = mBaseDate.hour * (mCellHeight + HOUR_GAP); in setSelected()
1012 if (mBaseDate.hour >= lastHour) { in setSelected()
1018 gotoY = (int) ((mBaseDate.hour + 1 + mBaseDate.minute / 60.0f) in setSelected()
1092 time.hour = mSelectionHour; in getSelectedDay()
1132 int savedHour = mBaseDate.hour; in compareToVisibleTimeRange()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.java55 final int hour = args.getInt(ARG_HOUR, now.get(Calendar.HOUR_OF_DAY)); in onCreateDialog() local
65 }, hour, minute, DateFormat.is24HourFormat(context)); in onCreateDialog() field in TimePickerDialogFragment
71 timePicker.setCurrentHour(hour); in onCreateDialog()
DAlarmTimeClickHandler.java161 TimePickerDialogFragment.show(mFragment, alarm.hour, alarm.minutes); in onClockClicked()
192 a.hour = hourOfDay; in onTimeSet()
197 mSelectedAlarm.hour = hourOfDay; in onTimeSet()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java140 private static long createTimeInMillis(int second, int minute, int hour, int monthDay, in createTimeInMillis() argument
142 return createTimeInMillis(second, minute, hour, monthDay, month, year, in createTimeInMillis()
146 private static long createTimeInMillis(int second, int minute, int hour, int monthDay, in createTimeInMillis() argument
149 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/
DTimePickerDialogFragment.java48 int hour = args.getInt(HOUR_KEY); in onCreateDialog() local
50 return new TimePickerDialog(getContext(), this, hour, minute, true); in onCreateDialog()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextTime.java159 public void setTime(int hour, int minute) { in setTime() argument
160 mHour = hour; in setTime()
/packages/providers/CalendarProvider/
Dmaketests.py62 hour = int(m.group(4)) + (sign * int(m.group(8)))
63 return m.group(1) + m.group(2) + m.group(3) + "T" + fmt(hour) \
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java85 time.hour = 2; in setUp()
153 time.hour = 0; in testGetAppWidgetModel_AllDayEventLater()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.java279 day.hour = mSelectedDay.hour; in onDayTapped()
DMonthByWeekAdapter.java284 day.hour = currTime.hour; in setDayParameters()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java377 final long hour = absoluteGMTOffset / HOUR_IN_MILLIS; in TimeZoneDescriptor()
379 mTimeZoneName = String.format(locale, "(GMT%s%d:%02d) %s", sign, hour, minute, name); in TimeZoneDescriptor()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DNoOpUserEventLogger.java80 public void logDailyWallpaperRotationHour(int hour) { in logDailyWallpaperRotationHour() argument
DUserEventLogger.java89 void logDailyWallpaperRotationHour(int hour); in logDailyWallpaperRotationHour() argument
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
DAlarmSelectionAdapter.java56 alarmTime.setTime(alarm.hour, alarm.minutes); in getView()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java444 time.hour = 0;
452 time.hour = 0;

12