Commit graph

593 commits

Author SHA1 Message Date
Devika Krishnadas
e8b2e18eeb Increase maxFrameBufferAcquiredBuffers to 3
When display and SF falls out of sync, there is a possibility that while
display holds on to a buffer, a composed buffer could be waiting in the
decon thread. Since maxFrameBufferAcquiredBuffers is 2, GPU will have to
wait for display to swap out the buffer it is currently presenting to be
able to compose for the next frame, which leads to SF missing its
timeline for subsequent frames.

Bug: 190842189
Test: perfetto

Signed-off-by: Devika Krishnadas <kdevika@google.com>
Change-Id: I434e8644cff2538589c1c9b2bf731afae0aa8980
2021-06-17 06:14:37 +00:00
David Anderson
2bfa6d3ba0 Enable compressed snapshots/VABc.
Bug: 185400304
Test: treehugger
Test: apply OTA
Change-Id: I1a2242b219f11212431a5a9207ec5a832e944c46
2021-06-16 20:48:14 +00:00
Adam Shih
6db8d3a3ce remove vcd from user ROM am: 8cc14ed0c4 am: 02f776f3be am: 0479005f42
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14941513

Change-Id: Id381336cf285ab64cb343c46064e03423ebb28e6
2021-06-16 07:22:16 +00:00
Adam Shih
3e058b1e5c remove vcd from user ROM
Bug: 190331325
Test: build all ROM variants with only user ROM without vcd
Change-Id: I0732f80c2adc663c807963b84c70080665212bb2
2021-06-16 06:40:27 +00:00
Wei Wang
1e8e7d77ec Enable ADPF hint am: 65e9cc03ff am: 10c1915993 am: c3a78f1d51
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687079

Change-Id: Icbbdbcff054ff9a0a7270ad08247b4fe3a8e9f4a
2021-06-14 18:06:36 +00:00
Wei Wang
4b696faee6 Enable ADPF hint
Test: build, boot and trace
Bug: 177493042
Change-Id: I05bc6b879506934ad35521ae21e2b3a33740f268
2021-06-14 17:09:07 +00:00
Kelly Rossmoyer
103f721941 Adaptive Suspend: configure first param set am: 3f428fafe4 am: 6a50ca3ab3 am: 91a6cecba5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14914609

Change-Id: Ib4c1fe0a9640be099aea6b0df67b51c7cd061540
2021-06-13 01:17:48 +00:00
Kelly Rossmoyer
eba0f4ff66 Adaptive Suspend: configure first param set
This CL configures the first set of experimental parameters for Adaptive
Suspend on targeted devices, including:
* dropping the max backoff from default 60 seconds down to 40
* changing the break-even threshold from 5 seconds (which was just for
  collecting data) to 2
* enabling backoff on short suspends

BUG: 171433995
Test: ran on test device and observed suspend behavior
Change-Id: Icebf50aeade713591f1641664df11570d184d352
2021-06-13 00:34:09 +00:00
Jimmy Shiu
1ddc03705a Enable SF main thread boost with uclamp.min=30 am: 8e9f11f563 am: bee8e3f68c am: 62d5e78b44
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14914955

Change-Id: I4dfcb1e5bdae1297b4eabae4cc8cc337d3a3ac40
2021-06-12 06:48:46 +00:00
Jimmy Shiu
e209e8fbe9 Enable SF main thread boost with uclamp.min=30
Bug: 190137562
Test: boot and check uclamp.min of SF
Change-Id: Ifd6ad8d67fb0a3ecd2464540b670839cea1e867b
2021-06-12 06:05:29 +00:00
David Anderson
04f47d6e24 Enable compressed snapshots/VABc.
Bug: 185400304
Test: treehugger
Test: apply OTA
Change-Id: I1a2242b219f11212431a5a9207ec5a832e944c46
2021-06-11 03:17:18 +00:00
Adam Shih
14b92cbe5b reorganize trusty_metricsd settings am: 187a532e2a am: ed80d1279e am: 2a598d1526
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14909767

Change-Id: I8ed00b26c6894aba7b75951e5f5a353d42678dde
2021-06-10 06:40:51 +00:00
Adam Shih
cdc350b5e6 reorganize trusty_metricsd settings
Bug: 190331503
Test: build ROM and see the file and sepolicy settings are still there
Change-Id: I212df916799b8acf831158153209bd2a1f7dfc5f
2021-06-10 05:52:40 +00:00
Adam Shih
7911e30e09 organize EdgeTPU modules and sepolicy am: f3966f6bcb am: 316f65b034 am: fd439b40e8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14909756

Change-Id: Ifa5c82eef566fe848ee9f165c1811c7ed0e882cb
2021-06-10 03:46:05 +00:00
Adam Shih
a169c37d9d organize EdgeTPU modules and sepolicy
Bug: 190331327
Bug: 190331548
Bug: 189895600
Bug: 190331108
Bug: 182524105
Bug: 183935302
Test: build ROM and check if the modules and sepolicy are still there
Change-Id: Id28ac2094e14051defe0401055d862c6353194f7
2021-06-10 02:53:28 +00:00
Adam Shih
222b7c5c33 modulize hal_neuralnetwork_armnn am: 556df03c4c am: 3d28076178 am: 74efb31d84
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881194

Change-Id: Icaa59b79ab9bc50e7b3855ee627a65f14c73fe55
2021-06-09 04:01:29 +00:00
Adam Shih
e89080c7a6 modulize hal_neuralnetwork_armnn
Bug: 189895314
Bug: 171160755
Bug: 171670122
Bug: 180858476
Test: make sure all affected devices' armnn module has the right label
Change-Id: Ie618a5477b4e447774b20a58c9f091ae9fe529d6
2021-06-08 23:03:04 +00:00
Lucas Dupin
092b90cda5 Enable blurs am: 4f86cdd63f am: 6259a4c77b am: 38d4abf87b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14829939

Change-Id: Ieabf9803dfc20d36d786d21bc0f22ff3480cd66e
2021-06-08 17:25:25 +00:00
Lucas Dupin
d8f101ad4c Enable blurs
Bug: 181092919
Test: manual; performance scripts
Change-Id: I5875a99167e80ddd5b79fc245f988d8a6ac167be
2021-06-08 16:38:30 +00:00
David Li
333818e75b audio: upgrade audio.usb.default from v1 to v2 am: 174e0f9a18 am: 17746f6cc3 am: 8005b47212
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14513739

Change-Id: I64c3c53a5599a367308d6429c9e26a588e946db2
2021-06-08 07:18:19 +00:00
David Li
4e9ad88e66 audio: upgrade audio.usb.default from v1 to v2
Bug: 187912470
Test: make -j128
Test: deep buffer and compress offload via speaker, USB headset, BT
earphone
Test: phone call via handset
Test: hotword detection

Change-Id: I0385873c7087660d03ccc582f31825a901ae1b8e
2021-06-08 06:14:43 +00:00
Adam Shih
4464bd7ec6 remove obsolete module am: a32cd44c0e am: 2d72497a16 am: 84da5f598e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881192

Change-Id: Ibe9c60e04f8e00c1b49648e6f76fb8982138e652
2021-06-08 04:41:30 +00:00
Adam Shih
fa935b0795 remove obsolete module
Bug: 190330778
Test: build the ROM with the module gone
Change-Id: I38b604e2ee5be017b5eccf98d405ee896b5e6ea4
2021-06-08 03:25:59 +00:00
Aaron Ding
5fb63ff7d0 Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds am: f43da9a37c am: baa80dcd81 am: b39c887a16
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14467765

Change-Id: I01c4de82b7e0d10585dec0bc12bf4ff7827045ac
2021-06-04 08:13:13 +00:00
Aaron Ding
49c8f94192 Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds
Bug: 186500818
Change-Id: Ic8534da52b093fc3278abd2f243a506d87196b1e
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:01:50 +00:00
wenchangliu
ab33b08cb2 Move input surface to CCodec am: 4272b53d9b am: d7c599a84e am: caf884d6d8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14788706

Change-Id: I2837b2fe6f34fd9f57a72005fdf47a77e7ee6a8d
2021-06-03 02:59:50 +00:00
wenchangliu
a9a6612873 Move input surface to CCodec
Bug: 186447629
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Test: camera recording
Change-Id: I3aa79073f45d0d06a55abed08763d8c1ac45932a
2021-06-03 01:51:52 +00:00
Craig Dooley
c27333924c Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG am: 6e71f4a6fd am: b35b4a03b5 am: eb3a7746a1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14727164

Change-Id: Ibe035e240c073ea2f8af83a3153c419d095e57ce
2021-05-27 23:04:34 +00:00
Craig Dooley
f706b02e51 Move AoC debug utilities to PRODUCT_PACKAGES_DEBUG
Bug: 185722771
Bug: 185725440
Bug: 185723000
Signed-off-by: Craig Dooley <dooleyc@google.com>
Change-Id: I726d173aaa64b279761f645c7822ded93e89d806
2021-05-27 21:43:50 +00:00
terrycrhuang
47caa1d49a Disable Early Cmaping feature am: 18b4a0ca3f am: d8e5ad3a7a am: cf308e0e15
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14715561

Change-Id: I9065f5b3043aa5e6ab46f80e22a0702d2b4234ef
2021-05-26 10:21:32 +00:00
terrycrhuang
8b9b90e0c7 Disable Early Cmaping feature
In the feature, IA would be sent early. But it met the timing issue to
customize for TMO.
The carrier id is updated too late to set the TMO parameter correctly.
Disable the feature to unblock field test first.

Bug: 188973074
Test: Flash ROM and make sure the early camping feature is off
Change-Id: Ifd8021d4944db3437c6ff51ac417b427ce04c2a1
2021-05-26 04:02:22 +00:00
Edwin Tung
cd546a40be gps: update gnss RF path loss and remove log for user build am: c20437c5ba am: 220034220d am: e2ccd78611
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14689774

Change-Id: I96bfd1507ce955e0428f6a64671587c48b4e0ade
2021-05-25 12:55:12 +00:00
Edwin Tung
5bc5698b5a gps: update gnss RF path loss and remove log for user build
Bug: 188496801
Bug: 188760589
Bug: 183185249

Test: build pass
Change-Id: I564acc324c628c4311c87227d7127db941816a6f
2021-05-25 08:52:34 +00:00
Krzysztof Kosiński
fd777a1a3a Update GCH configuration for gs101. am: f7395d2bf5 am: e976e00eb8 am: 3e3d51f9bd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: I410a21423628d30063844b22646005bf1204fea4
2021-05-25 05:41:04 +00:00
Krzysztof Kosiński
06861b99cc Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: Id7b9b1c6129a45edd0c65ed37531c4f34555a6e0
2021-05-25 04:46:41 +00:00
Tim Murray
d15f2c5aa7 gs101: use 64-bit dex2oat am: 1435f7e99c am: 8c746a8541 am: b05b99b2ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: I10fd327fb55264cfca4a3b4273da265a2cbe769e
2021-05-24 16:35:28 +00:00
Tim Murray
be4b7b6366 gs101: use 64-bit dex2oat
64-bit dex2oat uses slightly more memory in exchange for significantly improved compile time.

Test: boots, works
bug: 188906345
Change-Id: Ie91a2401504596cabacbb04b5d6b7039865c193d
2021-05-24 15:41:36 +00:00
Andrew Chant
de59eb17b9 Add rebalance_interrupts am: 77ceae1c09 am: 91cf1ed1c1 am: c2bdbefda5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14603549

Change-Id: If220da895402b8d0c2a00bbc28219392cdc8dc03
2021-05-21 17:44:18 +00:00
Jesse Hall
03d3d12b56 device.mk: Collect and clean up gpu-related settings am: e2be4ec29a am: 796018839f am: 3f982c0d96
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680370

Change-Id: Id3b40b2e93bc3ebc71c005613f12e2685fd1e038
2021-05-21 17:43:37 +00:00
Andrew Chant
e16045f7c6 Add rebalance_interrupts
Add rebalance_interrupts to run at boot and rebalance interrupts.
Run once after modules have loaded and a second time after boot
has completed to ensure all interrupts have been assigned to
individual cores.

Bug: 148403062
Change-Id: I9685807e3028bef509c4064a5c09cbc48b91f7f0
2021-05-21 16:52:25 +00:00
Jesse Hall
56aa41bcf4 device.mk: Collect and clean up gpu-related settings
Mostly this change just collects existing GPU-related settings into one
place so they can be found more easily. It also removes some vestigial
and redundant settings.

* Renderscript is deprecated and we never planned to include the RS HAL.
  But it was copied in (twice) from some previous device. Remove it and
  things that only the RS HAL depends on.
* The separate "*32" PRODUCT_PACKAGES entries were left over from when
  prebuilts had separate prebuilts modules for 32-bit and 64-bit
  variants of the package, instead of using a single multilib package.

Bug: 188672865
Test: boot to home, check all moved properties are still correct
Change-Id: Id9a9152b3b4c3a7167f147558f5f01da7f940311
2021-05-21 16:46:55 +00:00
Yuriy Romanenko
7f4fd3e4e4 Revert "Update GCH configuration for gs101." am: 63f9e61da3 am: 1f22d43135 am: 33689799f7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14663260

Change-Id: I8551b9a3144d9bed51ef792457e8ce432dcd6dd7
2021-05-20 21:14:56 +00:00
Yuriy Romanenko
103f3cad62 Revert "Update GCH configuration for gs101."
Revert "Directly link Lyric into GCH."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Only compile camera HAL tests for primary arch."

Revert "Update commented-out GCH configuration for zebu201."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Changes to support direct linking of Lyric into GCH."

Revert "Update GCH configuration for coral."

Revert submission 14596214-gch_dlopen

Reason for revert: Breaks master-without-vendor because of hardware/google/camera -> vendor/google/services/LyricCameraHAL/src dependency that needs to be broken somehow.

Bug: 188731034

Reverted Changes:
I7f1780f25:Adjust reference to libgoogle_camera_hal_tests.
Ief35ee657:Adjust reference to libgoogle_camera_hal_tests.
I9070712e1:Update commented-out GCH configuration for zebu201...
I33c989b24:Adjust reference to libgoogle_camera_hal_tests.
I8250a5874:Update GCH configuration for coral.
I76cb1957a:Adjust reference to libgoogle_camera_hal_tests.
I628ac0367:Use a single toplevel library for Lyric.
I647189d9f:Only compile camera HAL tests for primary arch.
I72cf7918b:Changes to support direct linking of Lyric into GC...
I556322b01:Update GCH configuration for gs101.
I43f7f675e:Directly link Lyric into GCH.

Change-Id: Ia72c97f4044ecac8bda438fdb917a978643cbbfe
2021-05-20 20:32:43 +00:00
Adlai Holler
a965f6b1e3 Remove redundant build property for reduceOpsTaskSplitting
This flag is true for everyone now. No need for it here. Change has no effect.

Bug: 183612348
Change-Id: Ia264cfceb5cea4230a1c459fbd3c3f8c99a35bdf
2021-05-19 20:01:38 +00:00
Alex Johnston
a1f2ab72b2 Add Device ID attestation support gs101
Bug: 187151761
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyPairCertificateLogged

Change-Id: I71f8811780cfbc78515c69c1a5170b6451ff7821
2021-05-19 13:06:50 +00:00
Krzysztof Kosiński
6e46cb4474 Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: I556322b01f2ded68b34099ea41e53f966f5ec8b6
2021-05-19 04:25:28 +00:00
Yu-Chi Cheng
6917051ecb Renamed edgetpu_service to edgetpu_app_service.
edgetpu_service was splitted into two in previous change:
edgetpu_service and edgetpu_vendor_service, where the new
vendor service for vendor clients, and the old service keeps
serving app clients.

This change renamed the edgetpu_service into edgetpu_app_service
in the device.mk to make the naming clearer.

Bug: 188463446
Test: Oriole + GCA
Change-Id: I969e264a82a4ebc77407a0eee45fe6be6a3a2ba8
2021-05-18 19:13:20 +00:00
Siddharth Kapoor
d7e3a56290 Increase earlySf duration to accomodate animation cases
Bug: 161945010
Test: traces shared at b/161945010#comment17
Change-Id: I894b139e71b50c9b6e64b6f73a633da67f00dd16
2021-05-18 17:44:58 +00:00
Roger Fang
b555d6c912 device: google: gs101: IAudioMetricExt hidl manifest settings
Bug: 180627405
Test: Manually test

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: If84d94703bdbb3621dc03bdb2101c42bfd4a3c91
2021-05-18 17:21:45 +00:00
Kevin DuBois
f56e018ca4 Upgrade GPU NNhal to 1.3 revision.
Upgrades GPU NNHal to 1.3 revision.

Fixes: 187981206
Test: Boot, VTS for 1.3 revision
Change-Id: I2f860cd092168cb5093794dcfdef60242bfb9b6b
2021-05-18 15:07:04 +00:00