Commit Graph

19 Commits

Author SHA1 Message Date
Bruno Martins
beba0fcd16 sdm845-common: parts: Use all shared resources from devicesettings
Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd
2021-02-04 15:36:56 +01:00
arian
7d6926731d sdm845-common: parts: Add vector icons
* from https://materialdesignicons.com/ with small changes

Signed-off-by: Anunay Maheshwari <anunaym14@gmail.com>
Change-Id: Ibbb18065f97ed6f8f5376752495255aeafe1db82
2021-02-04 14:32:47 +00:00
Wang Han
9c5c8f6da2 sdm845-common: parts: Get foreground application with getFocusedStackInfo()
* The main benefit is this API recognizes applications in split
   screen far more better.

Change-Id: I4c9c2530c8090e05da558ed829d59ece5e00e1fb
2020-10-31 22:44:53 +01:00
Bruno Martins
81a8e1e8a5 sdm845-common: parts: Make thermal profiles naming completely generic
Drop the reference to YouTube because that's product-specific.
Moreover, the purpose of such thermal profile should be video streaming,
so name it in that generic way.

Change-Id: Ifa8c97a2d231a24fda016a876c06b59825a068a6
2020-05-17 00:10:23 +02:00
Bruno Martins
d47b02adf1 sdm845-common: parts: Prevent NPE before DiracSound is initialized
There can be an edge case where the BOOT_COMPLETED intent is not
yet received and user tries to open Dirac sound settings. Avoid
letting it crash by making sure init is executed before showing the
preference screen.

Change-Id: I77e6bdd0c61994338f0dbbce4bfa532d84b8afb7
2020-05-16 15:16:56 +02:00
TheScarastic
29005bc46e sdm845-common: parts: Implement dynamic thermal profiles
Change-Id: I4667b24a8a29a418796dc51b245ede0aca51eea6
2020-05-16 11:57:16 +01:00
TheScarastic
8d3b68eacc sdm845-common: parts: Add DiracSound backend
Special thanks to vasishath for his base work on mi3

Change-Id: Id81e60a18dc34c991b82a5a2685c9041222a6ea7
2020-05-16 11:56:42 +01:00
Joey
84a39ce4a8 sdm845-common: parts: Introduce Dirac preferences
Add a frontend for Dirac sound optimization settings.
Inject into sound preferences through settings IA.

Change-Id: I37f6e64fa440c43dbe238cc65af5f9b0bbd60d83
Signed-off-by: Joey <joey@lineageos.org>
2020-05-16 11:11:30 +01:00
Bruno Martins
65f0dd1a73 sdm845-common: parts: Fix dark theme issues
This brings SwitchBar widget inline with 10 and fixes the
theme issues when the dark mode is enabled.

Change-Id: I6909b77bc649eb9eb760bf01b46f66570363e9d9
2020-01-19 08:21:20 +00:00
LuK1337
9037130a43 sdm845-common: parts: Update AmbientDisplayConfiguration class path
Change-Id: Ib0444acc1fd8614a9d47dbac06ac5f25cd6a5719
2019-09-11 12:25:35 +01:00
Bruno Martins
4959cd246f sdm845-common: parts: Clean up proguard flags
Change-Id: If0250fb629417d36c2af7286bc0620e682c4576e
2019-09-02 11:28:43 +02:00
Bruno Martins
14835c7ddd sdm845-common: parts: Migrate to androidx
Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
2019-07-14 10:58:25 +01:00
Henrique Silva
6d6984b261 sdm845-common: parts: doze: Fix AoD default pref
* Fixes non-working pulse notifications from sensors until user toggles
  the main switch and also sets the proper initial status of the
  AoD preference for the devices that have the feature available.

Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
Change-Id: I8e554decca3734b165fdc722d904d90713666db9
2019-01-19 02:00:52 +01:00
Luca Stefani
0f2de0d635 sdm845-common: doze: Check if AOD is enabled after boot
* The service should not start if AOD has been turned on by the user.

Change-Id: I79307adbcda57e663287714ef15830da4f285131
2019-01-09 01:06:42 +01:00
Luca Stefani
ad3c6f559b sdm845-common: doze: Move DozeUtils.checkDozeService in an handler
* There's no need to manually write to the gestures prefs
  as long we are sure the handler is run after we return true
  in the onPreferenceChangeListner

Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07
2019-01-08 21:21:14 +00:00
Luca Stefani
c1ee5ce2d1 sdm845-common: doze: Make AOD preference not persistent
Change-Id: I9d80e94de02d35c85765302a01b53020824dd0ff
2019-01-08 21:21:11 +00:00
Bruno Martins
efb5481819 sdm845-common: parts: Add AOD support to Ambient Display
* This makes the always on display mode feature visible for those
   devices that explicitly set it as available via AOSP overlay.
   Should only be enabled on devices where the display has been tuned
   to be power efficient in DOZE and/or DOZE_SUSPEND states.

Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b
2019-01-06 16:26:48 +01:00
Joey
8d88c66b5d sdm845-common: parts: Match Pie settings UI
Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef
2019-01-06 15:32:39 +01:00
Bruno Martins
b783b4feec sdm845-common: Convert XiaomiDoze into XiaomiParts
* This is the preparation for turning the package into
   an unified device-settings app.

Change-Id: I425ad525edcc63c2dcccd1e2fb8459f442744970
2019-01-06 15:32:39 +01:00