1<!-- 2 ~ Copyright (C) 2021 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:systemui="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:layout_weight="1" 23 android:paddingStart="20dp" 24 android:paddingEnd="20dp" 25 android:gravity="center"> 26 27 <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton 28 android:id="@+id/bool_toggle_button_default" 29 android:background="@drawable/hvac_panel_button_bg" 30 style="@style/HvacButton" 31 systemui:hvacAreaId="1" 32 systemui:hvacPropertyId="354419973" 33 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 34 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/> 35 36 <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton 37 android:id="@+id/bool_toggle_button_do_not_turn_off_when_power_off" 38 android:background="@drawable/hvac_panel_button_bg" 39 style="@style/HvacButton" 40 systemui:hvacAreaId="1" 41 systemui:hvacPropertyId="354419973" 42 systemui:hvacTurnOffIfPowerOff="false" 43 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 44 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/> 45 46 <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton 47 android:id="@+id/bool_toggle_button_turn_off_when_auto_on" 48 android:background="@drawable/hvac_panel_button_bg" 49 style="@style/HvacButton" 50 systemui:hvacAreaId="1" 51 systemui:hvacPropertyId="354419973" 52 systemui:hvacTurnOffIfAutoOn="true" 53 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 54 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/> 55 56 <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton 57 android:id="@+id/int_toggle_button_default" 58 android:background="@drawable/hvac_panel_button_bg" 59 style="@style/HvacButton" 60 systemui:hvacAreaId="1" 61 systemui:hvacPropertyId="356517120" 62 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 63 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off" 64 systemui:onValue="1" 65 systemui:offValue="0"/> 66 67 <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton 68 android:id="@+id/int_toggle_button_do_not_turn_off_when_power_off" 69 android:background="@drawable/hvac_panel_button_bg" 70 style="@style/HvacButton" 71 systemui:hvacAreaId="1" 72 systemui:hvacPropertyId="356517120" 73 systemui:hvacTurnOffIfPowerOff="false" 74 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 75 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off" 76 systemui:onValue="1" 77 systemui:offValue="0"/> 78 79 <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton 80 android:id="@+id/int_toggle_button_turn_off_when_auto_on" 81 android:background="@drawable/hvac_panel_button_bg" 82 style="@style/HvacButton" 83 systemui:hvacAreaId="1" 84 systemui:hvacPropertyId="356517120" 85 systemui:hvacTurnOffIfAutoOn="true" 86 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 87 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off" 88 systemui:onValue="1" 89 systemui:offValue="0"/> 90 91 <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton 92 android:id="@+id/int_toggle_button_keep_on_prevent_off" 93 android:background="@drawable/hvac_panel_button_bg" 94 style="@style/HvacButton" 95 systemui:hvacAreaId="1" 96 systemui:hvacPropertyId="356517120" 97 systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on" 98 systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off" 99 systemui:onValue="1" 100 systemui:offValue="0" 101 systemui:preventToggleOff="true"/> 102 103</LinearLayout>