Commit graph

42882 commits

Author SHA1 Message Date
Mikhail Naganov
2b68543625 Merge "audio: Make StreamDescriptor::Command a union" 2022-11-11 04:34:04 +00:00
Treehugger Robot
c6eb5c9104 Merge "audio: Add volume/mute, audio mode, and screen state to IModule" 2022-11-10 22:12:41 +00:00
Mikhail Naganov
98334439d5 audio: Make StreamDescriptor::Command a union
Previously StreamDescriptor::Command used to be a parcelable
holding a command code (enum) + a command argument which was
used for one command only. This got replaced with an equivalent
union, where each command w/o arguments is represented by a
'Void' variant, and the command with an argument with a variant
of a corresponding type.

This has the following benefits:

  - the union guarantees that the argument is only set for
    commands that actually use it, thus all related comments
    and validations can be removed;

  - the command dispatch can be turned into an exhaustive
    switch.

To be able to use an exhaustive switch, the 'exit' command
has been exposed at the interface, but marked as 'hal_reserved'.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3f2c27a48e4d0b7cfce1171244b2eddc1637005f
2022-11-10 21:37:19 +00:00
Tri Vo
85ee679e2e Merge "Add VtsAidlKeyMintTargetTest to presubmit" 2022-11-10 20:41:55 +00:00
Seth Moore
75dd6a15d2 Merge changes from topic "cherry-pick-rkp-hal-split"
* changes:
  Update the RKP aidl dependency
  Update README and CHANGELOG for RKP
  Split rkp from keymint
2022-11-10 19:32:31 +00:00
Seth Moore
20b3262727 Merge changes from topic "cherry-pick-rkp-hal-split"
* changes:
  Add missing dependency on RKP HAL
  ID attestation: Define tag for a second IMEI
2022-11-10 19:32:31 +00:00
Sandeep Dhavale
f4756ff0f1 Merge "Fastboot AIDL additional changes" 2022-11-10 18:29:00 +00:00
Treehugger Robot
9d99ac49a1 Merge "Fix a couple of regular expressions." 2022-11-10 07:12:12 +00:00
Treehugger Robot
a30c39330f Merge "benchmark: updated benchmark tests for strongbox" 2022-11-10 05:32:17 +00:00
Treehugger Robot
99817822f7 Merge "Add BluetoothLeAudioCodecsProvider Unit Test" 2022-11-10 05:20:56 +00:00
Zhang Yuan
b4314fc130 Adding DSDA configuration for VTS. am: 50f12068b8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2264662

Change-Id: I2540a5d4bfa6ac9b368d1487a7115ff863038bf3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 03:19:52 +00:00
Seth Moore
41e97f0bbf Update the RKP aidl dependency
Bug: 254112961
Test: vts_treble_vintf_vendor_test
Merged-In: I86f864003e38224936375930891abb38f7d55d3d
Change-Id: I86f864003e38224936375930891abb38f7d55d3d
2022-11-10 01:57:10 +00:00
Seth Moore
f479b4b902 Update README and CHANGELOG for RKP
Bug: 254112961
Test: vts_treble_vintf_vendor_test
Merged-In: Ib66fcbdbaadda3f32cd8423f61bd31d5f43dc44b
Change-Id: Ib66fcbdbaadda3f32cd8423f61bd31d5f43dc44b
2022-11-10 01:56:49 +00:00
Seth Moore
3a810627e0 Split rkp from keymint
Bug: 254112961
Test: vts_treble_vintf_vendor_test
Merged-In: I3734bd7647cbb7b33ef654ba2fb40fe8a648689e
Change-Id: I3734bd7647cbb7b33ef654ba2fb40fe8a648689e
2022-11-10 01:56:41 +00:00
Seth Moore
5937f07a69 Add missing dependency on RKP HAL
Bug: 258288484
Test: libkeymint_remote_prov_support_test
Merged-In: I032d30e5f46aa3fc0dd7b95373180b9653ccbf23
Change-Id: I032d30e5f46aa3fc0dd7b95373180b9653ccbf23
2022-11-10 01:56:25 +00:00
Eran Messeri
210d3ea87b ID attestation: Define tag for a second IMEI
Define a KeyMint tag for a second IMEI to be included in the attestation
record.

Also clarify that the IMEI tag is meant to include one, and only one,
IMEI.

Bug: 244732345
Test: android.keystore.cts.DeviceOwnerKeyManagementTest
Merged-In: I70ecbb0245ba2e517e5d0db0cfdce4525846f3e5
Change-Id: I70ecbb0245ba2e517e5d0db0cfdce4525846f3e5
2022-11-10 01:54:21 +00:00
Elliott Hughes
be36da4c2b Fix a couple of regular expressions.
Our old NetBSD regex implementation didn't care, but the current NetBSD
implementation rejects unquoted `{` and `}`s that aren't actually part
of a repetition. glibc shares this behavior.

Interestingly, the new NetBSD code was itself an sync with FreeBSD, so
although macOS right now allows this (as Android did), they may well
switch too.

Anyway, this way of writing the regular expressions is strictly correct,
so regardless of whether or not we can actually land this change to the
regex implementation without causing app compat chaos, we should fix
this test.

Bug: http://b/258469149
Test: treehugger
Change-Id: I85bf5d8f557a4fe5ac5ebeea565892d36da30b55
2022-11-09 22:07:11 +00:00
Roshan Pius
652cf9c564 Merge changes I6ec56c68,Idc44d73f,I9cd3e442,Iae490f19,I44dd28b0, ...
* changes:
  uwb(hal): Doc update to clarify country code payload of 00
  Add Diagnostics Oid in HAL.
  Add new capability TLV and config TLV for supported diagnostics.
  Add new capability TLV for supported RSSI reporting
  uwb(hal): Add a new capability TLV for supported rng ntf thresholds
  uwb(hal): Add a new capability TLV for min ranging interval
2022-11-09 19:17:29 +00:00
Treehugger Robot
202c44bbdc Merge "Adding DSDA configuration for VTS." 2022-11-09 18:57:15 +00:00
Mikhail Naganov
3b125b76aa audio: Add volume/mute, audio mode, and screen state to IModule
Add the following methods to IModule:
 - getTelephony;
 - get/setMasterMute;
 - get/setMasterVolume;
 - get/setMicMute;
 - updateAudioMode;
 - updateScreenRotation;
 - updateScreenState;
The "update..." methods are "informational," the HAL may ignore
them and must not raise any errors.

ITelephony currently contains 2 methods:
 - getSupportedAudioModes;
 - switchAudioMode.
This "switchAudioMode" must validate the argument, and must
switch the HAL to the new mode synchronously.

Implement and add VTS tests.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I9174c81fe7d16f7068257051ae5e129b15e82648
2022-11-09 18:55:07 +00:00
Roshan Pius
493e8216b0 uwb(hal): Doc update to clarify country code payload of 00
Bug: 243426975
Test: N/A
Merged-In: I6ec56c68df5e1049d93c31e498934501f7d75ad1
Change-Id: I6ec56c68df5e1049d93c31e498934501f7d75ad1
2022-11-09 09:50:20 -08:00
ziyiw
2cf69b7084 Add Diagnostics Oid in HAL.
Test: compile
Bug: 236969605
Merged-In: Idc44d73f31dc23d4dfaf4f461d8c312338421234
Change-Id: Idc44d73f31dc23d4dfaf4f461d8c312338421234
2022-11-09 09:50:01 -08:00
ziyiw
e27f56430c Add new capability TLV and config TLV for supported diagnostics.
Test: Compile
Bug: 236969605
Merged-In: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
Change-Id: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
2022-11-09 09:49:38 -08:00
ziyiw
8ad4251bbb Add new capability TLV for supported RSSI reporting
Test: Compile
Bug: 236720553
Merged-In: Iae490f193c7e613ef8c9ee03784563b3286182bb
Change-Id: Iae490f193c7e613ef8c9ee03784563b3286182bb
2022-11-09 09:49:11 -08:00
Roshan Pius
745c36cb74 uwb(hal): Add a new capability TLV for supported rng ntf thresholds
Bug: 235355249
Test: Compiles
Merged-In: I44dd28b0b3ff5cfe6bf227e4cad917edfce10262
Change-Id: I44dd28b0b3ff5cfe6bf227e4cad917edfce10262
2022-11-09 09:48:51 -08:00
Roshan Pius
4c0fffb0ab uwb(hal): Add a new capability TLV for min ranging interval
Bug: 235488259
Test: Compiles
Merged-In: I7f0c6d9b68ea3a1ba31911a031f2e7ee24c9d331
Change-Id: I7f0c6d9b68ea3a1ba31911a031f2e7ee24c9d331
2022-11-09 09:48:28 -08:00
Mikhail Naganov
9cce6228ac Merge "audio: Fix HAL reply handling in CompressedOffloadOutputStreamTest" 2022-11-09 16:02:49 +00:00
Zhang Yuan
50f12068b8 Adding DSDA configuration for VTS.
Some of the devices which supports DSDA configuration is failing with IRadioConfig.setSimSlotsMapping() VTS. Hence improving the Test case to support.
Test: atest VtsHalRadioTargetTest
Bug: 253337352

Change-Id: I66314124dbf410d8344025aa45529652e126368a
2022-11-09 15:21:12 +00:00
Zhang Yuan
2910082f89 Adding DSDA configuration for VTS.
Some of the devices which supports DSDA configuration is failing with IRadioConfig.setSimSlotsMapping() VTS. Hence improving the Test case to support.
Test: atest VtsHalRadioTargetTest
Bug: 253337352

Change-Id: I66314124dbf410d8344025aa45529652e126368a
2022-11-09 14:39:13 +00:00
Eric Laurent
b40d5856bc Merge "audio: Add audio_policy_configuration.xsd for the parser" 2022-11-09 08:41:53 +00:00
Treehugger Robot
397a536206 Merge "USB Gadget v1.2: Remove redundant rndis gadget linking" 2022-11-09 04:00:32 +00:00
Sandeep Dhavale
488f40918b Fastboot AIDL additional changes
* Fastbootshim library which wraps HIDL implementation as AIDL
* Change default implementation from library to binary

Bug: 205760652
Test: Build
Change-Id: If92d28d68f1d454b1a65f85e731a78a49b108635
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2022-11-09 00:38:19 +00:00
Shunkai Yao
220cd046ff Merge "Move equalizer header file to Equalizer folder" 2022-11-08 21:25:06 +00:00
Treehugger Robot
080af0a493 Merge "Fix typo in property name" 2022-11-08 20:23:28 +00:00
Treehugger Robot
79fdb98586 Merge "power/stats: update OWNERS" 2022-11-08 20:22:10 +00:00
Maciej Żenczykowski
bd9a5c2699 Merge "Delete {p,q}/android-4.9." 2022-11-08 04:21:27 +00:00
Shunkai Yao
6c370645c6 Move equalizer header file to Equalizer folder
Bug: 255361653
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: Ic1f9dedd35ec6cb0c1753106bdd5530f572d31ff
2022-11-08 02:45:25 +00:00
Tri Vo
799e4353c2 Fix typo in property name
Test: VtsAidlKeyMintTargetTest
Change-Id: I9c42f14a468ae907d4c47df8af4e3b9b16cd5d96
2022-11-07 17:23:53 -08:00
Kelly Rossmoyer
6b489885e5 power/stats: update OWNERS
Add people who should be listed (including the primary owner) and
remove folks who are no longer involved.

BUG: 218899982
Change-Id: I0a479e528bd436668b8782ebc123e4fdb8b4e50b
2022-11-08 00:18:48 +00:00
Tri Vo
6529ceff1b Add VtsAidlKeyMintTargetTest to presubmit
Bug: 224515306
Test: presubmit
Change-Id: Ia90761c5109b217ad0628f621f5952a1c4e07471
2022-11-07 15:53:33 -08:00
Mikhail Naganov
b1f182cbcb Merge changes Ibed7f4c3,I8a9f4f0b
* changes:
  audio: Add pause, resume, and standby stream operations
  audio: Add 'join' method to StreamWorker
2022-11-07 18:33:21 +00:00
Gabriel Biren
38b17aecb3 Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e am: 590248f68e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: Icc25a1b51aaf570a197b2326d562d5388f4dd938
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 07:30:58 +00:00
Maciej Żenczykowski
d05e5fa654 Delete {p,q}/android-4.9.
U will not support 4.9

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia637833f5bfaf9ba2a3043beb09e53dc3c11caf6
2022-11-05 07:15:18 +00:00
Gabriel Biren
590248f68e Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: I3a56d4c73b2c3c40dfb650a32cd431f414b4ba7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 07:13:36 +00:00
Gabriel Biren
26b625704e Add a null pointer check for wifi_chip in am: 4e6349240e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: Ia67f4b0cca7ea6f5f55ce3857fd2c9df3169d4dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 06:45:11 +00:00
Treehugger Robot
a18dea216e Merge "use binder_auto_utils.h ostream" 2022-11-05 00:20:46 +00:00
Steven Moreland
52ed38da36 use binder_auto_utils.h ostream
Bug: N/A
Change-Id: I56f39241b35fc1962baf95f4a5c93aff1cbd705c
Test: N/A
2022-11-04 22:12:02 +00:00
Steven Moreland
4d92497720 boot 'Hidl' test is actually 'Aidl'
Confusing names.

Bug: N/A
Test: N/A
Change-Id: Iaace7aa33dbbda1f390fa6506d76ba5a76a6f377
2022-11-04 22:02:09 +00:00
Devin Moore
1d11ba4cfa Merge "Mark keymint as unfrozen to manage keystore2's imports" 2022-11-04 20:21:26 +00:00
Myles Watson
df485f9f27 Merge "Bluetooth HCI Hal: Initialize has_died_" 2022-11-04 16:45:22 +00:00