Commit graph

29 commits

Author SHA1 Message Date
16255e2c1e
sdm710-common: Import libperfmgr from hardware/xiaomi again 2024-11-23 16:15:34 +02:00
COSMIC
6db1bd45fb sdm710-common: power-libperfmgr: Resolve HintManager shared_ptr conversion 2024-11-14 10:54:58 +02:00
giasen
c4e5b44832 sdm710-common: Import power libperfmgr from hardware/xiaomi 2024-04-12 09:15:20 +03:00
Volodymyr Zhdanov
2caf49b8dd sdm710-common: power-libperfmgr: move dt2w mode on top of setMode switch
* fixed dt2w after reboot

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
Volodymyr Zhdanov
069088dff8 sdm710-common: power-libperfmgr: enable DOUBLE_TAP_TO_WAKE mode explicitly
* libperfmgr expects mode to be declared in powerhint but dt2w is handled in powerhal
* so let's just force enable it like google did with LOW_POWER
* also use break instead of fallthrough because there's no need to play with hints

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
SamarV-121
623f59e656 sdm710-common: power-libperfmgr: Enable dt2w
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2022-11-12 15:09:34 +01:00
giasen
c69c3e3d54 fixup: sdm710-common: update power sepolicy from xiaomi-sdm845
- remove unwanted rc file
2022-11-12 15:09:34 +01:00
Jesse Chan
dd42b3033c sdm710-common: libperfmgr: remove Google-specific VR and camera hints
Change-Id: Iac0e65a16f660583d3400a35622113d35d8d1d27
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
Chenyang Zhong
2018306009 sdm710-common: power: rename pixel to lenovo-sdm710
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
Chenyang Zhong
39646561d1 sdm710-common: power: re-import power HAL
from android-13.0.0_r3

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-12 15:09:34 +01:00
Jiyong Park
e40f608cd2 sdm710-common: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Change-Id: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-09-13 23:56:40 +02:00
Jeongik Cha
d88dc70552
sdm710-common: Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-10-19 17:39:33 +02:00
Giammarco Senatore
38b77bd32e
kunlun2: Drop vendor_overlay and its hax 2021-07-11 17:06:19 +02:00
Volodymyr Zhdanov
4db1147a64 kunlun2: power-libperfmgr: move dt2w mode on top of setMode switch
* fixed dt2w after reboot

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 19:36:00 +01:00
Volodymyr Zhdanov
7fd6e62ecd kunlun2: power-libperfmgr: enable DOUBLE_TAP_TO_WAKE mode explicitly
* libperfmgr expects mode to be declared in powerhint but dt2w is handled in powerhal
* so let's just force enable it like google did with LOW_POWER
* also use break instead of fallthrough because there's no need to play with hints

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 19:34:49 +01:00
SamarV-121
0b9dcc21d6 kunlun2: power-libperfmgr: Enable dt2w
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 18:09:57 +01:00
Kyle Lin
0d01eb2df5 kunlun2: libperfmgr.rc: let power hal start early
Bug: 162791243
Bug: 72471476
Test: build and using emul temp/running burn8 to verify it
Change-Id: I5ca475be8b73b940e4858634595a7918ae92f6ef
(cherry picked from commit 35e110fe669a7d2996ce503d7e31204554f972e3)
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
Jesse Chan
bae3d485a5 kunlun2: power-libperfmgr: Initialize powerHAL when boot is completed
Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
Jesse Chan
a485a2c7c8 kunlun2: power-libperfmgr: Remove Google-specific display LPM control
Change-Id: If58f38b99bf6fbd73f6b6ab2144293c63e18b600
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
Jesse Chan
89e43efead kunlun2: power-libperfmgr: simply wait if idle state node is not present
Change-Id: I93dd97e5437761d2d969f93a5af0cae864fd0a65
Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-01-01 17:52:21 +01:00
SamarV-121
30666f3913 kunlun2: Import Pixel power AIDL HAL
Nuke Powerstats
2021-01-01 17:52:11 +01:00
smore-lore
f81b318e9a Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Ied304d76cba152dc91d4fab09179b74a532072b3
2020-09-17 18:10:57 +02:00
Jesse Chan
6a159a6617 sdm710-common: power-libperfmgr: remove Google-specific camera and audio hints
Change-Id: I65285ca8c7248bd1e55d3800862e96c00f00effd
Signed-off-by: SamarV-121 <samarv121@pixelexperience.org>
2020-07-20 18:28:57 +02:00
Jesse Chan
dd10d0099b sdm710-common: power-libperfmgr: remove Google-specific display LPM control
Co-authored-by: SamarV-121 <samarvispute121@gmail.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-06-23 18:39:36 +02:00
SamarV-121
fcd478120d kunlun2: power-libperfmgr: Convert to lenovo targets
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:29:29 +02:00
SamarV-121
0e07fa1138 kunlun2: Compile libperfmgr in system
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:29:29 +02:00
SamarV-121
fdda56ab6d kunlun2: power-libperfmgr: Move to framework manifest
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:27:02 +02:00
Steve Kondik
3cb57f00ca kunlun2: power-libperfmgr: Add support for tap-to-wake feature control
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:27:02 +02:00
Henrique Pereira
5c6a44f762 kunlun2: Import power-libperfmgr from hardware/google/pixel
* Powerhint.json from Crosshatch slightly cleaned-up

Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-05-22 11:27:02 +02:00