Changes for March 2022, syncing up to v410
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 996084a373929cf6ba65bdfe5d984328c0448ccc Mon Sep 17 00:00:00 2001
|
||||
From e5c811e641abc8088cad017fdb8e282ef6899ed1 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 09:08:43 +0000
|
||||
Subject: [PATCH 1/2] build: Integrate prop modifications (1/2)
|
||||
@@ -9,7 +9,7 @@ Change-Id: I24f54937e3e542b7c29ea86d24e3f523583a0c61
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
|
||||
index f0627a307..032636014 100755
|
||||
index f0627a307..13cc396e7 100755
|
||||
--- a/tools/buildinfo.sh
|
||||
+++ b/tools/buildinfo.sh
|
||||
@@ -9,7 +9,7 @@ if [ "$BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT" = "true" ] ; then
|
||||
@@ -34,9 +34,9 @@ index f0627a307..032636014 100755
|
||||
fi
|
||||
|
||||
echo "ro.lineage.device=$LINEAGE_DEVICE"
|
||||
+echo "ro.lineage.version=LineageOS 19.0 Self-built CGMod"
|
||||
+echo "ro.lineage.display.version=LineageOS 19.0 Self-built CGMod"
|
||||
+echo "ro.modversion=LineageOS 19.0 Self-built CGMod"
|
||||
+echo "ro.lineage.version=LineageOS 19.1 Self-built CGMod"
|
||||
+echo "ro.lineage.display.version=LineageOS 19.1 Self-built CGMod"
|
||||
+echo "ro.modversion=LineageOS 19.1 Self-built CGMod"
|
||||
+
|
||||
+echo "lockscreen.rot_override=true"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c33bf332540e7057d1d9f7491bf345658965aae9 Mon Sep 17 00:00:00 2001
|
||||
From 537feb3970057cd71a77387a40c0f5b6d6fe5dfb Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 16 Oct 2021 00:39:15 +0000
|
||||
Subject: [PATCH 2/2] build: Remove Stk (1/2)
|
||||
|
||||
@@ -1,173 +0,0 @@
|
||||
From 5598980edbd93751dc3c006d9d88b1b0e70170cc Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 27 Oct 2021 14:38:37 +0000
|
||||
Subject: [PATCH 01/16] Add LineageMonetAccentOverlay
|
||||
|
||||
Applies the signature teal of LineageOS (#167C80) when Monet is absent - thanks @kdrag0n
|
||||
|
||||
Change-Id: Ib93b2bc68a08dfe12a7c3f503dcc62cce098b459
|
||||
---
|
||||
packages/overlays/Android.mk | 1 +
|
||||
.../LineageMonetAccentOverlay/Android.bp | 28 ++++++++
|
||||
.../AndroidManifest.xml | 22 ++++++
|
||||
.../res/values/config.xml | 72 +++++++++++++++++++
|
||||
4 files changed, 123 insertions(+)
|
||||
create mode 100644 packages/overlays/LineageMonetAccentOverlay/Android.bp
|
||||
create mode 100644 packages/overlays/LineageMonetAccentOverlay/AndroidManifest.xml
|
||||
create mode 100644 packages/overlays/LineageMonetAccentOverlay/res/values/config.xml
|
||||
|
||||
diff --git a/packages/overlays/Android.mk b/packages/overlays/Android.mk
|
||||
index 3a114bc8ec79..15c55d3d588e 100644
|
||||
--- a/packages/overlays/Android.mk
|
||||
+++ b/packages/overlays/Android.mk
|
||||
@@ -26,6 +26,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||
DisplayCutoutEmulationTallOverlay \
|
||||
DisplayCutoutEmulationWaterfallOverlay \
|
||||
FontNotoSerifSourceOverlay \
|
||||
+ LineageMonetAccentOverlay \
|
||||
NavigationBarMode3ButtonOverlay \
|
||||
NavigationBarModeGesturalOverlay \
|
||||
NavigationBarModeGesturalOverlayNarrowBack \
|
||||
diff --git a/packages/overlays/LineageMonetAccentOverlay/Android.bp b/packages/overlays/LineageMonetAccentOverlay/Android.bp
|
||||
new file mode 100644
|
||||
index 000000000000..e4da9231dc7c
|
||||
--- /dev/null
|
||||
+++ b/packages/overlays/LineageMonetAccentOverlay/Android.bp
|
||||
@@ -0,0 +1,28 @@
|
||||
+//
|
||||
+// Copyright 2021, 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.
|
||||
+//
|
||||
+package {
|
||||
+ // See: http://go/android-license-faq
|
||||
+ // A large-scale-change added 'default_applicable_licenses' to import
|
||||
+ // all of the 'license_kinds' from "frameworks_base_license"
|
||||
+ // to get the below license kinds:
|
||||
+ // SPDX-license-identifier-Apache-2.0
|
||||
+ default_applicable_licenses: ["frameworks_base_license"],
|
||||
+}
|
||||
+
|
||||
+runtime_resource_overlay {
|
||||
+ name: "LineageMonetAccentOverlay",
|
||||
+ product_specific: true,
|
||||
+}
|
||||
diff --git a/packages/overlays/LineageMonetAccentOverlay/AndroidManifest.xml b/packages/overlays/LineageMonetAccentOverlay/AndroidManifest.xml
|
||||
new file mode 100644
|
||||
index 000000000000..11062b67bc61
|
||||
--- /dev/null
|
||||
+++ b/packages/overlays/LineageMonetAccentOverlay/AndroidManifest.xml
|
||||
@@ -0,0 +1,22 @@
|
||||
+<!--
|
||||
+ ~ Copyright (C) 2021 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.
|
||||
+ -->
|
||||
+
|
||||
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ package="org.lineageos.overlay.accent.monet"
|
||||
+ android:versionCode="1"
|
||||
+ android:versionName="1.0">
|
||||
+ <overlay android:targetPackage="android" android:priority="0" android:isStatic="true"/>
|
||||
+</manifest>
|
||||
diff --git a/packages/overlays/LineageMonetAccentOverlay/res/values/config.xml b/packages/overlays/LineageMonetAccentOverlay/res/values/config.xml
|
||||
new file mode 100644
|
||||
index 000000000000..4777409bb587
|
||||
--- /dev/null
|
||||
+++ b/packages/overlays/LineageMonetAccentOverlay/res/values/config.xml
|
||||
@@ -0,0 +1,72 @@
|
||||
+<?xml version="1.0" encoding="utf-8"?>
|
||||
+<resources>
|
||||
+ <color name="system_accent1_0">#FFFFFF</color>
|
||||
+ <color name="system_accent1_10">#EFFFFF</color>
|
||||
+ <color name="system_accent1_50">#B4FDFF</color>
|
||||
+ <color name="system_accent1_100">#6EF6FC</color>
|
||||
+ <color name="system_accent1_200">#4CD9E0</color>
|
||||
+ <color name="system_accent1_300">#1EBDC4</color>
|
||||
+ <color name="system_accent1_400">#00A1A7</color>
|
||||
+ <color name="system_accent1_500">#008388</color>
|
||||
+ <color name="system_accent1_600">#00696E</color>
|
||||
+ <color name="system_accent1_700">#004F53</color>
|
||||
+ <color name="system_accent1_800">#00373A</color>
|
||||
+ <color name="system_accent1_900">#002022</color>
|
||||
+ <color name="system_accent1_1000">#000000</color>
|
||||
+
|
||||
+ <color name="system_accent2_0">#FFFFFF</color>
|
||||
+ <color name="system_accent2_10">#EFFFFF</color>
|
||||
+ <color name="system_accent2_50">#DAF6F7</color>
|
||||
+ <color name="system_accent2_100">#CCE8E8</color>
|
||||
+ <color name="system_accent2_200">#B0CCCC</color>
|
||||
+ <color name="system_accent2_300">#96B0B1</color>
|
||||
+ <color name="system_accent2_400">#7B9697</color>
|
||||
+ <color name="system_accent2_500">#617B7C</color>
|
||||
+ <color name="system_accent2_600">#496364</color>
|
||||
+ <color name="system_accent2_700">#324B4D</color>
|
||||
+ <color name="system_accent2_800">#1B3436</color>
|
||||
+ <color name="system_accent2_900">#051F21</color>
|
||||
+ <color name="system_accent2_1000">#000000</color>
|
||||
+
|
||||
+ <color name="system_accent3_0">#FFFFFF</color>
|
||||
+ <color name="system_accent3_10">#FDFCFF</color>
|
||||
+ <color name="system_accent3_50">#EBF1FF</color>
|
||||
+ <color name="system_accent3_100">#D4E3FF</color>
|
||||
+ <color name="system_accent3_200">#ACC8F7</color>
|
||||
+ <color name="system_accent3_300">#91ACDB</color>
|
||||
+ <color name="system_accent3_400">#7692BE</color>
|
||||
+ <color name="system_accent3_500">#5C77A2</color>
|
||||
+ <color name="system_accent3_600">#445F8A</color>
|
||||
+ <color name="system_accent3_700">#2B4770</color>
|
||||
+ <color name="system_accent3_800">#113158</color>
|
||||
+ <color name="system_accent3_900">#001B3D</color>
|
||||
+ <color name="system_accent3_1000">#000000</color>
|
||||
+
|
||||
+ <color name="system_neutral1_0">#FFFFFF</color>
|
||||
+ <color name="system_neutral1_10">#FAFDFC</color>
|
||||
+ <color name="system_neutral1_50">#EFF1F1</color>
|
||||
+ <color name="system_neutral1_100">#E0E3E2</color>
|
||||
+ <color name="system_neutral1_200">#C4C7C6</color>
|
||||
+ <color name="system_neutral1_300">#A9ACAB</color>
|
||||
+ <color name="system_neutral1_400">#8E9191</color>
|
||||
+ <color name="system_neutral1_500">#737776</color>
|
||||
+ <color name="system_neutral1_600">#5B5F5F</color>
|
||||
+ <color name="system_neutral1_700">#444747</color>
|
||||
+ <color name="system_neutral1_800">#2E3131</color>
|
||||
+ <color name="system_neutral1_900">#191C1C</color>
|
||||
+ <color name="system_neutral1_1000">#000000</color>
|
||||
+
|
||||
+ <color name="system_neutral2_0">#FFFFFF</color>
|
||||
+ <color name="system_neutral2_10">#F4FEFE</color>
|
||||
+ <color name="system_neutral2_50">#E8F3F2</color>
|
||||
+ <color name="system_neutral2_100">#DAE5E4</color>
|
||||
+ <color name="system_neutral2_200">#BEC8C9</color>
|
||||
+ <color name="system_neutral2_300">#A3ADAE</color>
|
||||
+ <color name="system_neutral2_400">#889393</color>
|
||||
+ <color name="system_neutral2_500">#6E7878</color>
|
||||
+ <color name="system_neutral2_600">#566061</color>
|
||||
+ <color name="system_neutral2_700">#3F4949</color>
|
||||
+ <color name="system_neutral2_800">#293232</color>
|
||||
+ <color name="system_neutral2_900">#141D1E</color>
|
||||
+ <color name="system_neutral2_1000">#000000</color>
|
||||
+</resources>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From d8f26074114f9bb4e9a57ece4cb39d42e0ffa90c Mon Sep 17 00:00:00 2001
|
||||
From fc658b43c4c9bc3ff42ddec8f62f37cbb986289f Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 03:39:32 +0000
|
||||
Subject: [PATCH 02/16] Add MiuiNavbarOverlay
|
||||
Subject: [PATCH 01/15] Add MiuiNavbarOverlay
|
||||
|
||||
Change-Id: I0e6791abc3c9521d7dc612df2fec2b041affe7e9
|
||||
---
|
||||
@@ -29,13 +29,13 @@ Change-Id: I0e6791abc3c9521d7dc612df2fec2b041affe7e9
|
||||
create mode 100644 packages/overlays/MiuiNavbarOverlay/res/drawable-440dpi-v4/ic_sysbar_recent_darkmode.png
|
||||
|
||||
diff --git a/packages/overlays/Android.mk b/packages/overlays/Android.mk
|
||||
index 15c55d3d588e..ff20a7a30092 100644
|
||||
index 3a114bc8ec79..8028b5bb9c2b 100644
|
||||
--- a/packages/overlays/Android.mk
|
||||
+++ b/packages/overlays/Android.mk
|
||||
@@ -27,6 +27,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||
@@ -26,6 +26,7 @@ LOCAL_REQUIRED_MODULES := \
|
||||
DisplayCutoutEmulationTallOverlay \
|
||||
DisplayCutoutEmulationWaterfallOverlay \
|
||||
FontNotoSerifSourceOverlay \
|
||||
LineageMonetAccentOverlay \
|
||||
+ MiuiNavbarOverlay \
|
||||
NavigationBarMode3ButtonOverlay \
|
||||
NavigationBarModeGesturalOverlay \
|
||||
@@ -1,7 +1,7 @@
|
||||
From 2b7f5a1ca1c43ae5d7af48eeb07afa08f581e49b Mon Sep 17 00:00:00 2001
|
||||
From bf95c1ec3307856306212316a59d0f0ec7df6284 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 27 Sep 2021 16:30:00 +0000
|
||||
Subject: [PATCH 03/16] Disable cursor drag by default for editable TextViews
|
||||
Subject: [PATCH 02/15] Disable cursor drag by default for editable TextViews
|
||||
|
||||
Requested by @TadiT7
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 26f39b897540abbdc64f25f671de87b9df33c04d Mon Sep 17 00:00:00 2001
|
||||
From c1629264abb7564b076956dfd74994d659c8cb72 Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 22 Mar 2019 00:41:20 +0800
|
||||
Subject: [PATCH 04/16] Disable FP lockouts
|
||||
Subject: [PATCH 03/15] Disable FP lockouts
|
||||
|
||||
Both timed and permanent lockouts - GET THE FUCK OUT
|
||||
Now targeting LockoutFramework, introduced in Android 12
|
||||
@@ -1,21 +1,22 @@
|
||||
From 1da3b1d0155f06373057ee7b08691da664e94da8 Mon Sep 17 00:00:00 2001
|
||||
From 2f7d86bafcfccd37431cefe9422207b2fbe5fd6c Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 2 Sep 2021 16:15:19 +0000
|
||||
Subject: [PATCH 05/16] Keyguard: Adjust clock style
|
||||
Subject: [PATCH 04/15] Keyguard: Adjust clock style
|
||||
|
||||
Thinner font, less padding and unintrusive colors
|
||||
|
||||
Change-Id: I21e5d5bf37d724e75ebce4cd89349e0cc4dfc910
|
||||
---
|
||||
.../SystemUI/res-keyguard/layout/keyguard_clock_switch.xml | 7 ++++---
|
||||
.../SystemUI/res-keyguard/layout/keyguard_slice_view.xml | 2 +-
|
||||
packages/SystemUI/res-keyguard/values/dimens.xml | 6 +++---
|
||||
packages/SystemUI/res-keyguard/values/styles.xml | 2 --
|
||||
packages/SystemUI/res/values/styles.xml | 4 ++--
|
||||
.../src/com/android/keyguard/AnimatableClockView.java | 2 +-
|
||||
5 files changed, 10 insertions(+), 11 deletions(-)
|
||||
6 files changed, 11 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
index 28c61663bd4d..84ea2446f9d7 100644
|
||||
index 87a9825af1cb..93e827ac540e 100644
|
||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml
|
||||
@@ -38,10 +38,10 @@
|
||||
@@ -43,11 +44,24 @@ index 28c61663bd4d..84ea2446f9d7 100644
|
||||
chargeAnimationDelay="200"
|
||||
dozeWeight="200"
|
||||
lockScreenWeight="400"
|
||||
diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
||||
index 7c5dbc247428..64657547621f 100644
|
||||
--- a/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/layout/keyguard_slice_view.xml
|
||||
@@ -38,7 +38,7 @@
|
||||
android:id="@+id/row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
- android:orientation="horizontal"
|
||||
+ android:orientation="vertical"
|
||||
android:gravity="start"
|
||||
/>
|
||||
</com.android.keyguard.KeyguardSliceView>
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/dimens.xml b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
index 7e3c87b24f07..58a1734aad22 100644
|
||||
index 89dd741e2898..5aedf82f4d32 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/dimens.xml
|
||||
@@ -94,8 +94,8 @@
|
||||
@@ -89,10 +89,10 @@
|
||||
<dimen name="num_pad_key_margin_end">12dp</dimen>
|
||||
|
||||
<!-- additional offset for clock switch area items -->
|
||||
@@ -58,12 +72,14 @@ index 7e3c87b24f07..58a1734aad22 100644
|
||||
<dimen name="below_clock_padding_end">16dp</dimen>
|
||||
- <dimen name="below_clock_padding_start_icons">28dp</dimen>
|
||||
+ <dimen name="below_clock_padding_start_icons">22dp</dimen>
|
||||
</resources>
|
||||
|
||||
<!-- Proportion of the screen height to use to set the maximum height of the bouncer to when
|
||||
the device is in the DEVICE_POSTURE_HALF_OPENED posture, for the PIN/pattern entry. 0 will
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index 098b7e8dedbe..86f053535ee6 100644
|
||||
index b8770e831d45..7f47e274304a 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -123,8 +123,6 @@
|
||||
@@ -116,8 +116,6 @@
|
||||
<item name="android:ellipsize">end</item>
|
||||
<item name="android:maxLines">2</item>
|
||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
@@ -73,10 +89,10 @@ index 098b7e8dedbe..86f053535ee6 100644
|
||||
|
||||
<style name="TextAppearance.Keyguard.Secondary">
|
||||
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
|
||||
index bb258ab18f82..f03f14d3316c 100644
|
||||
index ba0361de6e8b..c5899b93c937 100644
|
||||
--- a/packages/SystemUI/res/values/styles.xml
|
||||
+++ b/packages/SystemUI/res/values/styles.xml
|
||||
@@ -343,7 +343,7 @@
|
||||
@@ -274,7 +274,7 @@
|
||||
<item name="darkIconTheme">@style/DualToneDarkTheme</item>
|
||||
<item name="wallpaperTextColor">@*android:color/primary_text_material_dark</item>
|
||||
<item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_dark</item>
|
||||
@@ -85,7 +101,7 @@ index bb258ab18f82..f03f14d3316c 100644
|
||||
<item name="android:colorError">@*android:color/error_color_material_dark</item>
|
||||
<item name="*android:lockPatternStyle">@style/LockPatternStyle</item>
|
||||
<item name="passwordStyle">@style/PasswordTheme</item>
|
||||
@@ -359,7 +359,7 @@
|
||||
@@ -290,7 +290,7 @@
|
||||
<style name="Theme.SystemUI.LightWallpaper">
|
||||
<item name="wallpaperTextColor">@*android:color/primary_text_material_light</item>
|
||||
<item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_light</item>
|
||||
@@ -95,10 +111,10 @@ index bb258ab18f82..f03f14d3316c 100644
|
||||
<item name="shadowRadius">0</item>
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockView.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockView.java
|
||||
index ef3104a21708..ec54cdb53f22 100644
|
||||
index 2a0c2855c3b2..b6e18b8c20f8 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockView.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockView.java
|
||||
@@ -113,7 +113,7 @@ public class AnimatableClockView extends TextView {
|
||||
@@ -134,7 +134,7 @@ public class AnimatableClockView extends TextView {
|
||||
|
||||
void refreshTime() {
|
||||
mTime.setTimeInMillis(System.currentTimeMillis());
|
||||
@@ -0,0 +1,43 @@
|
||||
From 5f4834016ac6e140133908c9af78014c2b6e1c13 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
||||
Subject: [PATCH 05/15] Keyguard: Hide padlock unless UDFPS is in use
|
||||
|
||||
Fair enough Google, but don't give me that otherwise
|
||||
|
||||
Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
||||
---
|
||||
.../com/android/keyguard/LockIconViewController.java | 12 +++---------
|
||||
1 file changed, 3 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
index cc452c6f3b79..477be22c60f5 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
@@ -254,20 +254,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
||||
}
|
||||
|
||||
boolean wasShowingUnlock = mShowUnlockIcon;
|
||||
- boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon && !mShowLockIcon
|
||||
+ boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon
|
||||
&& !mShowAodUnlockedIcon && !mShowAodLockIcon;
|
||||
- mShowLockIcon = !mCanDismissLockScreen && !mUserUnlockedWithBiometric && isLockScreen()
|
||||
- && (!mUdfpsEnrolled || !mRunningFPS);
|
||||
- mShowUnlockIcon = (mCanDismissLockScreen || mUserUnlockedWithBiometric) && isLockScreen();
|
||||
+ mShowUnlockIcon = (mCanDismissLockScreen || mUserUnlockedWithBiometric) && isLockScreen() && mUdfpsEnrolled;
|
||||
mShowAodUnlockedIcon = mIsDozing && mUdfpsEnrolled && !mRunningFPS && mCanDismissLockScreen;
|
||||
mShowAodLockIcon = mIsDozing && mUdfpsEnrolled && !mRunningFPS && !mCanDismissLockScreen;
|
||||
|
||||
final CharSequence prevContentDescription = mView.getContentDescription();
|
||||
- if (mShowLockIcon) {
|
||||
- mView.updateIcon(ICON_LOCK, false);
|
||||
- mView.setContentDescription(mLockedLabel);
|
||||
- mView.setVisibility(View.VISIBLE);
|
||||
- } else if (mShowUnlockIcon) {
|
||||
+ if (mShowUnlockIcon) {
|
||||
if (wasShowingFpIcon) {
|
||||
// fp icon was shown by UdfpsView, and now we still want to animate the transition
|
||||
// in this drawable
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
From e6b6d26e1a86a3ff38630121164f83b653f20199 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 06:41:03 +0000
|
||||
Subject: [PATCH 06/16] Keyguard: Hide padlock unless UDFPS is in use
|
||||
|
||||
Fair enough Google, but don't give me that otherwise
|
||||
|
||||
Change-Id: Ie91e80ca5c6637a51a8acc72fb28cd6ac2a7abb6
|
||||
---
|
||||
.../keyguard/LockIconViewController.java | 29 +++++--------------
|
||||
1 file changed, 7 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
index 52ebf2fa09d0..0ed36b4fa949 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java
|
||||
@@ -259,32 +259,17 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
||||
return;
|
||||
}
|
||||
|
||||
- boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon && !mShowLockIcon;
|
||||
- boolean wasShowingLockIcon = mShowLockIcon;
|
||||
+ boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon;
|
||||
boolean wasShowingUnlockIcon = mShowUnlockIcon;
|
||||
- mShowLockIcon = !mCanDismissLockScreen && !mUserUnlockedWithBiometric && isLockScreen()
|
||||
- && (!mUdfpsEnrolled || !mRunningFPS);
|
||||
- mShowUnlockIcon = mCanDismissLockScreen && isLockScreen();
|
||||
+ mShowUnlockIcon = mCanDismissLockScreen && isLockScreen() && mUdfpsEnrolled;
|
||||
mShowAODFpIcon = mIsDozing && mUdfpsEnrolled && !mRunningFPS;
|
||||
|
||||
final CharSequence prevContentDescription = mView.getContentDescription();
|
||||
- if (mShowLockIcon) {
|
||||
- mView.setImageDrawable(mLockIcon);
|
||||
- mView.setVisibility(View.VISIBLE);
|
||||
- mView.setContentDescription(mLockedLabel);
|
||||
- } else if (mShowUnlockIcon) {
|
||||
- if (!wasShowingUnlockIcon) {
|
||||
- if (wasShowingFpIcon) {
|
||||
- mView.setImageDrawable(mFpToUnlockIcon);
|
||||
- mFpToUnlockIcon.forceAnimationOnUI();
|
||||
- mFpToUnlockIcon.start();
|
||||
- } else if (wasShowingLockIcon) {
|
||||
- mView.setImageDrawable(mLockToUnlockIcon);
|
||||
- mLockToUnlockIcon.forceAnimationOnUI();
|
||||
- mLockToUnlockIcon.start();
|
||||
- } else {
|
||||
- mView.setImageDrawable(mUnlockIcon);
|
||||
- }
|
||||
+ if (mShowUnlockIcon) {
|
||||
+ if (wasShowingFpIcon) {
|
||||
+ mView.setImageDrawable(mFpToUnlockIcon);
|
||||
+ mFpToUnlockIcon.forceAnimationOnUI();
|
||||
+ mFpToUnlockIcon.start();
|
||||
}
|
||||
mView.setVisibility(View.VISIBLE);
|
||||
mView.setContentDescription(mUnlockedLabel);
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From 49afc4395c225ca1f5493cfa1c460aa1ff5d95ce Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 1 Sep 2021 14:41:53 +0000
|
||||
Subject: [PATCH 06/15] Keyguard: Never switch to large clock
|
||||
|
||||
It looks alright actually, but as always breaks under landscape
|
||||
|
||||
Change-Id: I434d033ecae597ed2a7b2ed71e96ba1a963e9cc3
|
||||
---
|
||||
.../src/com/android/keyguard/KeyguardClockSwitchController.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
|
||||
index 86b12d3c0c3d..6eb97228b880 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
|
||||
@@ -436,7 +436,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
|
||||
|
||||
private void updateDoubleLineClock() {
|
||||
mCanShowDoubleLineClock = mSecureSettings.getInt(
|
||||
- Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK, 1) != 0;
|
||||
+ Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK, 0) != 0;
|
||||
|
||||
if (!mCanShowDoubleLineClock) {
|
||||
mUiExecutor.execute(() -> displayClock(KeyguardClockSwitch.SMALL));
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
From 66149d4057081df5f550cad82db44b5c0f2bd0c7 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 1 Sep 2021 14:41:53 +0000
|
||||
Subject: [PATCH 07/16] Keyguard: Never switch to large clock
|
||||
|
||||
It looks alright actually, but as always breaks under landscape
|
||||
|
||||
Change-Id: I434d033ecae597ed2a7b2ed71e96ba1a963e9cc3
|
||||
---
|
||||
.../com/android/keyguard/KeyguardClockSwitch.java | 12 +-----------
|
||||
1 file changed, 1 insertion(+), 11 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
|
||||
index a36a03473e0e..60195bcd23fb 100644
|
||||
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
|
||||
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
|
||||
@@ -280,17 +280,7 @@ public class KeyguardClockSwitch extends RelativeLayout {
|
||||
* the smaller version.
|
||||
*/
|
||||
boolean willSwitchToLargeClock(boolean hasVisibleNotifications) {
|
||||
- if (mHasVisibleNotifications != null
|
||||
- && hasVisibleNotifications == mHasVisibleNotifications) {
|
||||
- return false;
|
||||
- }
|
||||
- boolean landscape = getResources().getConfiguration().orientation
|
||||
- == Configuration.ORIENTATION_LANDSCAPE;
|
||||
- boolean useLargeClock = !hasVisibleNotifications && !landscape;
|
||||
- animateClockChange(useLargeClock);
|
||||
-
|
||||
- mHasVisibleNotifications = hasVisibleNotifications;
|
||||
- return useLargeClock;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
public Paint getPaint() {
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
From 2c4a2751c3ecee97883a3b8606e479ec2068f8c8 Mon Sep 17 00:00:00 2001
|
||||
From 8731b491f90317379cdb800bf1e47a1cb9bc7872 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 2 Nov 2019 08:31:36 +0000
|
||||
Subject: [PATCH 08/16] Keyguard: Refine indication text
|
||||
Subject: [PATCH 07/15] Keyguard: Refine indication text
|
||||
|
||||
Change-Id: Ib771c35610f712a1de34736e817bcfe616ac37d8
|
||||
---
|
||||
packages/SystemUI/res-keyguard/values/styles.xml | 2 --
|
||||
.../SystemUI/res/layout/keyguard_bottom_area.xml | 1 +
|
||||
packages/SystemUI/res/values/dimens.xml | 2 +-
|
||||
packages/SystemUI/res/values/dimens.xml | 3 +--
|
||||
.../KeyguardIndicationRotateTextViewController.java | 12 +++++++++++-
|
||||
.../statusbar/KeyguardIndicationController.java | 5 ++---
|
||||
.../statusbar/phone/KeyguardIndicationTextView.java | 2 +-
|
||||
6 files changed, 16 insertions(+), 8 deletions(-)
|
||||
6 files changed, 16 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
index 86f053535ee6..b03c87af3059 100644
|
||||
index 7f47e274304a..bb6c56455d72 100644
|
||||
--- a/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
+++ b/packages/SystemUI/res-keyguard/values/styles.xml
|
||||
@@ -137,8 +137,6 @@
|
||||
<item name="android:textSize">14sp</item>
|
||||
@@ -131,8 +131,6 @@
|
||||
<item name="android:maxLines">1</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:textColor">?attr/wallpaperTextColor</item>
|
||||
- <item name="android:shadowColor">@color/keyguard_shadow_color</item>
|
||||
- <item name="android:shadowRadius">?attr/shadowRadius</item>
|
||||
@@ -27,10 +27,10 @@ index 86f053535ee6..b03c87af3059 100644
|
||||
|
||||
<style name="TextAppearance.Keyguard.BottomArea.Button">
|
||||
diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
||||
index 8dbd59d42ab7..68cba51e07fa 100644
|
||||
index 759670e01e71..470c4ca488c2 100644
|
||||
--- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
||||
+++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml
|
||||
@@ -36,6 +36,7 @@
|
||||
@@ -35,6 +35,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
@@ -39,23 +39,27 @@ index 8dbd59d42ab7..68cba51e07fa 100644
|
||||
android:paddingEnd="@dimen/keyguard_indication_text_padding"
|
||||
android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 5d4e4a6ad3c4..cd11fb7d81ac 100644
|
||||
index 67488ec5bf3a..a34805f37278 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -920,7 +920,7 @@
|
||||
<dimen name="keyguard_lock_width">42dp</dimen>
|
||||
@@ -696,11 +696,10 @@
|
||||
<dimen name="keyguard_lock_height">42dp</dimen>
|
||||
<dimen name="keyguard_lock_padding">20dp</dimen>
|
||||
|
||||
- <dimen name="keyguard_indication_margin_bottom">32dp</dimen>
|
||||
+ <dimen name="keyguard_indication_margin_bottom">16dp</dimen>
|
||||
<dimen name="lock_icon_margin_bottom">98dp</dimen>
|
||||
<dimen name="lock_icon_margin_bottom">110dp</dimen>
|
||||
<dimen name="ambient_indication_margin_bottom">71dp</dimen>
|
||||
|
||||
-
|
||||
<!-- How much two taps can be apart to still be recognized as a double tap on the lockscreen -->
|
||||
<dimen name="double_tap_slop">32dp</dimen>
|
||||
|
||||
<!-- The text size for battery level -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
index a424674ed252..b2af483bb76e 100644
|
||||
index d73d9cdb7d40..a7a23032963a 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardIndicationRotateTextViewController.java
|
||||
@@ -182,12 +182,22 @@ public class KeyguardIndicationRotateTextViewController extends
|
||||
@@ -218,12 +218,22 @@ public class KeyguardIndicationRotateTextViewController extends
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,13 +81,13 @@ index a424674ed252..b2af483bb76e 100644
|
||||
+ }
|
||||
+
|
||||
/**
|
||||
* Immediately show the passed indication type and schedule the next indication to show.
|
||||
* Will re-add this indication to be re-shown after all other indications have been
|
||||
* Clears all messages in the queue and sets the current message to an empty string.
|
||||
*/
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
index 8a397199dc84..f2df767db567 100644
|
||||
index d7b4738340e6..e4f01184e0d8 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
|
||||
@@ -433,12 +433,11 @@ public class KeyguardIndicationController {
|
||||
@@ -471,12 +471,11 @@ public class KeyguardIndicationController {
|
||||
}
|
||||
|
||||
private void updateResting() {
|
||||
@@ -99,17 +103,17 @@ index 8a397199dc84..f2df767db567 100644
|
||||
.build(),
|
||||
false);
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
index a5b5f1cbf1e7..df981c4e3129 100644
|
||||
index 339f371c0d12..bd1432303463 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java
|
||||
@@ -49,7 +49,7 @@ public class KeyguardIndicationTextView extends TextView {
|
||||
@@ -44,7 +44,7 @@ public class KeyguardIndicationTextView extends TextView {
|
||||
@StyleRes
|
||||
private static int sButtonStyleId = R.style.TextAppearance_Keyguard_BottomArea_Button;
|
||||
|
||||
private long mNextAnimationTime = 0;
|
||||
- private boolean mAnimationsEnabled = true;
|
||||
+ private boolean mAnimationsEnabled = false;
|
||||
private LinkedList<CharSequence> mMessages = new LinkedList<>();
|
||||
private LinkedList<KeyguardIndication> mKeyguardIndicationInfo = new LinkedList<>();
|
||||
private CharSequence mMessage;
|
||||
private KeyguardIndication mKeyguardIndicationInfo;
|
||||
|
||||
--
|
||||
2.25.1
|
||||
@@ -1,10 +1,10 @@
|
||||
From cca9cb4645f5aa079c5ed39339f02f78a7e68695 Mon Sep 17 00:00:00 2001
|
||||
From a98e2005d08374939d821f1ff95b8489bcbdcaaf Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 20 Mar 2021 10:35:14 +0000
|
||||
Subject: [PATCH 09/16] Keyguard/UI: Fix status bar / quick settings margins
|
||||
Subject: [PATCH 08/15] Keyguard/UI: Fix status bar / quick settings margins
|
||||
and paddings
|
||||
|
||||
Last revised on 2021/12/10, targeting s-qpr1
|
||||
Last revised on 2022/03/13, targeting s-v2
|
||||
|
||||
The way I think SB/QS margins/paddings should work:
|
||||
- Devices with left notch: [notch_definition][status_bar_padding_start][content]...[content][status_bar_padding_end][rounded_corner_content_padding]
|
||||
@@ -23,13 +23,13 @@ As a result, below changes have been made:
|
||||
Change-Id: Ic91fa398813e1907297bb0892c444d96405950e7
|
||||
---
|
||||
.../res/layout/keyguard_status_bar.xml | 2 +-
|
||||
.../res/layout/quick_qs_status_icons.xml | 6 --
|
||||
.../res/layout/quick_qs_status_icons.xml | 6 ---
|
||||
.../quick_status_bar_header_date_privacy.xml | 5 +-
|
||||
.../SystemUI/res/values-sw600dp/dimens.xml | 6 --
|
||||
packages/SystemUI/res/values/dimens.xml | 6 +-
|
||||
.../systemui/qs/QuickStatusBarHeader.java | 61 +++++++++++++------
|
||||
.../SystemUI/res/values-sw600dp/dimens.xml | 3 --
|
||||
packages/SystemUI/res/values/dimens.xml | 2 +-
|
||||
.../systemui/qs/QuickStatusBarHeader.java | 51 ++++++++++++-------
|
||||
.../phone/KeyguardStatusBarView.java | 7 ---
|
||||
7 files changed, 47 insertions(+), 46 deletions(-)
|
||||
7 files changed, 35 insertions(+), 41 deletions(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/layout/keyguard_status_bar.xml b/packages/SystemUI/res/layout/keyguard_status_bar.xml
|
||||
index 850b01717308..054db34023af 100644
|
||||
@@ -45,14 +45,14 @@ index 850b01717308..054db34023af 100644
|
||||
android:gravity="center_vertical"
|
||||
android:ellipsize="marquee"
|
||||
diff --git a/packages/SystemUI/res/layout/quick_qs_status_icons.xml b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
index 27514617fb23..ada85c137600 100644
|
||||
index 7a370d8cbc48..0247eebea131 100644
|
||||
--- a/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
+++ b/packages/SystemUI/res/layout/quick_qs_status_icons.xml
|
||||
@@ -21,7 +21,6 @@
|
||||
android:layout_height="@*android:dimen/quick_qs_offset_height"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
- android:minHeight="48dp"
|
||||
- android:minHeight="@dimen/qs_header_row_min_height"
|
||||
android:clickable="false"
|
||||
android:focusable="true"
|
||||
android:theme="@style/QSHeaderTheme">
|
||||
@@ -60,7 +60,7 @@ index 27514617fb23..ada85c137600 100644
|
||||
android:id="@+id/clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
- android:minHeight="48dp"
|
||||
- android:minHeight="@dimen/qs_header_row_min_height"
|
||||
android:gravity="center_vertical|start"
|
||||
- android:paddingStart="@dimen/status_bar_left_clock_starting_padding"
|
||||
- android:paddingEnd="@dimen/status_bar_left_clock_end_padding"
|
||||
@@ -79,7 +79,7 @@ index 27514617fb23..ada85c137600 100644
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
- android:minHeight="48dp"
|
||||
- android:minHeight="@dimen/qs_header_row_min_height"
|
||||
android:minWidth="48dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
@@ -112,12 +112,12 @@ index b1e8c386fe21..cff67718bc47 100644
|
||||
android:gravity="center_vertical|end" >
|
||||
|
||||
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
index 0a34dfd71c7e..3d590d752a7b 100644
|
||||
index 7d033018c27f..3cd67d844895 100644
|
||||
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
|
||||
@@ -53,9 +53,6 @@
|
||||
<!-- end margin for multi user switch in collapsed quick settings -->
|
||||
<dimen name="multi_user_switch_keyguard_margin">6dp</dimen>
|
||||
@@ -27,9 +27,6 @@
|
||||
<!-- The width of user avatar when on Keyguard -->
|
||||
<dimen name="multi_user_avatar_keyguard_size">30dp</dimen>
|
||||
|
||||
- <!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
- <dimen name="keyguard_carrier_text_margin">24dp</dimen>
|
||||
@@ -125,53 +125,25 @@ index 0a34dfd71c7e..3d590d752a7b 100644
|
||||
<!-- The width/height of the phone/camera/unlock icon on keyguard. -->
|
||||
<dimen name="keyguard_affordance_height">80dp</dimen>
|
||||
<dimen name="keyguard_affordance_width">120dp</dimen>
|
||||
@@ -64,9 +61,6 @@
|
||||
phone hints. -->
|
||||
<dimen name="edge_tap_area_width">80dp</dimen>
|
||||
|
||||
- <!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
- <dimen name="system_icons_keyguard_padding_end">2dp</dimen>
|
||||
-
|
||||
<!-- Screen pinning request width -->
|
||||
<dimen name="screen_pinning_request_width">400dp</dimen>
|
||||
<!-- Screen pinning request bottom button circle widths -->
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index cd11fb7d81ac..786b21f7595a 100644
|
||||
index a34805f37278..6eac3b8f357d 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -449,7 +449,7 @@
|
||||
<dimen name="system_icons_super_container_margin_start">16dp</dimen>
|
||||
|
||||
<!-- Margin end of the system icons super container when the avatar is missing. -->
|
||||
- <dimen name="system_icons_super_container_avatarless_margin_end">6dp</dimen>
|
||||
+ <dimen name="system_icons_super_container_avatarless_margin_end">0dp</dimen>
|
||||
|
||||
<!-- Width for the notification panel and related windows -->
|
||||
<dimen name="match_parent">-1px</dimen>
|
||||
@@ -868,7 +868,7 @@
|
||||
@@ -672,7 +672,7 @@
|
||||
<dimen name="kg_framed_avatar_size">32dp</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
- <dimen name="keyguard_carrier_text_margin">16dp</dimen>
|
||||
+ <dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
||||
|
||||
<!-- Margin on the left side of the battery % in the header. -->
|
||||
<dimen name="header_battery_margin_expanded">6dp</dimen>
|
||||
@@ -877,7 +877,7 @@
|
||||
<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>
|
||||
+ <dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
|
||||
|
||||
<!-- Additional translation (downwards) for appearing notifications when going to the full shade
|
||||
from Keyguard. -->
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
index 3478ec463573..386b4e007a90 100644
|
||||
index 60a5df0665e7..55112ee27ef3 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java
|
||||
@@ -91,6 +91,10 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
private QSExpansionPathInterpolator mQSExpansionPathInterpolator;
|
||||
@@ -93,6 +93,10 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
private StatusBarContentInsetsProvider mInsetsProvider;
|
||||
|
||||
private int mRoundedCornerPadding = 0;
|
||||
+ private int mStatusBarPaddingStart;
|
||||
@@ -181,16 +153,7 @@ index 3478ec463573..386b4e007a90 100644
|
||||
private int mWaterfallTopInset;
|
||||
private int mCutOutPaddingLeft;
|
||||
private int mCutOutPaddingRight;
|
||||
@@ -102,6 +106,8 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
private List<String> mRssiIgnoredSlots;
|
||||
private boolean mIsSingleCarrier;
|
||||
|
||||
+ private boolean mHasLeftCutout;
|
||||
+ private boolean mHasRightCutout;
|
||||
private boolean mHasCenterCutout;
|
||||
private boolean mConfigShowBatteryEstimate;
|
||||
|
||||
@@ -244,6 +250,11 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
@@ -259,6 +263,11 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
mRoundedCornerPadding = resources.getDimensionPixelSize(
|
||||
R.dimen.rounded_corner_content_padding);
|
||||
|
||||
@@ -199,10 +162,10 @@ index 3478ec463573..386b4e007a90 100644
|
||||
+ mStatusBarPaddingEnd = resources.getDimensionPixelSize(
|
||||
+ R.dimen.status_bar_padding_end);
|
||||
+
|
||||
int qsOffsetHeight = resources.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.quick_qs_offset_height);
|
||||
int qsOffsetHeight = SystemBarUtils.getQuickQsOffsetHeight(mContext);
|
||||
|
||||
@@ -324,6 +335,9 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
mDatePrivacyView.getLayoutParams().height =
|
||||
@@ -346,6 +355,9 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
.addFloat(mDateView, "alpha", 0, 0, 1)
|
||||
.addFloat(mClockDateView, "alpha", 1, 0, 0)
|
||||
.addFloat(mQSCarriers, "alpha", 0, 1)
|
||||
@@ -212,41 +175,19 @@ index 3478ec463573..386b4e007a90 100644
|
||||
.setListener(new TouchAnimator.ListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationAtEnd() {
|
||||
@@ -430,8 +444,6 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
Pair<Integer, Integer> padding =
|
||||
StatusBarWindowView.paddingNeededForCutoutAndRoundedCorner(
|
||||
cutout, cornerCutoutPadding, -1);
|
||||
- mDatePrivacyView.setPadding(padding.first, 0, padding.second, 0);
|
||||
- mClockIconsView.setPadding(padding.first, 0, padding.second, 0);
|
||||
@@ -451,8 +463,6 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
.getStatusBarContentInsetsForCurrentRotation();
|
||||
boolean hasCornerCutout = mInsetsProvider.currentRotationHasCornerCutout();
|
||||
|
||||
- mDatePrivacyView.setPadding(sbInsets.first, 0, sbInsets.second, 0);
|
||||
- mStatusIconsView.setPadding(sbInsets.first, 0, sbInsets.second, 0);
|
||||
LinearLayout.LayoutParams datePrivacySeparatorLayoutParams =
|
||||
(LinearLayout.LayoutParams) mDatePrivacySeparator.getLayoutParams();
|
||||
LinearLayout.LayoutParams mClockIconsSeparatorLayoutParams =
|
||||
@@ -446,6 +458,12 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
mClockIconsSeparatorLayoutParams.width = 0;
|
||||
setSeparatorVisibility(false);
|
||||
mShowClockIconsSeparator = false;
|
||||
+ if (cornerCutoutPadding.first != 0) {
|
||||
+ mHasLeftCutout = true;
|
||||
+ }
|
||||
+ if (cornerCutoutPadding.second != 0) {
|
||||
+ mHasRightCutout = true;
|
||||
+ }
|
||||
mHasCenterCutout = false;
|
||||
} else {
|
||||
datePrivacySeparatorLayoutParams.width = topCutout.width();
|
||||
@@ -453,6 +471,8 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
mClockIconsSeparatorLayoutParams.width = topCutout.width();
|
||||
mShowClockIconsSeparator = true;
|
||||
setSeparatorVisibility(mKeyguardExpansionFraction == 0f);
|
||||
+ mHasLeftCutout = false;
|
||||
+ mHasRightCutout = false;
|
||||
mHasCenterCutout = true;
|
||||
}
|
||||
}
|
||||
@@ -497,34 +517,37 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
@@ -516,34 +526,37 @@ public class QuickStatusBarHeader extends FrameLayout implements TunerService.Tu
|
||||
private void updateHeadersPadding() {
|
||||
setContentMargins(mDatePrivacyView, 0, 0);
|
||||
setContentMargins(mClockIconsView, 0, 0);
|
||||
setContentMargins(mStatusIconsView, 0, 0);
|
||||
- int paddingLeft = 0;
|
||||
- int paddingRight = 0;
|
||||
|
||||
@@ -290,8 +231,8 @@ index 3478ec463573..386b4e007a90 100644
|
||||
- paddingRight,
|
||||
+ mHeaderPaddingRight + mStatusBarPaddingEnd,
|
||||
0);
|
||||
- mClockIconsView.setPadding(paddingLeft,
|
||||
+ mClockIconsView.setPadding(0,
|
||||
- mStatusIconsView.setPadding(paddingLeft,
|
||||
+ mStatusIconsView.setPadding(0,
|
||||
mWaterfallTopInset,
|
||||
- paddingRight,
|
||||
+ 0,
|
||||
@@ -299,10 +240,10 @@ index 3478ec463573..386b4e007a90 100644
|
||||
}
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
index efc02548763a..ce5719c674dd 100644
|
||||
index b11843cd5d1f..049939ed41a2 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
|
||||
@@ -164,14 +164,7 @@ public class KeyguardStatusBarView extends RelativeLayout implements
|
||||
@@ -151,14 +151,7 @@ public class KeyguardStatusBarView extends RelativeLayout {
|
||||
mCarrierLabel.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
||||
getResources().getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.text_size_small_material));
|
||||
@@ -1,7 +1,7 @@
|
||||
From b8fe4a2e79bd273f69bb0331eb0d07ad0454d43f Mon Sep 17 00:00:00 2001
|
||||
From 9c36c8f2bdfbd5b584397da9b9ab17c177fe9d84 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 5 Sep 2021 01:20:12 +0000
|
||||
Subject: [PATCH 11/16] Revert "Update RAT icons to match Silk design"
|
||||
Subject: [PATCH 09/15] Revert "Update RAT icons to match Silk design"
|
||||
|
||||
This reverts commit 084c13c8216f6a899cd3eda04fc1d7acff3d1248.
|
||||
---
|
||||
@@ -1,378 +0,0 @@
|
||||
From da27cecc0366133f80c38aa479da212faa503181 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 19 Oct 2021 12:11:24 +0000
|
||||
Subject: [PATCH 10/16] Revert "monet: Add support for monet (cam16)"
|
||||
|
||||
This reverts commit f4460c9cb0494ddcc1829b05298d140fa1afc526.
|
||||
|
||||
Change-Id: I94ca83b2c147a32afeb4fbddbc5d6dbcfd804199
|
||||
---
|
||||
packages/SystemUI/Android.bp | 2 -
|
||||
packages/SystemUI/monet/Android.bp | 12 --
|
||||
packages/SystemUI/monet/AndroidManifest.xml | 4 -
|
||||
.../com/android/systemui/monet/ColorScheme.kt | 168 ------------------
|
||||
.../com/android/systemui/monet/Shades.java | 19 --
|
||||
.../theme/ThemeOverlayController.java | 56 ++----
|
||||
6 files changed, 10 insertions(+), 251 deletions(-)
|
||||
delete mode 100644 packages/SystemUI/monet/Android.bp
|
||||
delete mode 100644 packages/SystemUI/monet/AndroidManifest.xml
|
||||
delete mode 100644 packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
delete mode 100644 packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
|
||||
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
|
||||
index e677b10295f6..e86486dbc6bc 100644
|
||||
--- a/packages/SystemUI/Android.bp
|
||||
+++ b/packages/SystemUI/Android.bp
|
||||
@@ -97,7 +97,6 @@ android_library {
|
||||
"lottie",
|
||||
"org.lineageos.platform.internal",
|
||||
"vendor.lineage.powershare-V1.0-java",
|
||||
- "monet",
|
||||
],
|
||||
manifest: "AndroidManifest.xml",
|
||||
additional_manifests: ["LineageManifest.xml"],
|
||||
@@ -188,7 +187,6 @@ android_library {
|
||||
"WindowManager-Shell",
|
||||
"org.lineageos.platform.internal",
|
||||
"vendor.lineage.powershare-V1.0-java",
|
||||
- "monet",
|
||||
],
|
||||
libs: [
|
||||
"android.test.runner",
|
||||
diff --git a/packages/SystemUI/monet/Android.bp b/packages/SystemUI/monet/Android.bp
|
||||
deleted file mode 100644
|
||||
index 42563765b077..000000000000
|
||||
--- a/packages/SystemUI/monet/Android.bp
|
||||
+++ /dev/null
|
||||
@@ -1,12 +0,0 @@
|
||||
-java_library {
|
||||
- name: "monet",
|
||||
- platform_apis: true,
|
||||
- static_libs: [
|
||||
- "androidx.annotation_annotation",
|
||||
- "androidx.core_core",
|
||||
- ],
|
||||
- srcs: [
|
||||
- "src/**/*.java",
|
||||
- "src/**/*.kt",
|
||||
- ],
|
||||
-}
|
||||
diff --git a/packages/SystemUI/monet/AndroidManifest.xml b/packages/SystemUI/monet/AndroidManifest.xml
|
||||
deleted file mode 100644
|
||||
index 37f0050ee949..000000000000
|
||||
--- a/packages/SystemUI/monet/AndroidManifest.xml
|
||||
+++ /dev/null
|
||||
@@ -1,4 +0,0 @@
|
||||
-<?xml version="1.0" encoding="utf-8"?>
|
||||
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
- package="com.android.systemui.monet">
|
||||
-</manifest>
|
||||
diff --git a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt b/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
deleted file mode 100644
|
||||
index 56a9c805ca81..000000000000
|
||||
--- a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt
|
||||
+++ /dev/null
|
||||
@@ -1,168 +0,0 @@
|
||||
-package com.android.systemui.monet
|
||||
-
|
||||
-import android.app.WallpaperColors
|
||||
-import android.graphics.Color
|
||||
-import com.android.internal.graphics.ColorUtils
|
||||
-import com.android.internal.graphics.cam.Cam
|
||||
-import com.android.internal.graphics.cam.CamUtils
|
||||
-import kotlin.math.absoluteValue
|
||||
-import kotlin.math.roundToInt
|
||||
-
|
||||
-public class ColorScheme(i: Int, val darkTheme: Boolean) {
|
||||
- val accent1: List<Int>
|
||||
- val accent2: List<Int>
|
||||
- val accent3: List<Int>
|
||||
- val neutral1: List<Int>
|
||||
- val neutral2: List<Int>
|
||||
-
|
||||
- init {
|
||||
- val fromInt = Cam.fromInt(if (i == 0) -14979341 else i)
|
||||
- val hue = fromInt.hue
|
||||
- accent1 = Shades.of(hue, fromInt.chroma.coerceAtLeast(48.0f)).toList()
|
||||
- accent2 = Shades.of(hue, 16.0f).toList()
|
||||
- accent3 = Shades.of(60.0f + hue, 32.0f).toList()
|
||||
- neutral1 = Shades.of(hue, 4.0f).toList()
|
||||
- neutral2 = Shades.of(hue, 8.0f).toList()
|
||||
- }
|
||||
-
|
||||
- val accentColors1: List<Int>
|
||||
- get() {
|
||||
- return accent1
|
||||
- }
|
||||
-
|
||||
- val allAccentColors: List<Int>
|
||||
- get() {
|
||||
- val arrayList = mutableListOf<Int>()
|
||||
- arrayList.addAll(accent1)
|
||||
- arrayList.addAll(accent2)
|
||||
- arrayList.addAll(accent3)
|
||||
- return arrayList
|
||||
- }
|
||||
-
|
||||
- val allNeutralColors: List<Int>
|
||||
- get() {
|
||||
- val arrayList = mutableListOf<Int>()
|
||||
- arrayList.addAll(neutral1)
|
||||
- arrayList.addAll(neutral2)
|
||||
- return arrayList
|
||||
- }
|
||||
-
|
||||
- override fun toString(): String {
|
||||
- return "ColorScheme {\n" +
|
||||
- " neutral1: ${humanReadable(neutral1)}\n" +
|
||||
- " neutral2: ${humanReadable(neutral2)}\n" +
|
||||
- " accent1: ${humanReadable(accent1)}\n" +
|
||||
- " accent2: ${humanReadable(accent2)}\n" +
|
||||
- " accent3: ${humanReadable(accent3)}\n" +
|
||||
- "}"
|
||||
- }
|
||||
-
|
||||
- companion object {
|
||||
- @JvmStatic
|
||||
- fun getSeedColor(wallpaperColors: WallpaperColors): Int {
|
||||
- return getSeedColors(wallpaperColors).first()
|
||||
- }
|
||||
-
|
||||
- @JvmStatic
|
||||
- fun getSeedColors(wallpaperColors: WallpaperColors): List<Int> {
|
||||
- val intValue2 = wallpaperColors.allColors.values.reduce { a, b -> a + b }.toDouble()
|
||||
- val z2 = (intValue2 == 0.0)
|
||||
- if (z2) {
|
||||
- val list2 = wallpaperColors.mainColors.map {
|
||||
- it.toArgb()
|
||||
- }.distinct().filter {
|
||||
- Cam.fromInt(it).chroma >= 15.0f && CamUtils.lstarFromInt(it) >= 10.0f
|
||||
- }.toList()
|
||||
-
|
||||
- if (list2.isEmpty()) {
|
||||
- return listOf(-14979341)
|
||||
- }
|
||||
- return list2
|
||||
- }
|
||||
-
|
||||
- val linkedHashMap = wallpaperColors.allColors.mapValues { it.value.toDouble() / intValue2 }
|
||||
-
|
||||
- val linkedHashMap2 = wallpaperColors.allColors.mapValues { Cam.fromInt(it.key) }
|
||||
-
|
||||
- val huePopulation = huePopulations(linkedHashMap2, linkedHashMap)
|
||||
-
|
||||
- val linkedHashMap3 = wallpaperColors.allColors.mapValues {
|
||||
- val cam = linkedHashMap2[it.key]!!
|
||||
- val i = cam.hue.roundToInt()
|
||||
- val i2 = i - 15
|
||||
- val i3 = i + 15
|
||||
- var d = 0.0
|
||||
- for (a in i2..i3) {
|
||||
- d += huePopulation[wrapDegrees(a)]
|
||||
- }
|
||||
- d
|
||||
- }
|
||||
-
|
||||
- val linkedHashMap4 = linkedHashMap2.filter {
|
||||
- val key4 = it.key
|
||||
- val lstarFromInt = CamUtils.lstarFromInt(key4)
|
||||
- val d2 = linkedHashMap3[key4]!!
|
||||
- it.value.chroma >= 15.0f && lstarFromInt >= 10.0f && (z2 || d2 > 0.01)
|
||||
- }
|
||||
-
|
||||
- val arrayList3 = mutableListOf<Int>()
|
||||
- val linkedHashMap5 = linkedHashMap4.mapValues {
|
||||
- score(it.value, linkedHashMap3[it.key]!!)
|
||||
- }
|
||||
-
|
||||
- val list3 = linkedHashMap5.entries.toMutableList()
|
||||
- list3.sortByDescending { it.value }
|
||||
-
|
||||
- for (entry6 in list3) {
|
||||
- val num2 = entry6.key
|
||||
- val z = arrayList3.find {
|
||||
- val hue1 = linkedHashMap2[num2]!!.hue
|
||||
- val hue2 = linkedHashMap2[it]!!.hue
|
||||
- hueDiff(hue1, hue2) < 15 } != null
|
||||
- if (z) {
|
||||
- continue
|
||||
- }
|
||||
- arrayList3.add(num2)
|
||||
- }
|
||||
-
|
||||
- if (arrayList3.isEmpty()) {
|
||||
- arrayList3.add(-14979341)
|
||||
- }
|
||||
-
|
||||
- return arrayList3;
|
||||
- }
|
||||
-
|
||||
- private fun wrapDegrees(i: Int): Int {
|
||||
- if (i < 0) {
|
||||
- return (i % 360) + 360
|
||||
- }
|
||||
- return if (i >= 360) i % 360 else i
|
||||
- }
|
||||
-
|
||||
- private fun hueDiff(f: Float, f2: Float): Float {
|
||||
- return 180f - ((f - f2).absoluteValue - 180f).absoluteValue
|
||||
- }
|
||||
-
|
||||
- private fun humanReadable(list: List<Int>): String {
|
||||
- return list.joinToString { "#" + Integer.toHexString(it) }
|
||||
- }
|
||||
-
|
||||
- private fun score(cam: Cam, d: Double): Double {
|
||||
- val f = cam.getChroma()
|
||||
- val d2 = if (f < 48.0) 0.1 else 0.3
|
||||
- val d3 = d * 70.0
|
||||
- return ((f - 48.0) * d2) + d3
|
||||
- }
|
||||
-
|
||||
- private fun huePopulations(map: Map<Int, Cam>, map2: Map<Int, Double>): List<Double> {
|
||||
- val arrayList = List(size = 360, init = { 0.0 }).toMutableList()
|
||||
- for (entry in map2.entries) {
|
||||
- val d = map2[entry.key]!!
|
||||
- val cam = map[entry.key]!!
|
||||
- val i2 = cam.hue.roundToInt() % 360
|
||||
- arrayList[i2] = arrayList[i2] + d
|
||||
- }
|
||||
- return arrayList
|
||||
- }
|
||||
- }
|
||||
-}
|
||||
diff --git a/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java b/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
deleted file mode 100644
|
||||
index 5ab00a1afcb4..000000000000
|
||||
--- a/packages/SystemUI/monet/src/com/android/systemui/monet/Shades.java
|
||||
+++ /dev/null
|
||||
@@ -1,19 +0,0 @@
|
||||
-package com.android.systemui.monet;
|
||||
-
|
||||
-import com.android.internal.annotations.VisibleForTesting;
|
||||
-import com.android.internal.graphics.ColorUtils;
|
||||
-
|
||||
-@VisibleForTesting
|
||||
-public class Shades {
|
||||
- public static int[] of(float f, float f2) {
|
||||
- int[] iArr = new int[12];
|
||||
- iArr[0] = ColorUtils.CAMToColor(f, f2, 99.0f);
|
||||
- iArr[1] = ColorUtils.CAMToColor(f, f2, 95.0f);
|
||||
- int i = 2;
|
||||
- while (i < 12) {
|
||||
- iArr[i] = ColorUtils.CAMToColor(f, f2, i == 6 ? 49.6f : (float) (100 - ((i - 1) * 10)));
|
||||
- i++;
|
||||
- }
|
||||
- return iArr;
|
||||
- }
|
||||
-}
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
index 1e35c9e51150..81999b534046 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
|
||||
@@ -37,7 +37,6 @@ import android.content.IntentFilter;
|
||||
import android.content.om.FabricatedOverlay;
|
||||
import android.content.om.OverlayIdentifier;
|
||||
import android.content.pm.UserInfo;
|
||||
-import android.content.res.Configuration;
|
||||
import android.database.ContentObserver;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
@@ -48,11 +47,9 @@ import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Log;
|
||||
-import android.util.TypedValue;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
-import com.android.internal.graphics.ColorUtils;
|
||||
import com.android.systemui.Dumpable;
|
||||
import com.android.systemui.SystemUI;
|
||||
import com.android.systemui.broadcast.BroadcastDispatcher;
|
||||
@@ -61,7 +58,6 @@ import com.android.systemui.dagger.qualifiers.Background;
|
||||
import com.android.systemui.dagger.qualifiers.Main;
|
||||
import com.android.systemui.dump.DumpManager;
|
||||
import com.android.systemui.keyguard.WakefulnessLifecycle;
|
||||
-import com.android.systemui.monet.ColorScheme;
|
||||
import com.android.systemui.settings.UserTracker;
|
||||
import com.android.systemui.statusbar.FeatureFlags;
|
||||
import com.android.systemui.statusbar.policy.DeviceProvisionedController;
|
||||
@@ -75,7 +71,6 @@ import java.io.FileDescriptor;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
-import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Executor;
|
||||
@@ -408,56 +403,25 @@ public class ThemeOverlayController extends SystemUI implements Dumpable {
|
||||
* Return the main theme color from a given {@link WallpaperColors} instance.
|
||||
*/
|
||||
protected int getNeutralColor(@NonNull WallpaperColors wallpaperColors) {
|
||||
- return ColorScheme.getSeedColor(wallpaperColors);
|
||||
+ return wallpaperColors.getPrimaryColor().toArgb();
|
||||
}
|
||||
|
||||
protected int getAccentColor(@NonNull WallpaperColors wallpaperColors) {
|
||||
- return ColorScheme.getSeedColor(wallpaperColors);
|
||||
- }
|
||||
-
|
||||
- private final boolean inDarkMode() {
|
||||
- return (mContext.getResources().getConfiguration().uiMode
|
||||
- & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
|
||||
+ Color accentCandidate = wallpaperColors.getSecondaryColor();
|
||||
+ if (accentCandidate == null) {
|
||||
+ accentCandidate = wallpaperColors.getTertiaryColor();
|
||||
+ }
|
||||
+ if (accentCandidate == null) {
|
||||
+ accentCandidate = wallpaperColors.getPrimaryColor();
|
||||
+ }
|
||||
+ return accentCandidate.toArgb();
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a color candidate, return an overlay definition.
|
||||
*/
|
||||
protected @Nullable FabricatedOverlay getOverlay(int color, int type) {
|
||||
- ColorScheme colorScheme = new ColorScheme(color, inDarkMode());
|
||||
- List<Integer> colors;
|
||||
- String name;
|
||||
-
|
||||
- if (type == ACCENT) {
|
||||
- colors = colorScheme.getAllAccentColors();
|
||||
- name = "accent";
|
||||
- } else {
|
||||
- colors = colorScheme.getAllNeutralColors();
|
||||
- name = "neutral";
|
||||
- }
|
||||
-
|
||||
- int size = colorScheme.getAccent1().size();
|
||||
- FabricatedOverlay.Builder builder =
|
||||
- new FabricatedOverlay.Builder(mContext.getPackageName(), name, "android");
|
||||
-
|
||||
- for (int i = 0; i < colors.size(); i++) {
|
||||
- int lightness = i % size;
|
||||
- int shade = i / size + 1;
|
||||
-
|
||||
- String targetResource = "android:color/system_";
|
||||
- if (lightness == 0) {
|
||||
- targetResource += name + shade + "_10";
|
||||
- } else if (lightness == 1) {
|
||||
- targetResource += name + shade + "_50";
|
||||
- } else {
|
||||
- targetResource += name + shade + "_" + (lightness - 1) + "00";
|
||||
- }
|
||||
-
|
||||
- builder.setResourceValue(targetResource, TypedValue.TYPE_INT_COLOR_ARGB8,
|
||||
- ColorUtils.setAlphaComponent(colors.get(i).intValue(), 0xFF));
|
||||
- }
|
||||
-
|
||||
- return builder.build();
|
||||
+ return null;
|
||||
}
|
||||
|
||||
private void updateThemeOverlays() {
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From fe5e86fc264bf9ca5d6cfa89d28d51bd123c2966 Mon Sep 17 00:00:00 2001
|
||||
From f8b7656a0b01c5382a7795aa8e352433674c2cc3 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 7 Oct 2020 14:00:35 +0000
|
||||
Subject: [PATCH 12/16] UI: Always render windows into cutouts
|
||||
Subject: [PATCH 10/15] UI: Always render windows into cutouts
|
||||
|
||||
Eliminates black/white letterboxing
|
||||
Quick and dirty way to do the latter - wait for proper fix from Google
|
||||
@@ -55,10 +55,10 @@ index 32e43ca4e56c..18c28ae674f9 100644
|
||||
}
|
||||
|
||||
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
index 41247363146d..554dea8efb33 100644
|
||||
index 89ac6585c673..b08604c6b4e7 100644
|
||||
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
|
||||
@@ -1655,7 +1655,7 @@ public class DisplayPolicy {
|
||||
@@ -1817,7 +1817,7 @@ public class DisplayPolicy {
|
||||
pf.set((fl & FLAG_LAYOUT_IN_SCREEN) == 0 ? attached.getFrame() : df);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From e2fe18aa9aab73594414b11164ed180ca8b16cd1 Mon Sep 17 00:00:00 2001
|
||||
From 2a077aa2f4b1362b062ea7ecfa9d2841cbc466bd Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 1 Sep 2021 14:10:50 +0000
|
||||
Subject: [PATCH 13/16] UI: Kill rounded corners in notification scrim
|
||||
Subject: [PATCH 11/15] UI: Kill rounded corners in notification scrim
|
||||
|
||||
Rounded corners in S is nicely implemented, but this is one occasion where it looks out of place
|
||||
|
||||
@@ -11,13 +11,13 @@ Change-Id: I09ed59e0e658ebd512a9d02a8ef3edfe2c9888da
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 786b21f7595a..7217156d8972 100644
|
||||
index 6eac3b8f357d..e954759c77fc 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -757,7 +757,7 @@
|
||||
@@ -608,7 +608,7 @@
|
||||
<!-- Burmese line spacing multiplier between hours and minutes of the keyguard clock -->
|
||||
<item name="keyguard_clock_line_spacing_scale_burmese" type="dimen" format="float">1</item>
|
||||
|
||||
<item name="scrim_behind_alpha" format="float" type="dimen">0.62</item>
|
||||
- <dimen name="notification_scrim_corner_radius">32dp</dimen>
|
||||
+ <dimen name="notification_scrim_corner_radius">0dp</dimen>
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
From 81538d4126c99a86cb8f3ea13becca665db468e8 Mon Sep 17 00:00:00 2001
|
||||
From 43e3fde166791c054f49dce9313806aef44e4371 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 26 Oct 2020 14:06:56 +0000
|
||||
Subject: [PATCH 14/16] UI: Reconfigure power menu items
|
||||
|
||||
Screenshot/airplane are broken as of now
|
||||
Subject: [PATCH 12/15] UI: Reconfigure power menu items
|
||||
|
||||
Change-Id: I32cca6e2c6bb64d891efee959127edf7c0802cbc
|
||||
---
|
||||
core/res/res/values/config.xml | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
core/res/res/values/config.xml | 5 +----
|
||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||
|
||||
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
||||
index 3a62b51d3cbc..5e9c9988e946 100644
|
||||
index 1b9306913e7d..29f203450151 100644
|
||||
--- a/core/res/res/values/config.xml
|
||||
+++ b/core/res/res/values/config.xml
|
||||
@@ -2963,13 +2963,8 @@
|
||||
@@ -3016,13 +3016,10 @@
|
||||
"logout" = Logout the current user
|
||||
-->
|
||||
<string-array translatable="false" name="config_globalActionsList">
|
||||
@@ -23,8 +21,9 @@ index 3a62b51d3cbc..5e9c9988e946 100644
|
||||
<item>power</item>
|
||||
<item>restart</item>
|
||||
- <item>logout</item>
|
||||
- <item>screenshot</item>
|
||||
<item>screenshot</item>
|
||||
- <item>bugreport</item>
|
||||
+ <item>airplane</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
||||
@@ -0,0 +1,26 @@
|
||||
From ad4d765c957164ab47272388085e666f4db63837 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 5 Mar 2022 01:43:37 +0000
|
||||
Subject: [PATCH 13/15] UI: Reconfigure quick settings tiles
|
||||
|
||||
Change-Id: I743f52ef3a95db0ca2c02ae973faa4629e41885d
|
||||
---
|
||||
packages/SystemUI/res/values/config.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
|
||||
index d0a3a807a79a..6f86bf40e4b5 100644
|
||||
--- a/packages/SystemUI/res/values/config.xml
|
||||
+++ b/packages/SystemUI/res/values/config.xml
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
<!-- The default tiles to display in QuickSettings -->
|
||||
<string name="quick_settings_tiles_default" translatable="false">
|
||||
- internet,bt,flashlight,dnd,alarm,airplane,controls,wallet,rotation,battery,cast,screenrecord,mictoggle,cameratoggle
|
||||
+ wifi,cell,hotspot,location,rotation,flashlight
|
||||
</string>
|
||||
|
||||
<!-- The minimum number of tiles to display in QuickSettings -->
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 39e52d3177af783e0fdb08f997d1a4971485b896 Mon Sep 17 00:00:00 2001
|
||||
From 8624b307387a553863ec825464c4b77b215d9770 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 29 Jun 2021 22:57:01 +0000
|
||||
Subject: [PATCH 15/16] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
||||
Subject: [PATCH 14/15] UI: Relax requirement for HINT_SUPPORTS_DARK_TEXT
|
||||
|
||||
I decide what's good enough for a wallpaper!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 9248a81745f91699e2b6891746536deaab96dbf0 Mon Sep 17 00:00:00 2001
|
||||
From 6950ae969d855cb3143526f17717cc19be2a1cbc Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Tue, 19 Oct 2021 12:09:34 +0000
|
||||
Subject: [PATCH 16/16] UI: Remove privacy dot padding
|
||||
Subject: [PATCH 15/15] UI: Remove privacy dot padding
|
||||
|
||||
Change-Id: I5d2e2b3e36f027b4348a83030d4b4d3c4f0209d1
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Change-Id: I5d2e2b3e36f027b4348a83030d4b4d3c4f0209d1
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
|
||||
index 7217156d8972..4354442fb51d 100644
|
||||
index e954759c77fc..0b985af4a109 100644
|
||||
--- a/packages/SystemUI/res/values/dimens.xml
|
||||
+++ b/packages/SystemUI/res/values/dimens.xml
|
||||
@@ -1265,7 +1265,7 @@
|
||||
@@ -938,7 +938,7 @@
|
||||
<dimen name="ongoing_appops_chip_max_width">76dp</dimen>
|
||||
<dimen name="ongoing_appops_dot_diameter">6dp</dimen>
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
@@ -0,0 +1,225 @@
|
||||
From aecf59a8082d92f24514c7475e2665424f8736a9 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 13 Mar 2022 11:22:48 +0000
|
||||
Subject: [PATCH] Revert "[DO NOT MERGE] Allow a settings override for
|
||||
double-line clock"
|
||||
|
||||
Sorry but I SAID NEVER!
|
||||
|
||||
This reverts commit cb4836b4868adc1f06212ce82851a5f16169ab5c.
|
||||
---
|
||||
res/values/strings.xml | 4 -
|
||||
res/xml/security_lockscreen_settings.xml | 6 --
|
||||
.../LockscreenClockPreferenceController.java | 70 ---------------
|
||||
...ckscreenClockPreferenceControllerTest.java | 90 -------------------
|
||||
4 files changed, 170 deletions(-)
|
||||
delete mode 100644 src/com/android/settings/display/LockscreenClockPreferenceController.java
|
||||
delete mode 100644 tests/robotests/src/com/android/settings/display/LockscreenClockPreferenceControllerTest.java
|
||||
|
||||
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||
index 6fcff4103b..417669d4c0 100644
|
||||
--- a/res/values/strings.xml
|
||||
+++ b/res/values/strings.xml
|
||||
@@ -13291,10 +13291,6 @@
|
||||
<string name="lockscreen_privacy_controls_setting_toggle">Show device controls</string>
|
||||
<!-- Device controls summary [CHAR LIMIT=NONE] -->
|
||||
<string name="lockscreen_privacy_controls_summary">Access controls when locked</string>
|
||||
- <!-- Lockscreen double-line clock summary [CHAR LIMIT=NONE] -->
|
||||
- <string name="lockscreen_double_line_clock_summary">Show double-line clock when available</string>
|
||||
- <!-- Lockscreen double-line clock toggle [CHAR LIMIT=60] -->
|
||||
- <string name="lockscreen_double_line_clock_setting_toggle">Double-line clock</string>
|
||||
|
||||
<!-- Title for RTT setting. [CHAR LIMIT=NONE] -->
|
||||
<string name="rtt_settings_title"></string>
|
||||
diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml
|
||||
index 60dc599c2e..755b3c2ee9 100644
|
||||
--- a/res/xml/security_lockscreen_settings.xml
|
||||
+++ b/res/xml/security_lockscreen_settings.xml
|
||||
@@ -67,12 +67,6 @@
|
||||
android:title="@string/lockscreen_privacy_controls_setting_toggle"
|
||||
android:summary="@string/lockscreen_privacy_controls_summary"
|
||||
settings:controller="com.android.settings.display.ControlsPrivacyPreferenceController" />
|
||||
-
|
||||
- <SwitchPreference
|
||||
- android:key="lockscreen_double_line_clock_switch"
|
||||
- android:title="@string/lockscreen_double_line_clock_setting_toggle"
|
||||
- android:summary="@string/lockscreen_double_line_clock_summary"
|
||||
- settings:controller="com.android.settings.display.LockscreenClockPreferenceController" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
diff --git a/src/com/android/settings/display/LockscreenClockPreferenceController.java b/src/com/android/settings/display/LockscreenClockPreferenceController.java
|
||||
deleted file mode 100644
|
||||
index 70ae55eaf9..0000000000
|
||||
--- a/src/com/android/settings/display/LockscreenClockPreferenceController.java
|
||||
+++ /dev/null
|
||||
@@ -1,70 +0,0 @@
|
||||
-/*
|
||||
- * Copyright (C) 2021 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.
|
||||
- */
|
||||
-
|
||||
-package com.android.settings.display;
|
||||
-
|
||||
-import android.content.Context;
|
||||
-import android.provider.Settings;
|
||||
-
|
||||
-import androidx.preference.Preference;
|
||||
-
|
||||
-import com.android.settings.R;
|
||||
-import com.android.settings.core.TogglePreferenceController;
|
||||
-
|
||||
-/**
|
||||
- * Preference to enable/disable the large double-line clock on lockscreen
|
||||
- */
|
||||
-public class LockscreenClockPreferenceController extends TogglePreferenceController {
|
||||
-
|
||||
- private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK;
|
||||
-
|
||||
- public LockscreenClockPreferenceController(Context context, String preferenceKey) {
|
||||
- super(context, preferenceKey);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public boolean isChecked() {
|
||||
- return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0;
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public boolean setChecked(boolean isChecked) {
|
||||
- return Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY,
|
||||
- isChecked ? 1 : 0);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public CharSequence getSummary() {
|
||||
- return mContext.getText(R.string.lockscreen_double_line_clock_summary);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public int getAvailabilityStatus() {
|
||||
- return AVAILABLE;
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void updateState(Preference preference) {
|
||||
- super.updateState(preference);
|
||||
- preference.setEnabled(true);
|
||||
- refreshSummary(preference);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public int getSliceHighlightMenuRes() {
|
||||
- return R.string.menu_key_display;
|
||||
- }
|
||||
-}
|
||||
diff --git a/tests/robotests/src/com/android/settings/display/LockscreenClockPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/display/LockscreenClockPreferenceControllerTest.java
|
||||
deleted file mode 100644
|
||||
index 94f2dc6655..0000000000
|
||||
--- a/tests/robotests/src/com/android/settings/display/LockscreenClockPreferenceControllerTest.java
|
||||
+++ /dev/null
|
||||
@@ -1,90 +0,0 @@
|
||||
-/*
|
||||
- * Copyright (C) 2021 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.
|
||||
- */
|
||||
-
|
||||
-package com.android.settings.display;
|
||||
-
|
||||
-import static com.google.common.truth.Truth.assertThat;
|
||||
-
|
||||
-import android.content.ContentResolver;
|
||||
-import android.content.Context;
|
||||
-import android.provider.Settings;
|
||||
-
|
||||
-import androidx.preference.Preference;
|
||||
-
|
||||
-import org.junit.Before;
|
||||
-import org.junit.Test;
|
||||
-import org.junit.runner.RunWith;
|
||||
-import org.mockito.Mock;
|
||||
-import org.mockito.MockitoAnnotations;
|
||||
-import org.robolectric.RobolectricTestRunner;
|
||||
-import org.robolectric.RuntimeEnvironment;
|
||||
-
|
||||
-@RunWith(RobolectricTestRunner.class)
|
||||
-public class LockscreenClockPreferenceControllerTest {
|
||||
-
|
||||
- private static final String TEST_KEY = "test_key";
|
||||
- private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK;
|
||||
-
|
||||
- private Context mContext;
|
||||
- private ContentResolver mContentResolver;
|
||||
- private LockscreenClockPreferenceController mController;
|
||||
-
|
||||
- @Mock
|
||||
- private Preference mPreference;
|
||||
-
|
||||
- @Before
|
||||
- public void setUp() {
|
||||
- MockitoAnnotations.initMocks(this);
|
||||
- mContext = RuntimeEnvironment.application;
|
||||
- mContentResolver = mContext.getContentResolver();
|
||||
- mController = new LockscreenClockPreferenceController(mContext, TEST_KEY);
|
||||
- }
|
||||
-
|
||||
- @Test
|
||||
- public void isChecked_SettingIs1_returnTrue() {
|
||||
- Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1);
|
||||
-
|
||||
- assertThat(mController.isChecked()).isTrue();
|
||||
- }
|
||||
-
|
||||
- @Test
|
||||
- public void isChecked_SettingIs0_returnFalse() {
|
||||
- Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0);
|
||||
-
|
||||
- assertThat(mController.isChecked()).isFalse();
|
||||
- }
|
||||
-
|
||||
- @Test
|
||||
- public void isChecked_SettingIsNotSet_returnTrue() {
|
||||
- Settings.Secure.putString(mContentResolver, SETTING_KEY, null);
|
||||
-
|
||||
- assertThat(mController.isChecked()).isTrue();
|
||||
- }
|
||||
-
|
||||
- @Test
|
||||
- public void setChecked_true_SettingIsNot0() {
|
||||
- mController.setChecked(true);
|
||||
-
|
||||
- assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0);
|
||||
- }
|
||||
-
|
||||
- @Test
|
||||
- public void setChecked_false_SettingIs0() {
|
||||
- mController.setChecked(false);
|
||||
-
|
||||
- assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0);
|
||||
- }
|
||||
-}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,260 +0,0 @@
|
||||
From 54374a8c7cdb6df7657090ff849cce25d051ee52 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 10 Jan 2022 04:44:58 +0000
|
||||
Subject: [PATCH] Revert "Implement LocalColorExtractor using monet theme
|
||||
engine"
|
||||
|
||||
This reverts commit 43594af5b025d2223f9eab97e9226541b2851419.
|
||||
---
|
||||
Android.bp | 1 -
|
||||
res/values/config.xml | 2 +-
|
||||
.../widget/LocalWallpaperColorsExtractor.java | 212 ------------------
|
||||
3 files changed, 1 insertion(+), 214 deletions(-)
|
||||
delete mode 100644 src/com/android/launcher3/widget/LocalWallpaperColorsExtractor.java
|
||||
|
||||
diff --git a/Android.bp b/Android.bp
|
||||
index 621eaf0a1e..f700dedf03 100644
|
||||
--- a/Android.bp
|
||||
+++ b/Android.bp
|
||||
@@ -122,7 +122,6 @@ android_library {
|
||||
"com.google.android.material_material",
|
||||
"iconloader_base",
|
||||
"libGoogleFeed",
|
||||
- "monet",
|
||||
],
|
||||
manifest: "AndroidManifest-common.xml",
|
||||
sdk_version: "current",
|
||||
diff --git a/res/values/config.xml b/res/values/config.xml
|
||||
index 95f94af904..0ac0f9c588 100644
|
||||
--- a/res/values/config.xml
|
||||
+++ b/res/values/config.xml
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
<!-- Default packages -->
|
||||
<string name="wallpaper_picker_package" translatable="false"></string>
|
||||
- <string name="local_colors_extraction_class" translatable="false">com.android.launcher3.widget.LocalWallpaperColorsExtractor</string>
|
||||
+ <string name="local_colors_extraction_class" translatable="false"></string>
|
||||
|
||||
<!-- Accessibility actions -->
|
||||
<item type="id" name="action_remove" />
|
||||
diff --git a/src/com/android/launcher3/widget/LocalWallpaperColorsExtractor.java b/src/com/android/launcher3/widget/LocalWallpaperColorsExtractor.java
|
||||
deleted file mode 100644
|
||||
index 29d464826e..0000000000
|
||||
--- a/src/com/android/launcher3/widget/LocalWallpaperColorsExtractor.java
|
||||
+++ /dev/null
|
||||
@@ -1,212 +0,0 @@
|
||||
-package com.android.launcher3.widget;
|
||||
-
|
||||
-import android.app.WallpaperColors;
|
||||
-import android.app.WallpaperManager;
|
||||
-import android.content.Context;
|
||||
-import android.content.res.Configuration;
|
||||
-import android.content.res.Resources;
|
||||
-import android.graphics.Rect;
|
||||
-import android.graphics.RectF;
|
||||
-import android.util.SparseIntArray;
|
||||
-import android.view.View;
|
||||
-import android.widget.RemoteViews;
|
||||
-
|
||||
-import com.android.launcher3.DeviceProfile;
|
||||
-import com.android.launcher3.Launcher;
|
||||
-import com.android.launcher3.Utilities;
|
||||
-import com.android.launcher3.widget.LocalColorExtractor;
|
||||
-import com.android.systemui.monet.ColorScheme;
|
||||
-
|
||||
-import java.util.List;
|
||||
-
|
||||
-public class LocalWallpaperColorsExtractor extends LocalColorExtractor implements
|
||||
- WallpaperManager.LocalWallpaperColorConsumer {
|
||||
-
|
||||
- private final WallpaperManager wallpaperManager;
|
||||
- private Listener listener;
|
||||
- private Context mContext;
|
||||
-
|
||||
- // For calculating and returning bounds
|
||||
- private final float[] tempFloatArray = new float[4];
|
||||
- private final Rect tempRect = new Rect();
|
||||
- private final RectF tempRectF = new RectF();
|
||||
-
|
||||
- public static final int[] accent = {
|
||||
- android.R.color.system_accent1_10,
|
||||
- android.R.color.system_accent1_50,
|
||||
- android.R.color.system_accent1_100,
|
||||
- android.R.color.system_accent1_200,
|
||||
- android.R.color.system_accent1_300,
|
||||
- android.R.color.system_accent1_400,
|
||||
- android.R.color.system_accent1_500,
|
||||
- android.R.color.system_accent1_600,
|
||||
- android.R.color.system_accent1_700,
|
||||
- android.R.color.system_accent1_800,
|
||||
- android.R.color.system_accent1_900,
|
||||
- android.R.color.system_accent1_1000,
|
||||
- android.R.color.system_accent2_10,
|
||||
- android.R.color.system_accent2_50,
|
||||
- android.R.color.system_accent2_100,
|
||||
- android.R.color.system_accent2_200,
|
||||
- android.R.color.system_accent2_300,
|
||||
- android.R.color.system_accent2_400,
|
||||
- android.R.color.system_accent2_500,
|
||||
- android.R.color.system_accent2_600,
|
||||
- android.R.color.system_accent2_700,
|
||||
- android.R.color.system_accent2_800,
|
||||
- android.R.color.system_accent2_900,
|
||||
- android.R.color.system_accent2_1000,
|
||||
- android.R.color.system_accent3_10,
|
||||
- android.R.color.system_accent3_50,
|
||||
- android.R.color.system_accent3_100,
|
||||
- android.R.color.system_accent3_200,
|
||||
- android.R.color.system_accent3_300,
|
||||
- android.R.color.system_accent3_400,
|
||||
- android.R.color.system_accent3_500,
|
||||
- android.R.color.system_accent3_600,
|
||||
- android.R.color.system_accent3_700,
|
||||
- android.R.color.system_accent3_800,
|
||||
- android.R.color.system_accent3_900,
|
||||
- android.R.color.system_accent3_1000
|
||||
- };
|
||||
-
|
||||
- public static final int[] neutral = {
|
||||
- android.R.color.system_neutral1_10,
|
||||
- android.R.color.system_neutral1_50,
|
||||
- android.R.color.system_neutral1_100,
|
||||
- android.R.color.system_neutral1_200,
|
||||
- android.R.color.system_neutral1_300,
|
||||
- android.R.color.system_neutral1_400,
|
||||
- android.R.color.system_neutral1_500,
|
||||
- android.R.color.system_neutral1_600,
|
||||
- android.R.color.system_neutral1_700,
|
||||
- android.R.color.system_neutral1_800,
|
||||
- android.R.color.system_neutral1_900,
|
||||
- android.R.color.system_neutral1_1000,
|
||||
- android.R.color.system_neutral2_10,
|
||||
- android.R.color.system_neutral2_50,
|
||||
- android.R.color.system_neutral2_100,
|
||||
- android.R.color.system_neutral2_200,
|
||||
- android.R.color.system_neutral2_300,
|
||||
- android.R.color.system_neutral2_400,
|
||||
- android.R.color.system_neutral2_500,
|
||||
- android.R.color.system_neutral2_600,
|
||||
- android.R.color.system_neutral2_700,
|
||||
- android.R.color.system_neutral2_800,
|
||||
- android.R.color.system_neutral2_900,
|
||||
- android.R.color.system_neutral2_1000
|
||||
- };
|
||||
-
|
||||
- public LocalWallpaperColorsExtractor(Context context) {
|
||||
- mContext = context;
|
||||
- wallpaperManager = (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE);
|
||||
- }
|
||||
-
|
||||
- private static void addColorsToArray(List<Integer> list, int[] resArray, SparseIntArray array) {
|
||||
- for (int i = 0; i < resArray.length; i++) {
|
||||
- array.put(resArray[i], -16777216 | list.get(i));
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void setListener(Listener listener) {
|
||||
- this.listener = listener;
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void addLocation(List<RectF> locations) {
|
||||
- wallpaperManager.addOnColorsChangedListener(this, locations);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void removeLocations() {
|
||||
- wallpaperManager.removeOnColorsChangedListener(this);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public SparseIntArray generateColorsOverride(WallpaperColors colors) {
|
||||
- SparseIntArray colorRes = new SparseIntArray(5 * 13);
|
||||
- boolean nightMode = (mContext.getResources().getConfiguration().uiMode
|
||||
- & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
|
||||
-
|
||||
- ColorScheme colorScheme = new ColorScheme(ColorScheme.getSeedColor(colors), nightMode);
|
||||
-
|
||||
- addColorsToArray(colorScheme.getAllAccentColors(), accent, colorRes);
|
||||
- addColorsToArray(colorScheme.getAllNeutralColors(), neutral, colorRes);
|
||||
-
|
||||
- return colorRes;
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void applyColorsOverride(Context base, WallpaperColors colors) {
|
||||
- RemoteViews.ColorResources res =
|
||||
- RemoteViews.ColorResources.create(base, generateColorsOverride(colors));
|
||||
- if (res != null) {
|
||||
- res.apply(base);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void getExtractedRectForView(Launcher launcher, int pageId, View v,
|
||||
- RectF colorExtractionRectOut) {
|
||||
- Rect viewRect = tempRect;
|
||||
- viewRect.set(0, 0, v.getWidth(), v.getHeight());
|
||||
- Utilities.getBoundsForViewInDragLayer(launcher.getDragLayer(), v, viewRect, false,
|
||||
- tempFloatArray, tempRectF);
|
||||
- Utilities.setRect(tempRectF, viewRect);
|
||||
- getExtractedRectForViewRect(launcher, pageId, viewRect, colorExtractionRectOut);
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void getExtractedRectForViewRect(Launcher launcher, int pageId, Rect rectInDragLayer,
|
||||
- RectF colorExtractionRectOut) {
|
||||
- // If the view hasn't been measured and laid out, we cannot do this.
|
||||
- if (rectInDragLayer.isEmpty()) {
|
||||
- colorExtractionRectOut.setEmpty();
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- Resources res = launcher.getResources();
|
||||
- DeviceProfile dp = launcher.getDeviceProfile().inv.getDeviceProfile(launcher);
|
||||
- float screenWidth = dp.widthPx;
|
||||
- float screenHeight = dp.heightPx;
|
||||
- int numScreens = launcher.getWorkspace().getNumPagesForWallpaperParallax();
|
||||
- pageId = Utilities.isRtl(res) ? numScreens - pageId - 1 : pageId;
|
||||
- float relativeScreenWidth = 1f / numScreens;
|
||||
-
|
||||
- int[] dragLayerBounds = new int[2];
|
||||
- launcher.getDragLayer().getLocationOnScreen(dragLayerBounds);
|
||||
- // Translate from drag layer coordinates to screen coordinates.
|
||||
- int screenLeft = rectInDragLayer.left + dragLayerBounds[0];
|
||||
- int screenTop = rectInDragLayer.top + dragLayerBounds[1];
|
||||
- int screenRight = rectInDragLayer.right + dragLayerBounds[0];
|
||||
- int screenBottom = rectInDragLayer.bottom + dragLayerBounds[1];
|
||||
-
|
||||
- // This is the position of the view relative to the wallpaper, as expected by the
|
||||
- // local color extraction of the WallpaperManager.
|
||||
- // The coordinate system is such that, on the horizontal axis, each screen has a
|
||||
- // distinct range on the [0,1] segment. So if there are 3 screens, they will have the
|
||||
- // ranges [0, 1/3], [1/3, 2/3] and [2/3, 1]. The position on the subrange should be
|
||||
- // the position of the view relative to the screen. For the vertical axis, this is
|
||||
- // simply the location of the view relative to the screen.
|
||||
- // Translate from drag layer coordinates to screen coordinates
|
||||
- colorExtractionRectOut.left = (screenLeft / screenWidth + pageId) * relativeScreenWidth;
|
||||
- colorExtractionRectOut.right = (screenRight / screenWidth + pageId) * relativeScreenWidth;
|
||||
- colorExtractionRectOut.top = screenTop / screenHeight;
|
||||
- colorExtractionRectOut.bottom = screenBottom / screenHeight;
|
||||
-
|
||||
- if (colorExtractionRectOut.left < 0
|
||||
- || colorExtractionRectOut.right > 1
|
||||
- || colorExtractionRectOut.top < 0
|
||||
- || colorExtractionRectOut.bottom > 1) {
|
||||
- colorExtractionRectOut.setEmpty();
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- public void onColorsChanged(RectF area, WallpaperColors colors) {
|
||||
- if (listener != null) {
|
||||
- listener.onColorsChanged(area, generateColorsOverride(colors));
|
||||
- }
|
||||
- }
|
||||
-}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From deccbf542c72d5e1f78e83b3e895eb1f9480ac75 Mon Sep 17 00:00:00 2001
|
||||
From 32f8fec323dfe5f7d7f357e26e7f7a494bddaba3 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Thu, 28 Oct 2021 02:30:59 +0000
|
||||
Subject: [PATCH] Trebuchet: Make overview scrim transparent again
|
||||
Subject: [PATCH 1/2] Trebuchet: Make overview scrim transparent again
|
||||
|
||||
Also revert texts/buttons to workspace color
|
||||
|
||||
@@ -15,7 +15,7 @@ Change-Id: I78c84865eb06b8e59c9c271cd2e267ae4cd7cc08
|
||||
5 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/quickstep/res/values/styles.xml b/quickstep/res/values/styles.xml
|
||||
index 07c448df9e..c3a3bb8375 100644
|
||||
index 2efe72e651..03c28773a7 100644
|
||||
--- a/quickstep/res/values/styles.xml
|
||||
+++ b/quickstep/res/values/styles.xml
|
||||
@@ -130,7 +130,7 @@
|
||||
@@ -27,18 +27,18 @@ index 07c448df9e..c3a3bb8375 100644
|
||||
<item name="android:drawablePadding">8dp</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
</style>
|
||||
@@ -139,4 +139,4 @@
|
||||
<style name="BaseIcon.Workspace.Taskbar" >
|
||||
<item name="iconDisplay">taskbar</item>
|
||||
@@ -170,4 +170,4 @@
|
||||
<item name="android:textSize">24sp</item>
|
||||
<item name="android:lines">2</item>
|
||||
</style>
|
||||
-</resources>
|
||||
\ No newline at end of file
|
||||
+</resources>
|
||||
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
index b447166d6e..d94a93a909 100644
|
||||
index 13295f27c1..c0e4429804 100644
|
||||
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
@@ -606,7 +606,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
@@ -702,7 +702,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
mEmptyIcon.setCallback(this);
|
||||
mEmptyMessage = context.getText(R.string.recents_empty_message);
|
||||
mEmptyMessagePaint = new TextPaint();
|
||||
@@ -59,14 +59,14 @@ index 80799957ff..894997c59a 100644
|
||||
+ <item android:color="@android:color/transparent" />
|
||||
</selector>
|
||||
diff --git a/res/color-v31/overview_scrim_dark.xml b/res/color-v31/overview_scrim_dark.xml
|
||||
index b8ed7747e0..894997c59a 100644
|
||||
index 2ab8ecdec9..894997c59a 100644
|
||||
--- a/res/color-v31/overview_scrim_dark.xml
|
||||
+++ b/res/color-v31/overview_scrim_dark.xml
|
||||
@@ -14,5 +14,5 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
- <item android:color="@android:color/system_neutral1_800" />
|
||||
- <item android:color="@android:color/system_neutral1_500" android:lStar="35" />
|
||||
+ <item android:color="@android:color/transparent" />
|
||||
</selector>
|
||||
diff --git a/res/color/overview_button.xml b/res/color/overview_button.xml
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
From e8b6e0902bc8c77df404b67a9a619d7705940125 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Fri, 18 Mar 2022 08:42:18 +0000
|
||||
Subject: [PATCH 2/2] Trebuchet: Kill haptics in recents
|
||||
|
||||
This partially reverts commit cc5c8843dfebfa92057b6ce8904ac58cd05ffaef.
|
||||
|
||||
Change-Id: Ie3b0eabe8cc0421e696720740edc492cae2f5153
|
||||
---
|
||||
.../NoButtonQuickSwitchTouchController.java | 8 --------
|
||||
.../TaskViewTouchController.java | 5 -----
|
||||
.../android/quickstep/views/RecentsView.java | 19 -------------------
|
||||
3 files changed, 32 deletions(-)
|
||||
|
||||
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java
|
||||
index f6148a7c8f..546f5f3c18 100644
|
||||
--- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java
|
||||
+++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java
|
||||
@@ -407,14 +407,6 @@ public class NoButtonQuickSwitchTouchController implements TouchController,
|
||||
nonOverviewAnim.setFloatValues(startProgress, endProgress);
|
||||
mNonOverviewAnim.dispatchOnStart();
|
||||
}
|
||||
- if (targetState == QUICK_SWITCH) {
|
||||
- // Navigating to quick switch, add scroll feedback since the first time is not
|
||||
- // considered a scroll by the RecentsView.
|
||||
- VibratorWrapper.INSTANCE.get(mLauncher).vibrate(
|
||||
- RecentsView.SCROLL_VIBRATION_PRIMITIVE,
|
||||
- RecentsView.SCROLL_VIBRATION_PRIMITIVE_SCALE,
|
||||
- RecentsView.SCROLL_VIBRATION_FALLBACK);
|
||||
- }
|
||||
|
||||
nonOverviewAnim.setDuration(Math.max(xDuration, yDuration));
|
||||
mNonOverviewAnim.setEndAction(() -> onAnimationToStateCompleted(targetState));
|
||||
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java
|
||||
index 308bca62e4..d964371784 100644
|
||||
--- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java
|
||||
+++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/TaskViewTouchController.java
|
||||
@@ -367,11 +367,6 @@ public abstract class TaskViewTouchController<T extends BaseDraggingActivity>
|
||||
mCurrentAnimation.startWithVelocity(mActivity, goingToEnd,
|
||||
velocity * orientationHandler.getSecondaryTranslationDirectionFactor(),
|
||||
mEndDisplacement, animationDuration);
|
||||
- if (goingUp && goingToEnd && !mIsDismissHapticRunning) {
|
||||
- VibratorWrapper.INSTANCE.get(mActivity).vibrate(TASK_DISMISS_VIBRATION_PRIMITIVE,
|
||||
- TASK_DISMISS_VIBRATION_PRIMITIVE_SCALE, TASK_DISMISS_VIBRATION_FALLBACK);
|
||||
- mIsDismissHapticRunning = true;
|
||||
- }
|
||||
}
|
||||
|
||||
private void clearState() {
|
||||
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
index c0e4429804..436f3521a6 100644
|
||||
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
|
||||
@@ -1294,25 +1294,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
}
|
||||
}
|
||||
|
||||
- @Override
|
||||
- protected void onEdgeAbsorbingScroll() {
|
||||
- vibrateForScroll();
|
||||
- }
|
||||
-
|
||||
- @Override
|
||||
- protected void onScrollOverPageChanged() {
|
||||
- vibrateForScroll();
|
||||
- }
|
||||
-
|
||||
- private void vibrateForScroll() {
|
||||
- long now = SystemClock.uptimeMillis();
|
||||
- if (now - mScrollLastHapticTimestamp > mScrollHapticMinGapMillis) {
|
||||
- mScrollLastHapticTimestamp = now;
|
||||
- VibratorWrapper.INSTANCE.get(mContext).vibrate(SCROLL_VIBRATION_PRIMITIVE,
|
||||
- SCROLL_VIBRATION_PRIMITIVE_SCALE, SCROLL_VIBRATION_FALLBACK);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
@Override
|
||||
protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) {
|
||||
// Enables swiping to the left or right only if the task overlay is not modal.
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From bd33859aa15ad4ab099716b0d029b333c6300134 Mon Sep 17 00:00:00 2001
|
||||
From 3b2033d58939374fb6e350796c32f89740cdfba0 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 09:09:15 +0000
|
||||
Subject: [PATCH 1/4] build: Integrate prop modifications (2/2)
|
||||
Subject: [PATCH 1/3] build: Integrate prop modifications (2/2)
|
||||
|
||||
Change-Id: I076973f902ab20011964e50955e4326c18d5b34e
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From e3633d610a46dfa849b01ae66ff233e615efa079 Mon Sep 17 00:00:00 2001
|
||||
From 0187e006bf6b0374d00ad42689295bb96d59a587 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Sat, 16 Oct 2021 00:41:07 +0000
|
||||
Subject: [PATCH 2/4] build: Remove Stk (2/2)
|
||||
Subject: [PATCH 2/3] build: Remove Stk (2/2)
|
||||
|
||||
Change-Id: I4e1cfacd296e47ef1731f3c32555089a5fca6f0c
|
||||
---
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
From ef538d98c3401b7324682ebf96f32f28649dc036 Mon Sep 17 00:00:00 2001
|
||||
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
||||
Date: Wed, 27 Oct 2021 13:23:31 +0000
|
||||
Subject: [PATCH 3/4] Revert "overlay: Enable monet"
|
||||
|
||||
This reverts commit 97a1727968a2fca85c3bdc419637e9c02fce9ce7.
|
||||
---
|
||||
.../frameworks/base/packages/SystemUI/res/values/flags.xml | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/overlay/common/frameworks/base/packages/SystemUI/res/values/flags.xml b/overlay/common/frameworks/base/packages/SystemUI/res/values/flags.xml
|
||||
index d22d0f23..64c6e78b 100644
|
||||
--- a/overlay/common/frameworks/base/packages/SystemUI/res/values/flags.xml
|
||||
+++ b/overlay/common/frameworks/base/packages/SystemUI/res/values/flags.xml
|
||||
@@ -17,5 +17,4 @@
|
||||
<resources>
|
||||
<bool name="flag_conversations">true</bool>
|
||||
<bool name="flag_charging_ripple">true</bool>
|
||||
- <bool name="flag_monet">true</bool>
|
||||
</resources>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 89941c7836527978fb1834a14e9ad95cb1c5c9d0 Mon Sep 17 00:00:00 2001
|
||||
From 417b74b1000249df254be9527f78aef936d60611 Mon Sep 17 00:00:00 2001
|
||||
From: AndyCGYan <GeForce8800Ultra@gmail.com>
|
||||
Date: Mon, 1 Jul 2019 07:03:04 +0000
|
||||
Subject: [PATCH 4/4] vendor_lineage: Ignore neverallows... again
|
||||
Subject: [PATCH 3/3] vendor_lineage: Ignore neverallows... again
|
||||
|
||||
Because unofficial builds are better than no builds!
|
||||
|
||||
Reference in New Issue
Block a user