Home
last modified time | relevance | path

Searched refs:minute (Results 1 – 25 of 45) 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()
104 if (!ZenModeConfig.isValidMinute(minute)) 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()
110 mSchedule.startMinute = minute; in onCreateInternal()
123 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
126 if (!ZenModeConfig.isValidMinute(minute)) 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()
132 mSchedule.endMinute = minute; 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()
104 if (!ZenModeConfig.isValidMinute(minute)) 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()
110 mSchedule.startMinute = minute; in onCreateInternal()
123 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal()
126 if (!ZenModeConfig.isValidMinute(minute)) 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()
132 mSchedule.endMinute = minute; in onCreateInternal()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.java56 final int minute = args.getInt(ARG_MINUTE, now.get(Calendar.MINUTE)); in onCreateDialog() local
62 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onCreateDialog()
63 listener.onTimeSet(TimePickerDialogFragment.this, hourOfDay, minute); in onCreateDialog()
65 }, hour, minute, DateFormat.is24HourFormat(context)); in onCreateDialog() field in TimePickerDialogFragment
72 timePicker.setCurrentMinute(minute); in onCreateDialog()
91 public static void show(Fragment parentFragment, int hourOfDay, int minute) {
110 if (minute >= 0 && minute < 60) {
111 args.putInt(ARG_MINUTE, minute);
139 void onTimeSet(TimePickerDialogFragment fragment, int hourOfDay, int minute);
DAlarmTimeClickHandler.java188 public void onTimeSet(int hourOfDay, int minute) { in onTimeSet() argument
193 a.minutes = minute; in onTimeSet()
198 mSelectedAlarm.minutes = minute; in onTimeSet()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java38 private final int minute; 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()
48 this.minute = minute; 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()
103 return minute; in getMinute()
/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
309 time.set(Calendar.MINUTE, minute); in todayAtHourMinSec()
314 private Calendar tomorrowAtHourMin(int hour, int minute) { in tomorrowAtHourMin() argument
315 Calendar time = todayAtHourMin(hour, minute); in tomorrowAtHourMin()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/
DTimePickerDialogFragment.java31 public static TimePickerDialogFragment newInstance(int hourOfDay, int minute) { in newInstance() argument
35 args.putInt(MINUTE_KEY, minute); in newInstance()
49 int minute = args.getInt(MINUTE_KEY); in onCreateDialog() local
50 return new TimePickerDialog(getContext(), this, hour, minute, true); in onCreateDialog()
54 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument
56 mListener.onTimeSet(view, hourOfDay, minute); in onTimeSet()
/packages/apps/Calendar/src/com/android/calendar/
DOtherPreferences.java171 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument
177 String summary = formatTime(hourOfDay, minute); in onTimeSet()
182 editor.putInt(KEY_OTHER_QUIET_HOURS_START_MINUTE, minute); in onTimeSet()
187 editor.putInt(KEY_OTHER_QUIET_HOURS_END_MINUTE, minute); in onTimeSet()
202 private String formatTime(int hourOfDay, int minute) { in formatTime() argument
205 time.minute = minute; in formatTime()
DUtils.java728 recycle.minute = 0; in getNextMidnight()
1133 private static int getPixelOffsetFromMinutes(int minute, int workDayHeight, in getPixelOffsetFromMinutes() argument
1136 if (minute < WORK_DAY_START_MINUTES) { in getPixelOffsetFromMinutes()
1137 y = minute * remainderHeight / WORK_DAY_START_MINUTES; in getPixelOffsetFromMinutes()
1138 } else if (minute < WORK_DAY_END_MINUTES) { in getPixelOffsetFromMinutes()
1139 y = remainderHeight + (minute - WORK_DAY_START_MINUTES) * workDayHeight in getPixelOffsetFromMinutes()
1142 y = remainderHeight + workDayHeight + (minute - WORK_DAY_END_MINUTES) * remainderHeight in getPixelOffsetFromMinutes()
1297 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 - in setMidnightUpdater()
DDayView.java1018 gotoY = (int) ((mBaseDate.hour + 1 + mBaseDate.minute / 60.0f) in setSelected()
1107 end.minute += 1; in updateTitle()
1133 int savedMinute = mBaseDate.minute; in compareToVisibleTimeRange()
1137 mBaseDate.minute = 0; in compareToVisibleTimeRange()
1169 mBaseDate.minute = savedMinute; in compareToVisibleTimeRange()
1748 weekStart.minute = 0; in reloadEvents()
2190 + ((mCurrentTime.minute * mCellHeight) / 60) + 1; in doDraw()
2334 + ((mCurrentTime.minute * mCellHeight) / 60) + 1; in drawBgColors()
2347 + ((mCurrentTime.minute * mCellHeight) / 60) + 1; in drawBgColors()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java82 private int minute; field in DateTimeParser.Time
86 public Time(int hour, int minute, int second, int zone) { in Time() argument
88 this.minute = minute; in Time()
94 public int getMinute() { return minute; } in getMinute()
287 m = minute(); in time()
309 final public int minute() throws ParseException { in minute() method in DateTimeParser
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/
DTimePreferenceController.java90 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument
92 setTime(hourOfDay, minute); in onTimeSet()
110 void setTime(int hourOfDay, int minute) { in setTime() argument
114 c.set(Calendar.MINUTE, minute); in setTime()
/packages/apps/Settings/src/com/android/settings/datetime/
DTimePreferenceController.java90 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument
92 setTime(hourOfDay, minute); in onTimeSet()
110 void setTime(int hourOfDay, int minute) { in setTime() argument
114 c.set(Calendar.MINUTE, minute); in setTime()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java37 int day, int hour, int minute, int second) throws Exception { in testParseDateTimesHelper() argument
43 assertEquals(minute, cal.get(Calendar.MINUTE)); 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/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/DeskClock/src/com/android/deskclock/widget/
DTextTime.java159 public void setTime(int hour, int minute) { in setTime() argument
161 mMinute = minute; in setTime()
/packages/apps/Settings/src/com/android/settings/display/
DNightDisplaySettings.java105 return new TimePickerDialog(context, (view, hourOfDay, minute) -> { in onCreateDialog()
106 final LocalTime time = LocalTime.of(hourOfDay, minute); in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DNightDisplaySettings.java105 return new TimePickerDialog(context, (view, hourOfDay, minute) -> { in onCreateDialog()
106 final LocalTime time = LocalTime.of(hourOfDay, minute); in onCreateDialog()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java452 if (mSelectedDay.minute >= 30) { in setMonthDisplayed()
453 mSelectedDay.minute = 30; in setMonthDisplayed()
455 mSelectedDay.minute = 0; in setMonthDisplayed()
DSimpleWeeksAdapter.java280 day.minute = mSelectedDay.minute; in onDayTapped()
DMonthByWeekAdapter.java285 day.minute = currTime.minute; in setDayParameters()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java378 final long minute = (absoluteGMTOffset / MINUTE_IN_MILLIS) % 60; in TimeZoneDescriptor()
379 mTimeZoneName = String.format(locale, "(GMT%s%d:%02d) %s", sign, hour, minute, name); in TimeZoneDescriptor()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java411 public void onTimeSet(TimePickerDialogFragment fragment, int hourOfDay, int minute) { in onTimeSet() argument
412 mAlarmTimeClickHandler.onTimeSet(hourOfDay, minute); in onTimeSet()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java445 time.minute = 0;
453 time.minute = 0;
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java86 time.minute = 0; in setUp()

12