/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/ |
D | HvacUtilsTest.java | 59 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/ |
D | HvacUtils.java | 29 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
|
D | TemperatureControlView.java | 166 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn) in isTemperatureAvailableForChange()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/ |
D | FanSpeedSeekBar.java | 66 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/ |
D | HvacToggleButton.java | 89 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/ |
D | FanDirectionButtons.java | 115 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()
|
D | FanSpeedBar.java | 271 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/ |
D | CarUiPortraitTemperatureControlView.java | 162 return HvacUtils.shouldAllowControl(mDisableViewIfPowerOff, mPowerOn) in isTemperatureAvailableForChange()
|