Loading automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ bool VehiclePropertyStore::writeValue(const VehiclePropValue& propValue, return false; } // update the propertyValue. // The timestamp in propertyStore should only be updated by the server side. It indicates // the time when the event is generated by the server. valueToUpdate->timestamp = propValue.timestamp; valueToUpdate->value = propValue.value; if (updateStatus) { Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/EmulatedVehicleHal.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,9 @@ VehicleHal::VehiclePropValuePtr EmulatedVehicleHal::get( *outStatus = v != nullptr ? StatusCode::OK : StatusCode::INVALID_ARG; break; } if (v.get()) { v->timestamp = elapsedRealtimeNano(); } return v; } Loading Loading @@ -305,6 +307,7 @@ void EmulatedVehicleHal::onContinuousPropertyTimer(const std::vector<int32_t>& p } if (v.get()) { v->timestamp = elapsedRealtimeNano(); doHalEvent(std::move(v)); } } Loading Loading
automotive/vehicle/2.0/default/common/src/VehiclePropertyStore.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ bool VehiclePropertyStore::writeValue(const VehiclePropValue& propValue, return false; } // update the propertyValue. // The timestamp in propertyStore should only be updated by the server side. It indicates // the time when the event is generated by the server. valueToUpdate->timestamp = propValue.timestamp; valueToUpdate->value = propValue.value; if (updateStatus) { Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/EmulatedVehicleHal.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,9 @@ VehicleHal::VehiclePropValuePtr EmulatedVehicleHal::get( *outStatus = v != nullptr ? StatusCode::OK : StatusCode::INVALID_ARG; break; } if (v.get()) { v->timestamp = elapsedRealtimeNano(); } return v; } Loading Loading @@ -305,6 +307,7 @@ void EmulatedVehicleHal::onContinuousPropertyTimer(const std::vector<int32_t>& p } if (v.get()) { v->timestamp = elapsedRealtimeNano(); doHalEvent(std::move(v)); } } Loading