Commit graph

611 commits

Author SHA1 Message Date
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
chrisweir
8fd2a85b6d Clean up TODOs
Squeegee supports Android now, so I'm cleaning up my TODOs.

Bug: 144458917
Bug: 144775286
Test: Only changes to comments

Change-Id: Ifd9907ba944759d4d5b36bce92f6bd11b5bb74e7
(cherry picked from commit 1ab3554868)
2020-03-26 18:34:17 +00:00
chrisweir
01247f9508 CAN Configurator Service
Configurator service for the CAN HAL and extracting some of the CAN HAL
configuration logic into a library for the various tools to share.

Bug: 142653776
Test: Manual
Change-Id: Id33871da851bcb442a7f851919f713ec913830ff
(cherry picked from commit 33ce7505d1)
2020-03-26 18:30:31 +00:00
chrisweir
740c3d53c0 Add libc++fs for auto
Add a temporary version of libc++fs for a couple of auto features. This
will need to be switched out when libc++fs merges, possibly in S.

Bug: 152067309
Bug: 142654031
Test: Manual
Change-Id: Ibb495af8140470b79e73fd104fd5061f7e3ad8a9
2020-03-24 20:00:11 +00:00
felipeal
eb5c657bc7 Implemented SWITCH_USER in the emulated User HAL.
Examples:

$ adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --user-hal
No InitialUserInfo response
No SwitchUser response

$ adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896584 a 1 i 666 i 3 i 1 s "D\\'OH!"
Set property {.timestamp = 63698971001637, .areaId = 1, .prop = 299896584, .status = AVAILABLE, .value = {.int32Values = [3]{666, 3, 1}, .floatValues = [0]{}, .int64Values = [0]{}, .bytes = [0]{}, .stringValue = "D'OH!"}}

$ adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --user-hal
No InitialUserInfo response
SwitchUser response: {.timestamp = 63698971001637, .areaId = 1, .prop = 299896584, .status = AVAILABLE, .value = {.int32Values = [3]{666, 3, 1}, .floatValues = [0]{}, .int64Values = [0]{}, .bytes = [0]{}, .stringValue = "D'OH!"}}

Test: see commands above
Bug: 150409110

Change-Id: Id5b92774fccebbc39ed8d3f553df3f5aa30fc656
2020-03-23 09:43:34 -07:00
Kai Wang
e5a22f2fa1 Merge "Add timestamp for continuously property." into rvc-dev 2020-03-18 17:47:04 +00:00
Kai
47a9378d4d Add timestamp for continuously property.
Bug: 148960132
Test: 1. apply google vhal to device
      2. atest CtsCarTestCases:CarPropertyManagerTest

Change-Id: Ib6690b5e242287958017c87632f56a546d418674
2020-03-17 22:46:06 +00:00
Huihong Luo
034c9bc96e Don't send brightness to car service inside Emulator
This fixes this cts test: android.cts.statsd.atom.UidAtomTests#testScreenBrightness

Bug: 139959479
Test: atest android.cts.statsd.atom.UidAtomTests#testScreenBrightness
Change-Id: I66f858ce7686a90cd395f4e646133e8ea4604be4
Merged-In: I66f858ce7686a90cd395f4e646133e8ea4604be4
(cherry picked from commit 1322465c48d0c3dfa5953573b80a89460b8e7e95)
(cherry picked from commit 5d463fdaaa)
2020-03-11 19:34:00 -07:00
TreeHugger Robot
8f3fee6216 Merge "Bugfix: add "override" explicitly to make the compiler happy" into rvc-dev 2020-03-10 20:58:52 +00:00
Hao Chen
25cf3b5b9c Bugfix: add "override" explicitly to make the compiler happy
Test: build

Bug: 148877226
Change-Id: I90806ee2c2302ce9cc5dc8f82754aa807c2ec7ef
2020-03-09 12:53:23 -07:00
Changyeon Jo
fae91b1bb9 Fix a resource clean-up routine
When a test case is being terminated, VTS framework calls TearDown() to
clean up all resources.  VtsHalEvsV1_1TargetTest stores weak references
to opened hardware cameras for this and tries to close them explicitly
when it can promote them.  However, it was observed that VirtualCamera's
destructor is not called yet even it fails to promote.

Therefore, this change modifies a container to hold a strong pointer and
explictly removes it after a test case calls closeCamera().

Also, this change corrects a bug in checking setExtendedInfo_1_1()
results.

Bug: 150893461
Test: vts-trafed VtsHalEvsV1_1_TargetTest
Change-Id: I23b55b2f2282834fb5a9d364f4eb176060027de1
2020-03-05 17:52:16 -08:00
Changyeon Jo
e6477dc808 Use Google-style C++ loggers
This change replaces ALOG* usages in VtsHalEvsV1_1 with Google-style
C++ loggers.

Bug: 150893461
Test: Run VtsHalEvsV1_1TargetTest
Change-Id: Ia93c5a00d580bae99d15a7a893e57e0f1e2397d5
2020-03-05 17:12:54 -08:00
Hao Chen
f724a227b0 Merge nested namesapces
fix the nits in ag/10318156

Bug: 150791171

Test: build
Change-Id: I44609f8c7cbeffcb02cb9f2e2f56f3a829de17f6
Merged-In: I44609f8c7cbeffcb02cb9f2e2f56f3a829de17f6
2020-03-04 22:20:03 +00:00
Hao Chen
a6d6fa3d9d Split client and server impl
Some of the code in VHAL client implementation contains Android-specific
code, and some of the server operations only works in the native case.
So we split them up so that the AGL VHAL server can selectivly pick the
parts it needs.

It won't change the logic of native VHAL.

Bug: 148877226
Bug: 150791171

Test: Build

Change-Id: Ie142b19a5c435a0b4252ffd297504bde69eb44b0
(cherry picked from commit 7e9e37fa0a)
Merged-In: Ie142b19a5c435a0b4252ffd297504bde69eb44b0
2020-03-04 22:19:56 +00:00
Hao Chen
2f2b3bbef6 Split vehicle client and server interface header
Since vehicle client may contains some Android-specific types/headers
that may not exist on AGL, we split the header into "client" and "server".
It won't change the logic of Android codes.

Bug: 148877226
Bug: 150791171
Test: build

Change-Id: I550034b071ca6a7ca322fb26b61d76ed4a7307ee
(cherry picked from commit 8dfac92fee)
Merged-In: I550034b071ca6a7ca322fb26b61d76ed4a7307ee
2020-03-04 22:19:48 +00:00
Hao Chen
d599096596 Add headers and macros for building VHAL server for AGL
It won't change the logic of Android codes.

Bug: 148877226
Bug: 150791171

Test: Android build won't break

Change-Id: I07006a4a3e20900a2fa90b84167d114f9ac45cfe
(cherry picked from commit 080963546a)
Merged-In: I07006a4a3e20900a2fa90b84167d114f9ac45cfe
2020-03-04 22:18:03 +00:00
Changyeon Jo
59ef89defb Parameterize VtsHalEvsV1_0TargetTest
Bug: 142397658
Test: VtsHalEvsV1_0Target
Signed-off-by: Changyeon Jo <changyeon@google.com>
Change-Id: Ide6f4f58b60936ca766feb3090645afedde37a4d
(cherry picked from commit b46adc9493)
2020-02-28 12:37:31 -08:00
Tomasz Wasilczyk
f154585376 Convert CAN bus HAL VTS to parametrized gtest
Test: VTS
Bug: 150312861
Change-Id: Ib106a5d075d3189a57306f2b7283293e448a147d
2020-02-26 15:32:04 -08: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
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
Kai Wang
653916fb29 Merge "Add property for multiple ev port locations" 2020-02-21 20:52:03 +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
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
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
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
Tomasz Wasilczyk
793fab0b07 Add ICanController BAD_SERVICE_NAME error
Bug: 137798319
Test: VTS
Change-Id: I4722346239728f3ab359688658c23441e83671a8
2020-02-20 17:10:23 +00:00
Tomasz Wasilczyk
f3da9b6c1b Simplify bus configuration.
Previous bus configuration struct was meant for flexibility, but it
turned out that the only dimension that flexibility would go was a
serial number parameter. Let's rotate that configuration matrix by 90
degrees and just go a straightforward route of discriminating against
interface type.

Test: VTS
Bug: 135918744
Change-Id: I08967d0f78c998b0582958eb51bd387f9dbe15fe
2020-02-19 16:29:25 -08:00
Tanmay Patil
496b86ccbb Adds HAL for ultrasonics to EVS 1.1
- Adds new structs in types.h
- Adds two new .hal IEvsUltrasonicsArray and IEvsUltrasonicsArrayStream
- Adds new APIs calls in IEvsEnumerator
- Adds empty default implementation for all

Bug: 148619310

Test: Build and functionality tested with demo app.

Change-Id: I8b501c7328d4c02cc694b5a2c73a519ca6d87710
2020-02-19 12:36:58 -08:00
Changyeon Jo
93594abef3 Add the camera extended info getter/setter methods
This change declares and implement newer version of methods to
manage vendor-defined camera extended information.

Bug: 142888670
Test: m -j android.hardware.automotive.evs@1.1-service
Change-Id: If6baf9cea7eefd13fd269ca8bb5af715cc3a8bab
Signed-off-by: Changyeon Jo <changyeon@google.com>
2020-02-17 15:05:45 -08:00