/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeScheduleRuleSettings.java | 99 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal() 101 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal() 103 if (hour == mSchedule.startHour && minute == mSchedule.startMinute) { in onCreateInternal() 106 if (DEBUG) Log.d(TAG, "onPrefChange start h=" + hour + " m=" + minute); in onCreateInternal() 107 mSchedule.startHour = hour; in onCreateInternal() 121 public boolean onSetTime(final int hour, final int minute) { in onCreateInternal() 123 if (!ZenModeConfig.isValidHour(hour)) return false; in onCreateInternal() 125 if (hour == mSchedule.endHour && minute == mSchedule.endMinute) { in onCreateInternal() 128 if (DEBUG) Log.d(TAG, "onPrefChange end h=" + hour + " m=" + minute); in onCreateInternal() 129 mSchedule.endHour = hour; in onCreateInternal() [all …]
|
D | ZenRuleScheduleHelper.java | 166 private String timeString(Context context, int hour, int minute) { in timeString() argument 168 c.set(Calendar.HOUR_OF_DAY, hour); in timeString()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.kt | 63 val hour = mIntent.getIntExtra(AlarmClock.EXTRA_HOUR, -1) in run() constant 67 var badInput = isPm != null && hour > 12 && isPm in run() 68 badInput = badInput or (hour < 0 || hour > 23) in run() 74 val reason = mContext.getString(R.string.invalid_time, hour, minutes, amPm) in run() 79 val hour24 = if (java.lang.Boolean.TRUE == isPm && hour < 12) hour + 12 else hour in run() 83 if (alarm.hour == hour24 && alarm.minutes == minutes) { in run()
|
D | HandleApiCalls.kt | 208 var hour = -1 in handleSetAlarm() variable 210 hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, hour) in handleSetAlarm() 211 if (hour < 0 || hour > 23) { in handleSetAlarm() 213 val voiceMessage = getString(R.string.invalid_time, hour, mins, " ") in handleSetAlarm() 215 LOGGER.i("Illegal hour: $hour") in handleSetAlarm() 223 val voiceMessage = getString(R.string.invalid_time, hour, minutes, " ") in handleSetAlarm() 234 if (hour == -1) { in handleSetAlarm() 245 val voiceMessage = getString(R.string.invalid_time, hour, minutes, " ") in handleSetAlarm() 253 setSelectionFromIntent(intent, hour, minutes, selection, argsList) in handleSetAlarm() 461 hour: Int, in setSelectionFromIntent() [all …]
|
D | Utils.kt | 429 val hour = gmtOffset / DateUtils.HOUR_IN_MILLIS in getGMTHourOffset() constant 433 String.format(Locale.ENGLISH, "%+d", hour) in getGMTHourOffset() 435 String.format(Locale.ENGLISH, "GMT %+d:%02d", hour, min) in getGMTHourOffset()
|
/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 313 time.set(Calendar.HOUR_OF_DAY, hour); in todayAtHourMinSec() 319 private Calendar tomorrowAtHourMin(int hour, int minute) { in tomorrowAtHourMin() argument 320 Calendar time = todayAtHourMin(hour, minute); in tomorrowAtHourMin()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.kt | 52 var hour: Int variable in com.android.deskclock.provider.Alarm 79 constructor(hour: Int = 0, minutes: Int = 0) { 81 this.hour = hour 93 hour = c.getInt(HOUR_INDEX) 117 hour = p.readInt() 150 p.writeInt(hour) in writeToParcel() 180 previousInstanceTime[Calendar.HOUR_OF_DAY] = hour in getPreviousAlarmTime() 199 nextInstanceTime[Calendar.HOUR_OF_DAY] = hour in getNextAlarmTime() 217 nextInstanceTime[Calendar.HOUR_OF_DAY] = hour in getNextAlarmTime() 237 ", hour=" + hour + in toString() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
D | UtilsTest.java | 69 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { in getJanOfThisYearInMillis() argument 70 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes) in getJanOfThisYearInMillis() 74 private static long getJanOfThisYearInMillis(int date, int hour) { in getJanOfThisYearInMillis() argument 75 return getJanOfThisYearInMillis(date, hour, 0); in getJanOfThisYearInMillis() 79 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { in getFebOfThisYearInMillis() argument 80 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes) in getFebOfThisYearInMillis() 84 private static long getFebOfThisYearInMillis(int date, int hour) { in getFebOfThisYearInMillis() argument 85 return getFebOfThisYearInMillis(date, hour, 0); in getFebOfThisYearInMillis()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | WifiUtils.java | 51 long hour = (min / 60) % 60; //hours in buildLoggingSummary() local 53 if (hour > 0) summary.append(hour + "h "); in buildLoggingSummary()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | TimePickerDialogFragment.kt | 44 val hour: Int = args.getInt(ARG_HOUR, now[Calendar.HOUR_OF_DAY]) in <lambda>() constant 50 }, hour, minute, DateFormat.is24HourFormat(context)) in <lambda>() 56 timePicker.setCurrentHour(hour) in <lambda>()
|
D | AlarmTimeClickHandler.kt | 153 TimePickerDialogFragment.show(mFragment, alarm.hour, alarm.minutes) in onClockClicked() 182 a.hour = hourOfDay in onTimeSet() 187 mSelectedAlarm!!.hour = hourOfDay in onTimeSet()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.cpp | 38 int hour = ms / 3600000; in getElapsedTime() local 43 oss << std::setfill('0') << std::setw(2) << hour << ":" << std::setw(2) << minutes << ":" in getElapsedTime()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/ |
D | TimePickerDialogFragment.java | 48 int hour = args.getInt(HOUR_KEY); in onCreateDialog() local 50 return new TimePickerDialog(getContext(), this, hour, minute, true); in onCreateDialog()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 140 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/src/com/android/calendar/ |
D | DayView.kt | 590 time.hour = mSelectionHour 605 time.hour = mSelectionHour 621 time.hour = mSelectionHourForAccessibility 646 setSelectedHour(mBaseDate!!.hour) in setSelected() 656 if (mBaseDate!!.hour < mFirstHour) { in setSelected() 658 gotoY = mBaseDate!!.hour * (mCellHeight + HOUR_GAP) in setSelected() 662 if (mBaseDate!!.hour >= lastHour) { in setSelected() 668 gotoY = ((mBaseDate!!.hour + 1 + mBaseDate!!.minute / 60.0f) * in setSelected() 741 time.hour = mSelectionHour in getSelectedDay() 781 val savedHour: Int = mBaseDate!!.hour in compareToVisibleTimeRange() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | TextTime.kt | 123 fun setTime(hour: Int, minute: Int) { in setTime() 124 mHour = hour in setTime()
|
/packages/providers/CalendarProvider/ |
D | maketests.py | 62 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/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestUserEventLogger.java | 176 public void logDailyWallpaperRotationHour(int hour) { in logDailyWallpaperRotationHour() argument 177 mLastDailyRotationHour = hour; in logDailyWallpaperRotationHour()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/ |
D | DateTimeUtilsTest.java | 191 private long generateDateTimeMillisAt(LocalDate when, int hour, int minute, int second) { in generateDateTimeMillisAt() argument 192 return ZonedDateTime.of(when.atTime(hour, minute, second), ZoneId.systemDefault()) in generateDateTimeMillisAt()
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 85 time.hour = 2; in setUp() 153 time.hour = 0; in testGetAppWidgetModel_AllDayEventLater()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeeksAdapter.kt | 234 day.hour = mSelectedDay!!.hour in onDayTapped()
|
D | MonthByWeekAdapter.kt | 254 day.hour = currTime.hour in setDayParameters()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.kt | 368 val hour: Long = absoluteGMTOffset / HOUR_IN_MILLIS constant 370 mTimeZoneName = String.format(locale, "(GMT%s%d:%02d) %s", sign, hour, minute, name)
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | NoOpUserEventLogger.java | 93 public void logDailyWallpaperRotationHour(int hour) { in logDailyWallpaperRotationHour() argument
|
D | UserEventLogger.java | 122 void logDailyWallpaperRotationHour(int hour); in logDailyWallpaperRotationHour() argument
|