Commit graph

26942 commits

Author SHA1 Message Date
ChengYou Ho
3f2b38db9a Add OWNERS file for authsecret
Bug: 176107318
Change-Id: I639d4f6e643070f4e953eeb341fa1a7796398425
2021-01-20 04:12:10 +08:00
Shuo Qian
89d91f8064 Merge "Add REQUEST_NOT_SUPPORTED in case 5G RAN is not supported in the device" 2021-01-19 19:29:37 +00:00
sqian
763b144799 Add REQUEST_NOT_SUPPORTED in case 5G RAN is not supported in the device
Test: vts
Bug: 177215423
Change-Id: I35f09c0b8e22eb9464c0ca1c11225f62d1916286
2021-01-15 22:07:19 +00:00
Henry Fang
1c15423de7 Merge "update connect status along with stream_configuration_change event." 2021-01-15 19:41:53 +00:00
Treehugger Robot
8f74b34e1d Merge "[Telephony] Implement PhysicalChannelConfig in HAL 1.6" 2021-01-15 19:30:57 +00:00
Treehugger Robot
b1726c6619 Merge "Audio: Add VTS tests for invalid enum-strings, Part 3" 2021-01-15 18:04:49 +00:00
Zoey Chen
e47a5164d8 [Telephony] Implement PhysicalChannelConfig in HAL 1.6
Bug: 169206279
Test: make and VtsHalRadioV1_6Target
Change-Id: I4352ea928a76197aae01b887960eaed05698e3eb
Merged-In: I4352ea928a76197aae01b887960eaed05698e3eb
2021-01-15 16:08:38 +08:00
Janis Danisevskis
600b7775ef Merge changes from topic "secclock_sharedkey"
* changes:
  The aidl definition for Shared Secret functionality.
  Add Shared Secret to the compatibility matrix.
  The aidl definition for Secure Clock keymint service.
  Add Secure Clock to the compatibility matrix.
2021-01-14 18:04:02 +00:00
Treehugger Robot
05f6611663 Merge "Update supported sampling frequencies for LC3 codec" 2021-01-14 17:44:45 +00:00
Chirag Pathak
be15180242 The aidl definition for Shared Secret functionality.
Test: N/A
Bug: b/171844725
Change-Id: I5f6217d487df89e8ceab92eb2bea55de5bace141
2021-01-13 15:30:05 -08:00
Joel Galenson
2570af6b96 Add Shared Secret to the compatibility matrix.
Test: Build
Change-Id: Iadac3b304a9b8eba69f6fb2fe7aec41f7200a613
2021-01-13 15:30:05 -08:00
Chirag Pathak
c160ae682e The aidl definition for Secure Clock keymint service.
Test: N/A
Bug: b/168673523

Change-Id: I6134d8b4ce620ecceccc0ea88a234f01e6915798
2021-01-13 15:29:53 -08:00
Treehugger Robot
b3b0b11de3 Merge "Update docs that pdu session id default is 0" 2021-01-13 23:28:38 +00:00
Daniel Bright
a786319a56 Update docs that pdu session id default is 0
Bug: 177387230
Test: N/A
Change-Id: I07eab03934cc0890236a12cfeec5802a75da4abd
2021-01-13 13:18:52 -08:00
Shawn Willden
7f42437ebb Change KeyCharacteristics
Support key characteristics with three security levels, do not store
unenforced authorizations with keys or bind them to keys.

Bug: 163606833
Test: atest VtsAidlKeyMintTargetTest
Change-Id: Idbc523f16d8ef66ec38e0d503ad579a93c49e7b4
2021-01-12 22:15:21 -07:00
Mikhail Naganov
4ffb092362 Audio: Add VTS tests for invalid enum-strings, Part 3
Add checks for rejection of invalid port configs.
Fix the default implementation to pass the tests.

Clarified that patch-related operations in IDevice
are optional.

Bug: 142480271
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
      with side-loaded V7 default wrapper
Change-Id: I08e85d4883938b4d8f3c411be9fb1bd597eea0c2
2021-01-12 15:34:45 -08:00
Joel Galenson
4faf8b63a4 Add Secure Clock to the compatibility matrix.
Test: Build
Change-Id: I570f7535add92d98b4e129ec5478859d648db23a
2021-01-12 13:30:39 -08:00
Grzegorz Kołodziejczyk
103d790df8 Update supported sampling frequencies for LC3 codec
LC3 specification extends current supported sampling frequencies with
8kHz and 32kHz for LC3 codec for session and does not support yet higher
than 48kHz.
Along with additional supported session frequencies, valid software pcm
configuration is extended with missing frequencies for LC3 and extended
8kHz and 32kHz. Frequncies above not supported by LC3 are removed also.

Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Change-Id: If36c9c9aa102008adff7f77c58e272b79f7e2482
2021-01-12 15:45:53 +00:00
Treehugger Robot
46f91823cf Merge "Audio: Add VTS tests for invalid enum-strings, Part 2" 2021-01-12 09:59:04 +00:00
ChengYou Ho
112fab25fc Add authsecret AIDL interface
Bug: 176107318
Change-Id: Ia430177018344b093fea3314eb54ef2423fbf636
2021-01-12 06:01:29 +00:00
Shuo Qian
80b03d7bf2 Gate gsm/cdma radio feature only for emergency dial
Test: vts
Bug: 176862267
Change-Id: I73a6920a94f2f703dc6ae19ad9a511673c9d035d
2021-01-11 22:39:09 +00:00
Treehugger Robot
a3cc90b1c3 Merge "Fixed incorrect retry timer value type" 2021-01-11 18:54:53 +00:00
Michael Butler
8be4b590cf Merge changes I2c79865b,Idfe8093c
* changes:
  Create unit tests for NN interface utility code
  Add recovery code to NN ResilientPreparedModel and *Buffer
2021-01-11 18:20:41 +00:00
Mikhail Naganov
0dbf3982af Audio: Add VTS tests for invalid enum-strings, Part 2
Add checks for rejection of invalid device addresses
and base configs.

Bug: 142480271
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
      with side-loaded V7 default wrapper
Change-Id: I39690f2a171c1be6246ab155dec8e2b1a405a2a8
2021-01-08 17:51:24 -08:00
ChengYou Ho
109522c0d1 Add oemlock AIDL interface
Bug: 176107318
Change-Id: Ibcf0934f7a86379318ef55ad2117c9be3200b629
2021-01-09 08:13:53 +08:00
Treehugger Robot
f504e514c4 Merge changes from topic "revert-1540633-DNRXHDZSUB"
* changes:
  Revert "matrix: IVibrator AIDL has version 2."
  Revert "Update AIDL IVibrator manifest version to 2."
2021-01-08 23:03:01 +00:00
Amos Bianchi
88c14d2b14 Merge "Add method for testing lazy HALs active services count callback." 2021-01-08 21:30:45 +00:00
Yifan Hong
6135189a29 Revert "matrix: IVibrator AIDL has version 2."
Revert submission 1540633

Reason for revert: AOSP not updated yet
Reverted Changes:
I418cd4fc5:Update AIDL IVibrator manifest version to 2.
I08b4b189d:matrix: IVibrator AIDL has version 2.

Change-Id: I429faacf309aa61aa044d72b873e23ba25ed5bca
2021-01-08 21:09:18 +00:00
Yifan Hong
9e8fe956f6 Revert "Update AIDL IVibrator manifest version to 2."
Revert submission 1540633

Reason for revert: AOSP not updated yet
Reverted Changes:
I418cd4fc5:Update AIDL IVibrator manifest version to 2.
I08b4b189d:matrix: IVibrator AIDL has version 2.

Change-Id: I1cc5ab201e079a09c4db2667207c856ff56b0988
2021-01-08 21:09:18 +00:00
Michael Butler
6e492a62e1 Create unit tests for NN interface utility code
This CL introduces unit tests to validate the V1_X::utils::Device,
*PreparedModel, and *Buffer adapter classes. It does so by mocking the
underlying HIDL interface in order to simulate a driver returning bad
data, HIDL transport failures, and service crashes.

Note that the purpose of these new tests is to validate the adapter
classes themselves, not the HIDL interfaces they use. For example,
because nn::IPreparedModel does not currently define a method for
configuring a burst execution, V1_[23]::utils::PreparedModel similarly
does not use hardware::neuralnetworks::V1_[23]::IPreparedModel's
configureExecutionBurst method.

This CL also introduces unit tests to validate the utils::Resilient*
adapter classes, and mocks DEAD_OBJECT failures to ensure that the
underyling object can be recovered appropriately.

Bug: 163801800
Test: mma
Test: atest neuralnetworks_utils_hal_common_test
Test: atest neuralnetworks_utils_hal_1_[0-3]_test
Change-Id: I2c79865bf666d3f4bf53061ff5090746403583e9
Merged-In: I2c79865bf666d3f4bf53061ff5090746403583e9
(cherry picked from commit afc4d7cfe7)
2021-01-08 12:07:43 -08:00
Michael Butler
418c749746 Add recovery code to NN ResilientPreparedModel and *Buffer
Prior to this CL, ResilientPreparedModel and ResilientBuffer were
passthrough interfaces that just forwarded calls to the underlying
interface object. This CL implements the full recovery mechanism for
these two classes. However, because we do not want to enable this
functionality in the NN runtime yet, ResilientDevice hides the paths
that create ResilientPreparedModel and ResilientBuffer behind an #if
until we want to enable those paths.

Bug: N/A
Test: mma
Change-Id: Idfe8093c63c7ba2f16c995eec872d150696e7a08
Merged-In: Idfe8093c63c7ba2f16c995eec872d150696e7a08
(cherry picked from commit 667dc2dcac)
2021-01-08 12:07:20 -08:00
Henry Fang
64a3a731c2 update connect status along with stream_configuration_change event.
bug: 142698113
Test: Manual
Change-Id: Ieab767bb333bbe4ba24702668908edec69240d8d
2021-01-08 11:38:26 -08:00
Shuo Qian
e0a858b1d5 Merge "Skip emergency dialing VTS if device doesn't support radio" 2021-01-08 19:24:47 +00:00
Shawn Willden
e21ce63ba6 Update KM4.1 owners
Change-Id: Ib7e0d3aead2a220c8161d7b4af471116f9ffa93f
2021-01-08 15:57:56 +00:00
Jack Yu
fd8ff812b3 Fixed incorrect retry timer value type
Since negative values indicates network did not suggest
data retry timer, the type should be signed instead of
unsigned.

Test: Manual
Fix: 159672248
Change-Id: Ibda126c7db6b7e1fef9323d4b2aace37ca13ebc1
2021-01-07 23:21:46 -08:00
Mikhail Naganov
9139399bad Audio: Add VTS tests for invalid enum-strings, Part 1b
Add missing checks for invalid channel mask and tags
in playback and record metadata. Fix the behavior of
the default wrapper.

Bug: 142480271
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
      with side-loaded V7 default wrapper
Change-Id: Ie0f82b2becc457b735349eb351ea29989a64f22c
2021-01-07 18:35:11 -08:00
Mikhail Naganov
254903f8fd Merge "Audio: Add VTS tests for invalid enum-strings, Part 1" 2021-01-08 00:14:42 +00:00
David Zeuthen
8f4cc703f9 Merge "Identity Credential: Switch default implementation to use libeic." 2021-01-07 22:58:50 +00:00
Treehugger Robot
88a2210fc4 Merge "audio HAL V7: Update track metadata" 2021-01-07 21:52:06 +00:00
Amos Bianchi
5a58e9bf9b Add method for testing lazy HALs active services count callback.
Bug: 176240491
Test: atest hidl_lazy_test

Change-Id: I2db4fa62fac725fc4943678e0d8aa89c9f411350
2021-01-07 13:44:21 -08:00
Shuo Qian
628a335326 Skip emergency dialing VTS if device doesn't support radio
Test: vts
Bug: 176862267
Change-Id: I9e72ba5cf6cb118cd68f753355f4119d33fe0019
2021-01-07 18:56:25 +00:00
Mikhail Naganov
3f1457b953 Audio: Add VTS tests for invalid enum-strings, Part 1
Add tests that try passing invalid enum-string values to HAL
methods taking enum-strings. Fix issues found in the default
wrapper.

Interface updates:

- Update AudioConfig structure to indicate whether
  AudioOffloadInfo is specified.

- Add return value to IStreamIn.updateSinkMetadata
  and IStreamOut.updateSourceMetadata to provide indication
  of invalid arguments.

- Specify the behavior of IDevice.open{Input|Output}Stream
  in the case of invalid arguments vs. rejected config.

Bug: 142480271
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
      with side-loaded V7 default wrapper
Change-Id: I6bd7be3869cc7a8d5d00506565bbf0b3a050b630
2021-01-07 10:32:06 -08:00
Yifan Hong
add7761be6 Update AIDL IVibrator manifest version to 2.
Test: vts_treble_vintf_test
Bug: 150034914
Change-Id: I418cd4fc5323bb785e42b9e47ec6c0d2bb449975
2021-01-06 16:31:39 -08:00
Yifan Hong
355f0ceabd matrix: IVibrator AIDL has version 2.
Test: builds
Bug: 150034914
Change-Id: I08b4b189dbf811ee866a9fbc3f0f207e19e8f764
2021-01-06 16:31:39 -08:00
Yifan Hong
af89f5efca Update AIDL identity manifest version to 2.
Test: vts_treble_vintf_test
Bug: 150034914
Change-Id: I1f31aa015af61845855f7985188267fc35d29c1e
2021-01-06 16:31:39 -08:00
Yifan Hong
d86a89c53b matrix: identity AIDL has version 2.
Test: builds
Bug: 150034914
Change-Id: I041cc5c1dfb7b812d38a7a516276630d2f804875
2021-01-06 16:31:39 -08:00
Sam Saccone
55ac62f92d Merge "Android S: deprecate android.hardware.vr." 2021-01-06 19:39:20 +00:00
Steven Moreland
7250fba9b4 Android S: deprecate android.hardware.vr.
This HAL is no longer needed/used.

Fixes: 176826409
Test: build (checks manifests)
Change-Id: I1437a40ecce688bf67b3cbca7d3a8b549bf20f69
2021-01-06 02:10:46 +00:00
David Zeuthen
630de2a93e Identity Credential: Switch default implementation to use libeic.
Introduce platform-neutral C library ("libeic") which can be used to
implement an Identity Credential Trusted Application/Applet in Secure
Hardware.

The libeic library is intentionally low-level, has no dependencies
(not even libc), uses very little run-time memory (less than 500 bytes
during a provisioning or presentation session), and doesn't
dynamically allocate any memory. Crypto routines are provided by the
library user through a simple crypto interface defined in EicOps.

Also provide an Android-side HAL implementation designed to
communicate with libeic running in Secure Hardware outside
Android. Abstract out communications between HAL and TA in a couple of
SecureHardwareProxy* classes which mimic libeic 1:1.

The default implementation of the HAL is a combination of the
aforementioned HAL using libeic in-process backed by BoringSSL for the
crypto bits.

Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Bug: 170146643
Change-Id: I3bf43fa7fd9362f94023052591801f2094a04607
2021-01-05 18:30:59 -05:00
Eric Laurent
daedb0dc2e audio HAL V7: Update track metadata
Add channel mask and audio attributes tags to playback
and record track metadata sent to audio HAL.

The legacy HAL wrapper supports older legacy HAL versions
by sending partial metadata when the legay HAL version is
less than 3.2.

Bug: 168751366
Test: make
Change-Id: Iba3ee3b669e4300201374d4a0d5cf45a04872274
Merged-In: Iba3ee3b669e4300201374d4a0d5cf45a04872274
2021-01-05 12:50:40 -08:00