From c2b9eaa4e7162316bb07240e4b837883d83b761a Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Thu, 29 Feb 2024 11:21:23 -0800 Subject: [PATCH] Fill in the missing status field. Fill in the missing status field for VEHICLE_IN_USE and AP_POWER_BOOTUP_REASON property. Test: Presubmit Bug: 327640442 Change-Id: I1320c57da5ec4c7910676a234b9c7bc0d3b6e3ea --- .../aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp b/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp index 072aafc2b4..c4bcdb39ab 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp @@ -907,6 +907,7 @@ FakeVehicleHardware::ValueResultType FakeVehicleHardware::getVehicleInUse( auto result = mValuePool->obtainBoolean(response.isvehicleinuse()); result->prop = toInt(VehicleProperty::VEHICLE_IN_USE); result->areaId = 0; + result->status = VehiclePropertyStatus::AVAILABLE; result->timestamp = elapsedRealtimeNano(); return result; } @@ -924,6 +925,7 @@ FakeVehicleHardware::ValueResultType FakeVehicleHardware::getApPowerBootupReason auto result = mValuePool->obtainInt32(response.bootupreason()); result->prop = toInt(VehicleProperty::AP_POWER_BOOTUP_REASON); result->areaId = 0; + result->status = VehiclePropertyStatus::AVAILABLE; result->timestamp = elapsedRealtimeNano(); return result; }