Commit graph

359 commits

Author SHA1 Message Date
Gregory Clark
ea1fe59370 Add a trunk and sunroof.
Bug: b/118139582
Test: Get and set the VHAL properties.

Exempt-From-Owner-Approval: Nobody on the owners list works on AAE.

Change-Id: Ib2274a7f347d962d80ce9213c4ae17a2f44b74ad
(cherry picked from commit 6ef517989fb25a39536c65b1636c1292f8bdcec1)
2019-01-14 18:40:32 +00:00
Kai Wang
8b4548ca32 Merge "Add comments for some properties." 2019-01-08 18:34:36 +00:00
TreeHugger Robot
78493e31e0 Merge "Update owners for automotive HALs" 2019-01-08 06:01:19 +00:00
Scott Randolph
6ea0d8c60a Update owners for automotive HALs
Test:  No functional change
Change-Id: I3f4a51b6533d3383e299731e048c773737c02cd3
2019-01-07 19:22:13 -08:00
Kai
066b20d749 Add comments for some properties.
Descible hebavior for VHAL property set with value out of bounds
Change comments.

Bug: 112204545
Test: build and flash
Change-Id: I48cf2f8dfb8a175992535db17d8f69e8fde1f34c
(cherry picked from commit 2234dc2e4f3d55ea9e8cbb4ec11544ca0207625d)
2019-01-07 14:55:07 -08:00
Chih-hung Hsieh
df66e3cb29 Merge "Fix performance-for-range-copy warnings" am: d01f7050ac am: 51e835ce22
am: 86fefab5e9

Change-Id: Ib139d710d47a7a51e24ba8ba582b252f5ff6e244
2018-12-17 14:09:52 -08:00
Chih-Hung Hsieh
65ab67312b Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I1b76a22eab100a31e77048626e48169fe7eeaf92
2018-12-17 19:57:21 +00:00
Gregory Clark
b06432c9fa Added the DOOR_POS and WINDOW_POS properties.
Bug: b/111797715
Test: Set and get the properties.

Exempt-From-Owner-Approval: Nobody on the owners list is left on AAE.

Change-Id: I24b79ffed2e53dd260f482d6fa00ea05f3fb073a
(cherry picked from commit 6e90b0e9660e5bb9fa5c48a7c601ac4a9117f398)
2018-12-14 22:00:34 +00:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
Jordan Jozwiak
8cbf1aae08 Update HVAC_POWER_ON config array to correct values
Bug: 119687687
Test: Build and install.

Exempt-From-Owner-Approval: Trivial change. Updating old int value.

Change-Id: Idf3c89f330303b79a2ddfd336402546ccae31f16
(cherry picked from commit 005ec2d45418c190391a1ad17fba3e8bd64e3198)
2018-11-22 00:47:51 +00:00
Steve Paik
d217630d40 Fix Default VHAL to send ON request when device boots
Bug: 117947229
Test: Reboot Mojave, it stays on
Change-Id: Ia36d71343e43d59c07dc76b3cc7b7d45376d898c
(cherry picked from commit b91f9c3bad3948cb5804949a858835219e9aeac3)
2018-10-22 16:29:27 +00:00
Steve Paik
55367e6102 Refactor Power Management
- Remove Boot Reason property
- Add extra states to AP_POWER_STATE_REPORT

Bug: 112548962
Test: vhal_emulator.py

Change-Id: I96662820a02141256c53546db662d1e05e1925ae
(cherry picked from commit b863f86ff7fad325c66c9a47a3a3e18a602adab3)
2018-10-17 22:23:02 +00:00
Gregory Clark
49e24cad30 Merge "Add the window lock property." 2018-10-10 20:43:43 +00:00
Gregory Clark
2c820039ca Add the window lock property.
Bug: b/80429405
Test: Call carPropertyManager.setIntProperty
Change-Id: I465c82f6735e714cd26397de281025e69f3e4c38
(cherry picked from commit d9ed04473eaa633a60a8f8a234a024c9816f4db9)
2018-10-10 16:45:49 +00:00
Gregory Clark
3e6403b5bf Update the DOOR_LOCK property to have WRITE access.
Bug: b/80427694
Test: Call carPropertyManager.setBooleanProperty
Change-Id: I78eded9a30b24dd0e977fc6dec1e085685344ed7
(cherry picked from commit e746aab48a5446108a7cb5237a477a0561d742c6)
2018-10-06 00:35:53 +00:00
Steve Paik
f38f62a1d4 Add STEERING_ANGLE property
Bug: 80551979
Test: Added property to VHAL
Change-Id: Ie6310d85af9bf0aebe63f0f2fdbac9a75c32b1ec
2018-09-14 17:26:20 +00:00
Jordan Jozwiak
c72501342a Add the INFO_DRIVER_SEAT property.
Bug: b/113356861
Test: Build and install.
Change-Id: I07963fd94aca1a2e83d968f85daa78be7ab90fd9
(cherry picked from commit e4d470dc3adc5ba2b35abcdc61e37927953c36d4)
2018-09-11 20:47:17 +00:00
Steve Paik
4569ca2f88 Add detail to FUEL_LEVEL_LOW to include all energy types
Bug: 109700633
Bug: 109740025
Test: Comment change only
Change-Id: Ief87c4a82d965187f0d8f00fd226e4d539c58643
(cherry picked from commit 9108bc896655541d087dc3a457e8429f45b9d8eb)
2018-08-28 04:26:38 +00:00
Gregory Clark
61a7bbcb77 Add the HVAC_FAN_DIRECTION_AVAILABLE property.
Bug: b/111371726
Test: Build and flash.
Change-Id: I586e607e313792dae689b82f411db94bf22982aa
(cherry picked from commit a5b4872c616c8f9fa983fad8ed8ef77e1edef618)
2018-08-23 18:40:02 +00:00
Jordan Jozwiak
a8e73abffe Add the HVAC_SEAT_VENTILATION property.
Bug: b/111610946
Test: Build and install.
Exempt-From-Owner-Approval: Add property for HVAC_SEAT_VENTILATION
following existing pattern
Change-Id: I71c23d01c35d9db76eb8d4845e6bb9ce4257defb
(cherry picked from commit 2158eccd4bd139a29f14a041c6de60831a2405a7)
2018-08-22 15:52:50 +00:00
Jordan Jozwiak
510fff3675 Merge "Add the HVAC_SEAT_TEMPERATURE property." 2018-08-22 15:47:13 +00:00
Jordan Jozwiak
782ef26b41 Add missing VHAL properties
Bug: b/111500076
Test: Build and install.
Change-Id: I32bfd33ce050ab6ffc886e2ba63b99bd5a33ad31
(cherry picked from commit 85df08f4fe94fd6dfedd6d7def5192cf1f7ce2c4)
2018-08-21 22:17:18 +00:00
Jordan Jozwiak
c0ce8b2a10 Add the HVAC_SEAT_TEMPERATURE property.
Bug: b/111564723
Test: Build and install.
Change-Id: I37184aff227910a91adcb810078b578764fa56ec
(cherry picked from commit 7cc52cdaa6c2d37edbdc87a456a59d2e74591f9d)
2018-08-21 22:15:04 +00:00
Steven Moreland
fec4521e83 Merge "Update makefiles after native handle in Java." am: 1847a2f2e7 am: fb6a66b3f7
am: 9dc1ccc852

Change-Id: I30fda77e5c5657c00f57a85b959dfd853d535366
2018-08-14 19:38:07 -07:00
Steven Moreland
f5e4d7fb59 Update makefiles after native handle in Java.
Bug: 35098567
Test: N/A
Change-Id: I54b8d804e480cda09806f8028b966f28c4bd706e
2018-08-14 20:29:42 +00:00
Steve Paik
61b24e3a44 Add PERF_VEHICLE_SPEED_DISPLAY
Bug: 110881960
Test: none
Change-Id: I486d71bb00e2d943293e5e5567f4dbb0c35e39b0
2018-08-07 09:25:14 -07:00
davidln
cfb94787ea Propagate set events in the emulated vehicle HAL.
Bug: 110105682

Test: build, deploy, test updating temp via app UI, temp change reflected in subscribed system UI
Change-Id: I75e6825ff9450f977c1f5d7f2b97bca6c78f1883
(cherry picked from commit 6d8110ffbf7e964246c13810d909b3a5cf7818b6)
2018-07-25 15:46:24 +00:00
Dean Harding
bea881c9a1 Make the emulated VHAL always listen for socket connections.
Previously, when running under the emulator, it would only connect to
the emulator's qemu pipe and you couldn't script the emulated VHAL.

Also changed the logic of SocketComm so that it supports connections
from more than one client at a time.

Bug: 87643732
Test: tested locally
Change-Id: I504cd806f0a95799a68b75c3515c1f230109f1d0
(cherry picked from commit 8dad67a0148114cb60f3567268bc2cf40ff18f82)
2018-06-26 21:17:15 +00:00
Chao Yan
454d4ef594 Generate VHAL property mixed type from JSON
Bug: 76017041
Test: atest VehicleHALTest
Change-Id: Iaf2f01f71e2eee6478de0aadd2fe2bd13a385404
2018-06-22 10:52:25 -07:00
Steve Paik
9ab31039e2 Add example vendor extension properties
Bug: 110415164
Test: EKS Property Test
Change-Id: Ia1815376d96141ef4401eb4784b81ad4ed889c63
2018-06-21 11:09:15 -07:00
Chao Yan
e2d0c55739 Merge "Added support for multiple VHAL generators" 2018-06-06 20:45:20 +00:00
Steve Paik
ac1ade5c27 Merge "Add initial values for properties" into pi-dev
am: 3b50bd927b

Change-Id: Ib565a847a2b138a5b20df58cea9e665ca022a3cc
2018-06-05 17:28:27 -07:00
Chao Yan
0f85dd1684 Added support for multiple VHAL generators
Using priority queue to schedule multiple VHAL event generators

Bug: 76017041
Test: atest VehicleHALTest
Change-Id: I6bc8071cafd12334dfe37d4f3808530836aec4df
2018-06-05 16:42:01 -07:00
Steve Paik
3b50bd927b Merge "Add initial values for properties" into pi-dev 2018-06-05 23:32:24 +00:00
Scott Randolph
965fea1dda Explicitly unfreeze the Automotive HALs
am: 62fd03d8e6

Change-Id: Icb6acf5f5cecdbc429153994ffaad6bb7aabd264
2018-06-04 16:56:01 -07:00
Scott Randolph
62fd03d8e6 Explicitly unfreeze the Automotive HALs
Per discussion with Treble team, keeping HALs unfrozen is suitable for
platforms whos functionality is evolving and which do not require hard
gaurantees of cross version vendor/system interoperability.

Test: build owl
Bug: 109674659
Change-Id: Idc2a391b4bd7c2edbf9cdd7fc099b9d4a6fcf95a
2018-06-04 14:21:31 -07:00
Steve Paik
44b0283f6c Add initial values for properties
Cleanup defaultconfig.h to have proper initial values so that all
properties may be tested with EmbeddedKitchenSink.

Bug: 109674339
Test: Embedded Kitchen Sink
Change-Id: I3007c645b90b0e6805b8d1011c3a8d659eb13d2b
2018-06-04 21:07:39 +00:00
Steve Paik
26761f6d39 Merge "Fix tire pressure sensor property" into pi-dev
am: de0e5293bd

Change-Id: I354c9cdc4ce1ed9d93857a33b7437a00266fdf54
2018-05-25 14:10:23 -07:00
Steve Paik
57b63bd356 Fix tire pressure sensor property
Update comment to remove reference to unused min/max values

Bug: 80102628
Test: comments updated
Change-Id: I9555ac2e6c274b52e01ce9555e8403b2b94a5036
2018-05-23 18:03:16 -07:00
Scott Randolph
918ba5920c Fix name of Wheel to VehicleAreaWheel
am: 3fea05cd40

Change-Id: I8d1fbac4d7f00792ea399a033b6f58626adcff53
2018-05-21 20:27:57 -07:00
Scott Randolph
3fea05cd40 Fix name of Wheel to VehicleAreaWheel
All but this enum follow the naming pattern.  Now Wheels do too.

Test:  Build Mojave and Owl
Bug: 79995183
Change-Id: Ifa9efd50aaae13ac7f437c5efe8cf70aa64218e9
2018-05-21 18:27:39 -07:00
Steve Paik
6af76112bd Merge "Remove ConfigFlags" into pi-dev
am: cf31bf85a9

Change-Id: I9d3eb98345bb939b3cd739158c0cffe70d839fde
2018-05-21 15:48:11 -07:00
TreeHugger Robot
cf31bf85a9 Merge "Remove ConfigFlags" into pi-dev 2018-05-21 22:26:28 +00:00
Steve Paik
b7480876c1 Merge "Update default config areaId's" into pi-dev
am: 6bf62943fc

Change-Id: Ib51b473edd766df0b6c10ad6d2b48b3f51eae1ec
2018-05-18 13:06:54 -07:00
Steve Paik
3de778f448 Remove ConfigFlags
ConfigArray replaces the need for configFlags.  Deprecate this before it
gets released.

Bug: 74133619
Test: grep -ril configflag shows all instances removed
Change-Id: I645862507959738eb2739e70a53827b749e88aeb
2018-05-16 17:48:49 -07:00
Steve Paik
de2feefd4d Update default config areaId's
Bug: 79752968
Test: Embedded Kitchen Sink

Change-Id: I9b32c22ae2f141c1ead7d3969186fa513e785ccf
2018-05-16 15:45:51 -07:00
Kiran Rachuri
cf4bd2c8d7 Update types.hal comments
am: e9a39e2714

Change-Id: I6f755b9067f937cfa01291842c06640fc2e6cb10
2018-05-15 12:39:11 -07:00
Kiran Rachuri
e9a39e2714 Update types.hal comments
(1) Specify rules for property to area mapping
(2) Fix comment for WHEEL_TICK property
(3) Document the need for supported gears from vhal. CURRENT_GEAR and GEAR_SELECTION should report the list of available gears in the vehicle. This helps in determining the driving state of the vehicle.
Merge changes from ag/4051112 ag/4026897

Bug: 79434788
Bug: 77849652
Bug: 79260189
Test: Build and Flash
Change-Id: Ib2bd488a5ec09fe3bdf8807c253aebcdb240324b
2018-05-15 17:18:09 +00:00
Chao Yan
ca7aa77fc7 Merge "Added fake VHAL value generator based on JSON file" into pi-dev
am: 7a53d3e9af

Change-Id: I9fcfad0483e7cda0fd1e7fc09b1b76956e9ea749
2018-05-10 15:54:16 -07:00