Commit graph

1002 commits

Author SHA1 Message Date
Pawan Wagh
3dbeea2adc Merge "Updating cc_fuzz with default service fuzzer config" 2022-08-26 02:35:26 +00:00
TreeHugger Robot
70ffeca37a Merge "Update GsrComplianceRequirementType." 2022-08-25 02:07:54 +00:00
Sean Hong
048085f777 Merge "Add missing mirror properties to DefaultProperties.json for CTS tests" 2022-08-24 20:23:08 +00:00
Yu Shan
c7763e42bf Update GsrComplianceRequirementType.
Update the name according to Car Service definition.

Test: m android.hardware.automotive.vehicle-update-api
Bug: 237005566
Change-Id: Idbc24b7b9e8b5d697d0921b79f5b903345f2cc7e
2022-08-24 13:21:39 -07:00
Pawan
a759ebf350 Updating cc_fuzz with default service fuzzer config
Using service_fuzzer_defaults in
	- android.hardware.automotive.vehicle@V1-default-service_fuzzer
	- android.hardware.automotive.occupant_awareness-service.fuzzer

Bug: 240318902
Test: m android.hardware.automotive.vehicle@V1-default-service_fuzzer
Test: m android.hardware.automotive.occupant_awareness-service.fuzzer
Change-Id: I22cbbec92a7281081c355bb78d2ae87aa90732fa
2022-08-22 23:18:11 +00:00
Sean Hong
60aa03924f Merge "Add interior lights state properties to DefaultProperties.json for CTS tests" 2022-08-19 20:42:55 +00:00
seanhong
fddcb4a043 Add interior lights state properties to DefaultProperties.json for CTS
tests

Test: atest CarPropertyManagerTest
Bug: 241161716
Change-Id: Id97df0340200b5b9900033c8703abacfb65a7f83
2022-08-16 23:36:37 +00:00
seanhong
a5698a3983 Add missing mirror properties to DefaultProperties.json for CTS tests
Test: atest CarPropertyManagerTest
Bug: 241161716
Change-Id: Id647540ccd071134249a8122f537090c9e132dbf
2022-08-16 00:10:21 +00:00
seanhong
4ccf651c01 Add seat headrest properties to DefaultProperties.json 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: I20b44558c262d47dc148e9b2d8857838f898ae9f
2022-08-15 23:38:49 +00:00
seanhong
6d8b09fda6 Add seat lumbar properties to DefaultProperties.json for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: Ie26894e0723a610ebdc0ff0b81e57ab654c230db
2022-08-15 22:25:33 +00:00
seanhong
af7cbb3bf5 Add seat tilt properties to DefaultProperties.json for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I4bb282e81e2d847a060a259e6da7c09fed9d77de
2022-08-15 22:21:07 +00:00
seanhong
a9efc52c15 Add seat depth properties to the DefaultProperties.json for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: Ib6fa73306844a4b811d34a96e145dba9543ce048
2022-08-15 21:44:46 +00:00
Yu Shan
98cd1e0438 Merge "Use a different timesource in recurrent timer." 2022-08-12 17:37:32 +00:00
Chen Cheng
0ac4001e6d Merge "Remove extra commas in DefaultProperties.json." 2022-08-12 07:04:51 +00:00
Yu Shan
5e50873793 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
2022-08-11 01:13:41 +00:00
Yu Shan
848fcb49b4 Remove DefaultConfig.h file.
This file is replaced with DefaultProperties.json.

Test: Presubmit
Bug: 238685398
Change-Id: Ib159f781f61de8a7cd1498ad2a07e5dbd0eca734
2022-08-10 20:51:52 +00:00
TreeHugger Robot
67ed1ae812 Merge "Added missing HVAC properties to DefaultProperties.json" 2022-08-10 04:24:35 +00:00
Chen Cheng
6932dd2c46 Remove extra commas in DefaultProperties.json.
The JSON object in DefaultProperties.json is invalid because of extra
commas. Removed these extra commas. And replace some number values
with the original VehicleUnit constants format as in DefaulConfig.h
file.

Test: atest FakeVhalConfigParserUnitTest
Bug: 241959871
Change-Id: Ic5193fa46217f31cfe96f73c6e153631891644bc
2022-08-09 22:49:52 +00:00
Tyler Trephan
851a9626c3 Added missing HVAC properties to DefaultProperties.json
Test: Built
Bug: 237610879
Change-Id: I8a71d3ab47c2e60ed90a11cfeb4c10b44d93f1c9
2022-08-09 20:54:50 +00:00
Yu Shan
9ba443f061 Deprecate DefaultConfig.h.
We migrated DefaultConfig.h to config JSON files.

Test: Presubmit
Bug: 238685398
Change-Id: Ia3d2e5b34b0cdbfb5078129aabfe4b080e2e67a8
2022-08-09 00:44:55 +00:00
Sean Hong
1f925f08ef Merge "Add seat height properties to the emulator (DefaultConfig.h) for CTS tests" 2022-08-06 06:24:35 +00:00
seanhong
fb97396b40 Add seat height properties to the emulator (DefaultConfig.h) for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I48cd904dec83878570736cb8e99f0e169be753d7
2022-08-04 21:41:38 +00:00
seanhong
9cd9dbd948 Add seat height properties to DefaultProperties.json for CTS tests
Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: Ic3f0714277966157fd569ca3be8e316f297417d1
2022-08-04 21:41:15 +00:00
Yu Shan
ad0c3ab7a6 Convert VehicleHalDefaultConfig to JsonConfigLoader.
Test: Presubmit
Bug: 238685398
Change-Id: I4a10b3b4484f593a6311b85f2143ef0ef12f5f81
2022-08-02 21:46:44 +00:00
Yu Shan
bcf9bcbfcb Add a README explaining JSON format.
Add a README file explaining the JSON format for the vehicle property
config JSON file.

Test: None
Bug: 238685398
Change-Id: I4aa1723aec4dd58579e9b20244bee0f2c109bec4
2022-08-01 22:30:13 +00:00
Yu Shan
9b64b82fc1 Add area config parsing.
Add area config parsing to JsonConfigLoader.

Test: atest JsonConfigLoaderUnitTestEnableTestProperties
atest VehicleHalDefaultConfigTestEnableTestProperties
Bug: 238685398

Change-Id: I22c1b54fb5463b6c747645293ed47c5799d5f262
2022-08-01 22:30:13 +00:00
Yu Shan
61dd7a76a3 Add recently added properties and fix change mode.
Add the recently added properties to DefaultProperties.json to sync with
DefaultConfig.h.

This CL also fixes change mode for
SUPPORT_CUSTOMIZE_VENDOR_PERMISSION and REMOVE_USER to be consistent
with the property change mode annotation.

Test: atest DefaultConfigTest
Bug: 239613431
Change-Id: I0389746f9e0498330ab38c6bc41bb3a92886b32e
2022-08-01 22:30:11 +00:00
Yu Shan
6707175ba4 Add constant value parsers.
To allow better readibility, we allow the property config file to
use string value to represent constant values. For example,
"VehicleProperty::INFO_VIN" represents the int VehicleProperty value
for INFO_VIN. This CL adds the parsing logic for special constant
format string values.

Test: See the unit tests added in the ag/19240183
Bug: 238685398
Change-Id: I1617fdd47b4292180bd2bb37acddc181c212f4f5
2022-08-01 21:29:17 +00:00
Yu Shan
03cd34e246 Create JsonConfigLoader.
This CL adds a JsonConfigLoader to parse the vehicle proeprty
config file in JSON format.

This CL also adds DefaultConfigTest to verify the JSON file
is compatible with the existing header file.

Test: atest JsonConfigLoaderUnitTest
atest VehicleHalDefaultConfigTest
Bug: 238685398

Change-Id: If679afd2245cb7e2a49fd964f343b660c9bcea25
2022-08-01 21:29:17 +00:00
Sean Hong
f199cca667 Merge "Add seat backrest properties to the emulator for CTS tests" into tm-qpr-dev am: 0c1b340132 am: e7087a2d5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19442108

Change-Id: I3d488e2890941bbe96fce2e7f35ad774aa36619d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:33:46 +00:00
Sean Hong
b2fec5526e Merge "Add seat fore aft properties to the emulator for CTS tests" into tm-qpr-dev am: e47996f985 am: b1edb005b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19436212

Change-Id: I3e98814d5d059e6654608b14d85aea69347460ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:33:28 +00:00
Sean Hong
e7087a2d5d Merge "Add seat backrest properties to the emulator for CTS tests" into tm-qpr-dev am: 0c1b340132
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19442108

Change-Id: Ib01d71c0f1f0578fc66403414d6aa64af8418f39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:16:33 +00:00
Sean Hong
b1edb005b2 Merge "Add seat fore aft properties to the emulator for CTS tests" into tm-qpr-dev am: e47996f985
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19436212

Change-Id: I15975f78d1b8c818c7e391025e6e026bf6bd6b86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:16:07 +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
Tyler Trephan
a28abc8b21 Updated HVAC_SIDE_MIRROR_HEAT with a more realistic config am: 7073d3faf7 am: 5446412cbc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19442366

Change-Id: Ib9ceb323428dcc91567542cb8e3005e867b145d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 23:17:32 +00:00
Tyler Trephan
5446412cbc Updated HVAC_SIDE_MIRROR_HEAT with a more realistic config am: 7073d3faf7
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19442366

Change-Id: Ie9e314f05fab1845ec3946c0a8d255a94050ffe6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 22:57:11 +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
d659c5206e Added missing mirror area type HVAC properties am: e37a6dda22 am: 047bf658b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19416739

Change-Id: I3c13cced075d02cafae3d0a3c4f72ff22bfd6b7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 20:17:36 +00:00
Tyler Trephan
047bf658b7 Added missing mirror area type HVAC properties am: e37a6dda22
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19416739

Change-Id: If98c975ec4f80e56f351625bfd2cfd41ef75de51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:52:22 +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
a4bb671db8 Add seat belt properties to the emulator for CTS tests am: 3c7a832aca am: 0f736f1595
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19419601

Change-Id: I45c96e8a2a5b6006f05b50148de8ae9c6de135d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 18:37:26 +00:00
seanhong
0f736f1595 Add seat belt properties to the emulator for CTS tests am: 3c7a832aca
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19419601

Change-Id: I4b33cf532e483da227ebfa7bee485c131192c74f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 17:36:55 +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
TreeHugger Robot
b1300e331c Merge "Update prop config to reflect new prop changes." 2022-07-22 01:09:37 +00:00
Yu Shan
394c3bf716 Update prop config to reflect new prop changes.
Bug: 239854883
Test: Presubmit
Change-Id: Ib6f9246b4ad4adc9c7782e6156819e2fd866f4c0
2022-07-21 20:38:06 +00:00
Bob Badour
4ae40f5b58 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  automotive/vehicle/aidl/impl/default_config/config/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I2aca43eea19ea7bf43b34133e0dda79a54cefa90
2022-07-21 11:22:54 -07:00
Sean Hong
b0b5f05d11 Merge "Remove FOG_LIGHTS_SWITCH from the emulator for the CTS test" into tm-qpr-dev am: ebafec193f am: ebb8dc655a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19245760

Change-Id: I53e16522932d34ab619e5f6e926ead41ca9ddb83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 04:06:29 +00:00