/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeScheduleRuleSettings.java | 101 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 …]
|
D | ZenRuleScheduleHelper.java | 166 private String timeString(Context context, int hour, int minute) { in timeString() argument 169 c.set(Calendar.MINUTE, minute); in timeString()
|
/packages/apps/Settings/src/com/android/settings/notification/modes/ |
D | ZenModeSetSchedulePreferenceController.java | 86 private String timeString(int hour, int minute) { in timeString() argument 89 c.set(Calendar.MINUTE, minute); in timeString() 93 private boolean isValidTime(int hour, int minute) { in isValidTime() argument 94 return ZenModeConfig.isValidHour(hour) && ZenModeConfig.isValidMinute(minute); in isValidTime() 128 private ZenModeTimePickerFragment.TimeSetter mStartSetter = (hour, minute) -> { 129 if (!isValidTime(hour, minute)) { 132 if (hour == mSchedule.startHour && minute == mSchedule.startMinute) { 136 mSchedule.startMinute = minute; 140 private ZenModeTimePickerFragment.TimeSetter mEndSetter = (hour, minute) -> { 141 if (!isValidTime(hour, minute)) { [all …]
|
D | ZenModeTimePickerFragment.java | 41 public ZenModeTimePickerFragment(Context context, int hour, int minute, in ZenModeTimePickerFragment() argument 46 mMinute = minute; in ZenModeTimePickerFragment() 59 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument 60 mTimeSetter.setTime(hourOfDay, minute); in onTimeSet() 74 void setTime(int hour, int minute); in setTime() argument
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/ |
D | TimePickerDialogFragment.java | 31 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/DeskClock/src/com/android/deskclock/alarms/ |
D | TimePickerDialogFragment.kt | 45 val minute: Int = args.getInt(ARG_MINUTE, now[Calendar.MINUTE]) in <lambda>() constant 50 }, hour, minute, DateFormat.is24HourFormat(context)) in <lambda>() 57 timePicker.setCurrentMinute(minute) in <lambda>() 81 fun onTimeSet(fragment: TimePickerDialogFragment?, hourOfDay: Int, minute: Int) in <lambda>() 98 fun show(parentFragment: Fragment, hourOfDay: Int, minute: Int) { in <lambda>() 117 if (minute in 0..59) { in <lambda>() 118 args.putInt(ARG_MINUTE, minute) in <lambda>()
|
D | AlarmTimeClickHandler.kt | 178 fun onTimeSet(hourOfDay: Int, minute: Int) { in onTimeSet() 183 a.minutes = minute in onTimeSet() 188 mSelectedAlarm!!.minutes = minute in onTimeSet()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluatorTest.java | 299 private int hourMinuteToSec(int hour, int minute) { in hourMinuteToSec() argument 300 return hourMinuteSecondToSec(hour, minute, 0); in hourMinuteToSec() 303 private int hourMinuteSecondToSec(int hour, int minute, int second) { in hourMinuteSecondToSec() argument 304 return hour * 60 * 60 + minute * 60 + second; in hourMinuteSecondToSec() 307 private Calendar todayAtHourMin(int hour, int minute) { in todayAtHourMin() argument 308 return todayAtHourMinSec(hour, minute, 0); in todayAtHourMin() 311 private Calendar todayAtHourMinSec(int hour, int minute, int second) { in todayAtHourMinSec() argument 314 time.set(Calendar.MINUTE, minute); in todayAtHourMinSec() 319 private Calendar tomorrowAtHourMin(int hour, int minute) { in tomorrowAtHourMin() argument 320 Calendar time = todayAtHourMin(hour, minute); in tomorrowAtHourMin()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | OtherPreferences.kt | 120 override fun onTimeSet(view: TimePicker?, hourOfDay: Int, minute: Int) { in onTimeSet() 124 val summary = formatTime(hourOfDay, minute) in onTimeSet() 129 editor.putInt(KEY_OTHER_QUIET_HOURS_START_MINUTE, minute) in onTimeSet() 134 editor.putInt(KEY_OTHER_QUIET_HOURS_END_MINUTE, minute) in onTimeSet() 147 private fun formatTime(hourOfDay: Int, minute: Int): String { in formatTime() 150 time.minute = minute in formatTime()
|
D | Utils.kt | 706 recycle.minute = 0 in getNextMidnight() 1137 minute: Int, in getPixelOffsetFromMinutes() 1142 if (minute < WORK_DAY_START_MINUTES) { in getPixelOffsetFromMinutes() 1143 y = minute * remainderHeight / WORK_DAY_START_MINUTES in getPixelOffsetFromMinutes() 1144 } else if (minute < WORK_DAY_END_MINUTES) { in getPixelOffsetFromMinutes() 1145 y = remainderHeight + (minute - WORK_DAY_START_MINUTES) * in getPixelOffsetFromMinutes() 1149 (minute - WORK_DAY_END_MINUTES) * remainderHeight / WORK_DAY_END_LENGTH in getPixelOffsetFromMinutes() 1326 val runInMillis: Long = ((24 * 3600 - time.hour * 3600 - time.minute * 60 - in setMidnightUpdater()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | TimePreferenceController.java | 94 public void onTimeSet(TimePicker view, int hourOfDay, int minute) { in onTimeSet() argument 96 setTime(hourOfDay, minute); in onTimeSet() 117 void setTime(int hourOfDay, int minute) { in setTime() argument 121 c.set(Calendar.MINUTE, minute); in setTime()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeCustomPreferenceController.java | 77 return new TimePickerDialog(mContext, (view, hourOfDay, minute) -> { in getDialog() 78 final LocalTime time = LocalTime.of(hourOfDay, minute); in getDialog()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 124 private static long createTimeInMillis(int second, int minute, int hour, int monthDay, in createTimeInMillis() argument 126 return createTimeInMillis(second, minute, hour, monthDay, month, year, in createTimeInMillis() 130 private static long createTimeInMillis(int second, int minute, int hour, int monthDay, in createTimeInMillis() argument 133 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | TextTime.kt | 123 fun setTime(hour: Int, minute: Int) { in setTime() 125 mMinute = minute in setTime()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/ |
D | DateTimePicker.kt | 99 { _: TimePicker?, hourOfDay: Int, minute: Int -> in <lambda>() method 101 mSelectedMinute = minute in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | NightDisplaySettings.java | 102 return new TimePickerDialog(context, (view, hourOfDay, minute) -> { in onCreateDialog() 103 final LocalTime time = LocalTime.of(hourOfDay, minute); in onCreateDialog()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/ |
D | DateTimeUtilsTest.java | 198 private long generateDateTimeMillisAt(LocalDate when, int hour, int minute, int second) { in generateDateTimeMillisAt() argument 199 return ZonedDateTime.of(when.atTime(hour, minute, second), ZoneId.systemDefault()) in generateDateTimeMillisAt()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeeksAdapter.kt | 235 day.minute = mSelectedDay!!.minute in onDayTapped()
|
D | MonthByWeekFragment.kt | 432 if (mSelectedDay.minute >= 30) { in setMonthDisplayed() 433 mSelectedDay.minute = 30 in setMonthDisplayed() 435 mSelectedDay.minute = 0 in setMonthDisplayed()
|
D | MonthByWeekAdapter.kt | 255 day.minute = currTime.minute in setDayParameters()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.kt | 369 val minute: Long = absoluteGMTOffset / MINUTE_IN_MILLIS % 60 constant 370 mTimeZoneName = String.format(locale, "(GMT%s%d:%02d) %s", sign, hour, minute, name)
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmClockFragment.kt | 366 override fun onTimeSet(fragment: TimePickerDialogFragment?, hourOfDay: Int, minute: Int) { in onTimeSet() 367 mAlarmTimeClickHandler.onTimeSet(hourOfDay, minute) in onTimeSet()
|
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/ |
D | ClockDrawableWrapper.java | 259 final Drawable minute = foregroundDrawable.getDrawable(minuteLayerIndex); in applyTime() local 260 if (minute.setLevel(time.get(Calendar.HOUR) * 60 + convertedMinute)) { in applyTime()
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 86 time.minute = 0; in setUp()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.kt | 637 time.minute = 0 in getNextMidnightTimeMillis() 644 time.minute = 0 in getNextMidnightTimeMillis()
|