Commit graph

18784 commits

Author SHA1 Message Date
Stan Rokita
b42bde95cb Search for subhal .so files in additional directories
Fixes: 154634207
Test: Load onto flame and confirm that subhal .so
android.hardware.sensors@2.X-fakesubhal-config3.so loads when it is
living in the /vendor/lib64/hw directory using
adb shell lshal debug android.hardware.sensors@2.0::ISensors/default

Change-Id: I8a676b97f6f6992e8937ecf31c3b7af06e676ebb
Merged-In: I8a676b97f6f6992e8937ecf31c3b7af06e676ebb
2020-05-06 15:02:42 -07:00
Denis Ciocca
8ab752617f sensors:2.0:vts fix functional test for typeAsString field
For sensors of known type defined in SensorType (value <
DEVICE_PRIVATE_BASE), typeAsString field can be an empty string since
framework overrides it anyways.
The empty string test should fails only if type is >=
DEVICE_PRIVATE_BASE.
The matching type with typeAsString test is instead executed only if
the string is not empty (if it's not an empty string let's check that
at least is set to the right value).

Bug: 155514483
Test: atest VtsHalSensorsV2_0TargetTest
Signed-off-by: Denis Ciocca <denis.ciocca@gmail.com>
Merged-In: Ib5f8fd513313670e88c2b973c1ff724658914eb2
Change-Id: I4267ff6a158a571ff43122bdb7a38c9fa38f5900
2020-05-05 16:10:46 +00:00
David Gross
fc77ac19b4 More tests for graph validation. am: 6174f00cc6
Change-Id: I01ce53ff569deaf38426fa16a1b25618c74dfd56
2020-05-05 02:06:06 +00:00
David Gross
6174f00cc6 More tests for graph validation.
- detect cycle (CycleTest)
- detect bad execution order (mutateExecutionOrderTest)
- detect lifetime inconsistent with whether operand is written (mutateOperandLifeTimeTest)
- detect lifetime inconsistent with Model inputIndexes/outputIndexes (mutateOperandInputOutputTest)
- detect incorrect number of consumers (mutateOperandNumberOfConsumersTest)
- detect operand written multiple times (mutateOperandAddWriterTest)
- detect operand never written (mutateOperationRemoveWriteTest)

Bug: 66478689
Test: VtsHalNeuralnetworksV1_*TargetTest

Change-Id: Id4ba19660bbd31a16f8a675f7b6437f4d779e8da
Merged-In: Id4ba19660bbd31a16f8a675f7b6437f4d779e8da
(cherry picked from commit af51663e99)
2020-05-04 17:29:52 -07:00
Orion Hodson
b23a1ed78c Merge "Use shared library variant of libnativehelper" am: 3f7367a17e
Change-Id: I629f999e136943790c72237f8e10fe917d6b08af
2020-05-04 07:34:20 +00:00
Orion Hodson
3f7367a17e Merge "Use shared library variant of libnativehelper" 2020-05-04 07:23:19 +00:00
Bob Badour
5653c0d0ab Add METADATA to interfaces: Apache2=NOTICE am: 6232e934f7
Change-Id: If140afcf516cdacc0c86cd2907b3817909849f56
2020-05-01 23:26:00 +00:00
Bob Badour
6232e934f7 Add METADATA to interfaces: Apache2=NOTICE
Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: I5770500dc6e9ab01a8b86640bc5a9d5f1330335e
2020-05-01 10:59:55 -07:00
Suren Baghdasaryan
264676daab Replace direct pid writes with setting task profiles for camera interfaces am: 849e9fc8b6
Change-Id: I65da7a5b8636ea6677ab6820922bb5b18e5ff654
2020-05-01 16:49:32 +00:00
Suren Baghdasaryan
b1c906ff99 Replace direct pid writes with setting task profiles for audio interfaces am: 3c6f2df90a
Change-Id: I0119e350bab375da44c0c73f588e66d5fed90910
2020-05-01 16:49:30 +00:00
Suren Baghdasaryan
42736bd15a Replace direct pid writes with setting task profiles for bluetooth interfaces am: 4b644d33d7
Change-Id: Ib5c0ce37ef15089108670c0d98e51937fa2261c7
2020-05-01 16:49:27 +00:00
Selene Huang
cab019aae5 Add attestation certificate parsing and validate for IC vts.
- Added attestation certificate parsing support.
- Added various certificate conversion support.
- Added certification verification support.
- Added tests for the attestation certificate verification.
- Updated the old tests to use the new attestation validation
  implementation.
- Updated GenerateReaderCertificate to use pointer reader private key.

Bug: 154909726

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

Change-Id: Ibe770e6eaf0b0018d60876926d824204e4eaf732
2020-04-30 21:33:48 -07:00
Suren Baghdasaryan
849e9fc8b6 Replace direct pid writes with setting task profiles for camera interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I2732f7365351f132dbf0566319e3969c2a25b3e4
2020-04-30 13:45:23 -07:00
Suren Baghdasaryan
3c6f2df90a Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2020-04-30 13:45:13 -07:00
Suren Baghdasaryan
4b644d33d7 Replace direct pid writes with setting task profiles for bluetooth interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ie81da380a9343e098362f5fee5026799c4486e7e
2020-04-30 13:45:04 -07: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
David Anderson
f2a0c5be2b Merge "boot: Relax getSnapshotMergeStatus test." am: f32d41bd11
Change-Id: I0c47169714b65f0d5fdc288abc29b2cc4906a6a2
2020-04-29 21:13:26 +00:00
David Anderson
f32d41bd11 Merge "boot: Relax getSnapshotMergeStatus test." 2020-04-29 20:59:10 +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
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
Bob Badour
2084a4095b Remove MODULE_LICENSE_APACHE2 from interfaces am: 79f8151045
Change-Id: Id64d7152b2e1ba1f3c6d253344e1ac3b7ebc1d3f
2020-04-28 20:24:06 +00:00
Orion Hodson
d1565e78d3 Use shared library variant of libnativehelper
Now available as a public library, static variant will be retired.

Bug: 150252746
Bug: 151443957
Test: mma
Change-Id: I3c0bd3d53eb457577a22cf74c9a6d852ed69c9be
2020-04-28 18:54:31 +01: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
David Zeuthen
b1b0175138 Identity Credential: Restrict AccessControlProfile identifiers to 32. am: a0796e98c2
Change-Id: Ic7f60ca5d1ec9e2eda2bd095ebd98c462f42ab27
2020-04-28 00:05:43 +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
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
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
a49eaa4617 [automerger skipped] Include VtsHalSensorsV2_0TargetTest into the vts test suites am: d3c27ec3f7 -s ours
am skip reason: Change-Id I562b4dc50765e953800a814a8fd84a01c1b9352b with SHA-1 ba894f81db is in history

Change-Id: Idafb7d0602bd690e3b40425779c6abe1f41a944d
2020-04-24 03:33:28 +00:00
Denis Ciocca
d3c27ec3f7 Include VtsHalSensorsV2_0TargetTest into the vts test suites
Without adding the test into vts test suite the testcases are not
available within the vts-tradefed.

Test: manual - build vts using 'make vts' with arm64 target selected,
               verifying that the test is then available under:
               out/host/linux-x86/vts/android-vts/testcases/VtsHalSensorsV2_0TargetTest

Signed-off-by: Denis Ciocca <denis.ciocca@gmail.com>
Change-Id: I34a89bef09832e5fa8295340f52dafd91fa33c96
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-23 10:24:43 -07:00
Treehugger Robot
04516a1440 Merge "Update Identity Credential HAL docs." am: 638d95b901
Change-Id: Id79c9d644f9705da7f881519736d8502f67a48a0
2020-04-21 20:42:30 +00:00
Treehugger Robot
638d95b901 Merge "Update Identity Credential HAL docs." 2020-04-21 20:20:03 +00:00
Calvin Huang
4d996b812a Merge "Add manifest for IVehicle" am: 0a8204f350
Change-Id: I99916cec11b823a0059589533a1f57c99bb8a243
2020-04-21 17:57:29 +00:00
Calvin Huang
0a8204f350 Merge "Add manifest for IVehicle" 2020-04-21 17:35:58 +00:00
Slava Shklyaev
6e61805972 Merge "Exclude unused operands from removeOperandTest" am: d67c1ee89a
Change-Id: Idb0bb93ddc352091afe3cabf4f990bb21d372476
2020-04-21 14:45:10 +00:00
Slava Shklyaev
d67c1ee89a Merge "Exclude unused operands from removeOperandTest" 2020-04-21 14:32:23 +00:00
Treehugger Robot
231b61abb5 Merge "vibrator: vts: Validate Primitive Duration" am: 5ec6625bd6
Change-Id: I4d4992dd675543fea586b1e7c1452bdd78774160
2020-04-21 01:41:36 +00:00
Treehugger Robot
5ec6625bd6 Merge "vibrator: vts: Validate Primitive Duration" 2020-04-21 01:21:02 +00:00
Calvin Huang
b0341be5dd Add manifest for IVehicle
Bug: 153734354
Test: Manual
Change-Id: I7e6a65e3fb49bb04108d0fd243df0b7447a93b1e
Merged-In: I7e6a65e3fb49bb04108d0fd243df0b7447a93b1e
2020-04-20 20:50:14 +00:00
Dorin Drimus
b20a4e01ef Allow device properties tags for attestation
Test: atest CtsKeystoreTestCases
Bug: 152945378
Change-Id: I9c85283f007535612bf4ebbfbe8b7e86a758286c
2020-04-20 17:44:56 +02:00
Slava Shklyaev
af1c77d74f Exclude unused operands from removeOperandTest
Bug: 148208229
Test: TestGenerated/ValidationTest.Test/nnapi_sample*_while*_unused_output*
Change-Id: I39bebefd0e40d370882d614d4beb97ab36c9da8f
Merged-In: I39bebefd0e40d370882d614d4beb97ab36c9da8f
(cherry picked from commit baa4cf02f2)
2020-04-20 13:19:00 +01:00
Harpreet \"Eli\" Sangha
b075a6a599 vibrator: vts: Validate Primitive Duration
Bug: 148496381
Test: Ran on Pixel 4
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
Change-Id: Ie74f9458b881a51746539f61526fbe4898485b00
2020-04-17 13:22:41 +09:00
Steven Moreland
be4fc8b108 Merge "Update freezing notes." am: d05127d16d
Change-Id: I8b119bcf8c51da2e5f0589402ba6851b23546cd3
2020-04-17 01:56:02 +00:00
Steven Moreland
d05127d16d Merge "Update freezing notes." 2020-04-17 01:31:06 +00:00
Treehugger Robot
fefefa63a6 Merge "audio: Centralize audio configuration paths specification" am: c2e1f3baef
Change-Id: Ib813f7c89896fec95ece996b8cd4e0482fa797af
2020-04-16 23:21:24 +00:00
Treehugger Robot
c2e1f3baef Merge "audio: Centralize audio configuration paths specification" 2020-04-16 23:05:30 +00:00
Nazanin Bakhshi
01a4eda936 Merge "Remove requirement for VtsHalRadioV1_3 tests for sim to be present" am: 401a246feb
Change-Id: Icb379275dc110fc0878704f46dc51f6d0d359613
2020-04-16 20:56:32 +00:00