From 51d6329919b9a92fd2747f3fd7e262feb000953f Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Fri, 4 Oct 2024 13:43:56 -0700 Subject: [PATCH] Fix unknown VehicleApPowerStateReport ON. Fix an incorrect error message for VehicleApPowerStateReport ON. Flag: EXEMPT HAL fix Test: Manual test Bug: 371614400 Change-Id: I81406931d27e2f8b174b52720d4f502e0e32fdd4 --- .../aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp | 3 +++ 1 file changed, 3 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 6668d16833..b301557f06 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp @@ -538,6 +538,9 @@ VhalResult FakeVehicleHardware::setApPowerStateReport(const VehiclePropVal << getErrorMsg(writeResult); } break; + case toInt(VehicleApPowerStateReport::ON): + ALOGI("Received VehicleApPowerStateReport::ON, entering normal operating state"); + break; default: ALOGE("Unknown VehicleApPowerStateReport: %d", state); break;