Home
last modified time | relevance | path

Searched refs:sliderController (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java311 final SliderPreferenceController sliderController = (SliderPreferenceController) controller; in buildSliderSlice() local
312 if (sliderController.getMax() <= sliderController.getMin()) { in buildSliderSlice()
313 Log.e(TAG, "Invalid sliderController: " + sliderController.getPreferenceKey()); in buildSliderSlice()
325 int cur = sliderController.getSliderPosition(); in buildSliderSlice()
326 if (cur < sliderController.getMin()) { in buildSliderSlice()
327 cur = sliderController.getMin(); in buildSliderSlice()
329 if (cur > sliderController.getMax()) { in buildSliderSlice()
330 cur = sliderController.getMax(); in buildSliderSlice()
335 .setMax(sliderController.getMax()) in buildSliderSlice()
336 .setMin(sliderController.getMin()) in buildSliderSlice()
[all …]
DSliceBroadcastReceiver.java156 final SliderPreferenceController sliderController = (SliderPreferenceController) controller; in handleSliderAction() local
157 final int minValue = sliderController.getMin(); in handleSliderAction()
158 final int maxValue = sliderController.getMax(); in handleSliderAction()
165 sliderController.setSliderPosition(newPosition); in handleSliderAction()