1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<com.android.systemui.ambient.statusbar.ui.AmbientStatusBarView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/dream_overlay_status_bar" 21 android:visibility="invisible" 22 android:layout_width="match_parent" 23 android:layout_height="@dimen/dream_overlay_status_bar_height" 24 android:paddingEnd="@dimen/dream_overlay_status_bar_margin" 25 android:paddingStart="@dimen/dream_overlay_status_bar_margin" 26 app:layout_constraintTop_toTopOf="parent"> 27 28 <com.android.systemui.dreams.DreamOverlayDotImageView 29 android:id="@+id/dream_overlay_notification_indicator" 30 android:layout_width="@dimen/dream_overlay_notification_indicator_size" 31 android:layout_height="@dimen/dream_overlay_notification_indicator_size" 32 android:visibility="gone" 33 app:dotColor="@android:color/white" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintBottom_toBottomOf="parent" /> 37 38 <LinearLayout 39 android:id="@+id/dream_overlay_extra_items" 40 android:layout_width="wrap_content" 41 android:layout_height="match_parent" 42 android:orientation="horizontal" 43 android:gravity="center_vertical" 44 app:layout_constraintEnd_toStartOf="@+id/dream_overlay_system_status" /> 45 46 <LinearLayout 47 android:id="@+id/dream_overlay_system_status" 48 android:layout_width="wrap_content" 49 android:layout_height="match_parent" 50 android:orientation="horizontal" 51 android:paddingStart="@dimen/dream_overlay_status_bar_extra_margin" 52 android:visibility="gone" 53 app:layout_constraintEnd_toEndOf="parent"> 54 55 <com.android.systemui.statusbar.AlphaOptimizedImageView 56 android:id="@+id/dream_overlay_alarm_set" 57 android:layout_width="@dimen/dream_overlay_status_bar_icon_size" 58 android:layout_height="match_parent" 59 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 60 android:src="@drawable/ic_alarm" 61 android:tint="@android:color/white" 62 android:visibility="gone" 63 android:contentDescription="@string/dream_overlay_status_bar_alarm_set" /> 64 65 <com.android.systemui.statusbar.AlphaOptimizedImageView 66 android:id="@+id/dream_overlay_priority_mode" 67 android:layout_width="@dimen/dream_overlay_status_bar_icon_size" 68 android:layout_height="match_parent" 69 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 70 android:src="@drawable/ic_qs_dnd_on" 71 android:tint="@android:color/white" 72 android:visibility="gone" 73 android:contentDescription="@string/dream_overlay_status_bar_priority_mode" /> 74 75 <com.android.systemui.statusbar.AlphaOptimizedImageView 76 android:id="@+id/dream_overlay_wifi_status" 77 android:layout_width="@dimen/dream_overlay_status_bar_icon_size" 78 android:layout_height="match_parent" 79 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 80 android:src="@drawable/ic_signal_wifi_off" 81 android:visibility="gone" 82 android:contentDescription="@string/dream_overlay_status_bar_wifi_off" /> 83 84 <ImageView 85 android:id="@+id/dream_overlay_mic_off" 86 android:layout_width="@dimen/dream_overlay_grey_chip_width" 87 android:layout_height="match_parent" 88 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 89 android:src="@drawable/dream_overlay_mic_off" 90 android:visibility="gone" 91 android:contentDescription="@string/dream_overlay_status_bar_mic_off" /> 92 93 <ImageView 94 android:id="@+id/dream_overlay_camera_off" 95 android:layout_width="@dimen/dream_overlay_grey_chip_width" 96 android:layout_height="match_parent" 97 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 98 android:src="@drawable/dream_overlay_camera_off" 99 android:visibility="gone" 100 android:contentDescription="@string/dream_overlay_status_bar_camera_off" /> 101 102 <ImageView 103 android:id="@+id/dream_overlay_camera_mic_off" 104 android:layout_width="@dimen/dream_overlay_grey_chip_width" 105 android:layout_height="match_parent" 106 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 107 android:src="@drawable/dream_overlay_mic_and_camera_off" 108 android:visibility="gone" 109 android:contentDescription="@string/dream_overlay_status_bar_camera_mic_off" /> 110 111 <ImageView 112 android:id="@+id/dream_overlay_assistant_attention_indicator" 113 android:layout_width="@dimen/dream_overlay_status_bar_icon_size" 114 android:layout_height="match_parent" 115 android:layout_marginStart="@dimen/dream_overlay_status_icon_margin" 116 android:src="@drawable/ic_assistant_attention_indicator" 117 android:visibility="gone" 118 android:contentDescription="@string/assistant_attention_content_description" /> 119 120 </LinearLayout> 121</com.android.systemui.ambient.statusbar.ui.AmbientStatusBarView> 122