Loading packages/SettingsLib/src/com/android/settingslib/graph/BatteryMeterDrawableBase.java +6 −5 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class BatteryMeterDrawableBase extends Drawable { private static final float ASPECT_RATIO = .58f; public static final String TAG = BatteryMeterDrawableBase.class.getSimpleName(); private static final float RADIUS_RATIO = 1.75f / 17f; private static final float RADIUS_RATIO = 1.0f / 17f; protected final Context mContext; protected final Paint mFramePaint; Loading Loading @@ -273,9 +273,9 @@ public class BatteryMeterDrawableBase extends Drawable { // button-frame: area above the battery body mButtonFrame.set( mFrame.left + Math.round(width * 0.3f), mFrame.left + Math.round(width * 0.28f), mFrame.top, mFrame.right - Math.round(width * 0.3f), mFrame.right - Math.round(width * 0.28f), mFrame.top + buttonHeight); // frame: battery body area Loading @@ -302,9 +302,10 @@ public class BatteryMeterDrawableBase extends Drawable { if (mCharging) { // define the bolt shape final float bl = mFrame.left + mFrame.width() / 4f; // Shift right by 1px for maximal bolt-goodness final float bl = mFrame.left + mFrame.width() / 4f + 1; final float bt = mFrame.top + mFrame.height() / 6f; final float br = mFrame.right - mFrame.width() / 4f; final float br = mFrame.right - mFrame.width() / 4f + 1; final float bb = mFrame.bottom - mFrame.height() / 10f; if (mBoltFrame.left != bl || mBoltFrame.top != bt || mBoltFrame.right != br || mBoltFrame.bottom != bb) { Loading packages/SystemUI/docs/demo_mode.md +1 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ Command | Subcommand | Argument | Description ```battery``` | | | Control the battery display | ```level``` | | Sets the battery level (0 - 100) | ```plugged``` | | Sets charging state (```true```, ```false```) | ```powersave``` | | Sets power save mode (```true```, ```anything else```) ```network``` | | | Control the RSSI display | ```airplane``` | | ```show``` to show icon, any other value to hide | ```fully``` | | Sets MCS state to fully connected (```true```, ```false```) Loading packages/SystemUI/res/drawable/stat_sys_data_saver.xml +2 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ android:insetLeft="2.5dp" android:insetRight="2.5dp" > <vector android:width="17dp" android:height="17dp" android:width="18dp" android:height="18dp" android:viewportWidth="19.0" android:viewportHeight="19.0"> <group Loading packages/SystemUI/res/drawable/stat_sys_dnd_total_silence.xml +2 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ android:insetLeft="2.5dp" android:insetRight="2.5dp" > <vector android:width="17dp" android:height="17dp" android:width="16dp" android:height="16dp" android:viewportWidth="16.6" android:viewportHeight="16.6"> <group Loading packages/SystemUI/res/drawable/stat_sys_hotspot.xml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ Copyright (C) 2017 The Android Open Source Project android:insetLeft="2.5dp" android:insetRight="2.5dp"> <vector android:width="17.0dp" android:height="17.0dp" android:width="18.0dp" android:height="18.0dp" android:viewportWidth="18.0" android:viewportHeight="18.0"> <group Loading Loading
packages/SettingsLib/src/com/android/settingslib/graph/BatteryMeterDrawableBase.java +6 −5 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class BatteryMeterDrawableBase extends Drawable { private static final float ASPECT_RATIO = .58f; public static final String TAG = BatteryMeterDrawableBase.class.getSimpleName(); private static final float RADIUS_RATIO = 1.75f / 17f; private static final float RADIUS_RATIO = 1.0f / 17f; protected final Context mContext; protected final Paint mFramePaint; Loading Loading @@ -273,9 +273,9 @@ public class BatteryMeterDrawableBase extends Drawable { // button-frame: area above the battery body mButtonFrame.set( mFrame.left + Math.round(width * 0.3f), mFrame.left + Math.round(width * 0.28f), mFrame.top, mFrame.right - Math.round(width * 0.3f), mFrame.right - Math.round(width * 0.28f), mFrame.top + buttonHeight); // frame: battery body area Loading @@ -302,9 +302,10 @@ public class BatteryMeterDrawableBase extends Drawable { if (mCharging) { // define the bolt shape final float bl = mFrame.left + mFrame.width() / 4f; // Shift right by 1px for maximal bolt-goodness final float bl = mFrame.left + mFrame.width() / 4f + 1; final float bt = mFrame.top + mFrame.height() / 6f; final float br = mFrame.right - mFrame.width() / 4f; final float br = mFrame.right - mFrame.width() / 4f + 1; final float bb = mFrame.bottom - mFrame.height() / 10f; if (mBoltFrame.left != bl || mBoltFrame.top != bt || mBoltFrame.right != br || mBoltFrame.bottom != bb) { Loading
packages/SystemUI/docs/demo_mode.md +1 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ Command | Subcommand | Argument | Description ```battery``` | | | Control the battery display | ```level``` | | Sets the battery level (0 - 100) | ```plugged``` | | Sets charging state (```true```, ```false```) | ```powersave``` | | Sets power save mode (```true```, ```anything else```) ```network``` | | | Control the RSSI display | ```airplane``` | | ```show``` to show icon, any other value to hide | ```fully``` | | Sets MCS state to fully connected (```true```, ```false```) Loading
packages/SystemUI/res/drawable/stat_sys_data_saver.xml +2 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ android:insetLeft="2.5dp" android:insetRight="2.5dp" > <vector android:width="17dp" android:height="17dp" android:width="18dp" android:height="18dp" android:viewportWidth="19.0" android:viewportHeight="19.0"> <group Loading
packages/SystemUI/res/drawable/stat_sys_dnd_total_silence.xml +2 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ android:insetLeft="2.5dp" android:insetRight="2.5dp" > <vector android:width="17dp" android:height="17dp" android:width="16dp" android:height="16dp" android:viewportWidth="16.6" android:viewportHeight="16.6"> <group Loading
packages/SystemUI/res/drawable/stat_sys_hotspot.xml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ Copyright (C) 2017 The Android Open Source Project android:insetLeft="2.5dp" android:insetRight="2.5dp"> <vector android:width="17.0dp" android:height="17.0dp" android:width="18.0dp" android:height="18.0dp" android:viewportWidth="18.0" android:viewportHeight="18.0"> <group Loading