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

12

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/
H A DDateTime.java37 private final int hour; field in class:DateTime
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) { argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
47 this.hour = hour;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) { argument
71 c.set(year, month - 1, day, hour, minute, second);
99 return hour;
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
H A DSunCalculator.java82 int hour = (int) Math.floor(time);
83 int minute = (int) Math.round((time - hour) * 60);
85 hour++;
87 return hour;
91 int hour = (int) Math.floor(time);
92 int minute = (int) Math.round((time - hour) * 60);
100 int hour = (int) Math.floor(time);
101 int minute = (int) Math.round((time - hour) * 60);
104 hour++;
106 return (hour * 6
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DHandleSetAlarm.java52 final int hour = intent.getIntExtra(EXTRA_HOUR,
63 long timeInMillis = Alarms.calculateAlarm(hour, minutes,
69 Alarm.Columns.HOUR + "=" + hour + " AND " +
85 values.put(Alarm.Columns.HOUR, hour);
H A DAlarm.java53 p.writeInt(hour);
77 * Hour in 24-hour localtime 0 - 23.
80 public static final String HOUR = "hour";
159 public int hour; field in class:Alarm
171 hour = c.getInt(Columns.ALARM_HOUR_INDEX);
200 hour = p.readInt();
215 hour = c.get(Calendar.HOUR_OF_DAY);
H A DSetAlarm.java200 mHour = alarm.hour;
283 alarm.hour = mHour;
321 static void popAlarmSetToast(Context context, int hour, int minute, argument
324 Alarms.calculateAlarm(hour, minute, daysOfWeek)
355 (hours == 1) ? context.getString(R.string.hour) :
H A DAlarms.java158 values.put(Alarm.Columns.HOUR, alarm.hour);
561 return calculateAlarm(alarm.hour, alarm.minutes, alarm.daysOfWeek)
569 static Calendar calculateAlarm(int hour, int minute, argument
580 if (hour < nowHour ||
581 hour == nowHour && minute <= nowMinute) {
584 c.set(Calendar.HOUR_OF_DAY, hour);
594 static String formatTime(final Context context, int hour, int minute, argument
596 Calendar c = calculateAlarm(hour, minute, daysOfWeek);
625 * @return true if clock is set to 24-hour mode
H A DAlarmClock.java66 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes,
110 c.set(Calendar.HOUR_OF_DAY, alarm.hour);
171 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes,
262 cal.set(Calendar.HOUR_OF_DAY, alarm.hour);
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java81 private int hour; field in class:DateTimeParser.Time
86 public Time(int hour, int minute, int second, int zone) { argument
87 this.hour = hour;
93 public int getHour() { return hour; }
285 h = hour();
302 final public int hour() throws ParseException { method in class:DateTimeParser
/packages/providers/CalendarProvider/
H A 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/src/com/android/calendar/agenda/
H A DAgendaListView.java120 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 -
297 int hour = t.hour;
301 t.hour = hour;
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DCalendarUtilities.java81 // seen in some time zones sent by MS Exchange in which the start and end hour differ
226 int hour; field in class:CalendarUtilities.TimeZoneDate
235 static void putRuleIntoTimeZoneInformation(byte[] bytes, int offset, RRule rrule, int hour, argument
244 setWord(bytes, offset + MSFT_SYSTEMTIME_HOUR, hour);
299 int hour = getWord(bytes, offset + MSFT_SYSTEMTIME_HOUR);
300 tzd.hour = hour;
303 tzd.time = (hour*HOURS) + (minute*MINUTES);
320 testCalendar.set(GregorianCalendar.HOUR_OF_DAY, tzd.hour);
705 // Write month, day of week, week, hour, minut
[all...]
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleWeeksAdapter.java273 * Maintains the same hour/min/sec but moves the day to the tapped day.
278 day.hour = mSelectedDay.hour;
H A DMonthByWeekAdapter.java263 day.hour = currTime.hour;
H A DSimpleDayPickerFragment.java133 midnight.hour = 0;
/packages/apps/Calendar/src/com/android/calendar/
H A DDayView.java438 /** Height of 1 hour in pixels at the start of a scaling gesture */
440 /** The hour at the center two touch points */
503 /** First fully visibile hour */
505 /** Distance between the mFirstCell and the top of first fully visible hour. */
909 time.hour = mSelectionHour;
920 time.hour = mSelectionHour;
949 mSelectionHour = mBaseDate.hour;
962 if (mBaseDate.hour < mFirstHour) {
964 gotoY = mBaseDate.hour * (mCellHeight + HOUR_GAP);
969 if (mBaseDate.hour >
[all...]
H A DCalendarViewAdapter.java123 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 -
H A DUtils.java541 recycle.hour = 0;
/packages/inputmethods/PinyinIME/jni/include/
H A Duserdict.h165 #define COARSE_UTC(year, month, day, hour, minute, second) \
170 (hour - 0) * 60 * 60 + \
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventView.java224 int hourDuration = endTime.hour - startTime.hour;
227 startTime.hour = hourOfDay;
232 endTime.hour = hourOfDay + hourDuration;
237 endTime.hour = hourOfDay;
265 TimePickerDialog tp = new TimePickerDialog(mActivity, new TimeListener(v), mTime.hour,
750 mStartTime.hour = 0;
756 mEndTime.hour = 0;
1565 if (mEndTime.hour == 0 && mEndTime.minute == 0) {
1584 if (mEndTime.hour
[all...]
H A DEditEventHelper.java564 * upcoming half hour. So, for example, 5:01 -> 5:30, 5:30 -> 6:00, etc.
567 * hour
583 * When we aren't given an explicit end time, we default to an hour after
643 time.hour = 0;
729 untilTime.hour = 0;
737 dtstart.hour = 0;
1192 startTime.hour = 0;
1198 endTime.hour = 0;
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetService.java433 time.hour = 0;
441 time.hour = 0;
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarInstancesHelper.java892 int startMinute = local.hour * 60 + local.minute;
896 int endMinute = local.hour * 60 + local.minute;
H A DCalendarProvider2.java758 time.hour = 0;
1490 if (time.hour != 0 || time.minute != 0 || time.second != 0) {
1491 time.hour = 0;
1502 if (time.hour != 0 || time.minute != 0 || time.second != 0) {
1503 time.hour = 0;
1623 untilTime.hour = untilTime.minute = untilTime.second = 0;
1629 dtstart.hour = dtstart.minute = dtstart.second = 0;
2116 "allDay is true but sec, min, hour were not 0.");
3701 "allDay is true but sec, min, hour were not 0.");
H A DCalendarDatabaseHelper.java1396 if(time.hour != 0 || time.minute != 0 || time.second != 0) {
1397 time.hour = 0;
2340 // Some allDay events had hour, min, sec not set to zero, which throws elsewhere. This
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java124 if ((val = xrp.getAttributeValue(null, "hour")) != null)
529 angle = ((calendar.hour * 60.0f + calendar.minute) % 1440) / 1440.0f;

Completed in 395 milliseconds

12