Commit graph

26858 commits

Author SHA1 Message Date
Steven Moreland
412a7fe234 vibrator: example for how to get ID
Since someone asked, and I was still confused, after discussion, this
is the way things work.

Bug: 173817747
Test: N/A
Change-Id: I2c4e062672a2f2d998479d4f9ae11b7749c2aca6
2020-12-02 01:35:02 +00:00
Mikhail Naganov
c9dbca51e6 audio: Align lists of enum values between framework and HAL
Enum values defined in the XSD now correspond to the
"no system definitions" lists of enums in
system/media/audio/audio-hal-enums.h.

Added channel masks that used to be in s/m/a/audio-base-utils.h.
Removed use of "vectors of vectors" for channel masks
since individual channels are not allowed to be used
in the APM config and at the HAL transport level.

Fixed definition of the gain mode of audio ports:

1. Since it's a bit mask in the framework, it must be a list in
   the audio policy configuration XML file. Note that the old
   definition is compatible with the new one as one element is a
   valid list.
2. As gain mode is defined in the XSD file, it shouldn't be
   defined again in types.hal.

Bug: 122858783
Bug: 142480271
Test: audio smoke tests
Change-Id: I2df5eb4bc4a393611d3adb0ee30583767197591b
Merged-In: I2df5eb4bc4a393611d3adb0ee30583767197591b
2020-12-01 23:37:53 +00:00
Jordan Liu
eada45e9a6 Merge "Add VTS for setSimCardPower_1_6" am: fb4367c319
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1493663

Change-Id: I5f3301e3bb0ddaf214e4f6f1a05ab8358edfdef8
2020-12-01 22:38:48 +00:00
Jordan Liu
fb4367c319 Merge "Add VTS for setSimCardPower_1_6" 2020-12-01 22:23:25 +00:00
Sarah Chin
e92e5a06b6 Merge "Create getSystemSelectionChannel API" am: 4a5f4e5ab2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1504053

Change-Id: Ibd06334e2b478578fe9081fd09065fdf6ea57dbe
2020-12-01 20:16:56 +00:00
Sarah Chin
4a5f4e5ab2 Merge "Create getSystemSelectionChannel API" 2020-12-01 20:08:10 +00:00
Treehugger Robot
935aef6d78 Merge "Convert mask types from uint32_t to enum type" am: 1f551d879a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1510239

Change-Id: I5a49cd9e90e5d3cd09f522c545fd4d1001937b42
2020-12-01 17:42:20 +00:00
Treehugger Robot
1f551d879a Merge "Convert mask types from uint32_t to enum type" 2020-12-01 17:06:51 +00:00
Sarah Chin
f69abcf78e Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Test: atest VtsHalRadioV1_6TargetTest
Bug: 152813408
Change-Id: I6f3f70b7ff1b876ec98086431ed5c557875fca85
Merged-In: I6f3f70b7ff1b876ec98086431ed5c557875fca85
2020-11-30 14:40:01 -08:00
Janis Danisevskis
1b990bc7dc KeyMint 1.0: Fix tag type of USER_SECURE_ID. am: 375f7d743d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1513473

Change-Id: I14cd6576cb393e8eacca0f6d1540ad876237a62c
2020-11-30 18:00:28 +00:00
Janis Danisevskis
375f7d743d KeyMint 1.0: Fix tag type of USER_SECURE_ID.
Test: None
Bug: 174445211
Change-Id: Ic8f346c58db875ee9fe4131f87de8c1bc5e9ec18
2020-11-30 00:29:22 -08:00
Treehugger Robot
47c899b6c8 Merge "vibrator: vts: correct the checking flag when testing on() interfaces" am: 321618f711
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1505756

Change-Id: I6bf86bbcc31f9f7e3d3c176c8c742f6933884858
2020-11-30 06:24:07 +00:00
Treehugger Robot
321618f711 Merge "vibrator: vts: correct the checking flag when testing on() interfaces" 2020-11-30 05:49:55 +00:00
Jordan Liu
8ca952efb9 Add VTS for setSimCardPower_1_6
Bug: 171433370
Test: make vts
Change-Id: I94e265d31c4077f0c06bc9bb47471e1a838f48d4
2020-11-24 13:13:17 -08:00
Michael Butler
7623d457bf Merge "Invalidate NN interface objects on cache mismatch" am: 4cdcadf70c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1508322

Change-Id: I77446ec7fb4d8b6c2f7c3581b58b015032b75ae4
2020-11-24 19:59:29 +00:00
Michael Butler
4cdcadf70c Merge "Invalidate NN interface objects on cache mismatch" 2020-11-24 19:32:27 +00:00
Shawn Willden
4c8b056838 Update to support keymaster's configurable version. am: 66b1cfaac0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507156

Change-Id: I0d27cd1d5d244c9cc7fc34ffe59133fa58b391f7
2020-11-24 18:42:51 +00:00
Michael Butler
376005883c Invalidate NN interface objects on cache mismatch
Currently, if an IDevice object is a DEAD_OBJECT, the runtime attempts
to re-retrieve the handle to the rebooted IDevice service. If an update
occurs after the IDevice was originally created, the rebooted IDevice
object may have different metadata and behavior. This is problematic
because the original metadata is cached in the runtime. Further, an
application might have made decisions based on that metadata and
behavior. (Note that a driver service that is functionally the same but
has a different underlying implementation such as having more optimized
code will have different `getVersionString` metadata.) Instead, this CL
invalidates the IDevice object on cache mismatch, and always returns an
error if it is used.

Bug: 173081926
Test: mma
Change-Id: I805987361c627c32d45e1b7c7aed230376fc66ad
Merged-In: I805987361c627c32d45e1b7c7aed230376fc66ad
(cherry picked from commit 5a74c0fb0f)
2020-11-24 10:42:45 -08:00
Shawn Willden
66b1cfaac0 Update to support keymaster's configurable version.
Test: VtsHalIdentityTargetTest
Bug: b/173577355
Change-Id: Ia7c1a46edec12047c51ed4888788386dcfe11ca9
2020-11-23 23:11:52 -07:00
Mikhail Naganov
12776a1b3d Convert mask types from uint32_t to enum type
This applies to the following types:

- audio_gain_mode_t;
- audio_flags_mask_t;
- audio_channel_representation_t;
- audio_channel_mask_t;
- audio_devices_t.

Enum types are distinct thus proper overloading on the type
is possible in C++. Also, assignments to enum types are
less prone to errors.

Bug: 169889714
Test: basic audio functionality
Change-Id: I07e96ae99724f38fe0b40194f4feab7ff68418e7
Merged-In: I07e96ae99724f38fe0b40194f4feab7ff68418e7
2020-11-24 03:44:08 +00:00
Steven Moreland
14741dedcf Merge changes from topic "hidl-clear-buf" am: c86759a16b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506836

Change-Id: I77b25a52e35e49cb25f2b4673a6e8c02b1f52a88
2020-11-23 22:20:22 +00:00
Steven Moreland
21ae5952d9 HIDL: IFoo mark @SensitiveData am: 312bf0e65e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506418

Change-Id: I439a1e8dfdae930f36d6f63dd59f5663c915a0c5
2020-11-23 22:19:35 +00:00
Steven Moreland
c86759a16b Merge changes from topic "hidl-clear-buf"
* changes:
  HIDL HALs mark sensitive data
  HIDL: IFoo mark @SensitiveData
2020-11-23 21:31:47 +00:00
Treehugger Robot
06821f258b Merge changes from topic "nullzero-hal-v7" am: 8d93e3a8d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507221

Change-Id: I4ace30bfcb61da281c6d5f0f19df4e319a4639c8
2020-11-23 19:47:56 +00:00
Mikhail Naganov
c70238a35b audio: Implement VTS tests for V7.0 am: d72a7c27ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507220

Change-Id: Ia1311ceeec97d51c6f1d777cb48d0829141bce4c
2020-11-23 19:47:53 +00:00
Mikhail Naganov
5b0e2ae0b7 audio: Add example HAL implementation am: baf57fb136
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507219

Change-Id: Ie8e9afcb1a6179305c01730f9e80a17394c7d7ad
2020-11-23 19:47:51 +00:00
Mikhail Naganov
cbce6cefb4 audio: Reformat README as Markdown am: 1074c22fe1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507218

Change-Id: Ie69ad37c6adf6f13384b51fede738b0e41a733c9
2020-11-23 19:47:48 +00:00
Mikhail Naganov
e29f53a9a7 audio: HAL V7 tweaks am: 355dd0630c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507217

Change-Id: I77b7193578aa28dc985a9788f8f3a437de1e7d95
2020-11-23 19:47:19 +00:00
Treehugger Robot
a088953e11 Merge "Bluetooth HAL: fix ISO handling for H4 protocol" am: 389e9aa728
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506098

Change-Id: I79da5f6198134090879db7a03d008e00bbcc3617
2020-11-23 19:28:39 +00:00
Treehugger Robot
8d93e3a8d3 Merge changes from topic "nullzero-hal-v7"
* changes:
  Remove PREUPLOAD.cfg from audio HAL example
  audio: Implement VTS tests for V7.0
  audio: Add example HAL implementation
  audio: Reformat README as Markdown
  audio: HAL V7 tweaks
2020-11-23 19:25:49 +00:00
Treehugger Robot
389e9aa728 Merge "Bluetooth HAL: fix ISO handling for H4 protocol" 2020-11-23 18:49:47 +00:00
Jakub Pawlowski
db779b41a3 Bluetooth HAL: fix ISO handling for H4 protocol
Bug: 150670922
Test: run H4ProtocolTest.TestReads
Change-Id: Ib051550da1c99a3b682d149cd6c88cce294dbc9c
2020-11-23 17:43:09 +01:00
Fenglin Wu
15b01dc53b vibrator: vts: correct the checking flag when testing on() interfaces
Check CAP_ON_CALLBACK flag when testing vibrator onWithCallback() and
OnCallbackNotSupported() functions.

Bug: 172485963
Change-Id: Ie5c926ec943f191d1e5309ac85e7c8e1540fb824
2020-11-23 10:37:45 +08:00
Treehugger Robot
2c33220ae7 Merge "HAL changes for ThermalMitigation API." am: 6be52d5b34
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507840

Change-Id: I3f5f6306ce3ad7d6960f7f2d9a2702041d568dbd
2020-11-21 02:35:26 +00:00
Treehugger Robot
6be52d5b34 Merge "HAL changes for ThermalMitigation API." 2020-11-21 02:02:39 +00:00
Treehugger Robot
99fde2e9f8 Merge "identity: Change Identitial Credential to pass in subject by attestation params instead of making another function in attestation_utils." am: 4b0d04d39a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506562

Change-Id: I709d838d77322ef596241758008ee6eed7dfd075
2020-11-21 01:27:44 +00:00
Mikhail Naganov
94ab03a3a2 Remove PREUPLOAD.cfg from audio HAL example
As suggested by the comment on ag/12691153

Bug: 142480271
Test: N/A
Change-Id: Ic9e2b986d3f9734dd884a2c88ca86d251147126b
Merged-In: Ic9e2b986d3f9734dd884a2c88ca86d251147126b
2020-11-21 01:16:10 +00:00
Mikhail Naganov
d72a7c27ab audio: Implement VTS tests for V7.0
The major change in V7.0 is use of enum values defined
in the Audio Policy Configuration XSD schema. This allows
decoupling types used at the HIDL layer from system/audio.h.
Added a header audio_policy_configuration_V7_0-enums.h
with utility functions analogous to ones from system/audio.h
but defined for the types generated from XSD schema.

Since the code of VTS tests is shared between versions,
ensured that the VTS tests for the previous HAL versions
didn't regress.

Bug: 142480271
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
      atest VtsHalAudioV7_0TargetTest
      atest VtsHalAudioEffectV7_0TargetTest
Change-Id: Ia7c2d49a02783725080c8fed6a25853e91bba487
Merged-In: Ia7c2d49a02783725080c8fed6a25853e91bba487
2020-11-21 01:15:53 +00:00
Mikhail Naganov
baf57fb136 audio: Add example HAL implementation
This is partial implementation of the example V7.0 audio HAL
which passes VTS tests. Note that the 'core' part
of the HAL (IDevice/IStream) isn't implemented yet.
It passes VTS because it doesn't provide any devices
(modules) and the audio HAL isn't the 'default' instance.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
      atest VtsHalAudioEffectV7_0TargetTest
Change-Id: Ie3dd62c5db1cdb5534df4dd7f326c4c8776bf3c4
Merged-In: Ie3dd62c5db1cdb5534df4dd7f326c4c8776bf3c4
2020-11-21 01:15:39 +00:00
Mikhail Naganov
1074c22fe1 audio: Reformat README as Markdown
Rename README -> README.md, reformat it as Markdown.
Provide missing descriptions for some directories.

Bug: 142480271
Test: N/A
Change-Id: Ic6f60a21def4bf210a7e1446454d709f68a13422
Merged-In: Ic6f60a21def4bf210a7e1446454d709f68a13422
2020-11-21 01:15:19 +00:00
Mikhail Naganov
355dd0630c audio: HAL V7 tweaks
- rename AudioBasicConfig -> AudioConfigBase to better
  match a similar structure in audio.h;

- define AudioProfile structure for defining an I/O profile;

- use AudioProfile to replace IStream.getSupported* methods
  with a single IStream.getSupportedProfiles method;

- define AudioDevice type for convenience and clarity;

- move enums definition for AudioInputFlags and AudioOutputFlags
  into XSD. This allows parsing APM config w/o depending on
  the framework code.

Bug: 142480271
Test: m
Change-Id: I1951b2de383751fe53b96954dfd02cdd1ab6cc8f
Merged-In: I1951b2de383751fe53b96954dfd02cdd1ab6cc8f
2020-11-21 01:15:03 +00:00
Treehugger Robot
4b0d04d39a Merge "identity: Change Identitial Credential to pass in subject by attestation params instead of making another function in attestation_utils." 2020-11-21 01:05:29 +00:00
Jack Nudelman
5cd9414268 HAL changes for ThermalMitigation API.
go/telephony-thermal-mitigation

Bug: 158872959
Test: make, vts

Change-Id: I914993a6e80305732564e0507ca6a74b1c296439
Merged-In: I914993a6e80305732564e0507ca6a74b1c296439
2020-11-21 00:49:48 +00:00
Daniel Bright
264e65b092 Merge "Added pdu session id to setupDataCall" am: 78293592cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507689

Change-Id: Ib1149a049adcafcd4dc45a486ea1b16248ac9a0e
2020-11-20 23:26:10 +00:00
Daniel Bright
78293592cc Merge "Added pdu session id to setupDataCall" 2020-11-20 22:54:24 +00:00
Steven Moreland
28f2549765 HIDL HALs mark sensitive data
For extra precautious transaction clearing.

Bug: 171501998
Test: hidl_test + inspecting output
Change-Id: I813dc3dd6c85ad0e86c6b8c116b7a207517dd12e
2020-11-20 21:16:16 +00:00
Treehugger Robot
81f6751d1b Merge "Audio: Rearrange types in V7" am: c563bfc08e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506778

Change-Id: I4f141f2ef831b27a165dbb3f08684732485c6661
2020-11-20 20:22:30 +00:00
Daniel Bright
3c72fbafce Added pdu session id to setupDataCall
The pdu session id needs to be passed to setup data call on handover

(clean cherry-pick)

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 161572859
Merged-In: I0e11c8997674cdaad4bb82491d818ca85ee197d1
Change-Id: I0e11c8997674cdaad4bb82491d818ca85ee197d1
2020-11-20 12:22:08 -08:00
Treehugger Robot
c563bfc08e Merge "Audio: Rearrange types in V7" 2020-11-20 19:39:55 +00:00
Daniel Bright
30636cbc1a Merge "Added global retry support" am: 39c8747585
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1504811

Change-Id: If2e338d8e8d9a9a288030b853c573fdc0689b52f
2020-11-20 19:12:31 +00:00