113 Commits

Author SHA1 Message Date
Sebastiano Barezzi
4abb5bfd9c apollo: Decommonize vibrator firmware
Change-Id: I993880c66b55177e19289c09576f4cb4644a568f
2021-06-09 14:00:44 +02:00
DennySPb
c7a5d614f4 apollo: Ship liba2dpoffload.so from stock
* Fixes crash on audio service

Change-Id: If97bac769c179bdbd4468c5e1edf74c17bf36b94
2021-06-09 12:09:25 +02:00
Ramii Ahmed
fdc612e40b apollo: set Surfaceflinger refresh rate timers
This to allow us to idle to lower refresh rates even if the app is requesting a higher one if it's idle to save battery life, or boost even on apps that don't request a certain high refresh rate to get a smoother experience

Change-Id: Ie611283e1d75a31b218454073e85742be91fdf07
2021-06-09 12:04:24 +02:00
Ramii Ahmed
66d99a1e94 apollo: switch to Surfaceflinger content detection API
This is to allow refresh rate switching to be truly dynamic based on the refresh rate requested by the app while allowing for us to add boost & idle cases in the future through further properties

Change-Id: I6584ce692d33406e489c82af2ded58af72db5e2d
2021-06-09 12:04:21 +02:00
Danny Lin
bb2c6933d4 apollo: Enable refresh rate toggle in Settings
Apollo supports switching between 60 and 144 Hz refresh rates, so let's
expose it in Settings -> Display -> Smooth Display for users to save
battery if necessary.

Test: visual confirmation after toggling several times
Change-Id: Ie698ec4d4e738afd2a9055dba2369233103a4f13
2021-06-09 12:01:15 +02:00
ejbtrd
0dcb316b89 apollo: overlay: tune punch hole padding
Change-Id: I62eb7a4a392befbec93177775f5b0bb2c03c27da
2021-06-09 10:05:53 +02:00
Steven Thomas
07a5289142 apollo: Add default frame rate setting
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a Mi 10T to set config_defaultRefreshRate to 144Hz, confirmed
  we default to 60, but that an app calling setFrameRate(144) switches us
  to 144.

- Confirmed that the "smooth display" and "force 144Hz" options on Mi 10T work correctly.

Change-Id: I9e5b33ae4d8cb6753b9af70ec5407b3576e75dc3
2021-06-09 10:03:50 +02:00
Ramii Ahmed
c04dc59c3b apollo: drop minimum refresh rate handler
As We'll be switching to setting default & peak refresh rate values to prepare for smooth display.

Change-Id: I9b21c3dc8c2c7d1ac14507fbb84403be71ce78bb
2021-06-09 09:19:04 +02:00
Ramii Ahmed
a31b362e41 apollo: Allow broken duplicate build rules
Change-Id: I500b972e48918aa64d619afe7ded64f7bcc0eb44
2021-06-03 15:45:06 +02:00
Ramii Ahmed
903000f54a apollo: Decommonize device-specific audio configs
Change-Id: I6324d8d2e7f056e92f20524f58aa7760d3d2b330
2021-06-03 15:45:06 +02:00
ejbtrd
c39ef09566 apollo: Add overlay for cutout
Change-Id: I757daadddc0d2fa67ba54e0400ea83e1f424788e
2021-06-03 15:45:06 +02:00
Ramii Ahmed
a75cf01987 apollo: Import device-specific blobs
* From apollo-user 11 RKQ1.200826.002 V12.1.3.0.RJDMIXM release-keys

Change-Id: Ibca49fc4a1a45066d5facf9eb09960f7af0ba06e
2021-06-03 15:45:06 +02:00
Ramii Ahmed
d5a07b01c4 apollo: Inherit from common tree
Change-Id: Icaf0e5cb7dbb8c75b81bf9008433ab51a9b34531
2021-06-03 09:46:46 +02:00