This was fixed by the kernel commit: c1244fe4ba
This commit includes a revert of commit 756dd639af.
Change-Id: I7dd248c06864eda5b0ac3269e1ebafd1ce4d43fa
The gesture node seems to be swapped on the OOS 10 source.
Switch to this since up works.
Change-Id: I0b0b994125a90222e9bdebd506e0e3672c13759a
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Some devices don't have a 90Hz display and don't need the preference for this reason
To disable the feature, overlay the config to false in device specific device tree:
overlay{,-aosip}/device/oneplus/sm8150-common/DeviceSettings/res/values/config.xml:
<bool name="config_deviceHasHighRefreshRate">false</bool>
Suggestion by Ashwin4RC
Change-Id: I79f46adabf9d7940ca24e7077890447678a8fa8c
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
guacamoleb (OnePlus7) doesn't have support for vibration intensity changing
and doesn't have the kernel node for it either, remove the pref for such devices.
Change-Id: I58010f032680c86c27db70e5c91dd99921b1a689
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
The isDozing check was dependend on this commit: https://review.aosip.dev/c/AOSIP/platform_frameworks_base/+/10485
The commit isn't needed on Android 10 (read comments) and switching to the regular AOSP check makes more sense and works the exact same.
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
This commit has two benefits:
- Helps us avoid users from complaining incase anything goes wrong with their hardware
- Having the vibration slider as the last option meant that when trying to move the slider
you ended up triggering the Q gesture to switch apps, this helps avoid that
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Change the color mode preview image to better illustrate the difference
between Natural and Boosted color modes.
Taken from: eb15083e1b
Bug: 138126243
Test: manual testing on Pixel
Change-Id: I367b383f9f2da9b2e2d5960e51c3ec7821d4915b
(cherry picked from commit 56574d5924727ccc95a65c088375ca4b95bd8e79)
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Taken from: 99e6831dc4/DeviceSettings
Edits after:
- Adapted to AndroidX
- Includes all translations from pie cycle
- Remove DisplayModes and Dolby
- Add DC-Dimming, FPS Info tile, Refresh Rate preferences
- Change layout to a cleaner look
- Nuke KeyHandler
- Change KeyHandler class and lib overlays to DeviceSettings
- Make DC-Dimming and HBM QS tile reflect active status
Co-authored-by: darkobas <darkobas@gmail.com>
Co-authored-by: Max Weninger <max.weninger@gmail.com>
Co-authored-by: Vachounet <vachounet@live.fr>
Co-authored-by: kldoc <fred.berbigier@gmail.com>
Co-authored-by: Christian Oder <myself5@carbonrom.org>
Co-authored-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
Co-authored-by: David Sn <divad.nnamtdeis@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>