Commit graph

643 commits

Author SHA1 Message Date
Kai Wang
89fe540104 Merge "Duplicate setting when generate fake data" into rvc-dev 2020-05-01 22:25:37 +00:00
Kai
bb780f4875 Revise documentation for tire pressure and max_defrost
Use the max/min in areaConfig to indicate the recommended tire
pressure.
Explain areaId for HVAC_MAX_DEFROST

Bug: 153906683
Test: make and flash
Change-Id: Ie71279dba4e87efdec75934dcac1c86e22fffaa3
2020-04-30 18:56:27 +00:00
Hayden Gomes
331370012d Merge "Fix AudioControl@2.0 fade check" into rvc-dev 2020-04-29 17:27:32 +00:00
Hayden Gomes
908a0a2d6b Fix AudioControl@2.0 fade check
Fade now checks isValidValue rather than !isValidValue

Bug: 155225937
Test: built ran and adjusted fade
Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
2020-04-28 15:12:19 -07:00
TreeHugger Robot
d2115c9876 Merge "Moved emulated User HAL capabilities into a library." into rvc-dev 2020-04-27 19:23:12 +00:00
felipeal
9c998c0720 Moved emulated User HAL capabilities into a library.
So it can be used by other Vehicle HAL implementations.

Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --user-hal
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --help
Test: m -j android.hardware.automotive.vehicle@2.0-emulated-user-hal-lib

Bug: 150167241
Bug: 150409377

Merged-In: I2d0c5039c3b994dfe10d3b411f6d502bebe7cca0
Change-Id: I2d0c5039c3b994dfe10d3b411f6d502bebe7cca0
2020-04-24 16:11:19 -07:00
TreeHugger Robot
a772a420b0 Merge "Add support to USER_IDENTIFICATION_ASSOCIATION_PROPERTY." into rvc-dev 2020-04-24 00:23:34 +00:00
TreeHugger Robot
bb0349f722 Merge "Minor corrections on USER_SWITCH documentation." into rvc-dev 2020-04-23 23:26:20 +00:00
Felipe Leme
0fd963cad8 Minor corrections on USER_SWITCH documentation.
Also removed the hash check on Vehicle HAL files, as they're still being
worked on.

Test: m
Bug: 15249991

Change-Id: I214ebc9b5bbd71e5db1a1332296ceb4e426c50cf
2020-04-23 14:28:30 -07:00
Calvin Huang
96ea2ce5e7 Merge "Add manifest to vintf fragments" into rvc-dev 2020-04-23 20:24:30 +00:00
felipeal
67664dfacc Add support to USER_IDENTIFICATION_ASSOCIATION_PROPERTY.
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896587 i 1 i 1 i 2
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --get 299896587

Bug: 150409351

Change-Id: I5f05c1689abdeeffd1abcd0e85fd01b584501a2e
2020-04-23 12:54:09 -07:00
Jordan Jozwiak
93f22c85c7 Merge "Add config for tire pressure display units" into rvc-dev 2020-04-23 19:19:54 +00:00
Jordan Jozwiak
7faa170ff1 Add config for tire pressure display units
Bug: 154751939
Test: aae app vhal apply google
// verify property included in dump
adb -s c3139966 shell dumpsys activity service com.android.car get-carpropertyconfig | grep TIRE_PRESSURE_DISPLAY_UNITS -A5

Change-Id: Id7a3ad7351db5a4f03ab3a29fa06e9c82321a44e
2020-04-22 14:38:52 -07:00
Calvin Huang
a653616f18 Add manifest to vintf fragments
Bug: 153734354
Test: Manual
Change-Id: I5f29cdacced0bdc0bf5a74f92ecda916f10bea06
2020-04-21 14:44:10 -07:00
chrisweir
0d69b72097 Undo symlinked libc++fs
Several features for auto need libc++fs, but the previous solution of
symlinking to external/libcxx would cause problems later down the
line. Instead, we will compile a separate version of libc++fs with a
different namespace, as to not interfere with the canonical
std::filesystem.

Change summary
===============================================================
directory_iterator.cpp:
-----------------------
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang-format (to reduce diff size)
* "" --> <> for non-local includes

filesystem_common.h:
--------------------
* FILESYSTEM_COMMON_H --> AUTO_FILESYSTEM_COMMON_H
* "" --> <> for non-local includes
* filesystem --> automotive/filesystem
* don't include apple_availability.h
* add using std::error_code
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* use namespace std::chrono
* use std::error_code, std::is_floating_point, std::micro, std::nano, std::ratio
* LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang format (to reduce diff size)

filesystem:
-----------
* _LIBCPP_FILESYSTEM --> _LIBAUTO_FILESYSTEM
* std::filesystem --> android::hardware:automotive::filesystem
* _VSTD_FS --> android::hardware::automotive::filesystem
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* Copied _FilesystemClock from chrono
* use namespace std and std::chrono
* use std::basic_string, std::enable_if, std::error_code, and std::false_type

operations.cpp:
---------------
* filesystem --> automotive/filesystem
* "" --> <> for non-local includes
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* _VSTD_FS --> android::hardware::automotive::filesystem
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang-format (to reduce diff size)
* fix "the the" typo (to pass lint)

Bug: 152067309
Test: Manual
Change-Id: I5551b3e634b85b4d7236e888de68740bfda6aad1
2020-04-21 11:19:28 -07:00
Calvin Huang
a7f44eb83c Add manifest for IVehicle
Bug: 153734354
Test: Manual
Change-Id: I7e6a65e3fb49bb04108d0fd243df0b7447a93b1e
2020-04-16 16:02:17 -07:00
Kai
56e5567aaa Duplicate setting when generate fake data
If the statusCode is Ok, we generate the fake data twice which will
break the test.

Bug: 143234180
Test: atest VehicleHALTest
Change-Id: I7754649fb4202239f9eca63a12bc8dd5f2a3d916
2020-04-13 18:11:14 -07:00
Hayden Gomes
6eaedbae7c Merge "Adding android_filesystem_config.h import" into rvc-dev 2020-04-10 16:19:37 +00:00
Hayden Gomes
f8f12edfb1 Merge changes from topic "HAL Audio Focus" into rvc-dev
* changes:
  Adding a lshal command for abandoning focus
  Adding --request command to default AudioControl HAL
  Adding basic lshal support for AudioControl
2020-04-10 15:43:34 +00:00
TreeHugger Robot
1b33916a3b Merge "Freeze vintf aidl interfaces" into rvc-dev 2020-04-10 12:38:13 +00:00
Hayden Gomes
8261cac9e8 Adding android_filesystem_config.h import
Addressing outstanding todo in VehicleHalManager

Bug: 148098383
Test: m vts and atest android.hardware.automotive.vehicle@2.0-manager-unit-tests
Change-Id: I9a222077d0de91f8c7353c80d8a1aeff53cffa61
2020-04-09 17:17:31 -07:00
Hayden Gomes
c4199eabf8 Adding a lshal command for abandoning focus
Bug: 148098383
Test: adb shell lshal debug
    android.hardware.automotive.audiocontrol@2.0::IAudioControl/default
    --abandon 1 0
Change-Id: I4bec12ec3ae0fc6b73de8b823501f0f478d75d94
2020-04-09 16:13:11 -07:00
Hayden Gomes
fa81977e1a Adding --request command to default AudioControl HAL
Adding a lshal command for requesting focus

Bug: 148098383
Test: adb root && adb shell lshal debug
android.hardware.automotive.audiocontrol@2.0::IAudioControl/default
--request 1 0 1

Change-Id: I51f78ff495d81f03903515a9151c9ddd3350ee96
2020-04-09 16:13:04 -07:00
Hao Chen
37cd4646ac Move virtualization-specific proto definition to /device/google/trout
Test: build
Bug: 148816426
Change-Id: I5ea4a078d2733d0b5fc370211389ebc0488898ef
2020-04-09 18:20:15 +00:00
Jeongik Cha
7e2674589f Freeze vintf aidl interfaces
AIDL interfaces which are vintf-stable have to be frozen in release.
But these interfaces have been never frozen, so freeze them.

- android.hardware.common
- android.hardware.automotive.occupant_awareness
- android.hardware.rebootescrow
- android.hardware.graphics.common

Bug: 153510296
Bug: 153510400
Bug: 153510960
Bug: 153511702
Test: m
Change-Id: I56e53209eaf00518ec83f2a322e89d6d944eb0ac
2020-04-08 13:36:51 +00:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
TreeHugger Robot
03a34b7964 Merge "Add filegroup for trout project to use VehicleHalProto definition" into rvc-dev 2020-04-07 20:05:47 +00:00
Hayden Gomes
052ccf2b6f Adding basic lshal support for AudioControl
Dumps status of focus listener

Bug: 148098383
Test: adb shell lshal debug
android.hardware.automotive.audiocontrol@2.0::IAudioControl/default
--help

Change-Id: I90d9f2b41bdee704b77457262f23a39d22c38f0a
2020-04-07 12:26:25 -07:00
Calvin Huang
d5608a2d5a Override VHAL property init value with json
Bug: 150978133
Test: Manual
Change-Id: Iaa45adad3712ca3cc325d52433048b3208109402
2020-04-06 22:07:02 -07:00
Hao Chen
efc31de2b6 Add filegroup for trout project to use VehicleHalProto definition
Other virtualization specific definitions and build rules will be moved
to /device/google/trout in the following patches. Keep them for now so
that we will not break the build.

Test: build
Bug: 148816426
Change-Id: I8a579346b55aa812db3dd30a34050c9515f7a68d
2020-04-06 16:27:15 -07:00
TreeHugger Robot
cebc574331 Merge "Convert VtsHalAudioControlV1_0TargetTest to parameterized gtest" into rvc-dev 2020-04-06 19:01:20 +00:00
Dan Shi
5cd54b5b0d Convert VtsHalAudioControlV1_0TargetTest to parameterized gtest
Bug: 150383827
Bug: 150381814
Test: atest VtsHalAudioControlV1_0TargetTest
Change-Id: I900f6a540c44d13f5f8a8882b573fa5669c1732f
2020-04-06 15:58:59 +00:00
Steven Moreland
ad5bf6f522 Merge "Add VtsCan* to vts." into rvc-dev 2020-04-03 22:31:05 +00:00
Hayden Gomes
b3bdf80113 Merge "Fixing AudioFocusChange to be signed int" into rvc-dev 2020-04-03 21:59:30 +00:00
Steven Moreland
852fc3ba4e Add VtsCan* to vts.
Bug: 139438327
Test: N/A
Change-Id: I73447a6a0b891adc9fbb0d931ae517e99f141c64
2020-04-02 14:38:19 -07:00
Hayden Gomes
23f48e01b5 Fixing AudioFocusChange to be signed int
AudioFocusChange is expected to have negative values, but was originally
defined to be an unsigned int.

Bug: 153090512
Test: make -j
Change-Id: I27cd8134f9fe19fbefc788e5c2498947dc52967e
2020-04-02 14:13:40 -07:00
Changyeon Jo
8b06871849 Add CameraStreamExternalBuffering test case
This change adds a VTS test case to validate a new
IEvsCamera::importExtenralBuffers() API.  New test case allocates
graphic buffers and passes them via a new API call.

Bug: 152493110
Test: vts-tradefed VtsHalEvsV1_1_TargetTest
Change-Id: I157f3cf45092a9a4ca8bf5bf9ea54aa62d15225c
2020-04-01 10:54:45 -07:00
Changyeon Jo
3e69744f0f User allocated EVS camera capture buffers
This change introduces a new API to import frame capture buffers
allocated by the clients.

Bug: 152493110
Test: m -j and run /system/bin/evs_app --test --extmem
Change-Id: I679c61719e4d0e3a7d0c41110afe66e0a4ccb305
2020-03-31 17:45:22 -07:00
TreeHugger Robot
87a7e48db3 Merge "Update the current API dump" into rvc-dev 2020-03-31 00:59:56 +00:00
TreeHugger Robot
5a8697164d Merge "Implemented SWITCH_USER in the emulated User HAL." into rvc-dev 2020-03-30 23:35:33 +00:00
chrisweir
c8716aebfc Remove completed TODO
TODO for serial number support should be removed now that the feature is
implemented and merged.

Bug: 142654031
Test: Manual - comment only change
Change-Id: Ib733e71840e82e5cd9c47825a53f804f9c296a3d
2020-03-30 13:12:30 -07:00
Chris Weir
ee08459e45 Merge "Clean up errno logs and sto* conversions" into rvc-dev 2020-03-30 20:00:09 +00:00
Chris Weir
cb7499c772 Merge "Add Support for Configuring CAN HAL by Serialno" into rvc-dev 2020-03-30 19:40:27 +00:00
TreeHugger Robot
d11d6ee03f Merge "Using VINTF manifest fragment" into rvc-dev 2020-03-30 19:16:24 +00:00
chrisweir
a9d0e90f14 Add Support for Configuring CAN HAL by Serialno
Configuration files may now specify a list of serial numbers, or serial
number suffixes. These can be used to identify a USB peripheral,
regardless of what order the interface names are configured by the OS.

Bug: 142654031
Test: Manual
Change-Id: Idcdad1159b216119eb063df8bb229172a383b9ed
Merged-In: Idcdad1159b216119eb063df8bb229172a383b9ed
(cherry picked from commit 442b3badc8)
2020-03-30 17:22:55 +00:00
Changyeon Jo
6912b90613 Using VINTF manifest fragment
Bug: 152703657
Test: m check-vintf-all -j
Change-Id: I44fd1b7c2269891d0b4447cf1be7d8d5fbb8889a
2020-03-29 22:59:08 -07:00
Jiyong Park
bafc0c0c5c Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: I6fe1185e82d248deb021d8c75b4af7d9ca330db2
2020-03-30 14:57:53 +09:00
chrisweir
62bbf3dca9 DO NOT MERGE Add support for EFF/RTR to canhalsend
Adding support for extended format frames and remote transmission
request frames to canhalsend.

Bug: 149404884
Test: Manual
Merged-In: I330b9d24c34918b38612ddc1745f019e11bfd474
Change-Id: I330b9d24c34918b38612ddc1745f019e11bfd474
(cherry picked from commit 30bd3dce06)
2020-03-27 23:50:49 +00:00
chrisweir
75a80f6b60 Clean up errno logs and sto* conversions
I learned that we should be using PLOG to log errno strings, and we
should be avoiding stoi, stol, etc... conversions and instead use the
built in Android ParseInt/ParseUint functions.

Bug: 150250606
Bug: 150245058
Test: Manual for CLI tools, VTS for everything else
Merged-In: Icdd8a6af8564d5de3bedd1bc934f7928eb5e66e9
Change-Id: Icdd8a6af8564d5de3bedd1bc934f7928eb5e66e9
(cherry picked from commit 1173a7253b)
2020-03-27 18:04:48 +00:00
Chris Weir
33277cdc2b Merge "CAN Configurator Service" into rvc-dev 2020-03-26 22:28:11 +00:00