Home
last modified time | relevance | path

Searched refs:timePicker (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.kt56 val timePicker = TimePicker(context) in <lambda>() constant
57 timePicker.setCurrentHour(hour) in <lambda>()
58 timePicker.setCurrentMinute(minute) in <lambda>()
59 timePicker.setIs24HourView(DateFormat.is24HourFormat(context)) in <lambda>()
61 builder.setView(timePicker) in <lambda>()
64 timePicker.getCurrentHour(), timePicker.getCurrentMinute()) in <lambda>()
DTimePickerDialogFragment.java70 final TimePicker timePicker = new TimePicker(context); in onCreateDialog()
71 timePicker.setCurrentHour(hour); in onCreateDialog()
72 timePicker.setCurrentMinute(minute); in onCreateDialog()
73 timePicker.setIs24HourView(DateFormat.is24HourFormat(context)); in onCreateDialog()
75 return builder.setView(timePicker) in onCreateDialog()
80 timePicker.getCurrentHour(), timePicker.getCurrentMinute()); in onCreateDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimePickerFragmentTest.java53 TimePicker timePicker = findTimePicker(mFragment.requireActivity()); in onActivityCreated_isNot24HourFormat_timePickerShouldShow12HourTimeFormat() local
55 assertThat(timePicker.is24HourView()).isFalse(); in onActivityCreated_isNot24HourFormat_timePickerShouldShow12HourTimeFormat()
62 TimePicker timePicker = findTimePicker(mFragment.requireActivity()); in onActivityCreated_is24HourFormat_timePickerShouldShow24HourTimeFormat() local
64 assertThat(timePicker.is24HourView()).isTrue(); in onActivityCreated_is24HourFormat_timePickerShouldShow24HourTimeFormat()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLeanbackPickerDialogFragment.java140 TimePicker timePicker = pickerContainer.findViewById(R.id.time_picker); in onCreateView() local
141 timePicker.setActivated(true); in onCreateView()
142 timePicker.setOnClickListener(v -> { in onCreateView()
144 mCalendar.set(Calendar.HOUR_OF_DAY, timePicker.getHour()); in onCreateView()
145 mCalendar.set(Calendar.MINUTE, timePicker.getMinute()); in onCreateView()