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
The maximum frequency isn't effective from power consumption terms on
both clusters [1]. Replace maximum frequencies with lower ones to save some power.
[1] https://github.com/kdrag0n/freqbench/tree/96d72eac/results/sm7125/main
Change-Id: I6336bfce0dae8f578704c0bd9644c2829389762f
The difference in wakeup latencies isn't so significant, let CPU cores enter
deeper idle states to save some power.
Change-Id: I9b24adc356bf35bbdc0bda6e0eee982b4daf1350
* Provides hardware-accelerated Codec2 decoding for most codecs
Signed-off-by: Albert I <kras@raphielgang.org>
[dereference23: Kang blobs from mojito]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iefd3185390091a11adbd2497c8281f72c98e100e
* Switch to "Adaptive" mode and Display P3 color by default
* Use default color mode for Natural and Boosted
* Enable QDCM combined mode and disable factory mode
* Drop LiveDisplay's color mode support as it conflicts with AOSP display
color adjustment
* Rest of configuration is kanged off Pixel's overlay
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
* Heavily inspired by CAF liblights
* Also properly implemented white LED support
* Added chowns where needed (AOSP init.rc already sets some)
Change-Id: Ib9ff8accb163563e19d754f581805bde586d30a9
While Google found that fingerprint HAL is insensitive to
increased CPU throughput, we have not found that to be the
case. Allowing more CPUs makes fingerprint unlock up to
2x faster in some tests.
SM8250 device with fingerprint on display:
- Before: 3128ms
- After: 944ms
SDM845 device with fingerprint on the power button:
- Before: 1146ms
- After: 688ms
This reverts commit d0fdb4431d26e4f257b8867f67ffd9b4a9818d9e.
Change-Id: I7a28d82caee2b8503b974a8226b29240eb072ceb
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.
This change uses component-override to enable the service by default.
Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.
Bug: 135048762
Test: adb shell pm query-services \
com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
adb shell pm query-services \
com.android.bluetooth/.hid.HidDeviceService
adb shell pm query-services \
com.android.bluetooth/.sap.SapService
Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc