vehicle hal update: add zone to subscription and others
- add zones to subscribe and mocking
- extend config_flags to config_array
bug: 25265553
Change-Id: Icfc1911178daa4ff4b5b6f12bc8e0002af5530bb
diff --git a/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/VehicleNetworkMockedTest.java b/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/VehicleNetworkMockedTest.java
index b618584..a48fa83 100644
--- a/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/VehicleNetworkMockedTest.java
+++ b/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/VehicleNetworkMockedTest.java
@@ -162,7 +162,7 @@
private interface VehiclePropertyHandler {
void onPropertySet(VehiclePropValue value);
VehiclePropValue onPropertyGet(VehiclePropValue property);
- void onPropertySubscribe(int property, int sampleRate);
+ void onPropertySubscribe(int property, float sampleRate, int zones);
void onPropertyUnsubscribe(int property);
}
@@ -206,12 +206,12 @@
}
@Override
- public void onPropertySubscribe(int property, int sampleRate) {
+ public void onPropertySubscribe(int property, float sampleRate, int zones) {
VehiclePropertyHandler handler = getPropertyHandler(property);
if (handler == null) {
fail("onPropertySubscribe for unknown property " + Integer.toHexString(property));
}
- handler.onPropertySubscribe(property, sampleRate);
+ handler.onPropertySubscribe(property, sampleRate, zones);
}
@Override
@@ -246,7 +246,7 @@
}
@Override
- public void onPropertySubscribe(int property, int sampleRate) {
+ public void onPropertySubscribe(int property, float sampleRate, int zones) {
// TODO Auto-generated method stub
}