Commit Graph

9 Commits

Author SHA1 Message Date
TheScarastic
6f9358f8c9 sm7250-common: parts: Fix thermal profile build for android-12
bfc9e59361

Change-Id: Idb137239c916f94d0bbef2166bb688f381e4ad28
2022-06-05 14:29:13 +02:00
TheScarastic
d2eae4ed29 sm7250-common: parts: Add dynamic thermal profile implementation
Change-Id: I4667b24a8a29a418796dc51b245ede0aca51eea6

sm7250-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

sm7250-common: Switch back to default thermal profile when screen off

Change-Id: I72aae3c1fbb13f44ff7a637ba9ad70cf451d71a2

sm7250-common: Set dynamic thermal interval to 5 sec

Change-Id: I96a67297645ad9074045e94fce84e664723aa64c

sm7250-common: parts: Switch to TaskStackListener

Change-Id: I18cb22decddb38420e8137aafdc56810e81d4603

sm7250-common: parts: Refactor whole code

Change-Id: I14303556c66ea6bd3d111b5ce7e176711a676824

sm7250-common: parts: Check if kernel support Thermal Profiles

Change-Id: Ief3911b0c1238ed6e209f7b66dde68d67a69ea88

sm7250-common: parts: Add ACTION_SCREEN_ON intent filter

 * this should fix thermal/touchscreen profiles not
   getting restored after turning screen back on

Change-Id: Idb485fc7f1942f1a2d117025fe5c4237afc3ec81

sm7250-common: parts: Use correct gaming thermal

* thermal-pubg.conf is missing which is selected with 13, instead we have thermal-tgame.conf which is 9.
* thanks amack766 for informing

Change-Id: If2e95fc04b26a1fa87e77f854ec0c325243cd097
2022-06-05 14:29:13 +02:00
TheScarastic
b780b6793f sm7250-common: parts: Adapt to S style
* Use Theme.SubSettingsBase for theme
 * Replace PreferenceActivity with CollapsingToolbarBaseActivity
 * Add Titles to preference screen
 * Remove onOptionsItemSelected and where necessary move to activity

Change-Id: I87af15f5e165aa7bcd556eb2b716c0ce624ca4e7
2022-06-05 14:25:15 +02:00
xSylla
673320e8a1 sm7250-common: Commonize parts/utils
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 16:43:28 +01:00
Arian
1319cf67e7 sm7250-common: parts: Allow to wake the screen instead of pulsing
Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I1e74f8eafa51843e77d2d8c514c646a4494327cd
2021-12-01 16:43:28 +01:00
Sebastiano Barezzi
2887577f80
sm8250-common: Drop displayfeature
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>

Change-Id: I78719e1f66aa0bc6df366424e3aeb92433d3d899
2021-04-10 23:45:19 +02:00
Sebastiano Barezzi
1093d57bb0
sm8250-common: parts: Enable FOD service with prop
Change-Id: I570e00d8f25900fd9484083c0b661acb407a5931
2021-02-15 18:54:37 +01:00
TheScarastic
3d6e8c0036
sm8250-common: parts: Add FOD service
Change-Id: Ibc4ec25057d260e2dba9c221f0c79e6485ddf56d
2021-02-15 18:54:37 +01:00
Sebastiano Barezzi
131c25c742
sm8250-common: Import XiaomiParts from sdm845-common
* From commit beba0fc
* Kill Dirac and thermal stuff

Change-Id: I35edd8aa2698ba510d94285149d3e7a6c9ec7c52
2021-02-15 18:54:37 +01:00