Commit graph

38861 commits

Author SHA1 Message Date
Ady Abraham
46219f5731 composer: cleanup CommandWriterBase and CommandReaderBase part 2
Bug: 208856704
Test: VTS
Change-Id: I30f4cfef66a1c833142b4645f69e8ad9fbf0de8e
2021-12-22 21:58:57 -08:00
Ady Abraham
b9b5df3ce5 composer: make PresentOrValidate.Result consistent with hidl
HIDL expects that Presented will be 1 and Validated witll be 0.
Even though we map the enum values of PresentOrValidate.Result
to the correct value, this CL makes the interface consistent with
the HIDL so that we can directly use the enum value.

Bug: 208856704
Test: VTS
Change-Id: I9fb2421e32c2288c5495422eda6764f6102337f0
2021-12-22 21:58:57 -08:00
Nathan Harold
3b417508d8 Merge "VTS for UsageSetting" 2021-12-23 01:04:09 +00:00
Ady Abraham
f98cd3a9fe Merge "Remove GenericMetadata from composer3" 2021-12-23 00:28:11 +00:00
TreeHugger Robot
e00550775b Merge "composer: release fence can be null" 2021-12-23 00:17:38 +00:00
Les Lee
fcc5f633a9 Merge "wifi: Extend onFailure callback for dual AP case" 2021-12-23 00:16:30 +00:00
Ady Abraham
5b2858b709 Merge changes from topics "b_208879711", "hwc_present_time"
* changes:
  composer: DisplayCommand.colorTransform is just a matrix
  composer: pass expetcedPresentTime
2021-12-22 23:14:05 +00:00
Automerger Merge Worker
fc6bf75079 Merge "Merge "Convert IR interface to AIDL" am: ba51f773dc am: 23e29e37ae am: f99bc98f9b am: 7c410c3693" 2021-12-22 23:02:09 +00:00
Sarah Chin
c6ccfb67a8 Merge "VTS for IRadio AIDL" 2021-12-22 22:53:59 +00:00
Ady Abraham
dc6dd69948 composer: release fence can be null
Add @nullable to the releaseFence in IComposerClient.setReadbackBuffer
as it can be null, if the buffer is ready to be consumed.

Bug: 210166943
Test: VTS
Change-Id: Ic556ceabd22ba8acddf37ca7d9a6d14d41697c5b
2021-12-22 22:52:58 +00:00
Devin Moore
2a464d7049 Merge "Convert IR interface to AIDL" am: ba51f773dc am: 23e29e37ae am: f99bc98f9b am: 7c410c3693
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1886546

Change-Id: I3dc0d6ef81468ba3101b2ffbc2fc31af979fbd8d
2021-12-22 22:52:58 +00:00
Treehugger Robot
cebe679db4 Merge "health: Add AIDL VTS to general-tests." am: c8b8ec2983 am: 2ceacdd912 am: 0586a08229 am: 0947226935
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1923019

Change-Id: If10e42321c66848db6993461f752a62ec491d01e
2021-12-22 22:52:13 +00:00
Nathan Harold
244423c76b VTS for UsageSetting
Add tests to check that usage setting can be
retrived and set as well as ensuring that invalid
values cannot be set.

Bug: 205595503
Test: make VtsHalRadioTargetTest
Change-Id: I26a68d4b6be4810fab9302b58a3be7f65fc82c83
2021-12-22 14:40:34 -08:00
Sarah Chin
fc5603b7ec VTS for IRadio AIDL
Test: build
Bug: 210712359
Change-Id: I4ee665519bfd2fc818fb68beee1f158b10e46176
2021-12-22 14:29:42 -08:00
Devin Moore
7c410c3693 Merge "Convert IR interface to AIDL" am: ba51f773dc am: 23e29e37ae am: f99bc98f9b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1886546

Change-Id: Iaf7270391559547235b0d6043a31cae8155d89cf
2021-12-22 22:20:10 +00:00
Treehugger Robot
0947226935 Merge "health: Add AIDL VTS to general-tests." am: c8b8ec2983 am: 2ceacdd912 am: 0586a08229
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1923019

Change-Id: If6968a6a09c4a357fc802c920e586e03da450437
2021-12-22 22:19:49 +00:00
Devin Moore
f99bc98f9b Merge "Convert IR interface to AIDL" am: ba51f773dc am: 23e29e37ae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1886546

Change-Id: I5a232d1039cfe8845f4a1fec614d38cf9e2a4830
2021-12-22 22:08:56 +00:00
Devin Moore
23e29e37ae Merge "Convert IR interface to AIDL" am: ba51f773dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1886546

Change-Id: Ie2802e373606dd8c6a7e6f69eb3fc8540f59fc19
2021-12-22 22:03:13 +00:00
Treehugger Robot
0586a08229 Merge "health: Add AIDL VTS to general-tests." am: c8b8ec2983 am: 2ceacdd912
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1923019

Change-Id: I5aac37a0a0dc2c7be5923f444e7a23c9a61adfcf
2021-12-22 22:02:15 +00:00
Devin Moore
ba51f773dc Merge "Convert IR interface to AIDL" 2021-12-22 21:44:17 +00:00
Treehugger Robot
2ceacdd912 Merge "health: Add AIDL VTS to general-tests." am: c8b8ec2983
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1923019

Change-Id: Id294f5b3f64b276a0f7b6c3c652bd69e3ee2fa2d
2021-12-22 21:39:15 +00:00
Treehugger Robot
c8b8ec2983 Merge "health: Add AIDL VTS to general-tests." 2021-12-22 21:23:27 +00:00
TreeHugger Robot
c6100049bd Merge "BT: Fix typo and improper data type" 2021-12-22 20:21:44 +00:00
Leon Scroggins
8a56e8dbd2 Merge "Update documentation for DISPLAY_DECORATION" 2021-12-22 18:53:24 +00:00
TreeHugger Robot
1e70f620d2 Merge "Remove HIDL Context Hub from compatibility matrix" 2021-12-22 17:42:00 +00:00
Arthur Ishiguro
d7b62ecbd7 Remove HIDL Context Hub from compatibility matrix
We are requiring AIDL Context Hub HAL from Android T.

Bug: 204591467
Test: None
Change-Id: I14e8af2f6960aaa6502edd47e7685ea42ecfa513
2021-12-22 16:17:15 +00:00
TreeHugger Robot
8dec617b8e Merge "Support DVB-T Cell Ids." 2021-12-22 10:18:39 +00:00
Yifan Hong
e6bec958cc Merge "health: AIDL HAL may replace HIDL HAL." am: 199b85ed07 am: 072e0f0d4b am: c3787b4d56 am: 3f7dea2fcb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1930724

Change-Id: I37e6a7daa43b219b02d02d8916eca6e3d62b81df
2021-12-22 01:05:29 +00:00
Yifan Hong
3f7dea2fcb Merge "health: AIDL HAL may replace HIDL HAL." am: 199b85ed07 am: 072e0f0d4b am: c3787b4d56
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1930724

Change-Id: I2e85f29687644790197dc60148b3981b12fdc1e6
2021-12-22 00:40:40 +00:00
Yifan Hong
c3787b4d56 Merge "health: AIDL HAL may replace HIDL HAL." am: 199b85ed07 am: 072e0f0d4b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1930724

Change-Id: I6074cff3474a6b07677b8f0df9058366a02511f2
2021-12-22 00:23:39 +00:00
Yifan Hong
072e0f0d4b Merge "health: AIDL HAL may replace HIDL HAL." am: 199b85ed07
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1930724

Change-Id: I6eb16556a922c9c85e5c97f35162b9ffa4f8ebd3
2021-12-22 00:06:03 +00:00
Yifan Hong
199b85ed07 Merge "health: AIDL HAL may replace HIDL HAL." 2021-12-21 23:50:21 +00:00
Ady Abraham
654a3287ae Remove GenericMetadata from composer3
There are no current users for GenericMetadata, so removing
from composer 3.

Bug: 209691612
Test: VTS
Change-Id: I729a3646d9684c78454708fd15f1571aa405e9bb
2021-12-21 23:09:02 +00:00
Seongho Kim
a11437eb6a [automerger skipped] Cherry pick "Gate gsm/cdma radio feature only for emergency dial" sc-v2-dev am: 41a7f94f87 -s ours am: 0f6302289e -s ours
am skip reason: Merged-In I388bc51e58b5680b5b5c806d88a338822af0c8a7 with SHA-1 a0b33745b5 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16482903

Change-Id: If4be09a8c72c529100781aa2aa57a7ea1c6743f5
2021-12-21 22:09:01 +00:00
Ady Abraham
8de9885800 composer: DisplayCommand.colorTransform is just a matrix
Remove the hint from DisplayCommand.colorTransform as currently
we only use ColorTransform::IDENTITY and ColorTransform::ARBITRARY_MATRIX,
which both can be expressed using a matrix.

Bug: 208879711
Test: VTS
Change-Id: Ibb24593e3d0af5afdc8f3f79de2fc22eeccfcea8
2021-12-21 14:04:33 -08:00
Seongho Kim
0f6302289e [automerger skipped] Cherry pick "Gate gsm/cdma radio feature only for emergency dial" sc-v2-dev am: 41a7f94f87 -s ours
am skip reason: Merged-In I388bc51e58b5680b5b5c806d88a338822af0c8a7 with SHA-1 a0b33745b5 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16482903

Change-Id: I82ea6b601b6247c2174f5187cb9ed80104371aac
2021-12-21 21:57:28 +00:00
Alice Kuo
0986f7b4a8 Add onSessionEnded handle for HIDL 2.2 am: f33cea94ce am: 6fe717551f am: 99a712ab4d am: 1ce307ddbe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1928381

Change-Id: I884e65fc81b4d39a95903b533bc6c106e6d39c11
2021-12-21 19:25:47 +00:00
Alice Kuo
1ce307ddbe Add onSessionEnded handle for HIDL 2.2 am: f33cea94ce am: 6fe717551f am: 99a712ab4d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1928381

Change-Id: I83b9e0f240a9d8ace9204c8ded063063d7663148
2021-12-21 19:12:22 +00:00
Alice Kuo
99a712ab4d Add onSessionEnded handle for HIDL 2.2 am: f33cea94ce am: 6fe717551f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1928381

Change-Id: I12e7c6c9acb73ce30ea957b1b1fadab3513c75bd
2021-12-21 18:59:49 +00:00
Alice Kuo
6fe717551f Add onSessionEnded handle for HIDL 2.2 am: f33cea94ce
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1928381

Change-Id: I18190b6d0da0ee084223a25026266fdccb48854b
2021-12-21 18:47:50 +00:00
Josh Wu
74fc8e8198 BT: Fix typo and improper data type
Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I366140cdaff2c42b724444dc9855d993cd502dcd
2021-12-21 05:52:18 -08:00
Leon Scroggins III
64803940e6 Update documentation for DISPLAY_DECORATION
After some discussion, we've decided to always set the ScreenDecorations
to DISPLAY_DECORATION. HWC can decide, based on the format, whether to
truly treat it as DISPLAY_DECORATION, or to change to DEVICE
composition.

Update the documentation to reflect this change.

See also I1da3199bacf5877e88876249c60c0a33fcd44c1e.

Bug: 193170859
Test: NA
Change-Id: I1fae74b360d1b9d79fc4afeab6f71089d4c8b7e5
2021-12-20 23:08:13 -05:00
Ady Abraham
72c5b503e5 composer: pass expetcedPresentTime
Add expectedPresentTime as an optional field to DisplayCommand.

Test: VTS
Bug: 198186194
Change-Id: I1203422b5d052508ca42a80da5d252c106efc5ee
2021-12-20 19:30:11 -08:00
Hongguang
7eda78274c Support DVB-T Cell Ids.
Bug: 210358443
Test: atest VtsHalTvTunerTargetTest
Change-Id: I36a61a78e919c036cde5ea24634eed28d7eb4e5d
2021-12-20 18:32:04 -08:00
Alice Kuo
f33cea94ce Add onSessionEnded handle for HIDL 2.2
1. The audio driver need to get the session status callback as the
sessionEnded
2. Update the invalid audio configuration based on the session type

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Test: Turn on/off bluetooth to make sure the onSessionEnded work well

Change-Id: Id758b556e8f5c9b63052a408154f02082515091c
2021-12-21 02:19:05 +00:00
Yifan Hong
9a3de3ccc0 health: AIDL HAL may replace HIDL HAL.
Relax the requirement on compatibility matrices
that HIDL health HAL must exist on devices with
target level 3~6, because they may have the AIDL
health HAL instead. Use DeviceManifestTest.HealthHal
to enforce the requirement.

Test: TH
Bug: 211518384
Change-Id: I9f82278bd10e2bd775705041630bcb6f421df8b8
2021-12-20 18:00:07 -08:00
Tomasz Wasilczyk
8579f1d1cb Set HAL response functions after framework sets all of theirs.
Bug: 207695009
Test: Build with ag/16322062 and a handful of patches from b/207695009,
      try to use telephony stack
Change-Id: I74afe105a22a24efa0c38de20c75beffc58b144f
2021-12-21 00:12:10 +00:00
Tomasz Wasilczyk
31f6fab3cc Use most recent available HAL methods.
Bug: 207695009
Test: Build with ag/16322062 and a handful of patches from b/207695009,
      try to use telephony stack
Change-Id: I7db1747550493a634290a968e3f5bbada66f322f
2021-12-21 00:11:59 +00:00
Tomasz Wasilczyk
6902a75773 Use AIDL callbacks directly.
Bug: 210498497
Test: build cuttlefish with ag/16322062, watch logs
Change-Id: I1e0cd95f5f9a911564d14be2d8bbb328572de8c8
2021-12-21 00:11:44 +00:00
Tomasz Wasilczyk
d2c6d679f4 Merge "Add OWNERS file for AIDL-HIDL compat shim layer" am: ceb3a960ed am: 3d98be7bd3 am: 2271baa693 am: 4ae017c44b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1927638

Change-Id: I60d2ce1ac94f7d137f5733977601476c327e2f90
2021-12-20 23:16:40 +00:00