Home
last modified time | relevance | path

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

12

/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DSunCalculator.java82 int hour = (int) Math.floor(time); in timeToHours() local
83 int minute = (int) Math.round((time - hour) * 60); in timeToHours()
85 hour++; in timeToHours()
87 return hour; in timeToHours()
91 int hour = (int) Math.floor(time); in timeToMinutes() local
92 int minute = (int) Math.round((time - hour) * 60); in timeToMinutes()
100 int hour = (int) Math.floor(time); in timeToDayFraction() local
101 int minute = (int) Math.round((time - hour) * 60); in timeToDayFraction()
104 hour++; in timeToDayFraction()
106 return (hour * 60 + minute) / 1440.0f; in timeToDayFraction()
[all …]
/packages/apps/Email/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/Exchange/exchange2/src/com/android/exchange/utility/
DCalendarUtilities.java242 int hour; field in CalendarUtilities.TimeZoneDate
251 static void putRuleIntoTimeZoneInformation(byte[] bytes, int offset, RRule rrule, int hour, in putRuleIntoTimeZoneInformation() argument
260 setWord(bytes, offset + MSFT_SYSTEMTIME_HOUR, hour); in putRuleIntoTimeZoneInformation()
315 int hour = getWord(bytes, offset + MSFT_SYSTEMTIME_HOUR); in getTimeZoneDateFromSystemTime() local
316 tzd.hour = hour; in getTimeZoneDateFromSystemTime()
319 tzd.time = (hour*HOURS) + (minute*MINUTES); in getTimeZoneDateFromSystemTime()
336 testCalendar.set(GregorianCalendar.HOUR_OF_DAY, tzd.hour); in getMillisAtTimeZoneDateTransition()
881 if ((dstStart.hour != dstEnd.hour) && (precision == STANDARD_DST_PRECISION)) { in tziStringToTimeZoneImpl()
1004 int hour = calendar.get(Calendar.HOUR_OF_DAY); in getTrueTransitionHour() local
1005 hour++; in getTrueTransitionHour()
[all …]
/packages/apps/Email/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/Calendar/src/com/android/calendar/
DDayView.java957 time.hour = mSelectionHour; in getSelectedTimeInMillis()
968 time.hour = mSelectionHour; in getSelectedTime()
980 time.hour = mSelectionHourForAccessibility; in getSelectedTimeForAccessibility()
1009 setSelectedHour(mBaseDate.hour); in setSelected()
1022 if (mBaseDate.hour < mFirstHour) { in setSelected()
1024 gotoY = mBaseDate.hour * (mCellHeight + HOUR_GAP); in setSelected()
1029 if (mBaseDate.hour >= lastHour) { in setSelected()
1035 gotoY = (int) ((mBaseDate.hour + 1 + mBaseDate.minute / 60.0f) in setSelected()
1109 time.hour = mSelectionHour; in getSelectedDay()
1149 int savedHour = mBaseDate.hour; in compareToVisibleTimeRange()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarms.java183 values.put(Alarm.Columns.HOUR, alarm.hour); in createContentValues()
593 return calculateAlarm(alarm.hour, alarm.minutes, alarm.daysOfWeek) in calculateAlarm()
601 static Calendar calculateAlarm(int hour, int minute, in calculateAlarm() argument
612 if (hour < nowHour || in calculateAlarm()
613 hour == nowHour && minute <= nowMinute) { in calculateAlarm()
616 c.set(Calendar.HOUR_OF_DAY, hour); in calculateAlarm()
626 static String formatTime(final Context context, int hour, int minute, in formatTime() argument
628 Calendar c = calculateAlarm(hour, minute, daysOfWeek); in formatTime()
DAlarm.java55 p.writeInt(hour); in writeToParcel()
161 public int hour; field in Alarm
176 ", hour=" + hour + in toString()
189 hour = c.getInt(Columns.ALARM_HOUR_INDEX); in Alarm()
218 hour = p.readInt(); in Alarm()
231 hour = 0; in Alarm()
DHandleSetAlarm.java52 final int hour = intent.getIntExtra(EXTRA_HOUR, in onCreate() local
63 long timeInMillis = Alarms.calculateAlarm(hour, minutes, in onCreate()
69 Alarm.Columns.HOUR + "=" + hour + " AND " + in onCreate()
85 values.put(Alarm.Columns.HOUR, hour); in onCreate()
DAnalogClock.java241 int hour = mCalendar.hour; in onTimeChanged() local
248 mHour = hour + mMinutes / 60.0f; in onTimeChanged()
DSetAlarm.java232 mHour = alarm.hour; in updatePrefs()
297 alarm.hour = mHour; in buildAlarmFromUi()
368 (hours == 1) ? context.getString(R.string.hour) : in formatToast()
DAlarmUtils.java54 public static void popAlarmSetToast(Context context, int hour, int minute, in popAlarmSetToast() argument
57 Alarms.calculateAlarm(hour, minute, daysOfWeek) in popAlarmSetToast()
DDigitalClock.java179 public void updateTime(int hour, int minute) { in updateTime() argument
182 c.set(Calendar.HOUR_OF_DAY, hour); in updateTime()
DAlarmClock.java281 alarm.hour = hourOfDay; in onDialogTimeSet()
658 itemHolder.clock.updateTime(alarm.hour, alarm.minutes); in bindView()
1227 AlarmUtils.popAlarmSetToast(this, alarm.hour, alarm.minutes, alarm.daysOfWeek); in popToast()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java253 int hourDuration = endTime.hour - startTime.hour; in onTimeSet()
256 startTime.hour = hourOfDay; in onTimeSet()
261 endTime.hour = hourOfDay + hourDuration; in onTimeSet()
269 endTime.hour = hourOfDay; in onTimeSet()
304 mTime.hour, mTime.minute, DateFormat.is24HourFormat(mActivity)); in onClick()
306 mStartTimePickerDialog.setStartTime(mTime.hour, mTime.minute); in onClick()
313 mTime.hour, mTime.minute, DateFormat.is24HourFormat(mActivity)); in onClick()
315 mEndTimePickerDialog.setStartTime(mTime.hour, mTime.minute); in onClick()
716 mStartTime.hour = 0; in fillModelFromUI()
722 mEndTime.hour = 0; in fillModelFromUI()
[all …]
DEditEventHelper.java675 time.hour = 0; in checkTimeDependentFields()
761 untilTime.hour = 0; in updatePastEvents()
769 dtstart.hour = 0; in updatePastEvents()
1238 startTime.hour = 0; in getContentValuesFromModel()
1244 endTime.hour = 0; in getContentValuesFromModel()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaListView.java276 int hour = t.hour; in getFirstVisibleTime() local
280 t.hour = hour; in getFirstVisibleTime()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertService.java419 + "%d:%02d", minutesBeforeRefresh, time.hour, time.minute); in generateAlerts()
611 (time.hour > quietHoursStartHour || in processQuery()
612 (time.hour == quietHoursStartHour in processQuery()
615 (time.hour < quietHoursEndHour || in processQuery()
616 (time.hour == quietHoursEndHour in processQuery()
/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/apps/Calendar/tests/src/com/android/calendar/alerts/
DUtils.java22 public static long createTimeInMillis(int second, int minute, int hour, int monthDay, in createTimeInMillis() argument
25 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
/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.java84 time.hour = 2; in setUp()
152 time.hour = 0; in testGetAppWidgetModel_AllDayEventLater()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.java279 day.hour = mSelectedDay.hour; in onDayTapped()
DMonthByWeekAdapter.java308 day.hour = currTime.hour; in setDayParameters()
/packages/inputmethods/PinyinIME/jni/include/
Duserdict.h165 #define COARSE_UTC(year, month, day, hour, minute, second) \ argument
170 (hour - 0) * 60 * 60 + \
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java446 time.hour = 0;
454 time.hour = 0;

12