Commit Graph

20258 Commits

Author SHA1 Message Date
Ryanne Cheng
593dbfc154 Revert "Drop GNSS1.1 and Thermal1.0"
Revert "Check unused HALs when system ext matrix exists."

Revert "Use HIDL metadata for deprecation check"

Revert submission 10745362-check_unused

Reason for revert: Droidcop: Potential culprit for Bug 152161259
Reverted Changes:
I92cd7ce1c:Use HIDL metadata for deprecation check
I2b9492eec:Fix check deprecation to use Hidl Metadata.
I6e40a49d5:Add no unused hals test
Ia352a979d:Delete unused GNSS@2.0 Thermal@2.0 checks
I1c0ef715b:checkUnusedHals: use hidl metadata
I44a5240e8:Check unused HALs on device with target FCM versio...
I5c5ec4891:Check unused HALs when system ext matrix exists.
I17894c025:Add libhidlmetadata_headers
I2c7cbf8f5:Drop GNSS1.1 and Thermal1.0

Change-Id: Id1174fec4b5a8dbab2078470d89943935aa1c4be
2020-03-23 01:39:13 +00:00
Yifan Hong
dbadfe396b Drop GNSS1.1 and Thermal1.0
These two are added because checkUnusedHals does not check for
inheritance. These two HALs are considered deprecated and are dropped
from the current matrix.

They are dropped from matrix.4.xml too because
GnssHalVersionCompatibility and ThermalHalVersionCompatibility ensures
devices with target FCM version 4 must implement GNSS2.0 and thermal
2.0.

Bug: 131717099
Test: m check-vintf-all

Change-Id: I2c7cbf8f51925e55026a9f85382c8a22897eabaa
Merged-In: I2c7cbf8f51925e55026a9f85382c8a22897eabaa
2020-03-13 15:31:32 -07:00
TreeHugger Robot
3e9669ff69 Merge "Add callback for output stream." into rvc-dev 2020-02-26 18:32:40 +00:00
Marissa Ikonomidis
a66c632f8f Merge "gralloc4-vts: don't wait on invalid sync fence" into rvc-dev 2020-02-26 18:05:47 +00:00
Marissa Ikonomidis
f1b3ea2398 Merge "gralloc4-vts: correctly instantiate std::optional" into rvc-dev 2020-02-26 18:05:06 +00:00
TreeHugger Robot
15f12a26fb Merge "composer: vts: check that refresh rate stays the same on inactivity" into rvc-dev 2020-02-26 10:11:31 +00:00
Ady Abraham
9c1d0adb3f composer: vts: check that refresh rate stays the same on inactivity
Bug: 147890947
Test: adb shell data/nativetest64/VtsHalGraphicsComposerV2_4TargetTest/VtsHalGraphicsComposerV2_4TargetTest
Change-Id: I9e1bc1325701ca1603251cc499712f11aa86d30e
2020-02-25 17:44:31 -08:00
TreeHugger Robot
74a1dce5bd Merge "gralloc4: Add RAW PlaneLayoutComponentType" into rvc-dev 2020-02-25 22:25:41 +00:00
TreeHugger Robot
d2afe97fe6 Merge "gralloc4-vts: fix bad comparisions in VTS" into rvc-dev 2020-02-25 21:52:27 +00:00
Andy Hung
77d161d09e Merge "audio hal: Update offload configuration" into rvc-dev 2020-02-25 21:04:00 +00:00
Marissa Wall
de19a7e614 gralloc4-vts: don't wait on invalid sync fence
Sync fences can be invalid if the buffer is already ready. If the
fence is invalid, we do not need to wait.

Test: VtsHalGraphicsMapperV4_0
Bug: 150213134

Change-Id: I8326d5f8b358c466ee9a686fd299daed1d4b4aa8
2020-02-25 17:44:46 +00:00
Marissa Wall
e6e1b68449 gralloc4: Add RAW PlaneLayoutComponentType
RAW12 and RAW16 buffers need a PlaneLayoutComponentType. Add a RAW
type so vendors don't have to add private RAW types.

Test: VtsHalGraphicsMapperV4_0
Bug: 149869426

Change-Id: Idf1fa609e3a1506c3c87af22d4c548cf1218fad1
2020-02-25 17:44:34 +00:00
Marissa Wall
e2127863fb gralloc4-vts: correctly instantiate std::optional
std::optional defaults to containing std::nullopt_t. Using "->" or
"." on an std::optional object that does not contain a value is
undefined. Clang seems to ignore the whole line.

SetSmpte2086 and SetCta861_3 both incorrectly instantiate their
std::optional types. The std::optional types contain std::nullopt_t
when they are passed into encode. When mapper decodes the fields,
they are empty.

Update std::optionals to be instantiated correctly.

Bug: 149931805
Test: VtsHalGraphicsMapperV4_0

Change-Id: I046242f8261a5378228231b89b2eedec242667cb
2020-02-25 17:43:29 +00:00
Marissa Wall
3a7515065b gralloc4-vts: fix bad comparisions in VTS
The parameter order of a couple checks is wrong.

For example:
EXPECT_GT(val1, val2) is EXPECT_TRUE(val1 > val2)
so EXPECT_GT(0, X) can never be true.

Update the tests to be correct.

Test: VtsHalGraphicsMapperV4_0
Bug: 149739702

Change-Id: I21070a912b6014acc5feb63b6b19912b45fe8f5f
2020-02-25 17:43:21 +00:00
jiabin
5d11612694 Add callback for output stream.
The callback is targeted for events related to an output stream.
Currently, there is one callback event defined, which is codec
format changed event.

Bug: 133526565
Test: manual
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I73a4914c1ffc30e1c88b8fedd61a031e24a069f6
2020-02-25 09:08:26 -08:00
Steven Moreland
bfefeddfef Merge "Clarify new setRadioPower documentation" into rvc-dev 2020-02-25 17:06:14 +00:00
Andy Hung
7aab1010d4 audio hal: Update offload configuration
Test: no regression with offloaded Play Music
Bug: 133526565
Merged-In: Ie655a96503be5a4ad1660d4b2183b01e514452fd
Change-Id: Ie655a96503be5a4ad1660d4b2183b01e514452fd
(cherry picked from commit c91b679ac1)
2020-02-25 09:06:09 -08:00
Sarah Chin
8f4e79a646 Remove IRadioConfig 1.3 hash
Bad merge conflict resolution when removing IRadioConfig 1.3

Bug: 149522248
Test: mm cf_x86_phone-userdebug
Change-Id: I055b94a2bf275d9ed5ecff6f271e8204e6ee7c0b
2020-02-25 01:19:49 +00:00
Brad Ebinger
92747ce5d1 Clarify new setRadioPower documentation
There were some questions on how the new IRadio 1.5 setRadioPower
command should be implemented based on vendor feedback. This CL
clarifies this behavior.

Test: manual
Bug: 143683674
Bug: 147496715
Merged-In: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
Change-Id: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
(cherry picked from commit 0eac27ccf3)
2020-02-25 01:16:15 +00:00
Changyeon Jo
2056c2da3b Parameterize VtsEvsHalV1_1TargetTest
Bug: 142397658
Bug: 142275664
Test: VtsHalEvsV1_1Target
Change-Id: I5e0a65e6200626c606c1c015942274d2098ee7ed
Signed-off-by: Changyeon Jo <changyeon@google.com>
2020-02-23 19:21:37 -08:00
Andy Hung
6f3fdba631 Merge changes from topics "fix-b-133526565-setters-getters", "fix-b-133526565-setters-getters-2"
* changes:
  audio: Add playback rate parameters to IStreamOut
  audio: Add Dual Mono Mode and Audio Description Mix Level to IStreamOut
2020-02-21 23:37:33 +00:00
Tanmay Patil
5cd7390407 Merge changes from topic "UltrasonicsEVS"
* changes:
  Add VTS for Ultrasonics to EVS 1.1
  Adds default implementation for ultrasonics HAL
  Adds HAL for ultrasonics to EVS 1.1
2020-02-21 23:33:42 +00:00
TreeHugger Robot
e69d939378 Merge "Add hash value for the interfaces in Tuner HAL" 2020-02-21 22:54:41 +00:00
Yin-Chia Yeh
24bcd6340c Merge "Camera: clarify depth camera requirement for OFFLINE_PROCESSING" 2020-02-21 21:43:49 +00:00
Henry Fang
b7a0685c9c Add hash value for the interfaces in Tuner HAL
bug: 148110220
Test: Manual
Change-Id: If73f5fc2cd17e6c784b5386b025003b716658dd2
2020-02-21 13:01:55 -08:00
Kai Wang
653916fb29 Merge "Add property for multiple ev port locations" 2020-02-21 20:52:03 +00:00
Automerger Merge Worker
b141a23957 Merge "confirmationui: Add portability test" am: 7e6517f8e9 am: f04431c792 am: 7ff76b4eb4
Change-Id: I9ddba56dcca9a0325fc09e5b38215a4e73875bdf
2020-02-21 20:11:00 +00:00
Automerger Merge Worker
7ff76b4eb4 Merge "confirmationui: Add portability test" am: 7e6517f8e9 am: f04431c792
Change-Id: Ia38cdbda17b786960107829aa8559fa90dfe784b
2020-02-21 19:45:59 +00:00
Automerger Merge Worker
f04431c792 Merge "confirmationui: Add portability test" am: 7e6517f8e9
Change-Id: I9da903b8611fba5be0b0255870fb845bb19c55eb
2020-02-21 19:26:11 +00:00
Janis Danisevskis
7e6517f8e9 Merge "confirmationui: Add portability test" 2020-02-21 19:13:12 +00:00
Automerger Merge Worker
62d4f33e88 [automerger skipped] IDumpstateDevice 1.1 tweak: "device" -> "verbose" am: 84dbf58f3c am: 1ba075c9e1 am: d521d02c75 -s ours
am skip reason: Change-Id Ib71ce43e9168d82fd9ee0564db813c5a3538c459 with SHA-1 09c8b5ba59 is in history

Change-Id: I53f6db496bf54998202fa61e2ca35c900608ad11
2020-02-21 16:14:17 +00:00
Automerger Merge Worker
d521d02c75 IDumpstateDevice 1.1 tweak: "device" -> "verbose" am: 84dbf58f3c am: 1ba075c9e1
Change-Id: Ic2075e6793b0831ee6a46b3bac5e01a0b1ddcce8
2020-02-21 15:59:04 +00:00
Automerger Merge Worker
1ba075c9e1 IDumpstateDevice 1.1 tweak: "device" -> "verbose" am: 84dbf58f3c
Change-Id: Id339628165bc246241782a8a2851b0ee35a9a2b2
2020-02-21 15:41:32 +00:00
Haoxiang Li
4f5188ae50 [SV HIDL] VTS Test for Surround View
Bug: 148618804

Test: atest -c VtsHalSurroundViewV1_0TargetTest

Change-Id: I1c6bfa77adb699ab80337497aac4582861315bcd
2020-02-21 06:29:43 +00:00
Haoxiang Li
a4a81e3829 [SV HIDL] Default implementation for Surround View
Bug: 148618804

Test: atest -c VtsHalSurroundViewV1_0TargetTest (tested together with Change-id I1c6bfa77adb699ab80337497aac4582861315bcd)

Change-Id: Ibc9e32d9cc6c93ca71f34bc54e3bdecdf2c4dba2
2020-02-21 06:29:27 +00:00
Haoxiang Li
6bdb811fa7 [SV HIDL] Adds HAL interfaces for surround view.
Bug: 148618804

Test: Build passed.

Change-Id: Ie5d8540258d456408394e9ac4256db764f6b3cd7
2020-02-21 06:29:13 +00:00
Lev Proleev
fe31a4dfa8 Merge "Add align_corners and half_pixel_centers parameters to resize ops" 2020-02-21 06:08:51 +00:00
Tanmay Patil
d91f1c3e97 Add VTS for Ultrasonics to EVS 1.1
Bug: 148619310

Test:  atest VtsHalEvsV1_1TargetTest

Change-Id: If91bce64cf06fd374b3829b0f01804bdc375197d
2020-02-20 17:50:35 -08:00
Tanmay Patil
b97cceb495 Adds default implementation for ultrasonics HAL
- Replicates logic from camera for default impl.

Bug: 148619310
Fixes: b/148608401
Test: Builds, VTS passes.

Change-Id: I5c1b4c615f98cb7405a9a233a7853daba09cc63d
2020-02-20 16:50:58 -08:00
Janis Danisevskis
8d4f06f1f3 confirmationui: Add portability test
Add a test that starts the dialog with some Confirmation strings that
need to be supported to provide portability guarantees.

Bug: 149954317
Test: VtsHalConfirmationUIV1_0TargetTest
Change-Id: Ie6961848d41b7d23d13b85702330682c755a9bbc
2020-02-20 16:38:25 -08:00
Ahmed ElArabawy
c4ae073b9a Merge "Wifi: Add support for mapping DSCP to Wifi AC" 2020-02-21 00:23:06 +00:00
TreeHugger Robot
4598e7b918 Merge "Add rotary interface to VHAL." 2020-02-20 23:14:57 +00:00
Yin-Chia Yeh
6e082e8581 Camera: clarify depth camera requirement for OFFLINE_PROCESSING
Test: build (doc only change)
Bug: 135142453
Change-Id: I48589e6f7fad6ff291a57de305b4a549dbb843b2
2020-02-20 22:44:27 +00:00
TreeHugger Robot
7704cfb914 Merge "gralloc4-vts: setting USAGE is always BAD_VALUE" 2020-02-20 21:15:43 +00:00
Hunter Knepshield
84dbf58f3c IDumpstateDevice 1.1 tweak: "device" -> "verbose"
Pixel has been dumping some non-sensitive information in bug reports
using IDumpstateDevice for a long time, and requiring nothing to be
dumped on user builds by default suddenly changes behavior.

To account for this use case, we instead change the meaning of the
toggle to control *verbose* logging, specifically anything with privacy,
storage, or battery impact.

VTS tests are updated appropriately.

Bug: 143183758
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest
Change-Id: Ib71ce43e9168d82fd9ee0564db813c5a3538c459
Merged-In: Ib71ce43e9168d82fd9ee0564db813c5a3538c459
(cherry picked from commit 09c8b5ba59)
2020-02-20 12:48:55 -08:00
Mikhail Naganov
973e4d33b5 audio: Add playback rate parameters to IStreamOut
Playback rate parameters allow changing the playback speed
of audio streams optionally preserving the pitch (this is
often referred to as "timestretch"). HALs can apply these
parameters when decoding of streams is done in hardware.

Bug: 133526565
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ie78cd924bd034b57bf5b6a74affd62641ffc0aba
2020-02-20 11:13:14 -08:00
Kai
d0bc0bc57b Add property for multiple ev port locations
Some cars have multiple ev ports.

Bug: 117599455
Test: google VHAL and kitchenSink app
Change-Id: I630b60f773867d1e3a85786403ee28852d497f7e
2020-02-20 10:31:30 -08:00
Danny Epstein
71e543a61f Add rotary interface to VHAL.
Adds a new property for rotary knobs that can spin indefinitely.

Test: Changed Hawk VHAL to use new property for volume
Change-Id: I74eb664e243b5796f7bccb2debd9c440bf430f7d
2020-02-20 10:15:59 -08:00
Marissa Wall
2e9bf64c5e gralloc4-vts: setting USAGE is always BAD_VALUE
Usage cannot be change after allocation. Mapper must return
BAD_VALUE. SetConstantMetadata already tests this. Remove
the tests that attempted to set USAGE and expected it could
succeed.

Test: VtsHalGraphicsMapperV4_0
Bug: 149830560

Change-Id: I730dd3f3c0c48946c436e8fb60256365e0d9ab1e
2020-02-20 10:08:31 -08:00
Tomasz Wasilczyk
4763857c6e Merge changes from topic "canhal"
* changes:
  Add ICanController BAD_SERVICE_NAME error
  Simplify bus configuration.
2020-02-20 17:10:29 +00:00