Commit Graph

129 Commits

Author SHA1 Message Date
Arian
233e65f887
davinci: perf: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I4e2755ede6651b18408016e39989fc69a247f540
2020-08-06 21:28:07 +02:00
Arian
f83ffb4f07
davinci: touchscreen: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Iee8dde280391c11a69e6843f9185cd967b1799a5
2020-08-06 21:28:07 +02:00
Arian
fbba17a8a8
davinci: touchscreen: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I0656ca048e4b2670a6e3545d8f8f788491798a6d
2020-08-06 21:28:07 +02:00
Arian
1c8aea0c64
davinci: graphics: Build libtinyxml from source
Change-Id: I2eb407dedf02ec277277c9681552011f87f16caf
2020-08-06 21:28:07 +02:00
Arian
d8a328f6dc
davinci: graphics: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Id89a554b74bc8827735478b04e827a3e4b80e213
2020-08-06 21:28:07 +02:00
Arian
c5b716ac1d
davinci: graphics: Build libvulkan
Change-Id: I6c579062982f20bc8223035d76e1e1e926122384
2020-08-06 21:28:07 +02:00
Demon000
6dc37c641e
davinci: graphics: Build renderscript stack
Change-Id: I63a4a0a220feec5e861e93feb4d45a33facf0e1b
2020-08-06 21:28:07 +02:00
Arian
4b2b360232
davinci: graphics: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I97b18ee6a0a777f033c3513c4e3ba365c9fe2356
2020-08-06 21:28:07 +02:00
Arian
721e933f3b
davinci: display: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: If3e470b7d879c8b160a93655292c76baf4c1460d
2020-08-06 21:28:07 +02:00
Arian
c5f78a390e
davinci: display: Import calibration blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Iceb08fbfda31f1c163b061deca1471b6d09ef6df
2020-08-06 21:28:07 +02:00
Demon000
e0429a18ff
davinci: graphics: Import display blobs from def_reteu
Taken from def_reteu-user-10-QPFS30.103-21-1-2-c993f-release-keys.

Change-Id: I5e99c224a4e47f88a411c35200de81a371711e35
2020-08-06 21:28:07 +02:00
LuK1337
d41667c550
davinci: Convert configstore settings to props
Change-Id: Iadefa31bc863b7ab70239874bed82bef240cbba5
2020-08-06 21:28:07 +02:00
Demon000
5ca0a9fff7
davinci: display: Build stack from source
Change-Id: I4ae143d0cc0fba379894e1f69b793312192f0c4a
2020-08-06 21:28:07 +02:00
notsyncing
bf7bc6bfcf
davinci: audio: Use USB audio policy configuration from AOSP
* This can greatly improve audio quality when an external
   USB DAC is connected.

Change-Id: I4eeaadc9e3dd26fb54dbfa5a1acf3599b3e6b16b
2020-08-06 21:28:07 +02:00
dianlujitao
da08da6e09
davinci: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2020-08-06 21:28:07 +02:00
Arian
763858361c
davinci: audio: Add libmisound
Change-Id: I42cf4678006710b441be031756cba301c79accfa
2020-08-06 21:28:07 +02:00
Arian
ea456f56d5
davinci: audio: Import configs
Change-Id: I401921a868d481002a5fff3b18161d5bcff81682
2020-08-06 21:28:07 +02:00
Arian
a6b3b1beb9
davinci: audio: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I1c9dc7e777869208ef91ab1dbad794a90602ef39
2020-08-06 21:28:06 +02:00
Demon000
7cadbfea11
davinci: audio: Build HAL
Change-Id: I2d07332cce733c2a0ae21c9a970abcede2de63a2
2020-08-06 21:28:06 +02:00
Jean-Michel Trivi
a5b5e3ac21
davinci: Increase media volume from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
2020-08-06 21:28:06 +02:00
Ady Abraham
686433b6ca
davinci: Enable EGL Image Tracking on SF
Enable EGL image memory tracking on SurfaceFlinger to catch
memory leaks.

Bug: 137514000
Test: launch few apps and switch between them
Test: adb shell dumpsys SurfaceFlinger
Change-Id: I621231f36b5317e3487d5c9a93320584974b7af1
2020-08-06 21:28:06 +02:00
Nirmal Abraham
1ce6ebe00b
davinci: Disable SF Latch Buffer Signaled property
Change-Id: I682b30fbefdfbd4d8478a82148d5984138078957
2020-08-06 21:28:06 +02:00
Lucas Dupin
657b23e852
davinci: Import coral offsets for GPU composition
Window animations now have rounded corners, meaning that
the shader that we use is more expensive than it used to be.

Because of this, we need to adjust the SF offsets, to make sure
that we'll have enough time to finish the GPU composition without
dropping frames.

Change-Id: I8173e12b006bc1cab6b4cb0b3a5db9f9b3489819
2020-08-06 21:28:06 +02:00
LuK1337
753112bc24
davinci: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig,
so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2020-08-06 21:28:06 +02:00
dianlujitao
a1692904de
davinci: Force enable mobile network settings v2
* AOSP defaults to true but 10 QC telephony extension sets it to false.
 * Restore AOSP behavior by enabling it with a system property which has
   higher priority over global system settings which is used by QCOM w/o
   modifying the jar.

Change-Id: I45854b91bb8cfafabfe811777cda9f1e1840febf
2020-08-06 21:28:06 +02:00
Arian
fcf43c3193
davinci: Import and sort vendor and odm properties
Change-Id: I83fc839a73c24f41dbb43e3c536c079f924dcc7f
2020-08-06 21:27:55 +02:00
Richard Hansen
db122804f7
davinci: Add vertical margin in recovery to avoid the rounded corners
Change-Id: Ic5f9a10bd2ea465afb728dd67a56cecf1afa564d
2020-08-06 21:22:34 +02:00
Arian
661a7e3bb7
davinci: Import stock system properties
Change-Id: I768dd0db1568fe560260ab01dd35788e56ff39dd
2020-08-06 21:21:41 +02:00
Demon000
9ab6da26ed
davinci: telephony: Define vendor ril service usage
Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2020-08-05 14:03:32 +02:00
Michael Bestas
46e2ad43cb
davinci: telephony: Set TARGET_PROVIDES_QTI_TELEPHONY_JAR
Change-Id: Idffe1a95d5ddac0ef3d6c74e3d55293b553e51ba
2020-08-05 14:03:32 +02:00
Sandeep Gutta
2f13e34c12
davinci: telephony: Add inject support for MultiSimSettingController
Add MultiSimSettingController class name to telephony_injection to
be able to creat proprietary extended instance.

Change-Id: Ie371001330a34eadab8b46fb2173e9a4f245b1a6
CRs-Fixed: 2475440
2020-08-05 14:03:32 +02:00
Sandeep Gutta
7f3a5fd05a
davinci: telephony: Move qti-telephony-common to product
Add qti-telephony-common.jar product path to inject xml

Change-Id: I0c9bb7c827589236c1231fec0cb2621c2a0e3032
CRs-Fixed: 2438412
2020-08-05 14:03:32 +02:00
Sandeep Gutta
89adfc6c08
davinci: telephony: Add telephony_injection file
Add telephony_injection file and required jar path, components.

Change-Id: Ia2e0d327c1eaed17cb229f1cfca62c6bda85d49b
CRs-Fixed: 2407245
2020-08-05 14:03:32 +02:00
Arian
6e055ec68e
davinci: telephony: Import CarrierConfig overlay from LA.UM.8.9.r1-09300-SM6xx.0
Change-Id: I384c774416df4eedb4eaea2cc52bd41d41117d94
2020-08-05 14:03:32 +02:00
Arian
ddae631598
davinci: telephony: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I74ec68f59be4f17f57bf6c83071a4854768ac65e
2020-08-05 14:03:32 +02:00
Arian
5e19c3c612
davinci: telephony: Import privapp-permissions
Change-Id: I8425916a404407e3839a61a5b6d96b520c1bca22
2020-08-05 14:03:32 +02:00
Demon000
a399b58601
davinci: Patch qti-telephony-common.jar to work on AOSP
* The following diff has been applied:

Change-Id: I28625de48e122e73b0d1df8d2351cd158a2a58e4

--- a/smali/com/qualcomm/qti/internal/telephony/WifiManagerCompatible.smali
+++ b/smali/com/qualcomm/qti/internal/telephony/WifiManagerCompatible.smali
@@ -17,7 +17,7 @@
     .locals 1

     .line 13
-    sget-boolean v0, Lmiui/os/Build;->IS_GLOBAL_BUILD:Z
+    const v0, 1

     return v0
 .end method
@@ -27,13 +27,6 @@
     .param p0, "context"    # Landroid/content/Context;
     .param p1, "set"    # I

-    .line 9
-    invoke-static {p0}, Landroid/net/wifi/MiuiWifiManager;->getInstance(Landroid/content/Context;)Landroid/net/wifi/MiuiWifiManager;
-
-    move-result-object v0
-
-    invoke-virtual {v0, p1}, Landroid/net/wifi/MiuiWifiManager;->setSARLimit(I)V
-
     .line 10
     return-void
 .end method
2020-08-05 14:03:32 +02:00
Arian
66442a7c21
davinci: Add CNE configs for VoWifi
Change-Id: I1f48317abbe34a35ba8b07ca2a6cdb278782fa00
2020-08-05 14:03:32 +02:00
Arian
8d37458fea
davinci: telephony: Import blobs
Change-Id: Ic6a6efc9d76b9ad73009ba76e8cf3d737a908336
2020-08-05 14:03:32 +02:00
Arian
a96c124bbe
davinci: telephony: Build required packages
Change-Id: Ia2faf1a49729142796b711a291fe07eb84fb5adb
2020-08-05 14:03:32 +02:00
Arian
fc2ad20eab
davinci: power: Import sub system restart blob
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I66c534a37d80e6ebefc75f370e64ba924574e584
2020-08-05 14:03:32 +02:00
Arian
a069620a9d
davinci: power: Import poweroff alarm blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I31ecaac525679a1c57ab68ab6f2576e19810bd96
2020-08-05 14:03:32 +02:00
Bruno Martins
a4c9f8201b
davinci: power: 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-05 14:03:32 +02:00
TheScarastic
a0e115027a
davinci: power: Support event-based dt2w node
Change-Id: I08c874f3ca50fad1db820ddd85ef0f5d7ccf0ed2
2020-08-05 14:03:32 +02:00
Arian
b2d6a22c11
davinci: power: Prepare HAL extension
Change-Id: Ia2fcbb47d61970521eb4b3da769f4f160580c61a
2020-08-05 14:03:32 +02:00
Arian
d884716edc
davinci: power: Build HAL
Change-Id: I650e36366cf6e8b368699f63fe82702e89394cf6
2020-08-05 14:03:32 +02:00
vasishath
4979e2c172
davinci: light: Detect maximum brightness dynamically
Change-Id: I9385be40a8598e1142bb3844446b6bbeb5aab008
2020-08-05 14:03:32 +02:00
Demon000
b7413b8791
davinci: light: Simplify alpha scaling logic
Change-Id: I9b5c15d5ec4865d3bf829457d6f110ddb3af6e94
2020-08-05 14:03:32 +02:00
Demon000
25523a776d
davinci: light: Do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
2020-08-05 14:03:32 +02:00
Demon000
13a3863832
davinci: light: Avoid resetting state
The handler function is called regardless of whether the value of the
highest priority state changed.
In case of the notification led, this translates to the breathing
process being reset, which triggers my OCD.

Change-Id: I4880b00602cbb739219871f1d7ce9ad85d87bc1b
2020-08-05 14:03:32 +02:00