Commit graph

43009 commits

Author SHA1 Message Date
Changyeon Jo
1186b99120 Fix how displays are used in test cases am: 017cb98ee9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2305821

Change-Id: I95e906a94413fe0d896573fb66d27c84a9befb66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 00:26:31 +00:00
Sungtak Lee
3ee79d5a46 Add OWNERS for media interface
Bug: 261752425
Change-Id: I4fe9ddd1c22ebfff03f5660ec9b01de2521f8533
2022-12-08 23:19:03 +00:00
Harry Cutts
5edbb4eb7b Merge "input: add OWNERS file" 2022-12-08 20:24:10 +00:00
Mikhail Naganov
625741e687 Merge "audio: Add TEST_MAPPING for presubmit testing" 2022-12-08 17:27:42 +00:00
Sally Qi
ab88d5cac3 Merge "Expose COLOR_MODE_DISPLAY_BT2020." 2022-12-08 17:00:12 +00:00
Harry Cutts
f3156eb4fe input: add OWNERS file
Bug: none
Test: none
Change-Id: I8264ecbe25c7a28c3bea7a23695e4d2bd9f00cd2
2022-12-08 12:00:27 +00:00
Treehugger Robot
a55e702324 Merge changes I3b0c6325,I40f97f4b
* changes:
  Fix a race condition in remote access HAL.
  Define a new remoteaccess HAL for test.
2022-12-08 02:26:31 +00:00
Treehugger Robot
77494f934a Merge "audio: Add microphone settings to IModule, IStreamIn" 2022-12-07 23:38:30 +00:00
Yu Shan
df39d6e450 Fix a race condition in remote access HAL.
We should not delete ClientContext after we TryCancel it since the
reader in the main task loop might still access it, e.g., while
calling reader->Finish. We must wait under reader->Finish is
returned, then to delete the ClientContext.

This CL also updates README.md to incorporate soong namespace change.

Test: manually test on sdk_car_x86_64-userdebug
Run TestWakeupClientServer
Run --set-ap-state 1 0 and then --set-ap-state 0 0 multiple times.
Bug: 261234399

Change-Id: I3b0c632546c218c4ced43af95a585cd41e0da036
2022-12-07 15:20:06 -08:00
Yu Shan
1532afd33c Define a new remoteaccess HAL for test.
Bug: 261108682
Test: Locally build and run

Change-Id: I40f97f4b10714096a32c5b14c8716b6c8e413419
2022-12-07 15:17:48 -08:00
Mikhail Naganov
552dad4272 audio: Add TEST_MAPPING for presubmit testing
Currently it lists only tests for the core HAL, will
add effect HAL tests in a separate CL.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I92705f44235ff0fe38cbf86fef07518277b5f3ce
2022-12-07 20:33:51 +00:00
Mikhail Naganov
ef6bc74fc4 audio: Add microphone settings to IModule, IStreamIn
Add 'MicrophoneInfo' and 'MicrophoneDynamicInfo' parcelables.
Add IModule.getMicrophones method.
Add following methods to IStreamIn:
  - getActiveMicrophonesIds;
  - get/setMicrophoneDirection;
  - get/setMicrophoneFieldDimension.

Provide trivial implementations and VTS.

Also slightly refactor port retrieval from ModuleConfig
to unify common queries.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I472c7733e2a331a67cea613cd9218889eff06a43
2022-12-07 18:36:31 +00:00
ziyiw
5f0d4c663e Add supported maximum number of ranging session as capability.
Test: compile
Bug: 259493075
Merged-In: Ibe7edb84c968b70be62059bb0bb6ffeedfa4bad6
Change-Id: I313fdd7e894be322105befd91a1fc92d28f8c402
2022-12-07 07:50:47 +00:00
Shaquille Johnson
a8ceb15747 Merge "Update keymint latest aidl for cpp version code" 2022-12-06 17:46:46 +00:00
Devin Moore
e7e44e0022 Merge "Revert^2 "sensors: adding a common convert lib"" 2022-12-06 16:57:01 +00:00
Xiang Wang
afcb8629b6 Merge "Add @hide annotation to thermal AIDL interfaces" 2022-12-06 04:23:13 +00:00
Mikhail Naganov
cd290e90e8 Merge "audio VTS: Clarify numbers used by CompressedOffloadOutputStreamTest" 2022-12-06 02:25:27 +00:00
Xiang Wang
057df147e3 Add @hide annotation to thermal AIDL interfaces
Bug: b/205762943
Test: n/a
Change-Id: Ia1eb95d6b64c524606901050b45180e851231043
2022-12-05 16:13:03 -08:00
Mikhail Naganov
e0c9c1cbb6 audio VTS: Clarify numbers used by CompressedOffloadOutputStreamTest
Make more clear the origin of numbers used by the test
CompressedOffloadOutputStreamTest#Mp3FormatGaplessOffload.

No change in the test behavior.

Bug: 260676244
Test: m VtsHalAudioV7_1TargetTest
Change-Id: I48211ad4510dec7fe90dc6f755485283376eaa23
2022-12-05 22:09:13 +00:00
Treehugger Robot
8fcc79fcb7 Merge changes I0a18a6d9,I13a83113,I13c9c8d1,I8717acac
* changes:
  audio: Add non-blocking I/O stream operations
  audio: Fix handling of quick worker completion in StreamWorker
  audio: Report unknown stream positions explicitly
  audio: Implement transient state testing
2022-12-05 22:08:02 +00:00
Steven Moreland
bf788356d1 Merge "require AIDL secure_element for U devices" 2022-12-05 21:20:11 +00:00
Mikhail Naganov
30301a42c7 audio: Add non-blocking I/O stream operations
Introduce IStreamCallback interface for non-blocking I/O. Add 2
new stream states: TRANSFERRING and TRANSFER_PAUSED, and define
state machines for the async case. Add DrainMode as in previous
HAL versions.

Note that non-blocking input is not fully implemented because it
did not exist in previous HAL versions, and the corresponding
AudioInputFlag does not exist yet.

Enhance VTS state machine tests to allow waiting for an async
event.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I0a18a6d930dee5941f769e08083817d41ff941e6
2022-12-05 19:57:43 +00:00
Changyeon Jo
017cb98ee9 Fix how displays are used in test cases
Open and close the display for each camera instance.

Bug: 259449376
Test: atest VtsHalEvsTargetTest VtsHalEvsV1_1TargetTest
Change-Id: I0f3d2c0b2c9f8a5e527d0abd5c9b248c84dddfbb
2022-12-04 08:17:44 +00:00
Mikhail Naganov
e467e01379 audio: Fix handling of quick worker completion in StreamWorker
In tests, it is possible that the worker exits quickly,
prior to the moment when the thread controller begins
waiting for it to start. Improper handling of this case
was causing intermittent lock-ups of VTS tests.

Bug: 205884982
Test: atest libaudioaidlcommon_test
Change-Id: I13a83113b32b859e212f1a517ad61bf5b8d43365
2022-12-03 05:00:33 +00:00
Yu Shan
8605e7bd3a Allow specifying the service address.
This will be useful for testing in different environment, e.g.
emulator v.s. phone where multiple ethernet interface might be
available and we need to explicitly pick an interface to start
the server.

Test: Manual test
Bug: None
Change-Id: I3c046e9549225058178346f529773cffa841ce07
2022-12-02 15:44:59 -08:00
Steven Moreland
3cefaa0486 require AIDL secure_element for U devices
This is ready several months before release. We would like to save memory.

Bug: N/A
Change-Id: I6b533c2e9e03336e804d76b29f346400cb5375c7
Test: N/A
2022-12-02 19:53:11 +00:00
Sally Qi
d43651c2a8 Expose COLOR_MODE_DISPLAY_BT2020.
Bug: 256551001
Test: build and flash; hidl-gen -L hash
android.hardware:hardware/interfaces
android.hardware.graphics.common@1.2::types >> current.txt

Change-Id: I33116c1b31bd981b04489bc9704a54e97332aed7
2022-12-01 22:07:33 -08:00
Tri Vo
79b72fece3 Merge "Make IRPC v3 optionally backwards compatible" 2022-12-02 04:22:31 +00:00
Mikhail Naganov
923ac9f37a audio VTS: Use 'IN_DEFAULT' device type for telephony am: 715b8ec2c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2322475

Change-Id: I95b7bf8eba954d9095827cccaf4f02f8045aa8e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-02 01:53:57 +00:00
John Reck
4346ad0f75 Merge "IMapper 5 - the Stable C approach" 2022-12-01 23:48:40 +00:00
Devin Moore
160d7a4504 Revert^2 "sensors: adding a common convert lib"
3633b6d4fe

Change-Id: Ie13caa288e8cba344225bb2e4fd01fc23b1d4a9d
2022-12-01 23:17:17 +00:00
Steven Moreland
92f223a9cc Merge "easy vib. instance name" 2022-12-01 21:33:56 +00:00
Treehugger Robot
e23844b7a5 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2022-12-01 19:39:32 +00:00
Shaquille Johnson
b692c60e2a Update keymint latest aidl for cpp version code
This add a cpp default so that the latest cpp code can be
used across the codebase. When this is changed we dont
need to bump versions across multiple files and can just
change it in this one file.

Test: Run and tested using `atest keystore2_test` for Rust test and CTS test with `atest CtsKeystoreTestCases`
Bug: 244730020
Change-Id: Ifae1c5f2403210c2dec1bc337553fbbde73ed4c8
2022-12-01 17:49:04 +00:00
John Reck
97f313746f IMapper 5 - the Stable C approach
Test: make VtsHalGraphicsMapperStableC_TargetTest VtsHalGraphicsAllocatorAidl_TargetTest

Change-Id: I910b27f388e3fb7261425dd4b2133885c05edd37
Merged-In: I910b27f388e3fb7261425dd4b2133885c05edd37
2022-12-01 17:37:59 +00:00
Bob Badour
157a8518ba [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  secure_element/aidl/Android.bp
  secure_element/aidl/default/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I5cf05e56e11214deecaf84b150852ddfb2404f38
2022-12-01 08:19:14 -08:00
Aditya Chitnis
e61b64baf5 Adding suport for multiple multihal config files
Bug: 259450346
Test: Presubmits
Change-Id: Ic7b113e6b8bf94e0c0ffe539f965232b24bdf66d
2022-12-01 10:07:31 +00:00
Steven Moreland
b5e0adbeb2 easy vib. instance name
Bug: 257537714
Test: vts_treble_vintf_vendor_test after using this
Change-Id: Id0c56b2df59eb854a5f62d8adc65d0a6b38fcd3c
2022-12-01 01:25:15 +00:00
Tri Vo
b0b8acc849 Make IRPC v3 optionally backwards compatible
Specifically, we want IRPC v3 to be able to serve old v2 clients. This
way we can ship parts IRPC v3 stack incrementally.

To that end, allow IRPC v3 to implement v2 behavior of
generateCertificateRequest and testMode.

Bug: 260920864
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I9e47697bd948c8fd6b82147165d0c67bdef9fbd3
2022-11-30 16:30:31 -08:00
Treehugger Robot
05d30e7246 Merge "Remove neuralnetworks_float16." 2022-11-30 20:58:52 +00:00
Treehugger Robot
116f179012 Merge "Change default wakeup required to true." 2022-11-30 20:13:28 +00:00
Yabin Cui
1c4ad4f9ad Remove neuralnetworks_float16.
Bug: 254708969
Test: build
Change-Id: Ibf7dba54b61938cae5f9a84d0047a1078978c3ff
2022-11-30 10:17:10 -08:00
Treehugger Robot
f0dba4f541 Merge "add defaults and host_supported to the AIDL interface targets" 2022-11-30 17:24:46 +00:00
Mikhail Naganov
715b8ec2c5 audio VTS: Use 'IN_DEFAULT' device type for telephony
This undoes the change which had happened unintentionally in
https://cs.android.com/android/_/android/platform/hardware/ \
interfaces/+/1e703f182e2fcbb9123bf661d81d22a04d0e1f8d

The device type passed to 'openInputStream' for telephony
devices should be 'AUDIO_DEVICE_IN_DEFAULT'

Bug: 259636577
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ic8f4367961346b87087c885a3cdaccab3c1407c9
(cherry picked from commit d72b42d769)
2022-11-30 17:15:34 +00:00
Mikhail Naganov
5e01ce4cba Merge "audio VTS: Use 'IN_DEFAULT' device type for telephony" 2022-11-30 17:14:43 +00:00
David Li
4d36183b34 add defaults and host_supported to the AIDL interface targets
Test: make -j128
Merged-In: Icf69d2860419dd821b9b0730ea6cd4c4cdf42621
Change-Id: I9958d8d8849ab389f64614f3967dfa89cd6f9b95
2022-11-30 14:31:16 +00:00
Krzysztof Kosiński
df0bf96001 Merge "Revert "sensors: adding a common convert lib"" 2022-11-30 08:49:20 +00:00
Krzysztof Kosiński
3633b6d4fe Revert "sensors: adding a common convert lib"
Revert submission 2313818-sensors_shared_convert

Reason for revert: Breaks wembley_2GB-userdebug
Reverted Changes:
Icf64c8809:sensorservice: use new convert functions
Ibc6ed5566:libandroid_sensor_headers: make host_supported and...
Ib80130fc0:sensors: adding a common convert lib

Change-Id: I3f4cb4dc228b5bf6f81f451c11c11d6ebf19639a
2022-11-30 05:16:15 +00:00
Yu Shan
7123885bd9 Change default wakeup required to true.
By default, TCU should always try to wake up AP until it receives
wakeup not required from AP.

Test: None
Bug: 254547153
Change-Id: If4d1111aae1d13f121230360317615ea4ba0302f
2022-11-29 17:44:19 -08:00
Mikhail Naganov
d72b42d769 audio VTS: Use 'IN_DEFAULT' device type for telephony
This undoes the change which had happened unintentionally in
https://cs.android.com/android/_/android/platform/hardware/ \
interfaces/+/1e703f182e2fcbb9123bf661d81d22a04d0e1f8d

The device type passed to 'openInputStream' for telephony
devices should be 'AUDIO_DEVICE_IN_DEFAULT'

Bug: 259636577
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ic8f4367961346b87087c885a3cdaccab3c1407c9
2022-11-30 01:01:59 +00:00