Commit graph

329 commits

Author SHA1 Message Date
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
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
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
ac1ade5c27 Merge "Add initial values for properties" into pi-dev
am: 3b50bd927b

Change-Id: Ib565a847a2b138a5b20df58cea9e665ca022a3cc
2018-06-05 17:28:27 -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
Chao Yan
7a53d3e9af Merge "Added fake VHAL value generator based on JSON file" into pi-dev 2018-05-10 22:41:17 +00:00
Chao Yan
f63c2cad23 Added fake VHAL value generator based on JSON file
Note: It only supports a single generation task at any time. Mixed value
properties like diagnostics frame is not implemented yet. It only
supports properties with ON_CHANGE mode for now.

Bug: 76017041
Test: lunch bat_land-userdebug & m -j8; adb push <json_data>
/data/local/tmp; use python emulator to inject fake value "start" command
specifying the JSON data path on device; verify values on KitchenSink app

Change-Id: Ic964ef52a19422bab7015fe54c7e4c5ef8b47a55
2018-05-10 11:05:28 -07:00
Kiran Rachuri
a3de22392f Merge "Add HVAC properties" into pi-dev
am: 73bfa71121

Change-Id: Ia6b4b51bb8bdc0ed0a56ef4038a8f815db5249e1
2018-05-07 15:37:20 -07:00
Kiran Rachuri
73bfa71121 Merge "Add HVAC properties" into pi-dev 2018-05-07 22:15:01 +00:00
Kiran Rachuri
74570ecb71 Add HVAC properties
Bug: 79265187
Test: Build and flash locally. Test using GAS Vehicle APIs Test App
Change-Id: I3e127af55716c29eddc4f844e431a9efb397afa0
2018-05-05 08:08:10 -07:00
Steven Moreland
c90461c738 rename hidl_enum_{iterator,range}
This is actually a range, not an iterator.

Bug: 78573628
Test: m
Change-Id: Ie824a3eabcb7d5af94a8752e1498bdc8c7032e40
2018-05-02 00:06:33 +00:00
Scott Randolph
6e85e29e47 Merge "Remove ENV_CABIN_TEMPERATURE from VHal" into pi-dev
am: ba7d8361f7

Change-Id: I37f05f83f2bdc5837c3c7f05aaa3d660ce2ef9a4
2018-04-30 16:24:56 -07:00
Scott Randolph
ba7d8361f7 Merge "Remove ENV_CABIN_TEMPERATURE from VHal" into pi-dev 2018-04-30 23:08:31 +00:00
Scott Randolph
3c807a5ca4 Remove ENV_CABIN_TEMPERATURE from VHal
This property was an inadvertent duplicate of HVAC_TEMPERATURE_CURRENT.

Test:  Build OWL and Mojave
Bug: 78599196
Change-Id: I698217de0fa91ed817ec95a375a0949160ae8be5
2018-04-25 19:48:26 -07:00
Steve Paik
909e1fda08 Merge "Use configArray for HVAC_POWER_ON" into pi-dev
am: 7fa25dee8f

Change-Id: Ib64af6829d055b0c980ea3c19002e96be3bd1264
2018-04-25 19:38:39 -07:00
Scott Randolph
d2a5c74e2c Merge "Rename EV_CONNECTOR_TYPE enums" into pi-dev
am: 0e3e580249

Change-Id: I9e8896a88937bf2c31f09eb6507e51fa2a445c78
2018-04-25 18:06:38 -07:00
Steve Paik
24139744a5 Use configArray for HVAC_POWER_ON
Bug: 77167122
Test: EmbeddedKitchenSink
Change-Id: I6a178396c3c44c37b33b74b8481ef39b53a36189
2018-04-25 17:53:03 -07:00
Steve Paik
5fc65ccafc Rename EV_CONNECTOR_TYPE enums
Bug: 78571971
Test: Documentation / naming update
Change-Id: I6ca65a9a745d9f5dd109f5b47a3a4af4d818fe39
2018-04-25 11:09:14 -07:00
Michael Butler
2958148166 Merge "Update Android.bp via update-makefiles.sh" into pi-dev
am: e6da8cb609

Change-Id: Icad1f34c2fa180a30cf207d915cf0bbfcdb6a1d6
2018-04-20 02:28:28 -07:00
TreeHugger Robot
e6da8cb609 Merge "Update Android.bp via update-makefiles.sh" into pi-dev 2018-04-20 09:21:55 +00:00
Scott Randolph
1cbd114a05 Merge "Update VHAL comments to clarify useage" into pi-dev
am: b49820de42

Change-Id: Iaa06d88fde73d82dcd738da676f943b969cd1a7c
2018-04-18 17:11:32 -07:00
Michael Butler
23ee97e748 Update Android.bp via update-makefiles.sh
When calling update-makefiles.sh there are
some unrelated changes that were missed in
previous commits.

Bug: 68112778
Test: mma
Change-Id: I22b76f3d5bcd084afd2f06e613d2f9f37c1a0c9c
2018-04-18 19:34:10 +00:00
Scott Randolph
7400d1c5f5 Update VHAL comments to clarify useage
Window position and motion updated.
Also added comments calling out explicit temperature units.

Test:  Build mojave
Change-Id: If283a5f0de1ff6e9b2d3c21bcd652de55e2d7046
Bug: 77983671
2018-04-18 08:59:28 -07:00
Steve Paik
55fe136188 Merge "Update VHAL types.hal" into pi-dev
am: 1058b982e9

Change-Id: I9001e90f76a1cf18cb88fd5a65e2f8f4602073fd
2018-04-03 13:26:53 -07:00
Steve Paik
28b9f8be0b Update VHAL types.hal
Revised types.hal:
  - Add documentation to everything
  - Remove radio property
  - Update Power Manager properties
  - Cleanup formatting

Bug: 77301298
Test: It compiles
Change-Id: I05a1b3269092c05e7f56c57166d2aebe420d7f6a
2018-04-02 22:45:20 -07:00
Ram Periathiruvadi
3c95ae1688 Merge "Deprecate DRIVING_STATUS vehicle property." into pi-dev
am: 899d09c3ff

Change-Id: I658ea31e4adeb8ba9cb0ae55c911a1a3eec49e00
2018-03-30 23:11:06 +00:00
Enrico Granata
2bd8570cf9 Merge "Teach VehiclePropertyStore to not propagate the status value when a set() operation comes from Android" into pi-dev
am: e0bce7913b

Change-Id: I3b84cc57a5fc63fd5f35fc6055238063c2a7d386
2018-03-30 20:54:23 +00:00
Ram Periathiruvadi
899d09c3ff Merge "Deprecate DRIVING_STATUS vehicle property." into pi-dev 2018-03-30 20:37:50 +00:00
Enrico Granata
e0bce7913b Merge "Teach VehiclePropertyStore to not propagate the status value when a set() operation comes from Android" into pi-dev 2018-03-30 18:07:22 +00:00
Pavel Maltsev
866f07671c Merge "Extend VHAL test property to allow inject events" into pi-dev
am: 04db1bfe60

Change-Id: Ic3c060d747ecd3eabda8151b6eb3ff7029887c72
2018-03-30 05:26:43 +00:00
Ram Periathiruvadi
b4ec3dd5cf Deprecate DRIVING_STATUS vehicle property.
DRIVING_STATUS is not required from VHAL.  It will be derived from other
car sensor vehicle properties in higher layers.

Bug: 71793754
Test: compile and boot.
Change-Id: Ia9f9aeb0e7ff0f16c66422ecb4dc9ad9c152a844
2018-03-29 15:43:32 -07:00
Pavel Maltsev
f0cd5e146a Extend VHAL test property to allow inject events
This is needed for e2e testing, specifically to emulate steering-wheel
buttons from KitchenSink app

Bug: 74616964
Test: manual through kitchensink app
Change-Id: I08de2404f9e17af6b08c2cb1f0fbdc45c655a405
2018-03-29 14:12:59 -07:00
Enrico Granata
8acfc2246a Teach VehiclePropertyStore to not propagate the status value when a set() operation comes from Android
The status field of a property represents properties of the underlying implementation and it should thus
be read-only to Android. Add a way for VehiclePropertyStore to be told whether it does (or does not) need to
propagate the field to the stored property value.

Test: build
Bug: 76034442
Change-Id: I333fab7e296f425cf5c4a35ae136ccfbaa542379
2018-03-27 16:29:40 -07:00
Yuexi Ma
8ef11932b9 resolve merge conflicts of 07ff5f4376 to pi-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id636c3171bffffeaf7a30a7912c38796e5a4c780
2018-03-26 16:05:07 -07:00
TreeHugger Robot
3df7964f07 Merge "Fix AP_POWER_BOOTUP_REASON to be static" into pi-dev 2018-03-26 19:03:04 +00:00