mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user