Commit graph

444 commits

Author SHA1 Message Date
Kai
244e794ffe Check timestamp before updating the value
Check timestamp before updating property value.
Use timestamp in generating fake property event.

Bug: 134963097
Test: end to end test in VehcileHal_test
Change-Id: I60f8c0eb3a19db2c165469bb45b3b80b39388b37
2019-08-20 13:10:02 -07:00
TreeHugger Robot
25ac507bbc Merge "Add a method to override a master" 2019-08-19 22:04:14 +00:00
Changyeon Jo
0d0228de5a Add a method to override a master
EVS considers the client, which owns the display, as the high priority
client and allows it to steal a master role from existing master that
does not own the display.

Bug: 139536751
Test: VtsHalEvsV1_1Target
Change-Id: Idecaeedd90f187de57de912a09f4782bfb81a996
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-08-19 10:59:31 -07:00
Grace Cheng
d78560fdfa Merge "Lacking TURN_SIGNAL_STATE implementation causes emulator GUI broken." 2019-08-16 22:21:52 +00:00
Changyeon Jo
5830754d35 Add MASTER_RELEASED EVS event
This change adds new event to notify that a master role becomes
available and implements corresponding test cases.

Bug: 138328396
Test: VTS
Change-Id: Iddea2931a71fef2c7f5847eda12362e88cd52e5b
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-08-16 04:48:21 -07:00
Changyeon Jo
d2a82466d8 Add methods to get or set camera parameters
This change adds new methods to set and get camera parameters.  As the
vendor may handle a parameter set request with invalid value, a set
method returns an effective value with a status code.

Bug: 138328396
Test: VTS
Change-Id: I278dad6c285fb9b341be3517cde09359da14cda6
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-08-16 04:48:21 -07:00
Tomasz Wasilczyk
c83b4141b0 Merge changes from topic "canbus"
* changes:
  Test CAN bus HAL
  Implement CAN bus HAL tools
  Default implementation for CAN bus HAL
  Define CAN bus HAL.
2019-08-14 20:13:25 +00:00
Kai Wang
b503724072 Merge "Add MIXED type property in google HAL" 2019-08-14 18:10:19 +00:00
Grace Cheng
b183194f78 Lacking TURN_SIGNAL_STATE implementation causes emulator GUI broken.
Bug: b/136215520

Test: Runs emulator GUI.

Change-Id: Id23407e1e80a4a87b933d4d4f74c74d1489c7b6e
2019-08-09 17:34:35 -07:00
Prachi Hande
656089c2ce VmsUtils: Update existing methods to parse subscriptions response messages. am: 4066574002
am: 007e8a139e

Change-Id: I61717d084e1e0aae6c18bd7e08743884ec7c5ccc
2019-08-08 17:21:37 -07:00
Prachi Hande
007e8a139e VmsUtils: Update existing methods to parse subscriptions response messages.
am: 4066574002

Change-Id: I2708ebc93f485eff8c98016b489261834203c86e
2019-08-08 17:10:30 -07:00
TreeHugger Robot
6eb5b7007b Merge "Fixes typo." 2019-08-08 23:34:50 +00:00
Grace Cheng
b355bf38e6 Fixes typo.
Test: python vhal_const_generate.py

Change-Id: I9b38313424a0e486698001a72a5c58162adfa35e
2019-08-08 12:50:54 -07:00
Prachi Hande
4066574002 VmsUtils: Update existing methods to parse subscriptions response messages.
Currently, we do not have a way to parse subscriptions response
messages. But we have parsing methods for SUBSCRIPTIONS_CHANGE type of
messages. These messages have the exact same payload as SUBSCRIPTIONS_RESPONSE
messages. So all we need to do is allow existing methods to parse
SUBSCRIPTIONS_RESPONSE messages along with SUBSCRIPTIONS_CHANGE
messages.

Bug: 138664881
Fixes: 138664881, 137955333
Test: Added more tests for the new message type. Ran tests on Hawk.
Change-Id: I53432e2215e03bb94fd36b7d62f42fe0be1994cf
2019-08-07 22:54:26 +00:00
TreeHugger Robot
90e8bee41e Merge "Add DISTANCE_DISPLAY_UNIT to google VHAL" 2019-08-06 23:43:23 +00:00
Tomasz Wasilczyk
0ec8d63d5d Test CAN bus HAL
Bug: 135918744
Test: VTS
Change-Id: I7b45a24b6a1142cf74c1d215658792835553d169
2019-08-06 12:30:53 -07:00
Tomasz Wasilczyk
1b2c6efe46 Implement CAN bus HAL tools
These tools are for manual interaction with CAN bus HAL instances.
Meant primarily for testing/debugging, not useful in user builds.

Bug: 135918744
Test: adb shell <tool name>
Change-Id: I1dfbe94c0006f69954806c395cd888f3bf2a4249
2019-08-06 12:30:53 -07:00
Tomasz Wasilczyk
873296702f Default implementation for CAN bus HAL
This implementation supports SocketCAN interfaces.

Bug: 135918744
Test: VTS (separate new change)
Change-Id: I12b93e37fa64e341bee2c64eaf130b39977fcef5
2019-08-06 12:30:47 -07:00
Hayden Gomes
3f48f4e984 Deprecate IAudioControl.getBusForContext
Usage of this API has been replaced by car_audio_configuration.xml.
Bug: 135625954
Test: Built and ran on device

Change-Id: I09440446cbfeb2e5c321899767bee7bfdd29e129
2019-08-05 20:26:05 +00:00
Kai Wang
aec59a59c5 Merge "Add electric defrosters and unknown in FanDiretion" 2019-08-03 06:19:58 +00:00
Tomasz Wasilczyk
a27d4e435a Define CAN bus HAL.
Bug: 135918744
Test: VTS (separate new change)
Change-Id: Ia4de5ee441834c7870e33481e982960a1593de28
2019-08-02 09:50:22 -07:00
Jordan Jozwiak
2619443e0a Add DISTANCE_DISPLAY_UNIT to google VHAL
Bug: 138816759
Test: aae app vhal apply google & dump properties
Change-Id: I6a4d571975d5fe7ba6419cd4c37b734f21162f41
2019-08-01 18:48:03 -07:00
Changyeon Jo
2400b69b85 Add EVS v1.1 interface
Extends existing v1.0 interfaces to support more functionalities and
adds corresponding test cases.

Bug: 135472573
Test: VTS
Change-Id: I5245238e6a18ddc2c0451aaa21a9cce55c6207eb
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-07-31 07:54:25 -07:00
Changyeon Jo
e472971e96 Move utility functions to a common library
This change creates a library that contains utility functions commonly
used in different EVS versions.

Bug: 13542573
Test: VTS
Change-Id: Ica8f5e6228d7d4b1426d8cc9cd2c570d6b584897
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-07-31 07:54:25 -07:00
Changyeon Jo
1d0f024bd7 Update comments on EVS 1.0 interfaces
This change fixes hidl-lint errors and warnings in EVS 1.0 interface
definitions.

Bug: 135472573
Change-Id: I4b6b5df792875a8dde2ee146f88fb401a4d5e860
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-07-31 07:54:25 -07:00
Kai
cd995a8c18 Add MIXED type property in google HAL
Add kMixedTypePropertyForTest for E2E test

Bug: 133334962
Test: change VHAL to google HAL and run vehiclehal_test
Change-Id: Ib9a9708830c4357f9cfc3de6e29d951072e2d2aa
2019-07-30 16:22:10 -07:00
Kai
c62d9b1101 Add electric defrosters and unknown in FanDiretion
Add a new property stands for electric defrosters.
Add a enum unknown in VehicleHvacFanDirection.
Add the new property into Google VHAL config file.

Bug: 126756367
Bug: 132187457
Test: build and flash
Change-Id: I853666ebbb0f5286ce59faeb02f0f37259a88c54
2019-07-30 14:55:33 -07:00
Grace Cheng
7dc09889ba Fixes vts failure. Formats code.
Root cause: Default (without specification in implementation) minimum sample rate is 0.0f. VTS tests minimum sample rate should be larger than 0.0f.

Adds minimum and maximum sample rate for continuous property.


Bug: 136215520, 138316549

Test: vts-tradefed run vts-hal-auto -m VtsHalAutomotiveVehicleV2_0Host

Change-Id: I324c3e05f4d8c6100d370031d0072e8231a43267
2019-07-25 20:06:30 +00:00
Kai
0ce19b8fd9 Update properties' config
Update defaultConfig according to types.hal

Bug: 136215520
Test: 1. replace vhal to default vhal
      2. run unit tests under vehicleHal_test

Change-Id: Id0b58bc9e2cc18d68ea44387ce7634f053e51e1c
2019-07-11 22:16:19 +00:00
Prachi Hande
9eb89bab29 Merge "Updated START_SESSION message interpretation" into qt-dev
am: c6d2640d29

Change-Id: I759e1af718c498d284d9fe9571e10487c2bc78da
2019-06-25 12:06:49 -07:00
Prachi Hande
c6d2640d29 Merge "Updated START_SESSION message interpretation" into qt-dev 2019-06-25 18:23:53 +00:00
Prachi Hande
af6af767e7 Updated START_SESSION message interpretation
Removed the dependency on the fact that the core's new ID is always >= existing ID.
New ID and the old ID may not have any such relation.

Bug: 135475397
Fixes: 135475397
Test: Updated unit tests in VmsUtilsTest. Ran the tests on Hawk.

Change-Id: I5a7e72f36a84f5bf2d3c7bf1ccb89d27c5c0da97
2019-06-24 17:47:56 -07:00
Kai Wang
4acdd6621d Merge "Add Speed_Display_Units property in DefaultHal" into qt-dev
am: 130fad824b

Change-Id: I70a2eeb5effd71b3d17b83ea15fd1f36388468bf
2019-06-21 23:10:37 -07:00
Kai Wang
130fad824b Merge "Add Speed_Display_Units property in DefaultHal" into qt-dev 2019-06-22 05:57:33 +00:00
Kai
42a26244ad Add Speed_Display_Units property in DefaultHal
Update properties for DefaultHal and it is also be a code
sample for adding new properties.

Bug: 134988550
Test: flash it and verify property by kitchenSink
Change-Id: Iedf3ea5b288acfe95b3c676d90660435b34ed367
2019-06-22 01:52:02 +00:00
Prachi Hande
a5bd3ffd11 Merge "Updated a method name in VmsUtils." into qt-dev
am: 1f968cd87c

Change-Id: Iaf6cfb281fbdfb786a96ced641017a20da9cd4be
2019-06-21 13:33:58 -07:00
Prachi Hande
a9c6df2ba9 Updated a method name in VmsUtils.
Corrected "CreateDataMessageWithLayerPublisherInfo" to "createDataMessageWithLayerPublisherInfo"

Bug: 135051289
Fixes: 135051289
Test: Updated tests in VmsUtilsTest. Ran the tests on Hawk.

Change-Id: Ie5e130e125b90689d13a3f9bb8fa1f2f8a2bcbe0
2019-06-19 19:11:29 -07:00
Prachi Hande
deb18b68e7 Merge "VMS Utils: Fixed createDataMessage method." into qt-dev
am: 20ee67c070

Change-Id: I43dc16f65aaf480eec3988df47fb21ea0a15b4f8
2019-06-19 14:52:59 -07:00
Prachi Hande
20ee67c070 Merge "VMS Utils: Fixed createDataMessage method." into qt-dev 2019-06-19 21:11:56 +00:00
Prachi Hande
258c7c2504 VMS Utils: Fixed createDataMessage method.
Before, it used to process only the payload but now it also
takes in VMS layer info and publisher ID.

Bug: 135051289
Fixes: 135051289
Test: Updated unit tests in VmsUtilsTest. Ran the tests on Hawk.
Change-Id: I6c11f95a815af5d7b9fc9288692285766d2ca98f
2019-06-17 13:47:50 -07:00
Mark Tabry
8972707256 Merge "Move START_SESSION definition to bottom of VmsMessageType." into qt-dev
am: 977d275a9a

Change-Id: I0a2d667d066701e55636283da564ae7f7bb2e392
2019-06-17 13:21:35 -07:00
Mark Tabry
56ff57b4ce Move START_SESSION definition to bottom of VmsMessageType.
Bug: 130313799
Test: N/A
Change-Id: Iaa1be8f047c58491970b5aaa0dfab4e418164dee
2019-06-14 10:34:43 -07:00
Changyeon Jo
e46a94a672 Merge "Update EVS VTS test cases" into qt-dev
am: 9155a07da7

Change-Id: If17f879f82441ab190cf37b18b4aaa053410e8e6
2019-05-31 20:42:25 -07:00
Changyeon Jo
17aa6d3512 Update EVS VTS test cases
This change modifies existing test cases and adds one new test case
for EVS manager implementation.

Bug: 122468953
Change-Id: I5cee01dfe0b0617c3f5c46beb94dcda0387f4ba0
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-05-31 21:20:56 +00:00
Kai Wang
4a012c1dda Merge "Add number of ticks in HW_KEY_INPUT" into qt-dev
am: 4522783767

Change-Id: I893402874ef3a72dfedaf457d0ac3a21d3dc9619
2019-05-30 13:55:44 -07:00
Kai Wang
4522783767 Merge "Add number of ticks in HW_KEY_INPUT" into qt-dev 2019-05-30 20:27:14 +00:00
Kai
26dcce67aa Add number of ticks in HW_KEY_INPUT
Bug: 132291593
Test: build and flash
Change-Id: I0baf4d8bbb802f724122d63cd19af5c5f9f4ddfb
2019-05-29 21:16:47 +00:00
Kai Wang
9096e933d3 Merge "Update VHAL documentation" into qt-dev
am: 68fa370815

Change-Id: I7a17925b6ed288616c8109ead69a38b266545f8a
2019-05-21 13:43:44 -07:00
Kai Wang
68fa370815 Merge "Update VHAL documentation" into qt-dev 2019-05-21 18:45:48 +00:00
Kai
ac4edf053e Update VHAL documentation
Clarify when range in VehcileAreaConfig need to be specified.
Change Range_remaining to be read only.
Update docmentation about Night Mode.

Bug: 126908895
Bug: 128607457
Test: Flash and build
Change-Id: Ifcf92bcc9eed3859d8a846d55e824c2b00d61d19
2019-05-20 17:33:33 -07:00