add libvehiclenetwork-audio-helper
- with c wrapper
- update vns to pass event when internal property is set while in
mocking
- fix bug in VehiclePropValueUtil::copyVehicleProp of deleting non-
string type.
bug: 25330290
(cherry picked from commit f1b41f92b11e78373f423343b23229d19cdf0af2)
Change-Id: I54ae1faed1f67528bd2928ce23b53c16d19fcab2
diff --git a/libvehiclenetwork/native/IVehicleNetworkHalMock.cpp b/libvehiclenetwork/native/IVehicleNetworkHalMock.cpp
index 0a93721..42e7a1c 100644
--- a/libvehiclenetwork/native/IVehicleNetworkHalMock.cpp
+++ b/libvehiclenetwork/native/IVehicleNetworkHalMock.cpp
@@ -224,7 +224,12 @@
case ON_PROPERTY_GET: {
CHECK_INTERFACE(IVehicleNetworkHalMock, data, reply);
ScopedVehiclePropValue value;
- value.value.prop = data.readInt32();
+ r = VehiclePropValueBinderUtil::readFromParcel(data, &value.value,
+ false /* deleteMembers */, true /*canIgnoreNoData*/);
+ if (r != NO_ERROR) {
+ ALOGE("onPropertyGet cannot read %d", r);
+ return r;
+ }
r = onPropertyGet(&(value.value));
if (r == NO_ERROR) {
BinderUtil::fillObjectResultReply(reply, true);