Commit Graph

238 Commits

Author SHA1 Message Date
e41ad9878e sm6250-common: power-libperfmgr: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2020-08-31 11:14:31 +03:00
be94045ad9 sm6250-common: Add support for event-based tap to wake gesture control
Change-Id: Id963e3c7302a7ee46a5a6b6d1b743a5718d71f4c
2020-08-31 11:14:31 +03:00
74c8ed136b sm6250-common: power-libperfmgr: initialize powerHAL when boot is completed
Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c
2020-08-31 11:14:31 +03:00
b7fa4db574 sm6250-common: power-libperfmgr: Remove dumpstate support
Change-Id: I28416d1b09c1157119ea3ac0de3d015b71896c02
2020-08-31 11:14:31 +03:00
6e22dec64b sm6250-common: power-libperfmgr: completely remove camera hints handling
Change-Id: I1749eb76b0a3aa4afd68fc532b98f1022c4e773a
2020-08-31 11:14:31 +03:00
adb780b40e sm6250-common: power-libperfmgr: remove VR hints handling
Change-Id: I4da9b175c3df713f5befd9364ff75b5c1b41a48d
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
20fb700a8a sm6250-common: power-libperfmgr: remove Google-specific camera and audio hints
Change-Id: I65285ca8c7248bd1e55d3800862e96c00f00effd
2020-08-31 11:14:31 +03:00
0d73bffba1 sm6250-common: power-libperfmgr: remove Google-specific display LPM control
Change-Id: If58f38b99bf6fbd73f6b6ab2144293c63e18b600
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
ff37699a86 sm6250-common: power-libperfmgr: simply wait if idle state node is not present
Change-Id: I93dd97e5437761d2d969f93a5af0cae864fd0a65
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
92e0ba3049 sm6250-common: power-libperfmgr: adapt and rebrand for xiaomi_sm6250
Change-Id: Ia9643f9b842849b6e9cf5a987fc84fc02dcb9c7e
2020-08-31 11:14:31 +03:00
291b9cadff sm6250-common: import Pixel libperfmgr Power HAL
hardware/google/pixel/power-libperfmgr from android-10.0.0_r39

Change-Id: I969f76219e6507627d3689b3c2dc025983bcfde4
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-08-31 11:14:31 +03:00
8038668577 sm6250-common: Remove QTI perf blobs as we will use libperfmgr now
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-08-31 11:14:31 +03:00
4f99554617 Revert "sm6250-common: power: add no-op 1.3 interface implementation"
This reverts commit 40eda54cb1.

Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>

 Conflicts:
	sepolicy/vendor/file_contexts
2020-08-31 11:14:19 +03:00
db8339d7a2 Revert "sm6250-common: power: Add support for DT2W feature"
This reverts commit a587e4ebb8.
2020-08-31 11:13:38 +03:00
4a00c3e9af Revert "sm6250-common: power: add DT2W support FTS and NVT touchscreens"
This reverts commit 57de657953.
2020-08-31 11:13:38 +03:00
dfdc5e42b2 sm6250-common: define sepolicy for xiaomi battery services 2020-08-30 00:40:02 +03:00
45daab797e sm6250-common: add FM 2020-08-25 16:49:31 +03:00
2594a4727e sm6250-common: update vendor security patch 2020-08-25 16:49:30 +03:00
7614e3da96 [BLOBS] sm6250-common: add FM blobs 2020-08-25 13:35:03 +03:00
322dc33c3f Revert "sm6250-common: remove xiaomi specific battery services"
This reverts commit acdc91e92d.
2020-08-22 00:50:52 +03:00
9807c13368 sm6250-common: manifest: remove QTI WiFi entries
Change-Id: I33da186d036f336585af716d62eda9b62cd9c618
2020-08-18 15:48:18 +03:00
99ed2b49d1 sm6250-common: build WiFi packages 2020-08-18 14:56:37 +03:00
ba2e32a7ce sm6250-common: import WiFi configs 2020-08-18 14:55:15 +03:00
767ceea3dd sm6250-common: remove prebuilt QTI WiFI blobs
Change-Id: I0c006768432a520e64ba510f5136fcd3496e028f
2020-08-18 14:51:26 +03:00
5d74742307 sm6250-common: overlay: enable DT2W 2020-08-18 14:44:17 +03:00
997f392e71 sm6250-common: manifest: upgrade power to 1.3
Change-Id: I0c4b842bd4d28aae11927a216383b3d1186585df
2020-08-18 12:57:26 +03:00
ddb4eab6f4 sm6250-common: build power service from source
Change-Id: Iba9c1d1a6d74c318d68aed4fa548d9539b1bc983
2020-08-18 12:57:26 +03:00
57de657953 sm6250-common: power: add DT2W support FTS and NVT touchscreens 2020-08-18 12:57:26 +03:00
a587e4ebb8 sm6250-common: power: Add support for DT2W feature
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: AbhiShek Aggarwal <warabhishek@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2020-08-18 12:56:56 +03:00
40eda54cb1 sm6250-common: power: add no-op 1.3 interface implementation
Change-Id: I435e275ab4229b9d6f5fbb4eb1271cfcd7488409
2020-08-18 12:37:45 +03:00
aecb94ebd3 [BLOBS] sm6250-common: remove prebuilt power HAL 2020-08-18 12:32:18 +03:00
97dd323607 [BLOBS] sm6250-common: remove uncommon thermal engine map 2020-08-15 20:25:19 +03:00
f4ce900e01 sm6250-common: init: cleanup includes 2020-08-15 05:24:42 +03:00
3b12ba11d0 sm6250-common: init: split up functionality into separate static library
So we can include it again in device-specific tree.
2020-08-15 04:27:26 +03:00
8068c2a96f sm6250-common: rootdir: include device specific rc file 2020-08-15 04:27:26 +03:00
ad54dad564 [BLOBS] sm6250-common: remove thermal engine init file 2020-08-15 04:27:26 +03:00
756f09f94b sm6250-common: add miatoll to guard 2020-08-15 04:27:26 +03:00
c24d83443b sm6250-common: add all devices to guard 2020-08-15 04:27:26 +03:00
b5730f713a sm6250-common: build WiFi Display dependencies and add framework to boot JARs 2020-08-15 04:27:26 +03:00
48c1a54a68 [BLOBS] sm6250-common: add WFD blobs 2020-08-15 04:27:26 +03:00
6f531fdd49 sm6250-common: reserve more space on system 2020-08-14 23:35:10 +03:00
ebc9e93a3f sm6250-common: add misys blobs needed for MiuiCamera 2020-08-14 23:35:10 +03:00
a0c7e0c3c9 sm6250-common: init: group dalvik property initialization together 2020-08-13 22:06:51 +03:00
6fdeeb9833 sm6250-common: overlay: Import correct mainBuiltInDisplayCutout
Change-Id: I35c98114261215bdadb8b0ef863420677f3b2e68
2020-08-13 18:16:18 +03:00
e5d5f85e51 sm6250-common: overlay: adjust ramp rates for 255 max brightness 2020-08-13 18:16:18 +03:00
e56248445e sm6250-common: overlay: use 16dp rounded corner padding
Change-Id: I9f81f684d491ed447b7bdb2ca70f558bf75ebc67
2020-08-13 18:16:18 +03:00
8dc9578354 sm6250-common: overlay: define automatic brightness overlays 2020-08-13 18:16:18 +03:00
fbf5932b94 sm6250-common: overlay: define intrusive notification led 2020-08-13 18:16:18 +03:00
7e49500e83 sm6250-common: overlay: status bar height and corner radius 2020-08-13 18:16:18 +03:00
244efb5d7d sm6250-common: overlay-lineage: set config_haveNotch overlay to true
This device has a notch, but this was never set, so users were still able to
do things like enabling the network traffic monitor or setting the clock
position to center, both of which would not be fully visible due to the
notch.

Change-Id: I2aaa0c06b23b40aac120c325ce15fb0992463520
2020-08-13 18:16:18 +03:00