Commit graph

43009 commits

Author SHA1 Message Date
Midas Chien
0a6be173b4 [automerger skipped] composer: vts: configure layer for DisplayDecoration am: 1120a6f78c -s ours
am skip reason: Merged-In If47154adf9d48f9c1b8390b4bee090d8bf40ff3b with SHA-1 8c75b834f4 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2315559

Change-Id: Ifcfa991c958ef8a26dffee3994d5760cc3b2e0ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 00:38:53 +00:00
Steven Moreland
40e84d92e0 Merge "secure-element to AIDL" 2022-11-29 22:30:40 +00:00
Devin Moore
7b571f974e Merge "sensors: adding a common convert lib" 2022-11-29 21:24:33 +00:00
Treehugger Robot
45661bec3f Merge "HDMI: Add new field eArcSupported" 2022-11-29 09:03:27 +00:00
Max Bires
1589c401e0 Merge "Fix overly relaxed Device ID Test." 2022-11-28 20:15:13 +00:00
Devin Moore
d8598ec6db sensors: adding a common convert lib
This common convert library is used by both the HIDL and the AIDL
convert library to provide conversions between ASensorEvent and
sensors_event_t.

Test: atest VtsHalSensorManagerTargetTest
Test: atest VtsHalSensorManagerV1_0TargetTest
Bug: 259711109

Change-Id: Ib80130fc04339245527ed20479cd9212f016713b
2022-11-28 17:55:14 +00:00
Steven Moreland
6fe6954dd4 secure-element to AIDL
Bug: 205762050
Test: atest VtsHalSecureElementTargetTest (8/8 passed)
Test: atest CtsOmapiTestCases
    - all tests pass except testStatusWordTransmit,
      testTransmitApdu, and testSelectNext. This is because
      these tests don't increase coverage of the HAL API
      except they call 'transmit' several times. Doing a full
      mock OMAPI/APDU implementation for cuttlefish/AOSP is
      tracked in b/123254068

Change-Id: I0ec0eb08fbcc4207d8c07427ccdf7ff106995627
2022-11-24 01:24:13 +00:00
Steven Moreland
558762c14d allocator frozen false
magic -> explicit

Bug: 259465531
Test: N/A
Merged-In: I56b04a0f682a0ba3dc58a42c0a14bb506591c594
Change-Id: I56b04a0f682a0ba3dc58a42c0a14bb506591c594
(cherry picked from commit f65553745b)
2022-11-23 21:29:48 +00:00
Mikhail Naganov
549a822be2 audio: Report unknown stream positions explicitly
Instead of using 'STATUS_NO_INIT' in the case when stream
position can not be reported, use a special value for Position
fields. This streamlines processing of statuses on the client
side, by removing the need to treat 'STATUS_NO_INIT' specially.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I13c9c8d165b632900ca76de144759ef7b9200eff
2022-11-23 18:30:07 +00:00
Mikhail Naganov
bd483c03b2 audio: Implement transient state testing
Add ModuleDebug.streamTransientStateDelayMs parameter to ensure
that streams stay in transient states for the specified amount of
time. This enabled sending commands from VTS while the stream is
still in a transient state.

Add 'getStatus' stream command to retrieve current positions,
counters, and stream state. Previously we were planning to use a
zero-sized burst command for that, however, after the
introduction of stream state machines, the 'burst' command is
not handled in every stream state, and may even affect the
current state, thus it's no more usable for this purpose.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I8717acace8d95d76bef2ec9fd6561796d7544992
2022-11-23 01:58:19 +00:00
Treehugger Robot
4ad2bb150e Merge "Document changes and clean up spec" 2022-11-22 21:15:18 +00:00
Max Bires
a97ec69e4b Fix overly relaxed Device ID Test.
Previous versions of VTS had to allow a Device ID attestation failure
to return INVALID_TAG even though this is inconsistent with the KeyMint
spec. This was due to previous KM implementations returning this before
the test was added to validate the precise error code being returned
from Device ID attestation.

For VSR-14 and newer devices, the test will now enforce that only
CANNOT_ATTEST_IDS is returned from a failed device ID attestation call.

Test: atest VtsAidlKeyMintTargetTest
Change-Id: I6acff3fd32f3f251f946e3603283535f36d99a5d
2022-11-22 12:33:50 -08:00
Max Bires
8d046265b8 Document changes and clean up spec
This change clarifies some more items that have changed between v2 and
v3 of the IRPC spec, along with fixing and clarifying some more
messaging in the .aidl documentation.

Test: Someone else can intelligibly read what was written
Change-Id: Ia9fa1595a72c818f93ce6fb31ea38c97d997488b
2022-11-22 10:45:55 -08:00
Antonio Kantek
3d008424b7 Merge "Update CustomInputType functions comment" 2022-11-22 17:49:46 +00:00
Devin Moore
6a58599217 Merge "Make sensors convert library host_supported" 2022-11-22 17:37:49 +00:00
Seth Moore
9d52a3579e Merge "Allow rkpd mainline module to link rkp aidl bits" 2022-11-22 16:54:13 +00:00
Dorin Drimus
7755c25f93 Merge "Add more DTS audio encodings to the AIDL interface" 2022-11-22 14:28:44 +00:00
Treehugger Robot
2f2544e410 Merge "ID attestation: update docs for a second IMEI" 2022-11-22 12:16:58 +00:00
Midas Chien
1120a6f78c composer: vts: configure layer for DisplayDecoration
Some HW may not support crop function for decoration and current API
can't query this capability. Configure decoration layer to full screen
to avoid this limitation.

Bug: 225765061
Bug: 259505289
Test: VtsHalGraphicsComposer3_TargetTest
--gtest_filter=*DisplayDecoration*

Change-Id: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 7d55d4269d)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 308f4ac906)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
2022-11-22 18:06:39 +08:00
Antonio Kantek
5dbc8f091b Update CustomInputType functions comment
Update CustomInputType functions comment to reflect that they are now optional and OEMs are free to use any int32 to represent an custom input event.

Bug: 255390449
Test: m (built)
Change-Id: I8878c1330f7fe3ba35ea10307a4ba4c4c88b1d57
2022-11-22 01:16:59 +00:00
Seth Moore
557a1dbd03 Allow rkpd mainline module to link rkp aidl bits
Test: Build
Change-Id: Ide8b4ec4b8994368d035f79054818542aba306e5
2022-11-21 17:15:37 -08:00
Treehugger Robot
c84a388681 Merge "Define ApPowerControl library." 2022-11-22 00:18:34 +00:00
Karthik Bharadwaj
34557d4596 Merge "Default accel Z direction value to +9.8" 2022-11-21 22:03:14 +00:00
Yu Shan
fb0cc2241a Define ApPowerControl library.
Define a library for the communication channel between TCU and
application processor. This library will be implemented with
device-specific logic.

Test: local compile
Bug: 254547153
Change-Id: I241ba141f9a5a4a3852017e291fbbc08cadf2bfe
2022-11-21 13:47:01 -08:00
Steven Moreland
e9d1bca6d7 Merge "composer3 frozen" 2022-11-21 20:30:28 +00:00
Karthik Bharadwaj
4cea52915a Default accel Z direction value to +9.8
Default the accelerometer defaut Z value to +9.8 to indicate a
more 'natural' resting position of flat with screen up for the
device.

Bug: 242736284
Test: Presubmits, vts VtsHalSensorsV2_0TargetTest.
Change-Id: I92357119173dbc99a0a6665de5d733286ac30c3e
2022-11-21 18:28:44 +00:00
Steven Moreland
e49b3684a1 Merge "example vendor app" 2022-11-21 17:58:11 +00:00
Steven Moreland
a4f9873b72 Merge "vndk libs - frozen true" 2022-11-21 17:34:05 +00:00
Eran Messeri
b9d71d3e09 ID attestation: update docs for a second IMEI
Update the comment describing the attestation record:
* KeyMint version bump to V3
* Inclusion of the 2nd IMEI.

Bug: 244732345
Test: That it builds
Change-Id: I19f89bc9936b747647dc690d4702c60d2bbe92c5
2022-11-21 15:53:37 +00:00
Steven Moreland
576e098973 composer3 frozen
magic -> explicit

Bug: 259465531
Test: build
Merged-In: Iefdfe812fc9309a0a758eedb3da9d3676e956f02
Change-Id: Icc336c6640adc064e755ab23c934d7d07cc6339f
2022-11-19 04:26:01 +00:00
Steven Moreland
0385dac9fc example vendor app
see comments added in code and Android.bp

We don't have examples of a common Android ecosystem usecase, so
I'm adding one here.

Bug: 227289255
Test: after sepolicy + PRODUCT_PACKAGES:
    11-19 03:14:27.460   488   488 I android.hardware.vibrator-service.example: Vibrator on for timeoutMs: 100
Change-Id: Iee430d85e23c6c8f771dc5aa77bff9be1a91f080
2022-11-19 03:35:37 +00:00
Treehugger Robot
3777e1cb44 Merge "a.h.graphics.common frozen true" 2022-11-19 00:51:08 +00:00
Steven Moreland
93ea25ca9b vndk libs - frozen true
magic -> explicit

Bug: 259465531
Test: build
Change-Id: I700814bcbc7557b78d8dc708cbeeb33049250a9d
2022-11-18 23:40:59 +00:00
Shunkai Yao
efb45b2672 Merge "AIDL effect vts test cases refinement" 2022-11-18 23:17:59 +00:00
Steven Moreland
3bc7a4937d a.h.graphics.common frozen true
magic -> explicit

Bug: 259465531
Test: build
Merged-In: I080bee98df6d4ad8799dd60c5090c2e79244ce2f
Change-Id: I3223d33c296c73e7c14e8ed87806ba6ed8ff3392
2022-11-18 20:11:02 +00:00
Shunkai Yao
812d5b4ce0 AIDL effect vts test cases refinement
Bug: 255361653
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I4d4c4de97a73d4ea6dedd9c9e1733da03860430b
2022-11-18 19:50:24 +00:00
Devin Moore
fb3f5ada35 Make sensors convert library host_supported
Used for host_supported fuzzers.

Test: libsensorserviceaidl_fuzzer
Bug: 233850220

Change-Id: I80680907f65edbb6ddb8d433460829967e0b75b0
2022-11-18 19:33:01 +00:00
Treehugger Robot
77b9374f01 Merge "Add a new capability to indcate min slot duration." 2022-11-18 19:27:51 +00:00
Devin Moore
3259213a9e Merge changes from topics "sensor_conver", "sensorservice_aidl"
* changes:
  Add a convert library for sensor AIDL
  Add host_supported to sensors AIDL interface
2022-11-18 19:21:47 +00:00
Chih-hung Hsieh
66808f0c5e Merge "Fix array-parameter warning" 2022-11-18 19:21:20 +00:00
ziyiw
b922b6b215 Add a new capability to indcate min slot duration.
Test: compile
Bug: 254655623
Merged-In: Icac53069ddc61bbd60049880119973f1b4b0286d
Change-Id: Icac53069ddc61bbd60049880119973f1b4b0286d
2022-11-18 18:25:47 +00:00
Devin Moore
00721dc031 Add a convert library for sensor AIDL
This is moving the conversion functions from
frameworks/native/services/sensorservice/AidlSensorHalWrapper.cpp.
This conversion code needs to be shared between sensorservice, a new
libsensorserviceaidl, and the new VTS tests for AIDL sensorservice.
It will likely also be used by vendors interacting with the new AIDL
sensorservice.

Test: VtsHalSensorManagerV1_0TargetTest
Bug: 205764765
Change-Id: Iabb0bcf0770672671e51fd304f79e14ca94a2d15
2022-11-18 00:58:35 +00:00
Devin Moore
9ef0c60a25 Add host_supported to sensors AIDL interface
Useful for host fuzzing. Needed to make the new sensorservice AIDL
host_supported.

Test: m
Bug: 205764765
Change-Id: I3fb0786fe27274d91c05a0598bf9d96c20062edf
2022-11-18 00:58:28 +00:00
Treehugger Robot
a335badc22 Merge changes I2dfd304c,I978432e2
* changes:
  LoudnessEnhancer: Add AIDL implementation and its unit test
  Audio AIDL Effect VTS : Extract all common parameters to defaults
2022-11-17 22:00:44 +00:00
Chih-Hung Hsieh
494ef7f133 Fix array-parameter warning
Bug: 241941550
Test: presubmit
Change-Id: I03ede7721fbbe027598e0491b405faee8029fadc
2022-11-17 18:41:21 +00:00
Shraddha Basantwani
68041cab61 LoudnessEnhancer: Add AIDL implementation and its unit test
Added AIDL implementation for LoudnessEnhancer audio effect
parameters and its unit test.

Bug: 258124419
Test: atest VtsHalLoudnessEnhancerTargetTest

Change-Id: I2dfd304ca9f72383572fd1f762d41864dd73e39d
2022-11-17 10:24:06 +05:30
Shraddha Basantwani
5a2577cad6 Audio AIDL Effect VTS : Extract all common parameters to defaults
Bug: 258124419
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: I978432e2efcdcbb7341000b39b5f39e0e5d82eb7
2022-11-17 10:23:58 +05:30
Jooyung Han
00c47d2e15 Merge "USB APEX with AIDL implementation" 2022-11-17 04:05:28 +00:00
Steven Moreland
00ba1e951d android.hardware.graphics.allocator - VNDK - use V1
Breaking SDK finalization.

Bug: 259146177
Change-Id: I637ab649cbd1d0c886c91859398888f22025b963
Test: N/A
2022-11-17 00:07:44 +00:00
Shunkai Yao
f0c263b547 Use AIDL effect bundle in effectserviceexampleimpl.
Bug: 255361653
Test: atest VtsHalAudioEffectTargetTest
atest VtsHalAudioEffectFactoryTargetTest
atest VtsHalEqualizerTargetTest

Change-Id: Ia50ff5066e007f6a8569114e36f0e4565a6100ea
2022-11-16 18:09:17 +00:00