Commit graph

930 commits

Author SHA1 Message Date
tomascus
1012b94af9 sdm710-common: power: Don't use SCROLL_PREFILING
The current use of the SCROLL_PREFILING hint hurts scroll performance
and results in a lot of dropped frames.

The hint ID corresponding to SCROLL_PREFILING only takes into effect for
a default timeout value of 80 ms (as found in perfboostsconfig.xml),
while the duration value in the process_interaction_hint function runs
for a much longer time, from 1500 ms up to 5000 ms (bounds of
kMinFlingDuration and kMaxInteractiveDuration). During the period
of time, when the timeout value has elapsed and current time is less
than duration, another interaction hint cannot be processed. Therefore,
if the user decides to scroll during this period, high frame drops can be
experienced as the CPU freq isn't raised by processing another hint to
account for this additional scrolling.
By only using SCROLL_VERTICAL, fluidity can be maintained, improving user
experience.

Change-Id: I2fbde8b2db6710d262e9a058e0bc9c02e524648c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:38 +00:00
tomascus
18960a4972 sdm710-common: power: Release launch boost perflock when launch is completed
Currently, the launch boost perflock is held for a fixed duration, either
specified in perfboostsconfig.xml for perf HAL platforms or hardcoded in the
powerHAL for non-perf HAL platforms.

Using a fixed duration for this perflock has two shortcomings:
* perflock can be held for too long, causing the CPU freq and other resources
  to be boosted for too long even if the application has finished launching,
  resulting in excessive battery drainage
* perflock can be held not long enough if it takes more than the timeout
  time to finish launch

The framework sends out a powerhint for both when launch starts and when
launch ends. The launch finish hint can be used to signal when to release the
perflock.

Reference: Wahoo power-libperfmgr

Change-Id: I405cc453c5f58d9fb2583b9c6017f3964a0ce024
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:26 +00:00
Giuseppe Barillari
fa987c9474 sdm710-common: Override stock power HAL service definition
The service must be made part of the input group,
so that the power HAL can access the input nodes present
in the different targets.

Change-Id: I30a7bde8aebac4b76cbf59f5f795ea245aba1014
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:16 +00:00
Ananth Raghavan Subramanian
b12655e6b3 sdm710-common: power: Clean up code and add generic hint handling
Removed unused code and added generic hint handling to power.c file,
does not need to be device specific anymore.

Change-Id: I0d4e2a73de0ce4d3735314d2e49ba58c23eb313c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:06 +00:00
Rajashekar Adi
d735112eeb sdm710-common: power: Fix for VNDK compliance issue
VNDK flag enablement for P upgrade

Change-Id: I033c3d9c8a1ee1e7f52a6398ae989becd66d161e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:55 +00:00
Vinay Verma
5b607c28d5 sdm710-common: power: Fix VNDK compilation errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: I4c72a28ffa141ecadcfe47cc7c1f62f2a0c8576e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:47 +00:00
Wei Wang
f945859627 sdm710-common: power: Use monotonic time for interaction boost
Using the wall clock will cause boosts to be disabled
when/if the clock is adjusted backward.

Bug: 29191415
Bug: 29208304
Change-Id: I8af5f40b46d996ce7bccb8324fc186e2f3a5b267
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:37 +00:00
BeYkeRYkt
3d731adb1f sdm710-common: power: Handle launch and interaction hints
* MP-CTL does not handle POWER_HINT_INTERACTION and POWER_HINT_LAUNCH
   directly. Requests for processing are sent by Qualcomm BoostFramework
   (QPerformance) at the framework service level. Since we do not have
   BoostFramework, process POWER_HINT_INTERACTION and POWER_HINT_LAUNCH
   in PowerHAL to ensure a sufficient level of performance.
 * For proper operation, perfboostsconfig.xml file is required.

Change-Id: I9fedcbaa189147c91d932711c831c2ce038a7ec7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:21 +00:00
Steve Kondik
58c18cd468 sdm710-common: power: Add support for tap-to-wake feature control
Change-Id: I545902b29f4828c127bc32def6e30b67ce4a3aa7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:07 +00:00
Bruno Martins
311ead102a sdm710-common: Import QCOM power HAL
Change-Id: Ia4fe5dd8e0240955b7d2199e3e1d6743138b511d
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:52:29 +00:00
SamarV-121
767781bf36 DNM
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:55:11 +00:00
Wang Han
c142b3ca6f sdm710-common: Enable config_postResetRunnableForAllClients
* Without this, fingerprint stops working after using it
   for the first time.

Change-Id: Ibdcdf8f1b5beaf481f2a7a9fd8ad199494161502
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:52:16 +00:00
Luca Stefani
e0cbbd78b7 sdm710-common: Notify client when fp cancelling succeeded
Change-Id: I49bb7ef9c46134562da55ac2a1c53363704ed7d6
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:48:27 +00:00
Ethan Chen
9e69d97cd2 sdm710-common: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:09:10 +00:00
Andrew LeCain
b86fd1c6fe sdm710-common: Adding uhid permissions to default fingerprint rc
Test: Sailfish has fingerprint present
Bug: 120112580

Change-Id: I11c3bf02ddb2102a6d326a35e360e067812b0b75
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:08:37 +00:00
SamarV-121
6bc03c5391 sdm710-common: Bind mount vendor.oppo.hardware.biometrics.fingerprint@2.1-service.rc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:07:59 +00:00
Anton Hansson
5221fa9128 sdm710-common: Set cpu "runtime variant" to cortex-a75
This makes bionic and various art tools that compile/runs cpu-specific
code choose the cortex-a53 variant at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:07:03 +00:00
Bruno Martins
a91998b826 sdm710-common: overlay: Pin the same RenderScript libs as stock
Change-Id: I13b087d186b8509bf35130835b89812fee7abc05
2019-11-30 09:03:31 +00:00
SamarV-121
b14b08ac24 sdm710-common: overlay: Update pinner service
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-30 09:01:03 +00:00
SamarV-121
08575fecb0 sdm710-common: Disable doze for now
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-28 14:56:17 +00:00
LuK1337
9dcd79999e sdm710-common: Copy up to date handheld_core_hardware to system
* Vendor one is outdated and therefore we lose stuff
  like secure lockscreen...

Change-Id: I458867b3b322ad754b78877209b7f4d8fb78eb38
2019-11-28 14:54:19 +00:00
SamarV-121
6d8e8d4426 sdm710-common: Update touchscreen firmware
* Fixes touch not working after boot

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-27 11:54:48 +00:00
Sᴀᴍᴀʀ Vɪꜱᴘᴜᴛᴇ
b7a5650490 sdm710-common: Remove seclabel for rutilsdaemon 2019-11-27 11:49:31 +00:00
SamarV-121
9934de7ac2 sdm710-common: Nuke sepolicy for now
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-11-27 11:48:54 +00:00
Jan Altensen
4d2f98e365 sdm710-common: sensors: also import multihal
Change-Id: Ife216d32c81e7d9205a2a6651a6729ce9cd70187
2019-10-12 09:53:50 +00:00
SamarV-121
f0f565130f sdm710-common: Drop DPM blobs
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:50:51 +00:00
dianlujitao
aeacc5af5f sdm710-common: Create system copy of ims-ext-common and add to classpath
* Our ims.apk doesn't load ims-ext-common.jar, and it's moved to /product
   on 10 where PRODUCT_BOOT_JARS doesn't work.
 * Create a system copy of the jar and add it to boot classpath to make
   it loadable from the apk without extra work,

Change-Id: Ia530a530bd4469e12500410fc5e8ba393de60b18
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:48:23 +00:00
Brad Ebinger
638cd12002 sdm710-common: Enable FEATURE_TELEPHONY_IMS for these devices
Bug: 118823723
Test: checkbuild
Merged-In: I69fd98160e852b371331a7bc169c7c97dd37f011
Change-Id: I69fd98160e852b371331a7bc169c7c97dd37f011
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:47:26 +00:00
LuK1337
722e3cdafa sdm710-common: Update device/qcom/sepolicy include paths
Change-Id: I5c242b8db7e92d753d19bf9c42f2394b9e6a0c6a
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:41:58 +00:00
LuK1337
172e69cd0d sdm710-common: Make SELinux great again!
Change-Id: Id479e031b584b24f79377aa244add20903a42b02
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:41:10 +00:00
Nicolas Geoffray
b0c49080c7 sdm710-common: Add a new list of pinned file for the JIT in zygote experiment.
Bug: 119800099
Test: adb shell dumpsys pinner
Change-Id: I44596d11f7444551a9898373a068556d49a1a4e6
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:39:24 +00:00
Nicolas Geoffray
ca10dd1e9d sdm710-common: Adjust pinned files following runtime module work.
Test: adb shell dumpsys pinner
Bug: 119868597
Change-Id: I83c709accb32d0f2c341179dbc5dcd6d7ec75d8a
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:39:09 +00:00
Jiyong Park
9414a0fa4e sdm710-common: Add updatable_apex.mk
The product abstracts configs that need to be set to support updating of APEXes.

Change-Id: Id5aa944ceba6a6846308f1c18a08af8b3bb38589
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:38:48 +00:00
Nicolas Geoffray
def6db396f sdm710-common: Generate the apex image.
Change-Id: I18a76766590db27a4c32534dc948f55f78da166c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:38:10 +00:00
LuK1337
d2e539a606 sdm710-common: Copy Android P VNDK blobs
Change-Id: I4f2f48ca4810247b2b951de27b82da0769f7d1b1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:35:56 +00:00
Anton Hansson
35020fa942 sdm710-common: Use generic arch variant
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.

Bug: 120773446
Test: make
Change-Id: I9e23963fcfa5ccaa912f2930a632458c4d2a692d
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:35:13 +00:00
rajatgupta1998
05d36b9b1e sdm710-common: remove TARGET_USES_HWC2 flag
* Enabled by default on P
 * d265c42386
2019-10-12 09:31:05 +00:00
SamarV-121
28ab6b40c0 sdm710-common: Enable inline kernel building
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-12 09:27:08 +00:00
SamarV-121
054d67fa11 sdm710-common: Rename init.target.rc to init.qcom.rc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-10-08 17:01:21 +05:30
SamarV-121
8f49fac150 Revert "sdm710-common: Import fp blobs"
This reverts commit c6e26c8044.
2019-10-07 22:56:00 +05:30
SamarV-121
eea0908f5f Revert "sdm710-common: android.hardware.biometrics.fingerprint >> vendor.oppo.hardware.biometrics.fingerprint"
This reverts commit a1db24fe8f.
2019-10-07 22:55:11 +05:30
SamarV-121
01d35d0c98 Revert "sdm710-common: Add QC location support"
This reverts commit 85cf815a71.
2019-10-07 22:54:39 +05:30
SagarMakhar
8b29969b03 sdm710-common: Copy proximity and light sensor permissions to system
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:51:33 +05:30
SagarMakhar
89867cb9a5 sdm710-common: Build oppo fingerprint hal 2019-10-07 22:38:49 +05:30
Erfan Abdi
22c90c7e61 sdm710-common: Write Fingerprint HAL Adapter
vendor.oppo.hardware.biometrics.fingerprint@2.1 -> android.hardware.biometrics.fingerprint@2.1

Change-Id: Id33db73425bb5e92ef5c45e2f8d40fa462942af3
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:37:09 +05:30
SagarMakhar
1e86d239bc sdm710-common: Import oppo fingerprint hal
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:35:28 +05:30
SagarMakhar
46702f925d sdm710-common: Set HBM on fp press
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:23:43 +05:30
SagarMakhar
8fbdb829a2 sdm710-common: Fix proximity and light sensors
* replace proprietary sensor types with standard ones

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:22:40 +05:30
SagarMakhar
593b28605f sdm710-common: Import sensors impl
* as it is from hardware/interfaces

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:20:48 +05:30
SagarMakhar
742d715a2f sdm710-common: fod: Adapt for Realme X
Icon location :
         From stock rom logcat :
                  I android.hardware.biometrics.fingerprint@2.1-service: SDM710P set goodix iconlocation to 273 (pixel:540 2035) (all: 1080 2340), iconsize to 196

         x = 540 - 196/2 = 442
         y = 2035 - 196/4 = 1986
         size = 196

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
2019-10-07 22:19:53 +05:30