Added new API and parceable for informing the HAL when to mute and
unmute audio for automotive targets. Also added default implementation
to log information passed on.
Bug: 173141906
Test: atest VtsAidlHalAudioControlTest
Change-Id: I4c20320d33417616eef7a980a375ab9303b43eab
Introducing new API and parcelable for informing the HAL when to duck
audio for automotive targets.
Bug: 158242859
Test: atest VtsAidlHalAudioControlTest
Change-Id: I5799c556e338d768ea8010e1f035af8584a240dd
This change updates CameraOpenClean test case to handle logical camera
devices properly when it attempts to set and get an extended info.
Fix: 175260026
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: Ie18436afa722dd24abcaa1a4e0180955827ee499
libqemu_pipe is an implementation detail in
android.hardware.automotive.vehicle@2.0-default-impl-lib
and not exposed to the outside.
Bug: 175046060
Bug: 154348162
Test: m android.hardware.automotive.vehicle@2.0-virtualization-service
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I769da5d707e378ce212b9957ea5c116b08eae382
libqemu_pipe is an implementation detail in
android.hardware.automotive.vehicle@2.0-default-impl-lib.
libqemu_pipe module will be replaced with one
from device/generic/goldfish.
Bug: 175046060
Test: m android.hardware.automotive.vehicle@2.0-virtualization-service
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I00de16c55797e3aaf650aee6d0ec400fd12c2de2
- Changed package to use android. prefix
- Added nullability flag to xsd_config
Bug: 171572311
Test: built and atest VtsHalAudioEffectV7_0TargetTest
VtsHalAudioEffectV7_0TargetTest VtsHalAudioEffectV4_0TargetTest
VtsAidlHalAudioControlTest
Change-Id: I9ac83a98256404313b5efef17c0a164d2ee72136
Bug: b/170335834
Test: Built in target and ran `adb shell dumpsys
android.hardware.automotive.audiocontrol.IAudioControl/default` commands
Change-Id: Iccf5784fce7635c78ca8cc0f9066b4dc9f24b3bd
- Updated APIs to use strings instead of enum for AudioUsages
- Updated dumpsys commands to take strings for usages instead of
integers
Bug: b/170335834
Test: build and run VTS tests
Change-Id: I1773383812e97e7dee6da2eba250ea842d59b8cb
- POWER_POLICY_REQ: VHAL uses to set a new power policy
- POWER_POLICY_GROUP_REQ: VHAL uses to set default power policies
per power status transition
- CURRENT_POWER_POLICY: carpowerpolicyd updates to tell VHAL the current
power policy
Bug: 162599168
Test: build okay
Change-Id: Ife58cec19bc099129d2cc49bac8821455d6b4194
When the underlying display is not ready yet,
IEvsDisplay::getDisplayInfo_1_1() returns an empty display information.
When this happens, CameraToDisplayRoundTrip test case must fail because
it verifies the camera and display hardware devices both.
Fix: 169877399
Test: m -j vts and run CameraToDisplayRoundTrip
Change-Id: I2ecb03d19a9088436e7701003944cd76af6c260a
VehiclePropValue enums is not sorted by their values. Thus obtaining MIN and MAX values for this enum is O(N), which is the same as looping through all the values and checking whether a given int32_t is in the enum.
Test: Tested with `atest -c android.hardware.automotive.vehicle@2.0-utils-unit-tests`.
Bug: 168249409
Change-Id: I296a56e31caa7a5ee69eac49806810f83e46571e
(cherry picked from commit b7d50b91eb)
HW_CUSTOM_INPUT is an input event to be defined by OEM partners.
Bug: 159623196
Test: atest CarServiceUnitTest
Change-Id: I6df5b292730079260af7c48c0d6e5748c5b3470a
- when VHAL prop is not supported, getPropConfigs calls hidl callback
with INVALID_ARG and has to return.
- otherwise, there will be two callbacks invoked from VHAL.
Bug: 168834308
Test: seahawk should boot up
Change-Id: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
Merged-In: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
(cherry picked from commit 26abceefbe)
- when VHAL prop is not supported, getPropConfigs calls hidl callback
with INVALID_ARG and has to return.
- otherwise, there will be two callbacks invoked from VHAL.
Bug: 168834308
Test: seahawk should boot up
Change-Id: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
VehiclePropValue enums is not sorted by their values. Thus obtaining MIN and MAX values for this enum is O(N), which is the same as looping through all the values and checking whether a given int32_t is in the enum.
Test: Tested with `atest -c android.hardware.automotive.vehicle@2.0-utils-unit-tests`.
Bug: 168249409
Change-Id: I296a56e31caa7a5ee69eac49806810f83e46571e
ConfigArray in Gear_Selection indicates the supported Gear
Bug: 165942804
Test: build and check value in emulator
Change-Id: I4567031a072edda550b671bc190934d24d5b5eba
(cherry picked from commit a3b16c2d8e)
This library contains helper functions to convert the User HAL reponse
structs to VehiclePropValues and request VehiclePropValues to HAL
structs.
Test: atest android.hardware.automotive.vehicle@2.0-utils-unit-tests
Bug: 150409377
Bug: 167588307
Change-Id: I978b39e2f3ee58eb3b154f507c714ca1ba2d1e3b
Merged-In: I978b39e2f3ee58eb3b154f507c714ca1ba2d1e3b
(cherry picked from commit b33e2abbfe)
- VHAL will not be a client to car watchdog.
- Instead, VHAL updates VHAL_HEARTBEAT periodically and car watchdog
determines VHAL's health based on it.
Bug: 165861394
Test: manual test
Change-Id: If84979ad4ed4dd60c18810b8ae17d6ed8e9bb132
- WATCHDOG_ALIVE to tell car watchdog is alive
- WATCHDOG_TERMINATED_PROCESS to pass a process information terminated
- VHAL_HEARTBEAT to signal that VHAL is alive
by car watchdog
Bug: 159912961
Test: build okay
Change-Id: I0498d525aa6465199f0b0011600234feaf7c4aa4
ConfigArray in Gear_Selection indicates the supported Gear
Bug: 165942804
Test: build and check value in emulator
Change-Id: I4567031a072edda550b671bc190934d24d5b5eba
Bug: 162032964
Test: watch logcat for ifautocf and l2repeater
Test: adb shell canhalctrl up test virtual vcan2
Change-Id: Icbae3951113391846cfcf9a6747ed565bdaa7dd7
Also, fix one instance of non-inclusive language that slipped through.
Bug: 162032964
Bug: 162745675
Test: custom implementation to watch for NEWLINK/DELLINK messages
Change-Id: I8fe05731fd9d598ec3aec1452aa04ac764e9c7e7
While we're here, also drop struct keywords where we use Linux structures.
Bug: 162032964
Test: canhalctrl up test virtual vcan3
Change-Id: Ib629cad3d2203b998668f45534699292863cadd9
- merge two send() methods into one
- use internal receive buffer instead of asking user to supply one
- move setting sequence number to MessageFactory sending code
- don't limit send function to Kernel as a recipient
- move adding NLM_F_ACK to the caller side
- getSocketPid -> getPid
- unsigned int -> unsigned
One part missing is refactoring receiveAck (b/161389935).
Bug: 162032964
Test: canhalctrl up test virtual vcan3
Change-Id: Ie3d460dbc2ea1251469bf08504cfe2c6e80bbe75
This library contains helper functions to convert the User HAL reponse
structs to VehiclePropValues and request VehiclePropValues to HAL
structs.
Test: Tested with unit tests.
Bug: 150409377
Change-Id: I978b39e2f3ee58eb3b154f507c714ca1ba2d1e3b
One exception is for RTA_* definitions at NetlinkRequest. This class is
going to be refactored anyway, so let's focus on this later.
While we're here, also replace type assumptions with an actual
decltype lookup.
Bug: 162032964
Test: canhalctrl up test virtual vcan123
Change-Id: I3b509fa7b1870d4de7302fb5221a06613dfbb817
Don't print extra byte numbering for arrays with a size that is a
multiple of 16.
Bug: 161938586
Test: Manual inspection of printer output
Change-Id: I4a7948439dd18b440a6abfae388306167433ebd6
Also:
- fix potential use-after-free in nlbuf iterator
- simplify getFirst usage by migrating from std::optional to std::pair
Bug: 161898189
Test: print all messages from RTMGRP_LINK group
Change-Id: I4aa785ccef60e397ba87088f37e35d9873fc3c82
Some changes were not properly auto-merged, and it's quite impossible to
cherry-pick them automatically (using git), so this CL is manually fixing
it.
Test: adb shell lshal debug android.hardware.automotive.vehic
le@2.0::IVehicle/default --user-hal
Bug: 150413515
Change-Id: Ibb8bef2c1ae8df32369dff5c5e5de76480b3a66f
Merged-In: I5c8b99b8027b5ec10ace323d872cd85f9a0d4177
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896584 a 1 i -42 i 4 i 11
Fixes: 161574356
Change-Id: Iaf5d8e35f556c72350cdb9b6665adb31fca26871
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.
.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.
Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.
Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.
.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.
Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.
Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.
.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.
Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.
Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Also, print error message where the error code is available through
other means than errno.
Test: it builds
Change-Id: I0276c4bcd50debc0003aab4e3229ea33ac79f3ac
The previous change to do this missed a couple includes. Simply
compiling doesn't catch header problems unless the headers are actually
used.
Bug: 160171644
Test: Manual
Change-Id: I9edc76b47e934b60a143ebfacdeaeeddc0768fc5