Home
last modified time | relevance | path

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

/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java39 public int hour; field in Alarm
43 public Alarm(int id, int month, int date, int hour, int minute) { in Alarm() argument
47 this.hour = hour; in Alarm()
65 jsonObject.put("hour", hour); in toJson()
87 alarm.hour = jsonObject.getInt("hour"); in fromJson()
102 ", hour=" + hour + in toString()
119 hour == alarm.hour && in equals()
125 return Objects.hash(id, month, date, hour, minute); in hashCode()
133 calendar.set(Calendar.HOUR_OF_DAY, hour); in compareTo()
139 otherCal.set(Calendar.HOUR_OF_DAY, other.hour); in compareTo()
DAlarmUtil.java57 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in scheduleAlarm()
66 alarm.hour, alarm.minute, in scheduleAlarm()
90 public Calendar getNextAlarmTime(int hour, int minute) { in getNextAlarmTime() argument
92 alarmTime.set(Calendar.HOUR_OF_DAY, hour); in getNextAlarmTime()
104 int hour = extras.getInt(AlarmIntentService.KEY_ALARM_HOUR); in readAlarm() local
107 return new Alarm(id, month, date, hour, minute); in readAlarm()
115 extras.putInt(AlarmIntentService.KEY_ALARM_HOUR, alarm.hour); in writeAlarm()
DAlarmStorage.java68 public Alarm saveAlarm(int month, int date, int hour, int minute) { in saveAlarm() argument
74 alarm.hour = hour; in saveAlarm()
DAlarmIntentService.java65 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, in onHandleIntent()
DAlarmAdapter.java75 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in onBindViewHolder()
90 toBeDeleted.hour, toBeDeleted.minute), Toast.LENGTH_SHORT).show(); in onBindViewHolder()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DFitStepsWatchFaceService.java363 private String formatTwoDigitNumber(int hour) { in formatTwoDigitNumber() argument
364 return String.format("%02d", hour); in formatTwoDigitNumber()
386 int hour = mCalendar.get(Calendar.HOUR); in onDraw() local
387 if (hour == 0) { in onDraw()
388 hour = 12; in onDraw()
390 hourString = String.valueOf(hour); in onDraw()
DFitDistanceWatchFaceService.java362 private String formatTwoDigitNumber(int hour) { in formatTwoDigitNumber() argument
363 return String.format("%02d", hour); in formatTwoDigitNumber()
385 int hour = mCalendar.get(Calendar.HOUR); in onDraw() local
386 if (hour == 0) { in onDraw()
387 hour = 12; in onDraw()
389 hourString = String.valueOf(hour); in onDraw()
DDigitalWatchFaceService.java441 private String formatTwoDigitNumber(int hour) { in formatTwoDigitNumber() argument
442 return String.format("%02d", hour); in formatTwoDigitNumber()
469 int hour = mCalendar.get(Calendar.HOUR); in onDraw()
470 if (hour == 0) { in onDraw()
471 hour = 12; in onDraw()
473 hourString = String.valueOf(hour); in onDraw()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/
DTimePickerFragment.java84 .getString(R.string.alarm_saved, alarm.hour, alarm.minute); in onCreateView()