Commit graph

18351 commits

Author SHA1 Message Date
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
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
75bea4b6dc Merge "Identity Credential: Pass additional information to HAL." 2020-04-29 23:41:41 +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
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
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
71156e527c Merge "Fix IC vts bugs and add tests for IC IWritableIdentityCredential.aidl interface." 2020-04-24 14:00:54 +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
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
638d95b901 Merge "Update Identity Credential HAL docs." 2020-04-21 20:20:03 +00:00
Calvin Huang
0a8204f350 Merge "Add manifest for IVehicle" 2020-04-21 17:35:58 +00:00
Slava Shklyaev
d67c1ee89a Merge "Exclude unused operands from removeOperandTest" 2020-04-21 14:32:23 +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
d05127d16d Merge "Update freezing notes." 2020-04-17 01:31:06 +00:00
Treehugger Robot
c2e1f3baef Merge "audio: Centralize audio configuration paths specification" 2020-04-16 23:05:30 +00:00
Nazanin Bakhshi
401a246feb Merge "Remove requirement for VtsHalRadioV1_3 tests for sim to be present" 2020-04-16 20:30:12 +00:00
Nazanin
77185c3ba5 Remove requirement for VtsHalRadioV1_3 tests for sim to be present
Bug: 153293861
Bug: 154245603
Test: run vts -m VtsHalRadioV1_3Target
Change-Id: Idb1067e757d4abadb2142627b88f775a685d0c02
Merged-In: Idb1067e757d4abadb2142627b88f775a685d0c02
2020-04-16 12:38:24 -07:00
Slava Shklyaev
17a0b4fcdc Merge changes I866fe138,I0096a2fc
* changes:
  Remove BLOB AHWB tests from 1.2 VTS.
  Update loopTimeoutDuration documentation in NNAPI
2020-04-16 12:45:32 +00:00
Treehugger Robot
7b15fd373e Merge "Add the missing unregisterCallback call" 2020-04-15 22:07:27 +00:00
Sarah Chin
c3bfce6359 Merge "Update HAL Bands" 2020-04-15 21:08:14 +00:00
Treehugger Robot
5bb1721f6e Merge changes Iab38ef29,I85b66ab5
* changes:
  Update the specification for the following operations
  Clarify supported ranks for new ops in R
2020-04-15 20:42:07 +00:00
Roman Kiryanov
226761ce9d Add the missing unregisterCallback call
The sensor reading thread continues producing
event and refers to the already destroyed
callback object which causes a crash in
SensorsHidlEnvironmentBase::addEvent.

Bug: 153754380
Test: atest VtsHalSensorsV2_0TargetTest
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I3017afe670e5a53d0d7444b3d5b34ba34f3567e3
Merged-In: Id7fb72c42dc67f89ceef93d937241e1584b853e7
2020-04-15 12:12:46 -07:00
Mikhail Naganov
5a6ffb21a5 audio: Centralize audio configuration paths specification
The list of possible paths for the audio configuration
files is now retrieved using audio_get_configuration_paths()
function. All duplicated lists of known configuration
directories have been removed.

Bug: 153680356
Test: atest VtsHalAudioV5_0TargetTest \
            VtsHalAudioPolicyV1_0TargetTest \
            VtsHalAudioEffectV5_0TargetTest
Change-Id: I1e40fdf8d6e3a5ac339f7f138f62063bb87bd3da
2020-04-15 10:09:38 -07:00
Steven Moreland
277cff8074 Update freezing notes.
Since it was a big problem for little gain, we are reverting back to the
old practice of waiting to freeze interfaces for release.
vts_treble_vintf_*_test no longer checks hashes in non-release branches.

Bug: 144366823
Test: N/A
Change-Id: I147025ffed053bc583055fbc4f39d9823e793c22
2020-04-15 05:11:02 +00:00
Sarah Chin
61a4657ed9 Update HAL Bands
Test: mm cf_x86_phone-userdebug
Test: atest VtsHalRadioV1_5Target
Bug: 151842542
Change-Id: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
Merged-In: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
2020-04-14 18:10:13 -07:00
Yifan Hong
967399407c Merge "Check against xsd for building all matrices" 2020-04-14 22:04:20 +00:00
David Zeuthen
c428692e82 Update Identity Credential HAL docs.
This change contains no actual syntactical or semantic changes, just
clarifications on the inputs and outputs.

Test: N/A
Bug: 151082886

Change-Id: I794b8d0360c1eda37b4dbe757d7a7fadcbdda7bc
2020-04-14 15:14:48 -04:00
Miao Wang
6048fd9dd5 Update the specification for the following operations
- RANDOM_MULTINOMIAL
 - L2_NORMALIZATION

Bug: 136279892
Bug: 140177375
Test: mm
Change-Id: Iab38ef29ebf6d1f5c0a408436b3d564e45e537a0
Merged-In: Iab38ef29ebf6d1f5c0a408436b3d564e45e537a0
(cherry picked from commit 077c0339d4)
2020-04-14 19:29:51 +01:00
Lev Proleev
f0401fe0b0 Clarify supported ranks for new ops in R
Fix: 151108533
Test: mma
Change-Id: I85b66ab5940d09b2786ecb14bff5bc1c1dee894a
Merged-In: I85b66ab5940d09b2786ecb14bff5bc1c1dee894a
(cherry picked from commit f161cc74a1)
2020-04-14 19:29:43 +01:00
Xusong Wang
b79c31aba8 Remove BLOB AHWB tests from 1.2 VTS.
Bug: 153282844
Test: 1.2 VTS
Change-Id: I866fe1388a64a36372f90c60fef340d2fe4c8682
Merged-In: I866fe1388a64a36372f90c60fef340d2fe4c8682
(cherry picked from commit b642700c7f)
2020-04-14 16:30:01 +01:00
Slava Shklyaev
6cf5f3e2a6 Update loopTimeoutDuration documentation in NNAPI
Bug: 149686804
Test: m
Change-Id: I0096a2fc2e579d39a2d59a605a4217d53a381691
Merged-In: I0096a2fc2e579d39a2d59a605a4217d53a381691
(cherry picked from commit 6a222a3eec)
2020-04-14 16:29:57 +01:00
Yifan Hong
fca5d95ce6 Check against xsd for building all matrices
Test: builds
Fixes: 149929588

Change-Id: Id08cfe41af59bb336889f9edeaf35dc484892997
2020-04-13 15:29:52 -07:00
Tom Cherry
10256e3ad8 Include what you use: <fcntl.h>
This was transitively included, but no longer is, so it must be
explicitly included.

Exempt-From-Owner-Approval: Janitorial
Test: build
Change-Id: I48d318c53cbfb76849f987029b0c8e775f576496
2020-04-13 11:09:42 -07:00
Roman Kiryanov
ee8c09c78f Add vintf_fragments to android.hardware.usb@1.0-service
Bug: 153739768
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I324f226496d7cf1085f0a3687af6054c56c9dbf8
2020-04-10 13:27:18 -07:00
Treehugger Robot
542841648c Merge "Add vintf_fragments to android.hardware.biometrics.fingerprint@2.1-service" 2020-04-10 17:03:25 +00:00
Treehugger Robot
08ea51852b Merge "Remove IOperation and beginOp." 2020-04-10 16:23:49 +00:00
Treehugger Robot
360567ba5f Merge "Fixed encoding of device_locked field" 2020-04-10 16:09:39 +00:00
Treehugger Robot
4a9a2c9486 Merge "Remove redunant aidl api" 2020-04-10 08:07:01 +00:00
Treehugger Robot
7f7285cb3b Merge "Add vintf_fragments to android.hardware.confirmationui@1.0-service" 2020-04-09 21:57:53 +00:00
Shawn Willden
994c65e5bc Fixed encoding of device_locked field
The attestation code used boringssl's ASN.1 encoding tools
incorrectly, causing it to encode incorrect values in device_locked.

Bug: b/152503089
Test: Build & boot
Merged-In: I3c5352523b2db37d539ad353ac8c48c1585eb08d
Change-Id: I3c5352523b2db37d539ad353ac8c48c1585eb08d
2020-04-09 15:44:36 -06:00
Yifan Hong
c25d22b315 Merge changes from topic "battery_current_sign"
* changes:
  health 2.0 vts: add battery current test.
  health 2.0 VTS: require GTEST_SKIP to be defined
2020-04-09 21:40:01 +00:00