summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement partial canonical Burst in NN util codeMichael Butler2021-01-1914-10/+400
| | | | | | | | | | | | | | | | | This CL adds a simple implementation of IBurst that dispatches calls to an IPreparedModel object and changes IPreparedModel::configureExecutionBurst to return this new object (instead of returning an error). This CL additionally defines an InvalidBurst class that returns errors whenever it is used and a ResilientBurst class to recover an IBurst object when it has died. Bug: 177267324 Test: mma Change-Id: I4c7e7ff4e6559aeb5e62c4fa02f2e751fef9d87d Merged-In: I4c7e7ff4e6559aeb5e62c4fa02f2e751fef9d87d (cherry picked from commit 44f324fb0d89ed896c9b0566ea632bddcfe69439)
* Introduce canonical IBurst object in NNAPI -- halMichael Butler2021-01-1911-0/+34
| | | | | | | | | | | | | A sibling change to this change introduces a canonical IBurst object and a new method IPreparedModel::configureExecutionBurst. This CL performs minimal changes to the NN hal utility code to make the code still compile. Bug: 177267324 Test: mma Change-Id: I076067289dde7def5622a6cb25233619f80efa41 Merged-In: I076067289dde7def5622a6cb25233619f80efa41 (cherry picked from commit b6a7ed5d5fd45828643429fbfe015fe3a8054ef1)
* Add isUpdatable to NNAPI canonical IDevice -- halMichael Butler2021-01-1913-6/+41
| | | | | | | | Bug: 177284207 Test: mma Change-Id: I580d5325be91f566ee1c591736a87a94d0a74315 Merged-In: I580d5325be91f566ee1c591736a87a94d0a74315 (cherry picked from commit 080fbf755c48a944586ecd739f02570b7aa611ee)
* Merge "update connect status along with stream_configuration_change event."Henry Fang2021-01-151-2/+12
|\
| * update connect status along with stream_configuration_change event.Henry Fang2021-01-081-2/+12
| | | | | | | | | | | | bug: 142698113 Test: Manual Change-Id: Ieab767bb333bbe4ba24702668908edec69240d8d
* | Merge "[Telephony] Implement PhysicalChannelConfig in HAL 1.6"Treehugger Robot2021-01-154-0/+95
|\ \
| * | [Telephony] Implement PhysicalChannelConfig in HAL 1.6Zoey Chen2021-01-154-0/+95
| | | | | | | | | | | | | | | | | | | | | Bug: 169206279 Test: make and VtsHalRadioV1_6Target Change-Id: I4352ea928a76197aae01b887960eaed05698e3eb Merged-In: I4352ea928a76197aae01b887960eaed05698e3eb
* | | Merge "Audio: Add VTS tests for invalid enum-strings, Part 3"Treehugger Robot2021-01-153-16/+169
|\ \ \ | |/ / |/| |
| * | Audio: Add VTS tests for invalid enum-strings, Part 3Mikhail Naganov2021-01-123-16/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge changes from topic "secclock_sharedkey"Janis Danisevskis2021-01-1411-0/+422
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | | The aidl definition for Shared Secret functionality.Chirag Pathak2021-01-135-0/+225
| | | | | | | | | | | | | | | | | | | | | | | | Test: N/A Bug: b/171844725 Change-Id: I5f6217d487df89e8ceab92eb2bea55de5bace141
| * | | Add Shared Secret to the compatibility matrix.Joel Galenson2021-01-131-0/+7
| | | | | | | | | | | | | | | | | | | | Test: Build Change-Id: Iadac3b304a9b8eba69f6fb2fe7aec41f7200a613
| * | | The aidl definition for Secure Clock keymint service.Chirag Pathak2021-01-135-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: N/A Bug: b/168673523 Change-Id: I6134d8b4ce620ecceccc0ea88a234f01e6915798
| * | | Add Secure Clock to the compatibility matrix.Joel Galenson2021-01-121-0/+7
| | | | | | | | | | | | | | | | | | | | Test: Build Change-Id: I570f7535add92d98b4e129ec5478859d648db23a
* | | | Merge "Update supported sampling frequencies for LC3 codec"Treehugger Robot2021-01-143-24/+25
|\ \ \ \
| * | | | Update supported sampling frequencies for LC3 codecGrzegorz Kołodziejczyk2021-01-123-24/+25
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Update docs that pdu session id default is 0"Treehugger Robot2021-01-131-1/+1
|\ \ \ \
| * | | | Update docs that pdu session id default is 0Daniel Bright2021-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 177387230 Test: N/A Change-Id: I07eab03934cc0890236a12cfeec5802a75da4abd
* | | | | Change KeyCharacteristicsShawn Willden2021-01-1236-423/+497
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Audio: Add VTS tests for invalid enum-strings, Part 2"Treehugger Robot2021-01-123-61/+134
|\ \ \ \ | | |/ / | |/| |
| * | | Audio: Add VTS tests for invalid enum-strings, Part 2Mikhail Naganov2021-01-083-61/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add authsecret AIDL interfaceChengYou Ho2021-01-1212-0/+372
| | | | | | | | | | | | | | | | | | | | Bug: 176107318 Change-Id: Ia430177018344b093fea3314eb54ef2423fbf636
* | | | Gate gsm/cdma radio feature only for emergency dialShuo Qian2021-01-112-6/+13
| |/ / |/| | | | | | | | | | | | | | Test: vts Bug: 176862267 Change-Id: I73a6920a94f2f703dc6ae19ad9a511673c9d035d
* | | Merge "Fixed incorrect retry timer value type"Treehugger Robot2021-01-111-1/+1
|\ \ \
| * | | Fixed incorrect retry timer value typeJack Yu2021-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge changes I2c79865b,Idfe8093cMichael Butler2021-01-1135-15/+6713
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Create unit tests for NN interface utility code Add recovery code to NN ResilientPreparedModel and *Buffer
| * | | | Create unit tests for NN interface utility codeMichael Butler2021-01-0830-0/+6600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 afc4d7cfe753669b08562eba8f58cbceefed334f)
| * | | | Add recovery code to NN ResilientPreparedModel and *BufferMichael Butler2021-01-085-15/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 667dc2dcacba5341a79ac520ce712d2ce4cae1cc)
* | | | | Add oemlock AIDL interfaceChengYou Ho2021-01-0914-0/+569
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 176107318 Change-Id: Ibcf0934f7a86379318ef55ad2117c9be3200b629
* | | | | Merge changes from topic "revert-1540633-DNRXHDZSUB"Treehugger Robot2021-01-082-2/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Revert "matrix: IVibrator AIDL has version 2." Revert "Update AIDL IVibrator manifest version to 2."
| * | | | | Revert "matrix: IVibrator AIDL has version 2."Yifan Hong2021-01-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | Revert "Update AIDL IVibrator manifest version to 2."Yifan Hong2021-01-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Add method for testing lazy HALs active services count callback."Amos Bianchi2021-01-081-1/+9
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Add method for testing lazy HALs active services count callback.Amos Bianchi2021-01-071-1/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 176240491 Test: atest hidl_lazy_test Change-Id: I2db4fa62fac725fc4943678e0d8aa89c9f411350
* | | | | Merge "Skip emergency dialing VTS if device doesn't support radio"Shuo Qian2021-01-082-0/+11
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Skip emergency dialing VTS if device doesn't support radioShuo Qian2021-01-072-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: vts Bug: 176862267 Change-Id: I9e72ba5cf6cb118cd68f753355f4119d33fe0019
* | | | | Update KM4.1 ownersShawn Willden2021-01-083-1/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib7e0d3aead2a220c8161d7b4af471116f9ffa93f
* | | | | Audio: Add VTS tests for invalid enum-strings, Part 1bMikhail Naganov2021-01-075-17/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Audio: Add VTS tests for invalid enum-strings, Part 1"Mikhail Naganov2021-01-0822-325/+991
|\ \ \ \ \
| * | | | | Audio: Add VTS tests for invalid enum-strings, Part 1Mikhail Naganov2021-01-0722-325/+991
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Identity Credential: Switch default implementation to use libeic."David Zeuthen2021-01-0724-614/+3760
|\ \ \ \ \ \
| * | | | | | Identity Credential: Switch default implementation to use libeic.David Zeuthen2021-01-0524-614/+3760
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Merge "audio HAL V7: Update track metadata"Treehugger Robot2021-01-0710-37/+220
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | / / / | |_|_|/ / / |/| | | | |
| * | | | | audio HAL V7: Update track metadataEric Laurent2021-01-0510-37/+220
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Update AIDL IVibrator manifest version to 2.Yifan Hong2021-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: vts_treble_vintf_test Bug: 150034914 Change-Id: I418cd4fc5323bb785e42b9e47ec6c0d2bb449975
* | | | | matrix: IVibrator AIDL has version 2.Yifan Hong2021-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: builds Bug: 150034914 Change-Id: I08b4b189dbf811ee866a9fbc3f0f207e19e8f764
* | | | | Update AIDL identity manifest version to 2.Yifan Hong2021-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: vts_treble_vintf_test Bug: 150034914 Change-Id: I1f31aa015af61845855f7985188267fc35d29c1e
* | | | | matrix: identity AIDL has version 2.Yifan Hong2021-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: builds Bug: 150034914 Change-Id: I041cc5c1dfb7b812d38a7a516276630d2f804875
* | | | | Merge "Android S: deprecate android.hardware.vr."Sam Saccone2021-01-061-8/+0
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Android S: deprecate android.hardware.vr.Steven Moreland2021-01-061-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This HAL is no longer needed/used. Fixes: 176826409 Test: build (checks manifests) Change-Id: I1437a40ecce688bf67b3cbca7d3a8b549bf20f69