Status bar iconography updates
- Use new assets for location, flightmode and "more" notifications icon. - Update icon size and clock to spec. - Change from fixed width of the icons to WRAP_CONTENT, so they look more evenly distributed. - Adjust subpixel rendering of battery icon to match other vector icons. Bug: 16161255 Change-Id: I0a80f223b7d532bc53a201cff37b8f1cb09f08c2
|
Before Width: | Height: | Size: 285 B |
|
Before Width: | Height: | Size: 846 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 998 B |
|
Before Width: | Height: | Size: 720 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 746 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
|
||||
24
packages/SystemUI/res/drawable/stat_notify_more.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--
|
||||
~ 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
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="16dp"
|
||||
android:height="16dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:pathData="M22.000000,3.000000L7.000000,3.000000C6.300000,3.000000 5.800000,3.400000 5.400000,3.900000L0.000000,12.000000l5.400000,8.100000c0.400000,0.500000 1.000000,0.900000 1.700000,0.900000L22.000000,21.000000c1.100000,0.000000 2.000000,-0.900000 2.000000,-2.000000L24.000000,5.000000C24.000000,3.900000 23.100000,3.000000 22.000000,3.000000zM9.000000,13.500000c-0.800000,0.000000 -1.500000,-0.700000 -1.500000,-1.500000s0.700000,-1.500000 1.500000,-1.500000c0.800000,0.000000 1.500000,0.700000 1.500000,1.500000S9.800000,13.500000 9.000000,13.500000zM14.000000,13.500000c-0.800000,0.000000 -1.500000,-0.700000 -1.500000,-1.500000s0.700000,-1.500000 1.500000,-1.500000c0.800000,0.000000 1.500000,0.700000 1.500000,1.500000S14.800000,13.500000 14.000000,13.500000zM19.000000,13.500000c-0.800000,0.000000 -1.500000,-0.700000 -1.500000,-1.500000s0.700000,-1.500000 1.500000,-1.500000c0.800000,0.000000 1.500000,0.700000 1.500000,1.500000S19.799999,13.500000 19.000000,13.500000z"
|
||||
android:fillColor="#FFFFFFFF"/>
|
||||
</vector>
|
||||
28
packages/SystemUI/res/drawable/stat_sys_airplane_mode.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<!--
|
||||
~ 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
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="17.25dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="46.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M20.4,18.0"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M42.0,32.0l0.0,-4.0L26.0,18.0L26.0,7.0c0.0,-1.7 -1.3,-3.0 -3.0,-3.0c-1.7,0.0 -3.0,1.3 -3.0,3.0l0.0,11.0L4.0,28.0l0.0,4.0l16.0,-5.0l0.0,11.0l-4.0,3.0l0.0,3.0l7.0,-2.0l7.0,2.0l0.0,-3.0l-4.0,-3.0L26.0,27.0L42.0,32.0z"/>
|
||||
</vector>
|
||||
@@ -13,13 +13,17 @@
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="2.5dp"
|
||||
android:insetRight="2.5dp">
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#ffffffff"
|
||||
android:pathData="M22.0,5.7l-4.6,-3.9l-1.3,1.5l4.6,3.9L22.0,5.7zM7.9,3.4L6.6,1.9L2.0,5.7l1.3,1.5L7.9,3.4zM12.5,8.0L11.0,8.0l0.0,6.0l4.7,2.9l0.8,-1.2l-4.0,-2.4L12.5,8.0zM12.0,4.0c-5.0,0.0 -9.0,4.0 -9.0,9.0c0.0,5.0 4.0,9.0 9.0,9.0s9.0,-4.0 9.0,-9.0C21.0,8.0 17.0,4.0 12.0,4.0zM12.0,20.0c-3.9,0.0 -7.0,-3.1 -7.0,-7.0c0.0,-3.9 3.1,-7.0 7.0,-7.0c3.9,0.0 7.0,3.1 7.0,7.0C19.0,16.9 15.9,20.0 12.0,20.0z"/>
|
||||
</vector>
|
||||
<path
|
||||
android:fillColor="#ffffffff"
|
||||
android:pathData="M22.0,5.7l-4.6,-3.9l-1.3,1.5l4.6,3.9L22.0,5.7zM7.9,3.4L6.6,1.9L2.0,5.7l1.3,1.5L7.9,3.4zM12.5,8.0L11.0,8.0l0.0,6.0l4.7,2.9l0.8,-1.2l-4.0,-2.4L12.5,8.0zM12.0,4.0c-5.0,0.0 -9.0,4.0 -9.0,9.0c0.0,5.0 4.0,9.0 9.0,9.0s9.0,-4.0 9.0,-9.0C21.0,8.0 17.0,4.0 12.0,4.0zM12.0,20.0c-3.9,0.0 -7.0,-3.1 -7.0,-7.0c0.0,-3.9 3.1,-7.0 7.0,-7.0c3.9,0.0 7.0,3.1 7.0,7.0C19.0,16.9 15.9,20.0 12.0,20.0z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
@@ -13,13 +13,16 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="2.5dp"
|
||||
android:insetRight="2.5dp">
|
||||
<vector android:width="22dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M2.0,36.0l0.0,6.0l6.0,0.0C8.0,38.7 5.3,36.0 2.0,36.0zM2.0,28.0l0.0,4.0c5.5,0.0 10.0,4.5 10.0,10.0l4.0,0.0C16.0,34.3 9.7,28.0 2.0,28.0zM38.0,14.0L10.0,14.0l0.0,3.3c7.9,2.6 14.2,8.8 16.7,16.7L38.0,34.0L38.0,14.0zM2.0,20.0l0.0,4.0c9.9,0.0 18.0,8.1 18.0,18.0l4.0,0.0C24.0,29.8 14.1,20.0 2.0,20.0zM42.0,6.0L6.0,6.0c-2.2,0.0 -4.0,1.8 -4.0,4.0l0.0,6.0l4.0,0.0l0.0,-6.0l36.0,0.0l0.0,28.0L28.0,38.0l0.0,4.0l14.0,0.0c2.2,0.0 4.0,-1.8 4.0,-4.0L46.0,10.0C46.0,7.8 44.2,6.0 42.0,6.0z"/>
|
||||
</vector>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M2.0,36.0l0.0,6.0l6.0,0.0C8.0,38.7 5.3,36.0 2.0,36.0zM2.0,28.0l0.0,4.0c5.5,0.0 10.0,4.5 10.0,10.0l4.0,0.0C16.0,34.3 9.7,28.0 2.0,28.0zM38.0,14.0L10.0,14.0l0.0,3.3c7.9,2.6 14.2,8.8 16.7,16.7L38.0,34.0L38.0,14.0zM2.0,20.0l0.0,4.0c9.9,0.0 18.0,8.1 18.0,18.0l4.0,0.0C24.0,29.8 14.1,20.0 2.0,20.0zM42.0,6.0L6.0,6.0c-2.2,0.0 -4.0,1.8 -4.0,4.0l0.0,6.0l4.0,0.0l0.0,-6.0l36.0,0.0l0.0,28.0L28.0,38.0l0.0,4.0l14.0,0.0c2.2,0.0 4.0,-1.8 4.0,-4.0L46.0,10.0C46.0,7.8 44.2,6.0 42.0,6.0z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="9.0dp"
|
||||
android:height="18dp"
|
||||
android:width="8.5dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="12.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="9.75dp"
|
||||
android:height="18dp"
|
||||
android:width="9.208dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="13.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="9.0dp"
|
||||
android:height="18dp"
|
||||
android:width="8.5dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="12.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="3.75dp"
|
||||
android:height="18dp"
|
||||
android:width="3.541dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="5.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="5.25dp"
|
||||
android:height="18dp"
|
||||
android:width="4.958dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="7.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="4.5dp"
|
||||
android:height="18dp"
|
||||
android:width="4.25dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="6.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="9.75dp"
|
||||
android:height="18dp"
|
||||
android:width="9.208dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="13.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="4.5dp"
|
||||
android:height="18dp"
|
||||
android:width="4.25dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="6.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
29
packages/SystemUI/res/drawable/stat_sys_location.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<!--
|
||||
~ 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
|
||||
-->
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="1.5dp"
|
||||
android:insetRight="1.5dp">
|
||||
<vector
|
||||
android:width="20dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
@@ -13,13 +13,16 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="3dp"
|
||||
android:insetRight="3dp">
|
||||
<vector android:width="24dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M0.0,15.0l2.0,0.0L2.0,9.0L0.0,9.0L0.0,15.0zM3.0,17.0l2.0,0.0L5.0,7.0L3.0,7.0L3.0,17.0zM22.0,9.0l0.0,6.0l2.0,0.0L24.0,9.0L22.0,9.0zM19.0,17.0l2.0,0.0L21.0,7.0l-2.0,0.0L19.0,17.0zM16.5,3.0l-9.0,0.0C6.7,3.0 6.0,3.7 6.0,4.5l0.0,15.0C6.0,20.3 6.7,21.0 7.5,21.0l9.0,0.0c0.8,0.0 1.5,-0.7 1.5,-1.5l0.0,-15.0C18.0,3.7 17.3,3.0 16.5,3.0zM16.0,19.0L8.0,19.0L8.0,5.0l8.0,0.0L16.0,19.0z"/>
|
||||
</vector>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M0.0,15.0l2.0,0.0L2.0,9.0L0.0,9.0L0.0,15.0zM3.0,17.0l2.0,0.0L5.0,7.0L3.0,7.0L3.0,17.0zM22.0,9.0l0.0,6.0l2.0,0.0L24.0,9.0L22.0,9.0zM19.0,17.0l2.0,0.0L21.0,7.0l-2.0,0.0L19.0,17.0zM16.5,3.0l-9.0,0.0C6.7,3.0 6.0,3.7 6.0,4.5l0.0,15.0C6.0,20.3 6.7,21.0 7.5,21.0l9.0,0.0c0.8,0.0 1.5,-0.7 1.5,-1.5l0.0,-15.0C18.0,3.7 17.3,3.0 16.5,3.0zM16.0,19.0L8.0,19.0L8.0,5.0l8.0,0.0L16.0,19.0z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -15,8 +15,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:autoMirrored="true"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:width="17dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -14,8 +14,8 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="18dp"
|
||||
android:width="18.41dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="26.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
||||
@@ -13,13 +13,16 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="2.5dp"
|
||||
android:insetRight="2.5dp">
|
||||
<vector android:width="23dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M12.0,17.273l6.1800003,3.7269993 -1.6350002,-7.0290003 5.455,-4.7269993 -7.191,-0.6170006 -2.809,-6.627 -2.809,6.627 -7.191,0.6170006 5.455,4.7269993 -1.6349998,7.0290003z"/>
|
||||
</vector>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M12.0,17.273l6.1800003,3.7269993 -1.6350002,-7.0290003 5.455,-4.7269993 -7.191,-0.6170006 -2.809,-6.627 -2.809,6.627 -7.191,0.6170006 5.455,4.7269993 -1.6349998,7.0290003z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
|
||||
@@ -13,13 +13,16 @@ Copyright (C) 2014 The Android Open Source Project
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="19dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="2.5dp"
|
||||
android:insetRight="2.5dp">
|
||||
<vector android:width="22dp"
|
||||
android:height="17dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M24.0,4.0C13.0,4.0 4.0,13.0 4.0,24.0c0.0,11.0 9.0,20.0 20.0,20.0c11.0,0.0 20.0,-9.0 20.0,-20.0C44.0,13.0 35.0,4.0 24.0,4.0zM24.0,40.0c-8.8,0.0 -16.0,-7.2 -16.0,-16.0c0.0,-3.7 1.3,-7.1 3.4,-9.8l22.4,22.4C31.1,38.7 27.7,40.0 24.0,40.0zM36.6,33.8L14.2,11.4C16.9,9.3 20.3,8.0 24.0,8.0c8.8,0.0 16.0,7.2 16.0,16.0C40.0,27.7 38.7,31.1 36.6,33.8z"/>
|
||||
</vector>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M24.0,4.0C13.0,4.0 4.0,13.0 4.0,24.0c0.0,11.0 9.0,20.0 20.0,20.0c11.0,0.0 20.0,-9.0 20.0,-20.0C44.0,13.0 35.0,4.0 24.0,4.0zM24.0,40.0c-8.8,0.0 -16.0,-7.2 -16.0,-16.0c0.0,-3.7 1.3,-7.1 3.4,-9.8l22.4,22.4C31.1,38.7 27.7,40.0 24.0,40.0zM36.6,33.8L14.2,11.4C16.9,9.3 20.3,8.0 24.0,8.0c8.8,0.0 16.0,7.2 16.0,16.0C40.0,27.7 38.7,31.1 36.6,33.8z"/>
|
||||
</vector>
|
||||
</inset>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
android:layout_toStartOf="@id/multi_user_switch"
|
||||
android:layout_alignWithParentIfMissing="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:paddingEnd="2dp">
|
||||
android:paddingEnd="@dimen/system_icons_keyguard_padding_end">
|
||||
<FrameLayout android:id="@+id/system_icons_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/status_bar_height"
|
||||
|
||||
@@ -36,21 +36,10 @@
|
||||
android:layout_width="wrap_content"
|
||||
/>
|
||||
</FrameLayout>
|
||||
<View
|
||||
android:layout_height="6dp"
|
||||
android:layout_width="6dp"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/spacer"
|
||||
/>
|
||||
<FrameLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
>
|
||||
<View
|
||||
android:layout_height="6dp"
|
||||
android:layout_width="6dp"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
<FrameLayout
|
||||
android:id="@+id/mobile_combo"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -68,6 +57,12 @@
|
||||
/>
|
||||
</FrameLayout>
|
||||
</FrameLayout>
|
||||
<View
|
||||
android:id="@+id/wifi_airplane_spacer"
|
||||
android:layout_width="4dp"
|
||||
android:layout_height="4dp"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/airplane"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
<LinearLayout android:id="@+id/status_bar_contents"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="6dip"
|
||||
android:paddingEnd="6dip"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:singleLine="true"
|
||||
android:paddingStart="6dip"
|
||||
android:paddingStart="7dp"
|
||||
android:gravity="center_vertical|start"
|
||||
/>
|
||||
</com.android.systemui.statusbar.AlphaOptimizedLinearLayout>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
android:layout_alignWithParentIfMissing="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/ripple_drawable"
|
||||
android:paddingEnd="2dp" >
|
||||
android:paddingEnd="4dp" >
|
||||
<FrameLayout android:id="@+id/system_icons_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/status_bar_height"
|
||||
|
||||
@@ -30,12 +30,11 @@
|
||||
android:id="@+id/signal_cluster"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"/>
|
||||
android:layout_marginStart="2.5dp"/>
|
||||
|
||||
<!-- battery must be padded below to match assets -->
|
||||
<com.android.systemui.BatteryMeterView android:id="@+id/battery"
|
||||
android:layout_height="16dp"
|
||||
android:layout_width="10.5dp"
|
||||
android:layout_marginBottom="0.33dp"
|
||||
android:layout_marginStart="4dip"/>
|
||||
android:layout_height="14.5dp"
|
||||
android:layout_width="9.5dp"
|
||||
android:layout_marginStart="7dp"/>
|
||||
</LinearLayout>
|
||||
21
packages/SystemUI/res/values-hdpi/dimens.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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
|
||||
-->
|
||||
<resources>
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<fraction name="battery_button_height_fraction">10.5%</fraction>
|
||||
</resources>
|
||||
20
packages/SystemUI/res/values-mdpi/dimens.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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
|
||||
-->
|
||||
<resources>
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<fraction name="battery_button_height_fraction">12%</fraction>
|
||||
</resources>
|
||||
@@ -81,4 +81,7 @@
|
||||
<dimen name="edge_tap_area_width">80dp</dimen>
|
||||
|
||||
<dimen name="keyguard_indication_margin_bottom">90dp</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<dimen name="system_icons_keyguard_padding_end">2dp</dimen>
|
||||
</resources>
|
||||
|
||||
20
packages/SystemUI/res/values-tvdpi/dimens.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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
|
||||
-->
|
||||
<resources>
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<fraction name="battery_button_height_fraction">12%</fraction>
|
||||
</resources>
|
||||
@@ -73,6 +73,9 @@
|
||||
<!-- Height of notification icons in the status bar -->
|
||||
<dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen>
|
||||
|
||||
<!-- The font size for the clock -->
|
||||
<dimen name="status_bar_clock_size">14sp</dimen>
|
||||
|
||||
<!-- Height of a small notification in the status bar -->
|
||||
<dimen name="notification_min_height">64dp</dimen>
|
||||
|
||||
@@ -86,10 +89,10 @@
|
||||
<dimen name="notification_summary_height">44dp</dimen>
|
||||
|
||||
<!-- size at which Notification icons will be drawn in the status bar -->
|
||||
<dimen name="status_bar_icon_drawing_size">18dip</dimen>
|
||||
<dimen name="status_bar_icon_drawing_size">17dip</dimen>
|
||||
|
||||
<!-- opacity at which Notification icons will be drawn in the status bar -->
|
||||
<item type="dimen" name="status_bar_icon_drawing_alpha">75%</item>
|
||||
<item type="dimen" name="status_bar_icon_drawing_alpha">90%</item>
|
||||
|
||||
<!-- gap on either side of status bar notification icons -->
|
||||
<dimen name="status_bar_icon_padding">0dp</dimen>
|
||||
@@ -405,8 +408,8 @@
|
||||
<!-- The font size of the date in QS -->
|
||||
<dimen name="qs_date_collapsed_size">14sp</dimen>
|
||||
|
||||
<!-- Battery level padding end when in expanded QS (but not on Keyguard) -->
|
||||
<dimen name="battery_level_padding_end">4dp</dimen>
|
||||
<!-- Battery level text padding end when in expanded QS and on Keyguard -->
|
||||
<dimen name="battery_level_padding_end">2dp</dimen>
|
||||
|
||||
<!-- The top padding of the clear all button -->
|
||||
<dimen name="clear_all_padding_top">12dp</dimen>
|
||||
@@ -419,11 +422,14 @@
|
||||
<dimen name="keyguard_carrier_text_margin">16dp</dimen>
|
||||
|
||||
<!-- Margin on the left side of the battery % in the header. -->
|
||||
<dimen name="header_battery_margin_expanded">8dp</dimen>
|
||||
<dimen name="header_battery_margin_expanded">6dp</dimen>
|
||||
|
||||
<!-- Margin on the left side of the battery % when on Keyguard. -->
|
||||
<dimen name="header_battery_margin_keyguard">6dp</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<dimen name="system_icons_keyguard_padding_end">4dp</dimen>
|
||||
|
||||
<!-- Additional translation (downwards) for appearing notifications when going to the full shade
|
||||
from Keyguard. -->
|
||||
<dimen name="go_to_full_shade_appearing_translation">200dp</dimen>
|
||||
@@ -461,4 +467,6 @@
|
||||
<!-- TrustDrawable: Thickness of the circle -->
|
||||
<dimen name="trust_circle_thickness">2dp</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<fraction name="battery_button_height_fraction">10.5%</fraction>
|
||||
</resources>
|
||||
|
||||
@@ -69,8 +69,7 @@
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
|
||||
<!-- Note: must be dp to fit in status bar -->
|
||||
<item name="android:textSize">16dp</item>
|
||||
<item name="android:textSize">@dimen/status_bar_clock_size</item>
|
||||
<item name="android:fontFamily">sans-serif-medium</item>
|
||||
<item name="android:textColor">@color/status_bar_clock_color</item>
|
||||
</style>
|
||||
|
||||
@@ -46,12 +46,13 @@ public class BatteryMeterView extends View implements DemoMode,
|
||||
|
||||
private static final int FULL = 96;
|
||||
|
||||
private static final float SUBPIXEL = 0.4f; // inset rects for softer edges
|
||||
private static final float SUBPIXEL = 0.33f; // inset rects for softer edges
|
||||
private static final float BOLT_LEVEL_THRESHOLD = 0.3f; // opaque bolt below this fraction
|
||||
|
||||
private final int[] mColors;
|
||||
|
||||
boolean mShowPercent = true;
|
||||
private float mButtonHeightFraction;
|
||||
private final Paint mFramePaint, mBatteryPaint, mWarningTextPaint, mTextPaint, mBoltPaint;
|
||||
private float mTextHeight, mWarningTextHeight;
|
||||
|
||||
@@ -205,6 +206,8 @@ public class BatteryMeterView extends View implements DemoMode,
|
||||
mWarningString = context.getString(R.string.battery_meter_very_low_overlay_symbol);
|
||||
mCriticalLevel = mContext.getResources().getInteger(
|
||||
com.android.internal.R.integer.config_criticalBatteryWarningLevel);
|
||||
mButtonHeightFraction = context.getResources().getFraction(
|
||||
R.fraction.battery_button_height_fraction, 1, 1);
|
||||
|
||||
mFramePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
||||
mFramePaint.setColor(frameColor);
|
||||
@@ -304,7 +307,7 @@ public class BatteryMeterView extends View implements DemoMode,
|
||||
final int height = mHeight - pt - pb;
|
||||
final int width = mWidth - pl - pr;
|
||||
|
||||
final int buttonHeight = (int) (height * 0.12f);
|
||||
final int buttonHeight = (int) (height * mButtonHeightFraction);
|
||||
|
||||
mFrame.set(0, 0, width, height);
|
||||
mFrame.offset(pl, pt);
|
||||
|
||||
@@ -91,7 +91,7 @@ public class CellularTile extends QSTile<QSTile.SignalState> {
|
||||
if (cb == null) return;
|
||||
|
||||
final Resources r = mContext.getResources();
|
||||
state.iconId = cb.noSim ? R.drawable.stat_sys_no_sim
|
||||
state.iconId = cb.noSim ? R.drawable.ic_qs_no_sim
|
||||
: !cb.enabled || cb.airplaneModeEnabled ? R.drawable.ic_qs_signal_disabled
|
||||
: cb.mobileSignalIconId > 0 ? cb.mobileSignalIconId
|
||||
: R.drawable.ic_qs_signal_no_signal;
|
||||
@@ -99,7 +99,7 @@ public class CellularTile extends QSTile<QSTile.SignalState> {
|
||||
state.overlayIconId = cb.enabled && (cb.dataTypeIconId > 0) && !cb.wifiConnected
|
||||
? cb.dataTypeIconId
|
||||
: 0;
|
||||
state.filter = state.iconId != R.drawable.stat_sys_no_sim;
|
||||
state.filter = state.iconId != R.drawable.ic_qs_no_sim;
|
||||
state.activityIn = cb.enabled && cb.activityIn;
|
||||
state.activityOut = cb.enabled && cb.activityOut;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class SignalClusterView
|
||||
|
||||
ViewGroup mWifiGroup, mMobileGroup;
|
||||
ImageView mWifi, mMobile, mMobileType, mAirplane;
|
||||
View mSpacer;
|
||||
View mWifiAirplaneSpacer;
|
||||
|
||||
public SignalClusterView(Context context) {
|
||||
this(context, null);
|
||||
@@ -77,8 +77,8 @@ public class SignalClusterView
|
||||
mMobileGroup = (ViewGroup) findViewById(R.id.mobile_combo);
|
||||
mMobile = (ImageView) findViewById(R.id.mobile_signal);
|
||||
mMobileType = (ImageView) findViewById(R.id.mobile_type);
|
||||
mSpacer = findViewById(R.id.spacer);
|
||||
mAirplane = (ImageView) findViewById(R.id.airplane);
|
||||
mWifiAirplaneSpacer = findViewById(R.id.wifi_airplane_spacer);
|
||||
|
||||
apply();
|
||||
}
|
||||
@@ -90,7 +90,6 @@ public class SignalClusterView
|
||||
mMobileGroup = null;
|
||||
mMobile = null;
|
||||
mMobileType = null;
|
||||
mSpacer = null;
|
||||
mAirplane = null;
|
||||
|
||||
super.onDetachedFromWindow();
|
||||
@@ -198,10 +197,10 @@ public class SignalClusterView
|
||||
mAirplane.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (mMobileVisible && mWifiVisible && mIsAirplaneMode) {
|
||||
mSpacer.setVisibility(View.INVISIBLE);
|
||||
if (mIsAirplaneMode && mWifiVisible) {
|
||||
mWifiAirplaneSpacer.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mSpacer.setVisibility(View.GONE);
|
||||
mWifiAirplaneSpacer.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (DEBUG) Log.d(TAG,
|
||||
|
||||
@@ -112,6 +112,7 @@ import com.android.keyguard.ViewMediatorCallback;
|
||||
import com.android.systemui.BatteryMeterView;
|
||||
import com.android.systemui.DemoMode;
|
||||
import com.android.systemui.EventLogTags;
|
||||
import com.android.systemui.FontSizeUtils;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.doze.DozeService;
|
||||
import com.android.systemui.keyguard.KeyguardViewMediator;
|
||||
@@ -1228,11 +1229,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
+ " icon=" + icon);
|
||||
StatusBarIconView view = new StatusBarIconView(mContext, slot, null);
|
||||
view.set(icon);
|
||||
mStatusIcons.addView(view, viewIndex, new LinearLayout.LayoutParams(mIconSize, mIconSize));
|
||||
mStatusIcons.addView(view, viewIndex, new LinearLayout.LayoutParams(
|
||||
LayoutParams.WRAP_CONTENT, mIconSize));
|
||||
view = new StatusBarIconView(mContext, slot, null);
|
||||
view.set(icon);
|
||||
mStatusIconsKeyguard.addView(view, viewIndex,
|
||||
new LinearLayout.LayoutParams(mIconSize, mIconSize));
|
||||
mStatusIconsKeyguard.addView(view, viewIndex, new LinearLayout.LayoutParams(
|
||||
LayoutParams.WRAP_CONTENT, mIconSize));
|
||||
}
|
||||
|
||||
public void updateIcon(String slot, int index, int viewIndex,
|
||||
@@ -3057,6 +3059,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
updateDisplaySize(); // populates mDisplayMetrics
|
||||
|
||||
updateResources();
|
||||
updateClockSize();
|
||||
repositionNavigationBar();
|
||||
updateExpandedViewPos(EXPANDED_LEAVE_ALONE);
|
||||
updateShowSearchHoldoff();
|
||||
@@ -3128,6 +3131,13 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
}
|
||||
}
|
||||
|
||||
private void updateClockSize() {
|
||||
if (mStatusBarView == null) return;
|
||||
TextView clock = (TextView) mStatusBarView.findViewById(R.id.clock);
|
||||
if (clock != null) {
|
||||
FontSizeUtils.updateFontSize(clock, R.dimen.status_bar_clock_size);
|
||||
}
|
||||
}
|
||||
protected void loadDimens() {
|
||||
final Resources res = mContext.getResources();
|
||||
|
||||
|
||||
@@ -46,7 +46,8 @@ public class KeyButtonView extends ImageView {
|
||||
private static final String TAG = "StatusBar.KeyButtonView";
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
public static final float DEFAULT_QUIESCENT_ALPHA = 0.70f;
|
||||
// TODO: Get rid of this
|
||||
public static final float DEFAULT_QUIESCENT_ALPHA = 1f;
|
||||
|
||||
private long mDownTime;
|
||||
private int mCode;
|
||||
|
||||
@@ -42,8 +42,7 @@ public class LocationControllerImpl extends BroadcastReceiver implements Locatio
|
||||
// The name of the placeholder corresponding to the location request status icon.
|
||||
// This string corresponds to config_statusBarIcons in core/res/res/values/config.xml.
|
||||
public static final String LOCATION_STATUS_ICON_PLACEHOLDER = "location";
|
||||
public static final int LOCATION_STATUS_ICON_ID
|
||||
= R.drawable.stat_sys_device_access_location_found;
|
||||
public static final int LOCATION_STATUS_ICON_ID = R.drawable.stat_sys_location;
|
||||
|
||||
private static final int[] mHighPowerRequestAppOpArray
|
||||
= new int[] {AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION};
|
||||
|
||||
@@ -63,7 +63,7 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
||||
static final boolean DEBUG = false;
|
||||
static final boolean CHATTY = false; // additional diagnostics, but not logspew
|
||||
|
||||
private static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_signal_flightmode;
|
||||
private static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_airplane_mode;
|
||||
private static final int ROAMING_ICON = R.drawable.stat_sys_data_fully_connected_roam;
|
||||
|
||||
// telephony
|
||||
@@ -833,7 +833,7 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
||||
visible = false;
|
||||
}
|
||||
} else {
|
||||
iconId = R.drawable.stat_sys_no_sim;
|
||||
iconId = 0;
|
||||
mNoSim = true;
|
||||
visible = false; // no SIM? no data
|
||||
}
|
||||
|
||||