Includes:
- Per-app refresh rate config
- Extreme refresh rate (Force all apps to run in maximum refresh rate)
- Temp refresh rate allowed (Used in MEMC)
- Refresh rate QS tile
Change-Id: I30024eb8ce63f00a6f2fa1ea0230b004ff93ac74
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Create BasePerAppConfigFragment
* Allow more preference types instead of only ListPreference.
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Create PerAppSwitchConfigFragment
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Add top info for per-app settings
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Don't show system apps for sensor block fragment
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Pass uid in per-app config fragment
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Allow specific allowed system app list for per-app fragment
* We need to allow dialer/messages/contact for fullscreen display settings.
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Make sure per-app list has no duplicates
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Warn user app reload before switching fullscreen display
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Adapt for Android U QPR2
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Settings: Use ArrayMap/Set instead of HashMap/Set
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
[joeyhuab: Squashed all changes by same author]
Settings: Add null check for PreferenceScreen in BasePerAppConfigFragment
Co-authored-by: NurKeinNeid <nurkeinneid@derpfest.org>
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
Added validation and fallback for battery divider to prevent division errors and ensure reasonable values.
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
* Also adapt Add video to Double tap to trigger doze from Pie: a66601a
Change-Id: Id98543542db937c6cc1f176cd55f6b02e472849d
Settings: DoubleTapGesture: Use new material-you illustration preference
* Switch to new Android 12 animation. Huge thanks to aryanata for the animation
Change-Id: Idfc536dff628fb4ba9cd45f6453add68f64a7b46
Settings: Add a preference controller for Double tap to Ambient
* Follows 41903244b1d8cf43c6c657b8ba5d9e7648136c72.
* Hide by default.
Co-authored-by: Akash <akashniki@gmail.com>
Co-authored-by: Aryanata Andipradana <a.ryan.ata.ap@gmail.com>
Co-authored-by: Joey <joey@evolution-x.org>
some devices with prebuilt kernel report, example 4mAh, instead of 4000mAh or whatever current mAh is.
add config to let override the divider
device tree example:
830a87b139
* Legacy devices like the Pixel 2 Series do not support this feature, only show Unavailable for design capacity and maximum capacity in battery information.
* Enabled by default
Test: Build & flash
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
* AOSP "Smooth display" setting is just a toggle,
some devices support multiple refresh rates so
add support for it with a ListPreference.
Change-Id: I3da3d2b86e61ed3caf9af5770d8bdb4485817b97
This is based on the following changes, adapted to Android 12
considering the fact that AOSP now supports FOD as well as
fingerprint sensors embedded in the power button:
Author: d34d <clark@cyngn.com>
Date: 2016-06-23 11:21:45 -0700
fingerprint: Allow devices to configure sensor location
The text for enrolling a fingerprint always assumes the sensor is
located on the back. This patch adds a config integer that defines
where the sensor is located on the device.
0 = back
1 = front
2 = left side
3 = right side
This patch also adds a new drawable that shows the front of the device
when applicable.
Change-Id: Ia8f5f8ff4ba4d13d35aed3052f60ff665dd4f294
TICKET: CYNGNOS-3089
Author: Paul Keith <javelinanddart@gmail.com>
Date: 2018-01-26 22:23:03 +0100
FingerprintEnrollFindSensor: Don't overlay front for side sensors
* Both the base image and the base image + overlay are equally nonsense
for devices with a side fingerprint scanner, but for those that overlay
a custom fingerprint enrollment graphic, this image overlay wreaks havoc
* Only set this overlay to be visible if the sensor is on the front, to
allow devices with side sensors to only overlay the base image
Change-Id: I7cbcea4830d4526cf9f7d139e7f84f21117fa9c4
Author: Michael W <baddaemon87@gmail.com>
Date: Thu Jan 17 21:44:28 2019 +0100
Settings: Make find fingerprint look great again
* The current logic places the animation based on the size of
the whole overlay instead of the image, which is a fixed-size png
* Get the size of the image instead and place the dot relative to it
* Also use "wrap_content" and add a padding to the top so the
distance to the text is a fixed thing, not depending on how
much space relative to the wanted space it actually takes
* Preview: https://imgur.com/a/XanJ2aP
Change-Id: I2bd08cee1abd1c6bad78ca1efc2189e573ded3cc
Author: LuK1337 <priv.luk@gmail.com>
Date: Sat Dec 15 17:11:41 2018 +0100
fingerprint: Remove unnecessary spacing in enroll layout
* This makes it look ugly on 480 dpi devices.
Change-Id: Ia1bbd443063a125878dddd12e5c6a816d289fb82
Author: Bruno Martins <bgcngm@gmail.com>
Date: Thu Mar 17 10:30:41 2022 +0000
FingerprintEnrollEnrolling: Set proper dialog message when user touches fp icon
Change-Id: Iafd86e636b0c54bbddcf26d153cc671259391259
Author: Michael Bestas <mkbestas@lineageos.org>
Date: Tue Dec 6 20:40:45 2022 +0200
Use AOSP string for side fps enrollment
Change-Id: I9267b6a75716f45044f4d7a51650ca4f928b104e
Author: Bruno Martins <bgcngm@gmail.com>
Date: Tue Apr 18 16:16:34 2023 +0100
FingerprintEnroll: Add config for dedicated side mounted fps
Google likes to assume that there only exists devices with
fingerprint sensor embedded in the power button, but that's
not always true. Since specific enrollment messages were added
just for those devices, we need to address our own usecase.
Change-Id: I56a7d7fe0374fe5a1fce5e24bdbb265cb5edc246
Change-Id: If372ef50c4a719e89a4e80cc20e3eb445af61bc6
Set the following config overlays to activate this feature:
* config_backup_settings_intent to settings://com.android.settings.backup.transport
* config_backup_settings_label to some user-facing label
e.g. Change backup provider
* config_ignored_backup_transports to hide transports from the list
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: I080d96e2c34045a0e61f3fa1b839f463550f2028