Commit Graph

45444 Commits

Author SHA1 Message Date
Devin Moore
777a0bc5f7 Update common.fmq aidl_interface with versions_with_info
This info is needed to know when the imports change between versions.

Test: m
Bug: 273585373
Change-Id: Iec383ec1cb46a65a8733760219863838d4daf30a
2023-03-20 23:47:49 +00:00
Treehugger Robot
3eed07ead0 Merge "Remove uses of deprecated GTest macro." 2023-03-04 02:58:37 +00:00
Treehugger Robot
1a6e2031fc Merge "Do not include internal GTest header." 2023-03-04 02:14:36 +00:00
Krzysztof Kosiński
a3a78a688d Do not include internal GTest header.
Only the headers gtest.h and gtest-spi.h are public.  This
inclusion is causing a build break when upgrading googletest
to version 1.13.0.

Bug: 271622675
Test: local build, presubmit
Change-Id: I698e4d4464c131e9dad73a23a6f65908a07e9f60
2023-03-04 00:58:52 +00:00
Krzysztof Kosiński
c30ca3077d Remove uses of deprecated GTest macro.
Bug: 271622675
Test: local build, presubmit
Change-Id: I525be287361e65d0c4194bc93d7f17ce3369da5d
2023-03-04 00:46:48 +00:00
Treehugger Robot
6f51538682 Merge "Linking Component Id within the ConfirmationUI OWNERS file." 2023-03-03 16:13:48 +00:00
Treehugger Robot
39337adcc9 Merge "Fix the missing std" 2023-03-03 14:46:48 +00:00
zijunzhao
ab9e5bcdea Fix the missing std
Bug: b/239662094
Test: enable Wunqualified-std-cast-call locally and run m to build
Change-Id: Ifc51be5ee13296e9711c91ffac320d1cc7048ff0
2023-03-03 03:42:02 +00:00
Myles Watson
5d57ab1a45 Merge "VtsHalBluetoothV1: Always wait for completed packets" 2023-03-03 01:27:40 +00:00
Mikhail Naganov
79cb295819 Merge "audio: Make libaudioserviceexampleimpl just 'library'" 2023-03-03 00:00:08 +00:00
Mikhail Naganov
d48a13b1bd audio: Make libaudioserviceexampleimpl just 'library'
Remove the '_static' suffix to allow vendors compile
it as a dynamic library if needed.

Add missing dependency on SoundDose interface libs.

Bug: 205884982
Test: m
Change-Id: Id85945c7c680d1a718e2d692ffd435f30c029521
2023-03-02 14:14:05 -08:00
Myles Watson
a794f83162 VtsHalBluetoothV1: Always wait for completed packets
Bug: 266140831
Test: atest VtsHalBluetoothV1_1TargetTest
Change-Id: I09503e2e4596c2488da65c7ca3a5580798dc2bce
2023-03-02 13:45:53 -08:00
Treehugger Robot
0abca2170b Merge "AHAL: support volume control for USB audio HAL." 2023-03-02 17:19:36 +00:00
Nathalie Le Clair
bbee11bafa Merge changes I0083953e,Icc8df58d,I84e828ed,I58aff832
* changes:
  Handle out-of-bound indices
  Clarify which HAL (methods) apply to which devices
  Update HAL interface
  Add portId to HPD-related methods
2023-03-02 07:24:47 +00:00
Wonsik Kim
65f771b525 [automerger skipped] VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement am: 86e97b5f11 -s ours
am skip reason: Merged-In I8015d559d8e7d88a32d1970102167fe4d7566c51 with SHA-1 db13ce5daf is already in history

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

Change-Id: I3f6bdbe1d484934d136ca67f106b9f585b2a1069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 02:58:18 +00:00
Jiabin Huang
6067c9e7a6 Merge "AHAL: use verbose log for stub implementation." 2023-03-02 00:09:52 +00:00
jiabin
116d83907a AHAL: use verbose log for stub implementation.
Use verbose log for Module::populateConnectedDevicePort and
Module::checkAudioPatchEndpointsMatch as they are just stub
implementation.

Bug: 266216550
Test: make
Change-Id: I591855cb53f3f7e2eeb9543ad214a10570dec996
2023-03-01 22:52:57 +00:00
jiabin
783c48b00e AHAL: support volume control for USB audio HAL.
Use mixer control to support master mute, master volume and hardware
volume for USB audio HAL.

Bug: 266216550
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Iad544ba517cbfc778ebdf96dd161944886383b73
2023-03-01 22:10:34 +00:00
Mikhail Naganov
7499a00c04 audio: Add IBluetoothA2dp
Similar to IBluetooth interface which controls SCO/HFP,
IBluetoothA2dp controls the A2DP profile. This interface
replaces the following string parameters:

AUDIO_PARAMETER_A2DP_RECONFIG_SUPPORTED
AUDIO_PARAMETER_RECONFIG_A2DP
"A2dpSuspended"

Also, refactor fields used by Module implementation
for persistent child interfaces.

Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie62952c3bc3af2f53535d716e5b57bf48c661306
Merged-In: Ie62952c3bc3af2f53535d716e5b57bf48c661306
2023-03-01 13:29:29 -08:00
Yi Kong
1a39569491 Fix return-stack-address warning
Apply the same fix as https://r.android.com/2462896 to
keymaster/4.0/vts/performance/Benchmark.cpp

Test: presubmit
Bug: 271241374
Change-Id: Ib0d2a3a523491d0522f5b3dd031cdde46f88a165
2023-03-01 11:10:02 +00:00
Yi Kong
550964e884 Merge "Fix return-stack-address warning" 2023-03-01 07:29:47 +00:00
Yi Kong
bd5d365d82 Fix return-stack-address warning
hardware/interfaces/security/keymint/aidl/vts/performance/KeyMintBenchmark.cpp:79:26: error: reference to stack memory associated with local variable 'message' returned [-Werror,-Wreturn-stack-address]
return std::move(message);
^~~~~~~

Test: presubmit
Change-Id: I4298b4a25ccb809a7ae180bb218e673a7f1aa623
2023-03-01 16:19:43 +09:00
Treehugger Robot
746108b52f Merge "Linking Component Id within the Gatekeeper OWNERS file." 2023-03-01 06:38:29 +00:00
Treehugger Robot
83248af588 Merge "Update OWNERS file" 2023-03-01 04:53:11 +00:00
Treehugger Robot
e18f77b983 Merge "audio: Add AudioOffloadMetadata and a method to update it" 2023-03-01 02:57:50 +00:00
Shunkai Yao
da9cde119c Merge "[AIDL CTS] Fix AudioPreProcessingTest cts failures" 2023-03-01 02:56:53 +00:00
Henri Chataing
c6a27357f3 Merge "secure_element/aidl: Add error case for transmit()" 2023-03-01 01:52:32 +00:00
Bob Wang
650c081f23 Merge "Change the unit of slot duration from ms to rstu." 2023-03-01 01:04:24 +00:00
Shunkai Yao
84a1695f4c [AIDL CTS] Fix AudioPreProcessingTest cts failures
By removing some preprocessing effects from the result of queryEffects,
because cts requires hw offload support if these effects exist.

HIDL cuttlefish also doesn't have these effects support.

Bug: 270157451
Test: Enable AIDL, build
Test: atest
CtsMediaAudioTestCases: android.media.audio.cts.AudioPreProcessingTest
Change-Id: I610baa23488237c86e114635789b168f260f8f59
2023-03-01 00:18:35 +00:00
Wonsik Kim
86e97b5f11 VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement
Bug: 249043823
Bug: 251553217
Test: atest VtsHalMediaOmxV1_0TargetStoreTest
Change-Id: I8015d559d8e7d88a32d1970102167fe4d7566c51
(cherry picked from commit db13ce5daf)
Merged-In: I8015d559d8e7d88a32d1970102167fe4d7566c51
2023-02-28 22:28:44 +00:00
Treehugger Robot
28d4f75dd0 Merge "VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement" 2023-02-28 20:47:52 +00:00
Mikhail Naganov
d150942aa7 audio: Add AudioOffloadMetadata and a method to update it
AudioOffloadMetadata contains the same information
as 'AUDIO_OFFLOAD_CODEC_*' framework parameters.
It is updated via a new method IStreamOut.updateOffloadMetadata
which only works for compressed offload streams.

Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I6c8a8853f216438284082f79e3f57e511a2a1f06
Merged-In: I6c8a8853f216438284082f79e3f57e511a2a1f06
2023-02-28 19:26:14 +00:00
Wonsik Kim
db13ce5daf VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement
Bug: 249043823
Bug: 251553217
Test: atest VtsHalMediaOmxV1_0TargetStoreTest
Change-Id: I8015d559d8e7d88a32d1970102167fe4d7566c51
2023-02-28 10:45:55 -08:00
Chia-I Wu
960c33c599 Merge "graphics: improve preloading for IMapper default impl" 2023-02-28 17:58:35 +00:00
ziyiw
3b1252c88c Change the unit of slot duration from ms to rstu.
Test: compile
Bug: 266980744
Merged-In: Iba643094f9d44293e47b68487aeae30847af4826
Change-Id: I255b46d110d1a30a548fc37a479c1fc62b770f14
2023-02-28 17:29:27 +00:00
Nathalie Le Clair
5bfad05259 Handle out-of-bound indices
Bug: 267007175
Test: lunch cf_x86_tv-userdebug; make;
atest VtsHalTvHdmiConnectionAidlTargetTest;

Change-Id: I0083953e8eaadea0ac66a9103358c0d4e1427086
Merged-In: I0083953e8eaadea0ac66a9103358c0d4e1427086
2023-02-28 10:58:04 +00:00
Alice Wang
6fdd6b000b Merge "[dice] Remove unused service android.hardware.security.dice" 2023-02-28 08:22:40 +00:00
Chia-I Wu
6d189b71a2 graphics: improve preloading for IMapper default impl
When GraphicBufferMapper::preloadHal dlopens the default impl, make sure
the gralloc module is also dlopen'ed.

Bug: 269664560
Test: android.view.cts.PixelCopyTest#testVideoProducer on grunt

Change-Id: I57418338d5212fb9a2c1ea82eba63d855f69ff32
2023-02-27 14:19:12 -08:00
Henri Chataing
27b30c61d0 secure_element/aidl: Add error case for transmit()
Modify the semantics of transmit() to return a service
specific error with code CHANNEL_NOT_AVAILABLE if there
was an error in communicating with the secure element.

This can happen if the SE is put in low power mode when
no logical or basic channel is opened, e.g.

Bug: 270091254
Test: m VtsHalSecureElementTargetTest
Change-Id: I7df3ec6d9b6d5eeb2272971c44fc078a8558d2e6
2023-02-27 17:59:58 +00:00
Changyeon Jo
24d22eb9df Update OWNERS file
Bug: 270900095
Test: Treehugger
Change-Id: Ieb0bf7eacb039db53da61207f2cb4ff70641bf75
2023-02-27 16:05:58 +00:00
Treehugger Robot
657934eebb Merge "Update KeyMint VTS tests to use pre-defined API level symbols" 2023-02-27 11:19:50 +00:00
Mikhail Naganov
0385eeafc3 audio: Remove InputStreamTest#getCapturePosition test am: f38d908d43
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2457548

Change-Id: I5d47aa72aac379f23838ca54c0db04f11093ee6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-25 02:42:10 +00:00
Robert Shih
51e1c2a42b Merge "DrmHalTest: null check for skipped test" 2023-02-24 21:38:04 +00:00
Mikhail Naganov
f38d908d43 audio: Remove InputStreamTest#getCapturePosition test
The test was created based on assumptions and the current
HAL behavior. There is no actual requirement in the HIDL
interface for a stream to have a zero capture position
prior to start. In fact, some streams may be created by
the HAL "pre-loaded" with data if audio has already been
captured by the DSP and needs to be passed to the framework.

Bug: 270478574
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ied6a71b73bff403365dd85fe6a212cfa4a5b284d
(cherry picked from commit afe90852d4)
2023-02-24 20:58:42 +00:00
Treehugger Robot
83d51232ca Merge "audio: Remove InputStreamTest#getCapturePosition test" 2023-02-24 20:19:02 +00:00
Tri Vo
20bb427427 Merge "Add test for IRPC DeviceInfo" 2023-02-24 18:02:14 +00:00
Mikhail Naganov
afe90852d4 audio: Remove InputStreamTest#getCapturePosition test
The test was created based on assumptions and the current
HAL behavior. There is no actual requirement in the HIDL
interface for a stream to have a zero capture position
prior to start. In fact, some streams may be created by
the HAL "pre-loaded" with data if audio has already been
captured by the DSP and needs to be passed to the framework.

Bug: 270478574
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ied6a71b73bff403365dd85fe6a212cfa4a5b284d
2023-02-24 09:57:16 -08:00
Alice Wang
acc1a5bd38 [dice] Remove unused service android.hardware.security.dice
This cl removes the unused service android.hardware.security.dice
together with all its usages (all of them are tests), because the
service is incomplete and not used anywhere for now and in the
near future.

The cl also removes dice from the compat matrix.

This helps us reduce some maintainance burden for the Rust dice
wrapper libraries such as libdiced_open_dice[_nostd],
libdiced_sample_inputs, libdiced_utils and their tests.

Test: atest diced_utils_test diced_sample_inputs_test \
diced_open_dice_cbor_test \
libdiced_open_dice_nostd.integration_test \
libdiced_open_dice.integration_test diced_open_dice_cbor_test
Test: m pvmfw_img microdroid_manager
Bug: 267575445
Bug: 270511529

Change-Id: I3d2497d2e8d3f88c49cae9ae80a6b4f7b652cc4a
2023-02-24 09:03:11 +00:00
Tri Vo
ec50ee162a Add test for IRPC DeviceInfo
Bug: 243148852
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: If873996f0d756662808d785d2ef57118737a5aab
2023-02-23 20:01:31 -08:00
Shunkai Yao
7a7baedb3a Merge "[AIDL CTS] pass Virtualizer implementation cts" 2023-02-23 21:58:27 +00:00