Home
last modified time | relevance | path

Searched refs:shouldAllowControl (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DHvacUtilsTest.java59 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOff_autoNotNeeded_autoOff()
66 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOff_autoNotNeeded_autoOn()
73 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOff_autoNeeded_autoOn()
80 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOff_autoNeeded_autoOff()
87 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOn_autoNeeded_autoOn()
94 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOn_autoNeeded_autoOff()
101 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOn_autoNotNeeded_autoOn()
108 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ false, in shouldAllowControl_powerNotNeeded_powerOn_autoNotNeeded_autoOff()
115 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ true, in shouldAllowControl_powerNeeded_powerOn_autoNeeded_autoOn()
122 assertThat(HvacUtils.shouldAllowControl(/* disableViewIfPowerOff= */ true, in shouldAllowControl_powerNeeded_powerOn_autoNeeded_autoOff()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacUtils.java29 public static boolean shouldAllowControl(boolean disableViewIfPowerOff, boolean powerOn) { in shouldAllowControl() method in HvacUtils
30 return shouldAllowControl(disableViewIfPowerOff, powerOn, /* disableViewIfAutoOn= */false, in shouldAllowControl()
37 public static boolean shouldAllowControl(boolean disableViewIfPowerOff, boolean powerOn, in shouldAllowControl() method in HvacUtils
39 return shouldAllowControl(disableViewIfPowerOff, powerOn, /* disableViewIfAutoOn= */true, in shouldAllowControl()
52 public static boolean shouldAllowControl(boolean disableViewIfPowerOff, boolean powerOn, in shouldAllowControl() method in HvacUtils
DTemperatureControlView.java166 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn) in isTemperatureAvailableForChange()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/
DFanSpeedSeekBar.java66 if (shouldAllowControl() && fromUser && progress == prevProgress) {
229 setAlpha(shouldAllowControl() ? mOnAlpha : mOffAlpha); in updateUI()
231 setOnTouchListener(shouldAllowControl() ? null : (v, event) -> true); in updateUI()
234 private boolean shouldAllowControl() { in shouldAllowControl() method in FanSpeedSeekBar
235 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn, mAutoOn); in shouldAllowControl()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/toggle/
DHvacToggleButton.java89 if (!shouldAllowControl()) return; in onFinishInflate()
112 setAlpha(shouldAllowControl() ? mOnAlpha : mOffAlpha); in updateUIState()
130 protected boolean shouldAllowControl() { in shouldAllowControl() method in HvacToggleButton
136 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn, in shouldAllowControl()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/referenceui/
DFanDirectionButtons.java115 if (!shouldAllowControl()) return; in onFinishInflate()
203 setAlpha(shouldAllowControl() ? mOnAlpha : mOffAlpha); in updateViewPerAvailability()
206 private boolean shouldAllowControl() { in shouldAllowControl() method in FanDirectionButtons
207 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn, mAutoOn); in shouldAllowControl()
DFanSpeedBar.java271 if (shouldAllowControl()) { in getOnClickListener()
278 setAlpha(shouldAllowControl() ? mOnAlpha : mOffAlpha);
281 private boolean shouldAllowControl() {
282 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn, mAutoOn);
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/
DCarUiPortraitTemperatureControlView.java162 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn) in isTemperatureAvailableForChange()