• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2024 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
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="wrap_content"
21    android:layout_height="match_parent"
22    android:orientation="horizontal">
23    <com.android.systemui.car.systembar.CarSystemBarPanelButtonView
24        android:id="@+id/bluetooth_panel_button"
25        android:layout_width="@dimen/car_quick_controls_entry_points_button_width"
26        android:layout_height="match_parent"
27        android:orientation="horizontal"
28        android:gravity="center"
29        android:layout_alignParentStart="true"
30        style="@style/TopBarButton"
31        systemui:panelLayoutRes="@layout/qc_bluetooth_panel"
32        systemui:disabledWhileUnprovisioned="true"
33        systemui:systemBarDisable2Flags="quickSettings">
34        <com.android.systemui.car.statusicon.StatusIconView
35            android:id="@+id/bluetooth_status_icon"
36            android:layout_width="@dimen/car_quick_controls_icon_drawable_width"
37            android:layout_height="@dimen/car_quick_controls_icon_drawable_height"
38            android:layout_gravity="center"
39            android:tint="@color/car_status_icon_color"
40            android:duplicateParentState="true"
41            systemui:controller="com.android.systemui.car.statusicon.ui.BluetoothStatusIconController"/>
42    </com.android.systemui.car.systembar.CarSystemBarPanelButtonView>
43    <com.android.systemui.car.systembar.CarSystemBarPanelButtonView
44        android:id="@+id/connectivity_panel_button"
45        android:layout_width="@dimen/car_quick_controls_entry_points_button_width"
46        android:layout_height="match_parent"
47        android:orientation="horizontal"
48        android:gravity="center"
49        android:layout_alignParentStart="true"
50        style="@style/TopBarButton"
51        systemui:panelLayoutRes="@layout/qc_connectivity_panel"
52        systemui:disabledWhileUnprovisioned="true"
53        systemui:systemBarDisable2Flags="quickSettings">
54        <FrameLayout
55            android:layout_width="match_parent"
56            android:layout_height="match_parent">
57            <com.android.systemui.car.statusicon.StatusIconView
58                android:id="@+id/connectivity_status_icon"
59                android:layout_width="@dimen/car_quick_controls_icon_drawable_width"
60                android:layout_height="@dimen/car_quick_controls_icon_drawable_height"
61                android:layout_gravity="center"
62                android:tint="@color/car_status_icon_color"
63                android:duplicateParentState="true"
64                systemui:controller="com.android.systemui.car.statusicon.ui.SignalStatusIconController"/>
65            <com.android.systemui.car.systembar.element.layout.CarSystemBarImageView
66                android:id="@+id/qc_icon_button_unseen_icon"
67                android:layout_height="wrap_content"
68                android:layout_width="match_parent"
69                android:layout_gravity="center"
70                android:src="@drawable/car_qc_icon_button_unseen_indicator"
71                android:scaleType="fitCenter"
72                android:clickable="false"
73                android:visibility="gone"
74                systemui:controller="com.android.systemui.car.systembar.DataSubscriptionUnseenIconController"/>
75        </FrameLayout>
76    </com.android.systemui.car.systembar.CarSystemBarPanelButtonView>
77    <com.android.systemui.car.systembar.CarSystemBarPanelButtonView
78        android:id="@+id/display_panel_button"
79        android:layout_width="@dimen/car_quick_controls_entry_points_button_width"
80        android:layout_height="match_parent"
81        android:orientation="horizontal"
82        android:gravity="center"
83        android:layout_alignParentStart="true"
84        style="@style/TopBarButton"
85        systemui:panelLayoutRes="@layout/qc_display_panel"
86        systemui:disabledWhileUnprovisioned="true"
87        systemui:systemBarDisable2Flags="quickSettings">
88        <!-- Simplify by using ImageView instead of StatusIconView since this icon is not dynamic. -->
89        <ImageView
90            android:id="@+id/display_status_icon"
91            android:layout_width="@dimen/car_quick_controls_icon_drawable_width"
92            android:layout_height="@dimen/car_quick_controls_icon_drawable_height"
93            android:layout_gravity="center"
94            android:tint="@color/car_status_icon_color"
95            android:duplicateParentState="true"
96            android:src="@drawable/car_ic_brightness"
97            android:contentDescription="@string/status_icon_display_status"/>
98    </com.android.systemui.car.systembar.CarSystemBarPanelButtonView>
99    <com.android.systemui.car.systembar.CarSystemBarPanelButtonView
100        android:id="@+id/volume_panel"
101        android:layout_width="@dimen/car_quick_controls_entry_points_button_width"
102        android:layout_height="match_parent"
103        android:orientation="horizontal"
104        android:gravity="center"
105        android:layout_alignParentStart="true"
106        style="@style/TopBarButton"
107        systemui:panelLayoutRes="@layout/qc_volume_panel"
108        systemui:disabledWhileUnprovisioned="true"
109        systemui:systemBarDisable2Flags="quickSettings">
110        <com.android.systemui.car.statusicon.StatusIconView
111            android:id="@+id/volume_status_icon"
112            android:layout_width="@dimen/car_quick_controls_icon_drawable_width"
113            android:layout_height="@dimen/car_quick_controls_icon_drawable_height"
114            android:layout_gravity="center"
115            android:tint="@color/car_status_icon_color"
116            android:duplicateParentState="true"
117            systemui:controller="com.android.systemui.car.statusicon.ui.MediaVolumeStatusIconController"/>
118    </com.android.systemui.car.systembar.CarSystemBarPanelButtonView>
119    <com.android.systemui.car.systembar.CarSystemBarPanelButtonView
120        android:id="@+id/debug_panel"
121        android:layout_width="@dimen/car_quick_controls_entry_points_button_width"
122        android:layout_height="match_parent"
123        android:orientation="horizontal"
124        android:gravity="center"
125        android:layout_alignParentStart="true"
126        style="@style/TopBarButton"
127        systemui:controller="com.android.systemui.car.systembar.DebugPanelButtonViewController"
128        systemui:panelLayoutRes="@layout/qc_debug_panel"
129        systemui:disabledWhileUnprovisioned="true"
130        systemui:systemBarDisable2Flags="quickSettings">
131        <ImageView
132            android:id="@+id/debug_status_icon"
133            android:layout_width="@dimen/car_quick_controls_icon_drawable_width"
134            android:layout_height="@dimen/car_quick_controls_icon_drawable_height"
135            android:layout_gravity="center"
136            android:tint="@color/car_status_icon_color"
137            android:duplicateParentState="true"
138            android:src="@drawable/car_ic_debug"
139            android:contentDescription="@string/status_icon_debug_status"/>
140    </com.android.systemui.car.systembar.CarSystemBarPanelButtonView>
141</LinearLayout>
142