Commit Graph

27923 Commits

Author SHA1 Message Date
Michael Butler
4e6d013362 Create NN AIDL Burst adapter am: 7a9d6092cd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663921

Change-Id: Icf672df81051c7a81857646f1f55dfe703030217
2021-04-05 21:36:08 +00:00
Michael Butler
b19c1cbef3 Add additional parameters for NN Burst -- HAL am: 8414a6ebf9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663920

Change-Id: If42779032ff2e6aa617c14a1f3e21379958eee05
2021-04-05 21:36:05 +00:00
Michael Butler
2f59ea0610 Add missing validation for NN canonical types am: 388bcebc8f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663919

Change-Id: Iab78bc898b2727be5000c9df2a4e52a1dd03345e
2021-04-05 21:35:29 +00:00
Michael Butler
7a9d6092cd Create NN AIDL Burst adapter
Bug: 180492058
Bug: 177267324
Test: mma
Test: NeuralNetworksTest_static
Change-Id: I2947faeb3820faa963e4df1eaf7aefec57b66c79
Merged-In: I2947faeb3820faa963e4df1eaf7aefec57b66c79
(cherry picked from commit 504f44926c)
2021-04-02 22:03:12 -07:00
Michael Butler
8414a6ebf9 Add additional parameters for NN Burst -- HAL
Adds deadline and loopTimeoutDuration to nn::IBurst::execute.

This CL additionally adds a test case for
IPreparedModel::configureExecutionBurst and adds the suffix "_H" to
the header guards that were missing "_H".

Bug: 180492058
Bug: 177267324
Test: mma
Test: NeuralNetworksTest_static
Change-Id: Ic9ba2fb9b4dee4e40d99ae91bb9555a58d0508d2
Merged-In: Ic9ba2fb9b4dee4e40d99ae91bb9555a58d0508d2
(cherry picked from commit bbbdb0d5f1)
2021-04-02 22:02:38 -07:00
Michael Butler
388bcebc8f Add missing validation for NN canonical types
Bug: 177669661
Test: mma
Test: NeuralNetworksTest_static
Change-Id: Ic05c177f61a906a69bf82ff9c4d5bb8b0556d5ca
Merged-In: Ic05c177f61a906a69bf82ff9c4d5bb8b0556d5ca
(cherry picked from commit 08ee3f9287)
2021-04-02 22:02:02 -07:00
Xusong Wang
876c290465 Rename BufferRole.frequency -> probability -- HAL. am: 3633d07092
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663160

Change-Id: I136573a127b5cd81fd2f5bd022ca40feaad51638
2021-04-02 21:08:56 +00:00
Myles Watson
a2a17c091f Merge "VtsBluetooth: Use ASSERT_* to end the test ASAP" am: 21927e2ddd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662559

Change-Id: Icf35c27fe317df9e44aedd92b060fb96564c9d5a
2021-04-02 18:21:07 +00:00
Xusong Wang
3633d07092 Rename BufferRole.frequency -> probability -- HAL.
"Frenquency" often refers to the number of occurrences over a period of
time, while "probability" refers to the number of occurrences of one
event over the number of occurrences of all events. "Probability" is a
better name for this field.

Fixes: 183117895
Test: VtsHalNeuralnetworksTargetTest
Test: NNT_static
Change-Id: Ic86f73b8be2aed567ae4ca17bdb3a57c658fb349
Merged-In: Ic86f73b8be2aed567ae4ca17bdb3a57c658fb349
(cherry picked from commit 46bf892f46)
2021-04-02 10:26:29 -07:00
Myles Watson
21927e2ddd Merge "VtsBluetooth: Use ASSERT_* to end the test ASAP" 2021-04-02 16:36:16 +00:00
Treehugger Robot
d7b3a20f25 Merge "Allow SecureClock tests to pass on devices w/out SecureClock" am: 1a9bbebbca
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662902

Change-Id: Ie4f4d2503d77764a0912cdcf39f872b387cb1534
2021-04-02 15:25:16 +00:00
Shawn Willden
1da5562f93 Merge "Allow KeyMint tests to pass on devices w/out KeyMint" am: d7f1c1d638
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662901

Change-Id: I9ab8ff2be49db4e2946e74e6dfd7c196bd4687dd
2021-04-02 15:25:07 +00:00
Shawn Willden
741884a363 Merge "Correct error code in attest_key docs." am: b21b4a3663
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662620

Change-Id: Ia0f1df2713a35026bcd89bd4fac72aead650146b
2021-04-02 15:24:26 +00:00
Treehugger Robot
1a9bbebbca Merge "Allow SecureClock tests to pass on devices w/out SecureClock" 2021-04-02 14:51:49 +00:00
Shawn Willden
d7f1c1d638 Merge "Allow KeyMint tests to pass on devices w/out KeyMint" 2021-04-02 14:44:42 +00:00
Shawn Willden
b21b4a3663 Merge "Correct error code in attest_key docs." 2021-04-02 14:44:16 +00:00
Benjamin Schwartz
82a8c67415 power/stats: Index the state residency data providers am: 3bad122962
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663119

Change-Id: Ie15a72e82306e08208f5c3ffc9d49599a8bb8884
2021-04-02 06:06:43 +00:00
Benjamin Schwartz
3bad122962 power/stats: Index the state residency data providers
Data providers that provided data for multiple entities were being added
to the data structure as nullptr due to move semantics. Now they will
only be added once (ensuring no more nullptr entries) and an index will
map each power entity id to its corresponding data provider.

Bug: 184290936
Test: Presubmit
Change-Id: I858269beb36ba5f87bb14a228079f3abd6c2332f
2021-04-01 18:26:38 -07:00
Steven Moreland
7c314eed3d light: downgrade hardware open error am: 7af6d0fecc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662759

Change-Id: I48c6332af23bfa1b83e5f84b43b3b858e50a482c
2021-04-01 23:20:41 +00:00
Shawn Willden
14fdd67a30 Allow SecureClock tests to pass on devices w/out SecureClock
Bug: 182289099
Test: VtsAidlSecureClockTargetTest
Change-Id: I830fe2879cd3328adf950060afb7e9eb18e558b7
2021-04-01 17:06:06 -06:00
Shawn Willden
7e71f1e5c5 Allow KeyMint tests to pass on devices w/out KeyMint
Bug: 181987225
Test: VtsAidlKeyMintTargetTest
Change-Id: I243fee463611ec2bf1f3661c46d3431280e187aa
2021-04-01 16:44:22 -06:00
Steven Moreland
7af6d0fecc light: downgrade hardware open error
If a certain type of light isn't available, we want to indicate this,
but it isn't an error.

Bug: N/A (was asked to do this for some fixit)
Test: N/A
Change-Id: I69038964db22425a7e9b2c722ddd4f38bf5bea2e
2021-04-01 20:50:51 +00:00
Shawn Willden
7bbf6298f2 Correct error code in attest_key docs.
Also adds a test to verify that implementations return the expected
error code.

Test: VtsAidlKeyMintTargetTest
Change-Id: Ic8e9953a2572eb0cc8fefc363934eaf9b432b5a4
2021-04-01 12:57:21 -06:00
Myles Watson
244ad3663f VtsBluetooth: Use ASSERT_* to end the test ASAP
Bug: 181133988
Change-Id: I19807685e0330196a4309e5c3d1183f37911bdd5
Test: atest VtsHalBluetoothV1_0TargetTest
Tag: #test-stability
2021-04-01 11:05:09 -07:00
Shawn Willden
3362fae7c3 Merge "Fix documentation of EARLY_BOOT_ONLY tag in KeyMint" am: 49e5b5eacc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1650387

Change-Id: I2667024b9db2ab5a730d82daabba51580f464e19
2021-04-01 15:01:45 +00:00
Shawn Willden
49e5b5eacc Merge "Fix documentation of EARLY_BOOT_ONLY tag in KeyMint" 2021-04-01 14:36:07 +00:00
David Drysdale
35f97c33b6 Merge changes I390aa702,I9084343c am: 0c77e4d25a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1660162

Change-Id: I1496525e836e6b669e6074effe862457fd85420e
2021-04-01 06:12:49 +00:00
David Drysdale
0c77e4d25a Merge changes I390aa702,I9084343c
* changes:
  Use a heuristic to correlate devices
  Fix DeviceInfo encoding and checks
2021-04-01 05:43:28 +00:00
Treehugger Robot
f2f027f403 Merge "audio: Use get_audio_port_v7 in the default wrapper" am: 6f219a694c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1661038

Change-Id: I3e64b266b49ea86bbcedf1a683b2417b5fa86ce1
2021-03-31 20:53:03 +00:00
Treehugger Robot
6f219a694c Merge "audio: Use get_audio_port_v7 in the default wrapper" 2021-03-31 20:15:53 +00:00
Michael Butler
7efe947159 Merge "Add std::this_thread::yield to Burst NN polling loop" am: 6aab5a161e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659697

Change-Id: I235ef3271adf0ee385189f654997a767f9589633
2021-03-31 19:56:16 +00:00
Michael Butler
6aab5a161e Merge "Add std::this_thread::yield to Burst NN polling loop" 2021-03-31 18:40:54 +00:00
Mikhail Naganov
cb766d2517 audio: Use get_audio_port_v7 in the default wrapper
get_audio_port_v7 interface method was added in aosp/1518624
but wasn't used in the default wrapper due to the refactoring
ongoing at that time. Fixing this omission.

Bug: 160352965
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I1e3594f30fe8fa319d0b5b4244531c9142870503
Merged-In: I1e3594f30fe8fa319d0b5b4244531c9142870503
2021-03-31 18:24:11 +00:00
David Drysdale
4d3c298c66 Use a heuristic to correlate devices
Every KeyMint device should have a corresponding
IRemotelyProvisionedComponent instance, but the converse is not true.

So given an IRPC instance under test, look for a corresponding KeyMint
device by comparing suffixes, but just skip the test if not found.

Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I390aa7025eb77f75a3280e8d85dc453b784c23ee
2021-03-31 18:27:36 +01:00
David Drysdale
f6fc5a6336 Fix DeviceInfo encoding and checks
- Make the default implementation include the DeviceInfo as a map, not
   a bstr-holding-a-map, to match the spec.
 - Check the signature of the signed MAC even in test mode.
 - Include the DeviceInfo in the data that the signature covers.

Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I9084343c1273c16a9cbd5a1156e7057a1c54a860
2021-03-31 18:08:59 +01:00
David Drysdale
319cf92322 Merge changes I2f5187bf,Icb79e1e0,I833894d3,I54dcaa61,I47a810f2 am: b39baeaa92
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1650253

Change-Id: I49d546f84e6082527b3320e5cf9ab3bfc629d0d8
2021-03-31 15:22:38 +00:00
David Drysdale
b39baeaa92 Merge changes I2f5187bf,Icb79e1e0,I833894d3,I54dcaa61,I47a810f2
* changes:
  Test that provisioned keys can be used with KeyMint
  Add tests with corrupted MAC on keypair
  Add more EEK variant tests and related fixes
  Commonize MacedPublicKey and ProtectedData checks
  Tweak IRemotelyProvisionedComponent AIDL docs
2021-03-31 14:48:41 +00:00
David Zeuthen
16454f9854 Merge "identity: add TEST_MAPPING file to run CTS, VTS, and unit tests in presubmit." am: ae33614d00
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1650507

Change-Id: If4c29daf9c16dcb8b66a5aa90d14bf3fa2049ba2
2021-03-31 14:05:10 +00:00
David Zeuthen
ae33614d00 Merge "identity: add TEST_MAPPING file to run CTS, VTS, and unit tests in presubmit." 2021-03-31 13:27:02 +00:00
Treehugger Robot
eded6e7b8d Merge "Adding jbires to keymint/aidl/OWNERS" am: 0ccd277dcb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1650656

Change-Id: Ib3d16b308a26831e0d9f61573d04d1dcf2ca1e93
2021-03-31 10:44:33 +00:00
Treehugger Robot
0ccd277dcb Merge "Adding jbires to keymint/aidl/OWNERS" 2021-03-31 10:06:21 +00:00
Bob Badour
dabe035993 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces am: 0f81cab176
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1658424

Change-Id: I7081074dbd5a84b1021bc95cbc95afbeec957017
2021-03-31 05:01:51 +00:00
Michael Butler
0252d5f97a Add std::this_thread::yield to Burst NN polling loop
Bug: N/A
Test: mma
Change-Id: Ibda55cfd031161614acc0c137cefb3b445548cc5
2021-03-30 20:14:41 -07:00
Bob Badour
0f81cab176 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  tv/cec/1.0/vts/functional/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I2ddf826c4af294e2b4ee76d2032c1efef90d93f3
2021-03-30 19:03:18 -07:00
Treehugger Robot
f1be92463d Merge "audio: Fix fixed size char array conversions" am: ebe635f8da
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659438

Change-Id: Ia9acbf4372fff25d0defbd836b522137fe885a3d
2021-03-31 00:55:03 +00:00
Treehugger Robot
ebe635f8da Merge "audio: Fix fixed size char array conversions" 2021-03-31 00:25:55 +00:00
Mikhail Naganov
8fca300256 audio: Fix fixed size char array conversions
For legacy HAL strings that are fixed size arrays
the conversion code was using the array size for
the HIDL string size. This lead to logging of error
messages during reverse conversion.

Fixed issue and refactored code to avoid duplication.

Bug: 181269159
Test: atest android.hardware.audio.effect@7.0-util_tests
      also, verify that no error messages from EffectUtil
      appear during boot and audio playback
Change-Id: Iac36ff33e65c502966ac2b7a4870cb5830545b23
2021-03-30 15:53:00 -07:00
Mikhail Naganov
4ccb4f9642 Merge "audio: Fix flakiness of HalAudioStreamWorkerTest" am: f6a701efeb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1656759

Change-Id: I95b4f46e62af0c030e2d514adfc251ccc5f8ce0c
2021-03-30 18:28:09 +00:00
Mikhail Naganov
f6a701efeb Merge "audio: Fix flakiness of HalAudioStreamWorkerTest" 2021-03-30 17:58:01 +00:00
Treehugger Robot
bdaff3d05e Merge "Clarify certificate chain requirements documentation." am: 93d82aca8f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1655827

Change-Id: Ibb1a46b81409ad6427086fe31438ed6a68ee5dc0
2021-03-30 15:24:16 +00:00