Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerDialogFragment.kt55 val timePicker = TimePicker(context) in <lambda>() constant
56 timePicker.setCurrentHour(hour) in <lambda>()
57 timePicker.setCurrentMinute(minute) in <lambda>()
58 timePicker.setIs24HourView(DateFormat.is24HourFormat(context)) in <lambda>()
60 builder.setView(timePicker) in <lambda>()
63 timePicker.getCurrentHour(), timePicker.getCurrentMinute()) in <lambda>()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/rotary/
DNumberPickerUtilsTest.java49 TimePicker timePicker = view.findViewById(R.id.time_picker); in getNumberPickerDescendants_fromTimePicker_has3NumberPickers() local
52 NumberPickerUtils.getNumberPickerDescendants(numberPickers, timePicker); in getNumberPickerDescendants_fromTimePicker_has3NumberPickers()
105 TimePicker timePicker = view.findViewById(R.id.time_picker); in hasCommonNumberPickerParent_fromTimePicker_returnsTrue() local
107 NumberPickerUtils.getNumberPickerDescendants(numberPickers, timePicker); in hasCommonNumberPickerParent_fromTimePicker_returnsTrue()
128 TimePicker timePicker = view.findViewById(R.id.time_picker); in getNumberPickerParent_validParent_returnsNull() local
130 NumberPickerUtils.getNumberPickerDescendants(numberPickers, timePicker); in getNumberPickerParent_validParent_returnsNull()
135 assertThat(result).isEqualTo(timePicker); in getNumberPickerParent_validParent_returnsNull()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLeanbackPickerDialogFragment.java153 TimePicker timePicker = pickerContainer.findViewById(R.id.time_picker); in onCreateView() local
155 timePicker.setActivated(true); in onCreateView()
157 mPicker = timePicker; in onCreateView()
158 timePicker.setOnClickListener(v -> { in onCreateView()
160 mCalendar.set(Calendar.HOUR_OF_DAY, timePicker.getHour()); in onCreateView()
161 mCalendar.set(Calendar.MINUTE, timePicker.getMinute()); in onCreateView()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/
DTimePickerFragmentTest.java76 TimePicker timePicker = findTimePicker(mFragment.requireActivity()); in onActivityCreated_isNot24HourFormat_timePickerShouldShow12HourTimeFormat() local
78 assertThat(timePicker.is24HourView()).isFalse(); in onActivityCreated_isNot24HourFormat_timePickerShouldShow12HourTimeFormat()
86 TimePicker timePicker = findTimePicker(mFragment.requireActivity()); in onActivityCreated_is24HourFormat_timePickerShouldShow24HourTimeFormat() local
88 assertThat(timePicker.is24HourView()).isTrue(); in onActivityCreated_is24HourFormat_timePickerShouldShow24HourTimeFormat()
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DRotaryDirectManipulationWidgets.java296 TimePicker timePicker = (TimePicker) view; in onKey() local
298 getNumberPickerDescendants(numberPickers, timePicker); in onKey()
302 timePicker.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in onKey()