Commit Graph

12 Commits

Author SHA1 Message Date
Arian
9603eedcb6
sweet: overlay: Import power_profile 2022-05-01 00:16:10 -04:00
AdarshGrewal
0dbeba1284
sweet: overlay: allow lower Minimum Brightness 2022-05-01 00:16:08 -04:00
Alexey Kuzmin
492abfe3ce sweet: overlay: Change all three default haptic levels to high
Bug:131774557
Test: flash a new C2F2 device with format, open accessibility vibration
settings. The current vibration intensity levels should be High

Change-Id: I0dc6488a4aa10ba3d606ecaa29729d4f0ecb9a1d
(cherry picked from commit 5b34c1ea60d65fc899484b727c5ecf32e47979ff)
2022-04-13 11:38:43 -04:00
Arian
11a58013fe sweet: overlay: Import vibration patterns from AOSP
Change-Id: I87d7cfcc7463daa5e570cebe3018fac2937905ff
2022-04-13 11:38:43 -04:00
AdarshGrewal
644857a7a6 sweet: overlay: Enable front-facing camera protection
* Prevents halo ring/effect on front camera
2022-04-13 11:38:43 -04:00
Danny Lin
e6aac8d339 sweet: Enable refresh rate toggle in Settings
sweet supports switching between 60 and 120 Hz refresh rates, so let's
expose it in Settings -> Display -> Smooth Display for users to save
battery if necessary.

Test: visual confirmation after toggling several times
Change-Id: Ie698ec4d4e738afd2a9055dba2369233103a4f13
2022-04-13 11:38:43 -04:00
Steven Thomas
01ddd1a24b sweet: Add default frame rate setting
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a sweet to set config_defaultRefreshRate to 60Hz, confirmed
  we default to 60, but that an app calling setFrameRate(120) switches us
  to 120.

- Confirmed that the "smooth display" and "force 120Hz" options on Razer
  Phone work correctly.

- Confirmed Redfin works as it did before - still constrained to 60Hz.

Change-Id: Ibfc35abed2b67093b8114822d233bf1ca31eebb0
2022-04-13 11:38:43 -04:00
Adrian Salido
eba03e4f1b sweet: enable peak refresh rate (120hz)
Enables default setting to 120hz mode, this can be disabled through
Settings app

Bug: 130249886
Test: wipe user settings and check default peak refresh rate enabled
Change-Id: I205d793dea3f7b971972fa850b0255dcf18db923
2022-04-13 11:38:43 -04:00
AdarshGrewal
42bf168c8d sweet: overlay: Setup fingerprint position 2022-03-24 20:50:00 +05:30
LuK1337
0b3b0b648a sweet: Set default Settings.Global.DEVICE_NAME according to MIUI
MIUI uses ro.product.marketname for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2022-03-24 20:50:00 +05:30
AdarshGrewal
a8346c1c79 sweet: overlay: setup device overlays 2022-03-24 20:50:00 +05:30
AbhiShek Aggarwal
4d23c197b2 sweet: overlay: Import brightness overlays from MIUI
Change-Id: Ib00b3817eece7bb8ff0acafb3d545e4324d7c26d
2021-07-12 16:28:16 +05:30