Vehicle HAL reference impl Part I
Implemented:
- defined VehicleHal
- object pool for VehiclePropValue objects
- batching of vehicle HAL events
- subscription management
Test: unit tests provided
Bug: b/31971746
Change-Id: Idd2d0aee7b32a975c3db54812be235e13f52905a
diff --git a/vehicle/2.0/IVehicleCallback.hal b/vehicle/2.0/IVehicleCallback.hal
index 1e9034f..5c1042b 100644
--- a/vehicle/2.0/IVehicleCallback.hal
+++ b/vehicle/2.0/IVehicleCallback.hal
@@ -29,7 +29,7 @@
*
* @param values that has been updated.
*/
- onPropertyEvent(vec<VehiclePropValue> propValues);
+ oneway onPropertyEvent(vec<VehiclePropValue> propValues);
/*
* This method gets called if the client was susbscribed to a property using
@@ -40,7 +40,7 @@
*
* @param value Value that was set by a client.
*/
- onPropertySet(VehiclePropValue propValue);
+ oneway onPropertySet(VehiclePropValue propValue);
/*
* Called by HAL server when error condition has occurred.
@@ -50,7 +50,7 @@
* a generic error, this value should be VehicleProperty::INVALID.
* @param operation Represent the operation where the error has happened.
*/
- onError(StatusCode errorCode,
- VehicleProperty propId,
- VehiclePropertyOperation operation);
+ oneway onError(StatusCode errorCode,
+ VehicleProperty propId,
+ VehiclePropertyOperation operation);
};