Commit graph

21459 commits

Author SHA1 Message Date
Anthony Stange
91b3dced0f V2: Create Multi-HAL 2.1 service am: 199b5ff96a
Change-Id: Ibfd005e49e0754daf757f4db1b6154760a55b04d
2020-04-30 21:51:20 +00:00
Anthony Stange
56f6c459df V2: Set up Multi-HAL for Sensors HAL 2.1 am: 33acf9fb3a
Change-Id: I5de7348d33466bcfb8da450c57472327aafd7772
2020-04-30 21:51:18 +00:00
Anthony Stange
199b5ff96a V2: Create Multi-HAL 2.1 service
Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: I275274659816b3a00374fb0b7a93f199874afdcd
2020-04-30 08:45:19 -04:00
Anthony Stange
33acf9fb3a V2: Set up Multi-HAL for Sensors HAL 2.1
Bug: 149758467
Test: Load onto device and verify VTS passes
Test: Verify new fake subhals load properly and that unit tests pass
that have been updated in this topic

Change-Id: Ie73458b3447dab80f6b692e55832ef562636bfdb
2020-04-30 08:45:19 -04:00
Amy Zhang
b311b094eb Merge "Refactoring the Dvr data flow tests in the Tuner VTS" into rvc-dev am: 5a49885b8c
Change-Id: I411b4c03bdc5f92b7117081ac7c1f7d4c47d27f0
2020-04-30 00:17:21 +00:00
David Zeuthen
dfb820cd8d Merge "Identity Credential: Pass additional information to HAL." am: 75bea4b6dc am: 560188e55c
Change-Id: I984a6319e0c2fde1de1079cd9d863f34d974cc14
2020-04-30 00:00:23 +00:00
Amy Zhang
5a49885b8c Merge "Refactoring the Dvr data flow tests in the Tuner VTS" into rvc-dev 2020-04-29 23:58:12 +00:00
David Zeuthen
560188e55c Merge "Identity Credential: Pass additional information to HAL." am: 75bea4b6dc
Change-Id: Ice9ee0f3bb899fd9eb3917a5431d80458bd794fe
2020-04-29 23:47:43 +00:00
David Zeuthen
75bea4b6dc Merge "Identity Credential: Pass additional information to HAL." 2020-04-29 23:41:41 +00:00
Nick Chalko
68bf7e87b3 Merge changes from topic "revert-10501254-multihal_2_1-FNHFKNQMKB" into rvc-dev am: 7a63ec7734
Change-Id: Ic95046c31867bcda12ab27c0870907fb0109afab
2020-04-29 23:00:34 +00:00
Nick Chalko
7a63ec7734 Merge changes from topic "revert-10501254-multihal_2_1-FNHFKNQMKB" into rvc-dev
* changes:
  Revert "Set up Multi-HAL for Sensors HAL 2.1"
  Revert "Create Multi-HAL 2.1 service"
  Revert "Update tests for multihal to test HAL 2.1"
2020-04-29 22:46:09 +00:00
Nick Chalko
cd5d437ae9 Revert "Set up Multi-HAL for Sensors HAL 2.1"
Revert submission 10501254-multihal_2_1



Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I21176759d45972cde3221cb462934fc1d7bd88c2
2020-04-29 22:21:25 +00:00
Nick Chalko
6691d85d0b Revert "Create Multi-HAL 2.1 service"
Revert submission 10501254-multihal_2_1



Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I5e828d1dfd4f9ede5cbd38ff8bc4cc5dc48e4d76
2020-04-29 22:20:59 +00:00
Nick Chalko
f4b5b40b4a Revert "Update tests for multihal to test HAL 2.1"
Revert submission 10501254-multihal_2_1

Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I8b97eb29633cf24f464d742770256791108c27dd
2020-04-29 22:13:29 +00:00
David Anderson
5e77ed6015 Merge "boot: Relax getSnapshotMergeStatus test." am: f32d41bd11 am: f2a0c5be2b
Change-Id: I8532e12351470e1aa5fc8ea3d0578f9112610ba9
2020-04-29 21:24:02 +00:00
David Anderson
f2a0c5be2b Merge "boot: Relax getSnapshotMergeStatus test." am: f32d41bd11
Change-Id: I0c47169714b65f0d5fdc288abc29b2cc4906a6a2
2020-04-29 21:13:26 +00:00
TreeHugger Robot
e5f735df7d Merge changes from topic "multihal_2_1" into rvc-dev am: 89b216690c
Change-Id: I3d5bc424d10777f37fb66b6023f4d822afcfea7a
2020-04-29 21:03:43 +00:00
TreeHugger Robot
32d96a1852 Merge "Remove non-test ScopedWakelock dependency" into rvc-dev am: 24087f1219
Change-Id: I9f5da262411ec143ba3da9da0e5734d96dfa53b9
2020-04-29 21:02:58 +00:00
David Anderson
f32d41bd11 Merge "boot: Relax getSnapshotMergeStatus test." 2020-04-29 20:59:10 +00:00
TreeHugger Robot
89b216690c Merge changes from topic "multihal_2_1" into rvc-dev
* changes:
  Update tests for multihal to test HAL 2.1
  Create Multi-HAL 2.1 service
  Set up Multi-HAL for Sensors HAL 2.1
2020-04-29 20:56:30 +00:00
TreeHugger Robot
24087f1219 Merge "Remove non-test ScopedWakelock dependency" into rvc-dev 2020-04-29 20:46:46 +00:00
David Zeuthen
28edb10334 Identity Credential: Pass additional information to HAL.
Without this extra information passed upfront it's not practical to
implement a HAL which incrementally builds up cryptographically
authenticated data.

Two new methods are added to facilitate this and the HAL version
number is bumped to 2.

Bug: 154631410
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: Iff63dfa2c4485c8768e06e7f6d70e940cfc8f68e
2020-04-29 14:27:18 -04:00
Hayden Gomes
d3c5c2b435 Merge "Fix AudioControl@2.0 fade check" into rvc-dev am: 331370012d
Change-Id: I0e1ac7b0c3b6964d70c63c04aa20c98e7cf75734
2020-04-29 17:48:30 +00:00
Hayden Gomes
331370012d Merge "Fix AudioControl@2.0 fade check" into rvc-dev 2020-04-29 17:27:32 +00:00
Anthony Stange
67888489ce Update tests for multihal to test HAL 2.1
Updates tests and fake subhals to support Multi-HAL 2.1 to make
on-device testing feasible.

Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: I2be51568ba8dd99aa0588b8945d3d41bda7d9941
2020-04-29 11:25:26 -04:00
Stan Rokita
99a9a529ba Remove non-test ScopedWakelock dependency
Unit tests were depending on a non test library unecesarrily and it was
causing unit test build failure.

Fixes: 155239061
Test: atest android.hardware.sensors@2.0-halproxy-unit-tests
Change-Id: I057a432fdbef93680a67558c27ed7adc7fedfbbc
2020-04-28 18:31:46 -07:00
David Anderson
f0fbfdd1b4 boot: Relax getSnapshotMergeStatus test.
The SNAPSHOTTED state is allowed to be NONE if the slot hasn't changed,
to avoid needing extra snapshot cancels in the bootloader.

Bug: 154449745
Test: vts
Change-Id: Ibcb9f18f535cdcb5aae7e2c9c01e03681dbfff13
2020-04-29 00:48:38 +00:00
Hayden Gomes
908a0a2d6b Fix AudioControl@2.0 fade check
Fade now checks isValidValue rather than !isValidValue

Bug: 155225937
Test: built ran and adjusted fade
Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
2020-04-28 15:12:19 -07:00
Amy Zhang
a305c1c58c Refactoring the Dvr data flow tests in the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Change-Id: I496dccd9dddcf6043c05faee6fbe1f0418586bc4
2020-04-28 15:00:38 -07:00
Anthony Stange
82f8d46691 Create Multi-HAL 2.1 service
Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: Id5ab7b606f91764a456d8e3a16f7f0f2cf9b4fef
2020-04-28 17:49:02 -04:00
Anthony Stange
bc20e5c2a3 Set up Multi-HAL for Sensors HAL 2.1
Bug: 149758467
Test: Load onto device and verify VTS passes
Test: Verify new fake subhals load properly and that unit tests pass
that have been updated in this topic

Change-Id: Icefae8c1261b29d704beedd51de5b3f53b374cc4
2020-04-28 17:48:59 -04:00
Bob Badour
00e38d4009 Remove MODULE_LICENSE_APACHE2 from interfaces am: 79f8151045 am: 2084a4095b
Change-Id: Ic46c034339b35fde45c97cf9f038a73daf0ae523
2020-04-28 20:39:47 +00:00
Bob Badour
2084a4095b Remove MODULE_LICENSE_APACHE2 from interfaces am: 79f8151045
Change-Id: Id64d7152b2e1ba1f3c6d253344e1ac3b7ebc1d3f
2020-04-28 20:24:06 +00:00
TreeHugger Robot
740f84aaef Merge "vts camera characteristtics: add tests for system camera restrictions." into rvc-dev am: 253be8a6b4
Change-Id: I0b3b23dc80ee32fa8c5614490887c0f349c3319e
2020-04-28 19:30:48 +00:00
TreeHugger Robot
253be8a6b4 Merge "vts camera characteristtics: add tests for system camera restrictions." into rvc-dev 2020-04-28 19:18:34 +00:00
Jayant Chowdhary
7612f161a7 vts camera characteristtics: add tests for system camera restrictions.
The system camera kind of physical cameras which are public, should be the same as the
system camera kind of the logical cameras they back.

The system camera kinds of all logical cameras that share the same
hidden physical cameras must be the same.

Bug: 152053830

Test: VtsHalCameraProviderV2_4TargetTest
      --gtest_filter=PerInstance/CameraHidlTest.getCameraCharacter*

Test: VtsHalCameraProviderV2_4TargetTest
      --gtest_filter=PerInstance/CameraHidlTest.systemCamera*

Change-Id: Iba07a6aa4a5fb465e9e0c4d0adedf6becaba7d14
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-04-28 10:32:06 -07:00
Devin Moore
d8d64ae809 Merge "Convert Python OMX VTS test to Gtest" into rvc-dev am: 5254086ccc
Change-Id: I14c54ed900fc1caf11816da956c87ebc0ba2a198
2020-04-28 15:51:48 +00:00
Devin Moore
5254086ccc Merge "Convert Python OMX VTS test to Gtest" into rvc-dev 2020-04-28 15:36:56 +00:00
Bob Badour
79f8151045 Remove MODULE_LICENSE_APACHE2 from interfaces
Repositories containing third-party code need a METADATA and a
license_type. Repositories containing only first-party code no longer
need a MODULE_LICENSE_* file.

Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: I1b35928d82dfd8ac6429bf6a98f18a256fa6298c
2020-04-27 20:44:19 -07:00
Devin Moore
5bd2a350ad Convert Python OMX VTS test to Gtest
Moving the extra tests from
test/vts-testcase/hal/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
to the OMX Gtest in VtsHalMediaOmxV1_0TargetMasterTest.

This is mostly validating the RoleInfo and NodeInfo data obtained from
IOmxStore interface.

Bug: 152237762
Test: atest VtsHalMediaOmxV1_0TargetMasterTest on cf and pixel devices
Change-Id: I8174b8953ee5e484777afb21b2d170cec0159edc
2020-04-27 18:42:59 -07:00
David Zeuthen
fb9bffe0f7 Identity Credential: Restrict AccessControlProfile identifiers to 32. am: a0796e98c2 am: b1b0175138
Change-Id: I81dac45583c3224110dc5188b66ecc53585fcb35
2020-04-28 00:21:11 +00:00
David Zeuthen
b1b0175138 Identity Credential: Restrict AccessControlProfile identifiers to 32. am: a0796e98c2
Change-Id: Ic7f60ca5d1ec9e2eda2bd095ebd98c462f42ab27
2020-04-28 00:05:43 +00:00
TreeHugger Robot
f959dfd73a Merge "Identity Credential: Restrict AccessControlProfile identifiers to 32." into rvc-dev am: 17c8d7c043
Change-Id: I3b04b9b6e37b4bc50a44ffea18f9215ac14c199d
2020-04-27 21:58:17 +00:00
TreeHugger Robot
17c8d7c043 Merge "Identity Credential: Restrict AccessControlProfile identifiers to 32." into rvc-dev 2020-04-27 21:47:01 +00:00
Hall Liu
519bb589f5 Merge "Allow android.hardware.radio 1.4 for R" into rvc-dev am: 6fa742d6c5
Change-Id: I413b54271d874fe348a6eea519e333cc23fa005a
2020-04-27 21:10:35 +00:00
Hall Liu
6fa742d6c5 Merge "Allow android.hardware.radio 1.4 for R" into rvc-dev 2020-04-27 20:56:02 +00:00
David Zeuthen
602753593e Identity Credential: Restrict AccessControlProfile identifiers to 32.
In order to implement Identity Credential on resource-restricted
secure hardware, we need to limit the number of possible
AccessControlProfile in a credential. A limit of 32 means that such
hardware only need to devote four bytes of RAM for a bitmask with
information about which profiles are authorized.

Document this, add new VTS test, and update the default
implementation.

Bug: 155100967
Test: atest android.security.identity.cts
Test: atest VtsHalIdentityTargetTest
Merged-In: Ia4f2ee0013b330561df744e0595f298a0d156122
Change-Id: I2dd672447bedfa9407bf1044e6261af26fd137f9
2020-04-27 16:03:36 -04:00
TreeHugger Robot
d529e419dc Merge "Moved emulated User HAL capabilities into a library." into rvc-dev am: d2115c9876
Change-Id: I826c03b06e92c8e21da820b2226de78ad0aea1e3
2020-04-27 19:41:04 +00:00
David Zeuthen
a0796e98c2 Identity Credential: Restrict AccessControlProfile identifiers to 32.
In order to implement Identity Credential on resource-restricted
secure hardware, we need to limit the number of possible
AccessControlProfile in a credential. A limit of 32 means that such
hardware only need to devote four bytes of RAM for a bitmask with
information about which profiles are authorized.

Document this, add new VTS test, and update the default
implementation.

Bug: 155100967
Test: atest android.security.identity.cts
Test: atest VtsHalIdentityTargetTest
Change-Id: Ia4f2ee0013b330561df744e0595f298a0d156122
2020-04-27 15:28:27 -04:00
TreeHugger Robot
d2115c9876 Merge "Moved emulated User HAL capabilities into a library." into rvc-dev 2020-04-27 19:23:12 +00:00