Commit Graph

21439 Commits

Author SHA1 Message Date
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
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
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
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
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
David Zeuthen
afd93d52a5 [automerger skipped] Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." into rvc-dev am: c94901552b -s ours
am skip reason: Change-Id I51902681776c6230e49589fc75a8145e79d7d1a6 with SHA-1 92b61d650f is in history

Change-Id: Ie13db6ddaed7567d32cc116fb7e6e506dd3f1321
2020-04-27 18:45:43 +00:00
David Zeuthen
c94901552b Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." into rvc-dev 2020-04-27 18:33:04 +00:00
Hall Liu
5db41c8698 Allow android.hardware.radio 1.4 for R
SOC manufacturers have requested that devices be allowed to ship with R
without using the IRadio 1.5 API.

Fixes: 153495340
Test: build flame
Change-Id: Iba2ac5902e69fc0af0c5f4d7cae4fed77204acd1
2020-04-27 18:18:22 +00:00
Selene Huang
d39b9fb604 Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface.
Fixed following bugs in WritableIdentityCredential.cpp
  - Do not allow startPersonalization to be called more than once per
  aidl.
  - Do not preceed with beginAddEntry if addAccessControlProfile and
  startPersonalization profile count mismatch.
  - Verify access control profile ids are unique.
  - Do not let empty name space to mess up beginAddEntry.
  - Do not allow beginAddEntry to add entries interleaving namespace
    groupings. Enforce all entries must be added in namespace "groups"
    per aidl.
  - Fix counting error that allowed one entries to be added per name
    space than startPersonalization limit.
  - Do not approve finishAddingEntries if there are more profiles or
    entries to be added than startPersonalization set accounting.
  - Add testing utilities library for identity credential.
  - Refactored end to end tests.

Bug: 154909726
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Merged-In: I51902681776c6230e49589fc75a8145e79d7d1a6

Change-Id: Ib7c108f67c61125edba6177dcac61cfbf58da671
2020-04-27 13:03:20 -04:00
Amy Zhang
469196a204 Merge "Make dvr tests a separate module" into rvc-dev am: d8040b86f7
Change-Id: I997cd76cb0e441f0252618f0dbd4561a96ad5e8a
2020-04-25 01:10:28 +00:00
Amy Zhang
d8040b86f7 Merge "Make dvr tests a separate module" into rvc-dev 2020-04-25 00:48:21 +00:00
Steven Moreland
f2e3df989b [automerger skipped] Merge "android.hardware.tests.lazy@1.0::ILazy" into rvc-dev am: 0239729262 -s ours
am skip reason: Change-Id I710c11c0cb59f04b4f162d627ca0d11135ab1437 with SHA-1 1f9aa386ba is in history

Change-Id: I6bf2570d753e1908766541a6676f2dbb25c4c45e
2020-04-25 00:25:47 +00:00
Steven Moreland
0239729262 Merge "android.hardware.tests.lazy@1.0::ILazy" into rvc-dev 2020-04-25 00:14:18 +00:00
TreeHugger Robot
a7ed07bd71 Merge "Add Lnbs for CTS" into rvc-dev am: 8350572765
Change-Id: I432e99964cd63c208118f659273d566323ba4743
2020-04-24 23:51:19 +00:00
TreeHugger Robot
8350572765 Merge "Add Lnbs for CTS" into rvc-dev 2020-04-24 23:28:00 +00:00
felipeal
9c998c0720 Moved emulated User HAL capabilities into a library.
So it can be used by other Vehicle HAL implementations.

Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --user-hal
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --help
Test: m -j android.hardware.automotive.vehicle@2.0-emulated-user-hal-lib

Bug: 150167241
Bug: 150409377

Merged-In: I2d0c5039c3b994dfe10d3b411f6d502bebe7cca0
Change-Id: I2d0c5039c3b994dfe10d3b411f6d502bebe7cca0
2020-04-24 16:11:19 -07:00
Steven Moreland
0c6e08d07a android.hardware.tests.lazy@1.0::ILazy
For testing lazy HALs in HIDL on continuous integration.

Bug: 148114689
Test: hidl_lazy_test
Change-Id: I710c11c0cb59f04b4f162d627ca0d11135ab1437
(cherry picked from commit 1f9aa386ba)
Merged-In: I710c11c0cb59f04b4f162d627ca0d11135ab1437
2020-04-24 14:09:38 -07:00
Treehugger Robot
d63d135677 Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." am: 71156e527c am: 0e5e21e55a
Change-Id: Ia89041927381beb0617bded45000065beebbba6d
2020-04-24 14:27:51 +00:00
Treehugger Robot
0e5e21e55a Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." am: 71156e527c
Change-Id: If6b18f5ecd261fd68dda1fd79b2daaad88422716
2020-04-24 14:11:47 +00:00
Treehugger Robot
71156e527c Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." 2020-04-24 14:00:54 +00:00
Treehugger Robot
349af3e40c Merge "Allow device properties tags for attestation" am: 9a2f497439 am: 3fd8b10984
Change-Id: I3b8e79ebf16b60d9236f1ba207255950ade3c701
2020-04-24 08:30:54 +00:00
Treehugger Robot
3fd8b10984 Merge "Allow device properties tags for attestation" am: 9a2f497439
Change-Id: Ie6d745578c951cd7c69e709b63d7051055bb644c
2020-04-24 08:08:47 +00:00
Treehugger Robot
9a2f497439 Merge "Allow device properties tags for attestation" 2020-04-24 07:56:43 +00:00
Selene Huang
92b61d650f Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface.
Fixed following bugs in WritableIdentityCredential.cpp
  - Do not allow startPersonalization to be called more than once per
  aidl.
  - Do not preceed with beginAddEntry if addAccessControlProfile and
  startPersonalization profile count mismatch.
  - Verify access control profile ids are unique.
  - Do not let empty name space to mess up beginAddEntry.
  - Do not allow beginAddEntry to add entries interleaving namespace
    groupings. Enforce all entries must be added in namespace "groups"
    per aidl.
  - Fix counting error that allowed one entries to be added per name
    space than startPersonalization limit.
  - Do not approve finishAddingEntries if there are more profiles or
    entries to be added than startPersonalization set accounting.
  - Add testing utilities library for identity credential.
  - Refactored end to end tests.

Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts

Change-Id: I51902681776c6230e49589fc75a8145e79d7d1a6
2020-04-24 00:04:07 -07:00
Denis Ciocca
812af22dc7 [automerger skipped] Include VtsHalSensorsV2_0TargetTest into the vts test suites am: d3c27ec3f7 -s ours am: a49eaa4617 -s ours
am skip reason: Change-Id I562b4dc50765e953800a814a8fd84a01c1b9352b with SHA-1 aad51fa000 is in history

Change-Id: I556579942cb87cce5fb9bf0152df253037a6a98d
2020-04-24 03:48:00 +00:00