Refactors SignalClusterView into StatusBarSignalPolicy so that it can be used in a StatusBarIconContainer and solve all of our status bar problems. - Remove all uses of SignalClusterView and references to R.id.signal_cluster. The class still exists it's just unused now - Add StatusBarIconHolder, which can point to StatusBarIcon, WifiIconState, or PhoneIconState - StatusBarIconList.Slot. Allows for easier indexing of icons now that there can be multiple icons per slot - Add StatusBarWifiView to be inflated inside of the StatusBarIconController when needed - StatusBarMobile view. similar to above - Upgrade StatusBarIconControllerImpl and StatusBarIconList to understand the holders and added 2 new methods to specifically handle wifi / phone state changes - Create IStatusBarIconView (todo: rename). Abstracts the properties we want away from StatusBarIconView so that we can use an arbitrary view type - NeutralGoodDrawable. Draws a light and a dark icon when needed. - Fixes a few demo mode bugs: multi sim was broken and also turning off demo mode was a little broken TODO: More tests are needed for StatusBarSignalPolicy and maybe the IconManagers Test: runtest systemui; visual Bug: 63772836 Bug: 73778753 Bug: 74985733 Fixes: 74427768 Fixes: 74338687 Fixes: 74388467 Change-Id: I5621b3013cdc9638b61552bd4d7211f211eddf1b
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (C) 2014 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/system_icons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical">
|
|
|
|
<com.android.systemui.statusbar.phone.StatusIconContainer android:id="@+id/statusIcons"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:paddingEnd="4dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"/>
|
|
|
|
<com.android.systemui.BatteryMeterView android:id="@+id/battery"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="wrap_content"
|
|
/>
|
|
</LinearLayout> |