Commit graph

912 commits

Author SHA1 Message Date
seanhong
458a13bc05 DO NOT MERGE Add missing seat memory properties to DefaultConfig.h for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I000a3f918f8f2c3ceb90710f88a18f91a56d2479
2022-08-29 19:55:11 +00:00
Sean Hong
228e8afcef Merge "DO NOT MERGE Add interior light state properties to the emulator for CTS tests" into tm-qpr-dev 2022-08-19 21:45:34 +00:00
Sean Hong
5b5822d966 Merge "DO NOT MERGE Add SEAT_HEADREST_* properties to the emulator for CTS tests" into tm-qpr-dev 2022-08-19 20:01:49 +00:00
Sean Hong
c6c69ced1a Merge changes I17742019,I2768b276 into tm-qpr-dev
* changes:
  DO NOT MERGE Add seat lumbar properties to the emulator for CTS tests
  DO NOT MERGE Add seat tilt properties to the emulator for CTS tests
2022-08-19 05:53:44 +00:00
Sean Hong
f16caf5976 Merge "DO NOT MERGE Add seat depth properties to the emulator for CTS tests" into tm-qpr-dev 2022-08-18 17:10:52 +00:00
TreeHugger Robot
ed5949002b Merge "DO NOT MERGE Added missing HVAC properties to DefaultConfig.h" into tm-qpr-dev 2022-08-18 16:02:31 +00:00
seanhong
1548acc785 DO NOT MERGE Add interior light state properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 242739801
Change-Id: Id2181fd33c2d821513d151f1fddc78de9b057627
2022-08-16 22:15:54 +00:00
seanhong
34e7cd0557 DO NOT MERGE Add SEAT_HEADREST_* properties to the emulator for
CTS tests

All the seat headrest properties have been added, but
SEAT_HEADREST_HEIGHT_POS is excluded because of b/242587816.

Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I07647daa241cf915476a1c696e1a467734f619d3
2022-08-15 23:13:09 +00:00
seanhong
88ebf20897 DO NOT MERGE Add seat lumbar properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I177420199437a6e8057aeb0e6f6cc06b38a0a4ce
2022-08-15 23:09:34 +00:00
seanhong
97d5113c26 DO NOT MERGE Add seat tilt properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I2768b2769616c4e34c04becb751c8aa26fc2379e
2022-08-15 23:09:25 +00:00
seanhong
30e6d473ac DO NOT MERGE Add seat depth properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I82ddae13db2c534c148a00e73c62dbbcc6d1b258
2022-08-15 23:09:06 +00:00
TreeHugger Robot
d8fb41ca1f Merge "DO NOT MERGE Add missing CAR_MIRROR properties to DefaultConfig.h" into tm-qpr-dev 2022-08-15 20:37:48 +00:00
Tyler Trephan
dcf03f135e DO NOT MERGE Added missing HVAC properties to DefaultConfig.h
Test: Built.
Bug: 237610879
Change-Id: I77f60bf6c3277527a556b924e7598778828bef4c
2022-08-15 20:27:23 +00:00
Yu Shan
8e532e6d82 Use a different timesource in recurrent timer.
Previously we used elapsedRealtimeNanos in recurrent timer which will
still go even if the system is in deep sleep. This causes all the
events "happened" during suspension to be replayed immediately
after the wake up, which causes a spam of messages. uptimeNanos
meanwhile, does not go if the system is in sleep, so we use that
instead.

Test: atest VehicleHalVehicleUtilsTest
Bug: 235262127
Change-Id: Ib67c2e2251af3231cefd875416d5bcb15953ba5e
Merged-In: Ib67c2e2251af3231cefd875416d5bcb15953ba5e
(cherry picked from commit 5e50873793)
2022-08-12 17:39:35 +00:00
Shivani Ghanta
16bf94da56 DO NOT MERGE Add missing CAR_MIRROR properties to DefaultConfig.h
Test: Built.
Bug: 241161716
Change-Id: I53a6686fec62df205139d8e994237c56f0da8428
2022-08-11 06:48:14 +00:00
seanhong
3ed6a4042c Add seat height properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I48cd904dec83878570736cb8e99f0e169be753d7
Merged-In: I48cd904dec83878570736cb8e99f0e169be753d7
2022-08-08 18:34:30 +00:00
Sean Hong
0c1b340132 Merge "Add seat backrest properties to the emulator for CTS tests" into tm-qpr-dev 2022-08-01 17:58:20 +00:00
Sean Hong
e47996f985 Merge "Add seat fore aft properties to the emulator for CTS tests" into tm-qpr-dev 2022-08-01 17:57:38 +00:00
seanhong
c5cb3af14b Add seat backrest properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: Ic4aeefb0751398559b7e9c878be861972c7b0f24
2022-07-27 21:06:33 +00:00
seanhong
3c514af345 Add seat fore aft properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: Ia9b24f5e2a14e261b13c49015662c15e443ecc4d
2022-07-27 20:42:48 +00:00
Tyler Trephan
7073d3faf7 Updated HVAC_SIDE_MIRROR_HEAT with a more realistic config
Test: atest CarPropertyManagerTest
Bug: 237610879
Change-Id: If5ca59df192f2329c48757ec7fe0cf8530a1164b
2022-07-27 01:15:30 +00:00
Tyler Trephan
e37a6dda22 Added missing mirror area type HVAC properties
Test: atest CarPropertyManagerTest
Bug: 237610879
Change-Id: Ibff9b429110ee72f28b109ac193df21ad395de51
2022-07-27 00:51:20 +00:00
seanhong
3c7a832aca Add seat belt properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I5137d64ab3025040f23efe58dbab01dc797923fe
2022-07-25 23:30:41 +00:00
Sean Hong
ebafec193f Merge "Remove FOG_LIGHTS_SWITCH from the emulator for the CTS test" into tm-qpr-dev 2022-07-20 03:24:32 +00:00
TreeHugger Robot
cc4486f974 Merge "Fixed VEHICLE_CURB_WEIGHT property" into tm-qpr-dev 2022-07-19 02:20:05 +00:00
seanhong
6fefa59d93 Remove FOG_LIGHTS_SWITCH from the emulator for the CTS test
FOG_LIGHTS_SWITCH should not be implemented when FRONT_FOG_LIGHTS_SWITCH or REAR_FOG_LIGHTS_SWITCH is implemented.

Test: atest CarPropertyManagerTest
Bug: 237691268
Change-Id: I5d1fc669a038c50e3262b5b057c45300e48848b6
2022-07-13 23:38:57 +00:00
Tyler Trephan
cdc036a685 Fixed VEHICLE_CURB_WEIGHT property
Test: atest CarPropertyManagerTest
Bug: 238677365
Change-Id: Iccea9313ec4654652be65e115ecebdcf7f68652f
2022-07-12 00:01:52 +00:00
Tyler Trephan
a2bdec821d Added FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME
Test: atest CarPropertyManagerTest
Bug: 238367528
Change-Id: If9f4fab38ce47d6e2d463cca3e5eeb909866bf89
2022-07-07 23:56:36 +00:00
Yu Shan
4be58ff1de Add EventMode to VehiclePropertyStore writeValue.
Add an option to specify whether to trigger onpropertychange callback
when VehiclePropertyStore.writeValue is called.

Test: atest VehiclePropertyStoreTest
Bug: 237318964
Change-Id: Iefd572c96f67dab2ecd5de56acf2e0d1c9b58939
2022-07-01 23:11:55 +00:00
TreeHugger Robot
f3e494e70f Merge "Add value for FUEL_VOLUME_DISPLAY_UNITS in default config." into tm-qpr-dev 2022-07-01 01:40:11 +00:00
TreeHugger Robot
7079fbd4f4 Merge "Implemented EV_BATTERY_DISPLAY_UNITS" into tm-qpr-dev 2022-07-01 01:40:11 +00:00
seanhong
14b6d3acf9 Remove FOG_LIGHTS_STATE from the emulator for the CTS test
FOG_LIGHTS_STATE should not be implemented when FRONT_FOG_LIGHTS_STATE or REAR_FOG_LIGHTS_STATE is implemented.

Test: atest CarPropertyManagerTest
Bug: 233789475
Change-Id: I396ad9410265df4003fddcc244605519f6f5e88a
2022-06-28 18:22:42 +00:00
Nishtha Ahuja
f234fe48bf Add value for FUEL_VOLUME_DISPLAY_UNITS in default config.
Bug: 232859264
Fix: 221916124
Test: Tested manually in KitchenSink app

Change-Id: I8c0bf768210037f655d76848d8b4aadf047838f3
(cherry picked from commit fccd300be6)
2022-06-25 00:52:04 +00:00
Tyler Trephan
073e68f29f Implemented EV_BATTERY_DISPLAY_UNITS
Test: atest CarPropertyManagerTest
Bug: 232859264
Change-Id: I8a3663f345a08b88e0047cd1211eb99978e4ded9
2022-06-24 23:54:08 +00:00
Yu Shan
6a553afeec Add support for GSR property in HIDL ref VHAL.
Test: Presubmit
Bug: 236135569
Merged-In: I3788b66aa409304927e8f5af371c049cb1bcd58e
(cherry-picked from I3788b66aa409304927e8f5af371c049cb1bcd58e)

Change-Id: I3788b66aa409304927e8f5af371c049cb1bcd58e
2022-06-23 21:43:40 +00:00
seanhong
551bc88864 Add ENGINE_COOLANT_TEMP property for the emulator
Test: atest CarPropertyManagerTest
Bug: 231209215
Change-Id: Ic80ced50e9a59041d60da1968564a59ce5a2115f
2022-06-10 15:21:41 +00:00
Maxim Pleshivenkov
124c3cde03 Update flag value
Set ENABLE_HIBERNATION_FLAG to a correct value.
Flag is used as a bitmask, and should set single bit.

Bug: 233373476
Change-Id: Ia60cdb3c9c344b3606ea07ed411ed6325a71c396
Test: atest CarServiceUnitTest
2022-05-20 18:59:30 +00:00
Yu Shan
b47e11e847 Fix a bug that would access uninitialized data.
Fix a bug where mThread is initialized before mRequests, causing
the new thread to access uninitialized mRequests.

Test: None. This is a race condition depending on when the thread is
started and hard to reproduce.
Bug: 231647009

Change-Id: I68037125bf4d14846585bd3a038844e4a7ced377
(cherry picked from commit 5e26ad3bf7)
2022-05-07 00:46:32 +00:00
TreeHugger Robot
1eb9ba70b8 Merge "Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE" into tm-dev 2022-04-29 00:24:12 +00:00
Tyler Trephan
4677012912 Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE
Test: atest CarPropertyManagerTest
Fix: 230386029
Change-Id: Idbd07a361f11b6b616c11ef2c359b656012b40cc
2022-04-25 22:58:59 +00:00
TreeHugger Robot
94b57a5d01 Merge "Added min/max rates for EV_CHARGE_TIME_REMAINING" into tm-dev 2022-04-22 16:26:28 +00:00
Tyler Trephan
e438bd358b Added min/max rates for EV_CHARGE_TIME_REMAINING
Test: atest CarPropertyManagerTest
Bug: 229118601
Change-Id: I6adedf1def47486ebe3cf9d12abe2bd65e0d6d48
2022-04-21 20:30:17 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Tyler Trephan
fdf818ffce Updated EV_CHARGE_CURRENT_DRAW_LIMIT config array
Test: atest CarPropertyManagerTest
Bug: 229118601
Change-Id: If894454260852a1c7fa7ebfb3cf98682120bb397
2022-04-13 19:49:17 +00:00
Yu Shan
e3421c3ce2 Support '--user-hal' in FakeVehicleHardware.
Support dump fake user hal command in FakeVehicleHardware.

Test: atest FakeVehicleHardwareTest
Bug: 228218366
Change-Id: I9884a1a216d07da6ccb58af1fa869266c959f80c
2022-04-09 00:31:17 +00:00
Yu Shan
6923449c42 Make FakeVehicleHardware async.
Use a handler thread to handle all the get/set value requests in
FakeVehicleHardware to make it async. Vendor implementation should
use similar logic to make their VHAL async.

Test: atest FakeVehicleHardwareTest
Bug: 226001897
Change-Id: Iba95125e63566c27597b9d11bff131c229846d49
2022-04-09 00:31:17 +00:00
Yu Shan
4569ef5542 Add VTS test for timestamp for AIDL backend.
The expected behavior for timestamp was not clearly defined in HIDL.
In AIDL, we add clearer definition based on the existing HIDL ref
impl's behavior. This CL add VTS test to enforce these behavior for
AIDL backend.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 225191802
Change-Id: Ic208d6ac20cb7b820249c9b545c7b3a83528a1dd
2022-04-09 00:31:17 +00:00
TreeHugger Robot
9c15ed74b6 Merge "Update subscription logic for VHAL ref impl." into tm-dev 2022-04-08 23:07:06 +00:00
Yu Shan
5a06465d3c Update subscription logic for VHAL ref impl.
Update the implementation for subscription logic. Add clearer
documentation for sampleRate and timestamp behavior. The sampleRate
specified in subscribeOptions is just a guidance to tell VHAL what
the polling rate could be. For timestamp, the timestamp returned
for each property must be the timestamp when that property is
updated, not when the property is retrieved.

Test: atest FakeVehicleHardwareTest
Bug: 225191802, 226000926
Change-Id: I1e886133258236eedfa7fcffe5c4fb49aead4f6f
2022-04-06 23:40:17 +00:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00