Match timestamp units with the interface definitions
Bug: b/147376950
Test: Local build on emulator
atest CarServiceUnitTest
Change-Id: Iabacda3359293092eace70bd89275beeb0558678
diff --git a/service/src/com/android/car/hal/PowerHalService.java b/service/src/com/android/car/hal/PowerHalService.java
index aebf7dd..0eaa5cc 100644
--- a/service/src/com/android/car/hal/PowerHalService.java
+++ b/service/src/com/android/car/hal/PowerHalService.java
@@ -205,7 +205,7 @@
*/
public void sendSleepEntry(int wakeupTimeSec) {
Log.i(CarLog.TAG_POWER, "send sleep entry");
- setPowerState(VehicleApPowerStateReport.DEEP_SLEEP_ENTRY, wakeupTimeSec * 1000);
+ setPowerState(VehicleApPowerStateReport.DEEP_SLEEP_ENTRY, wakeupTimeSec);
}
/**
@@ -230,7 +230,7 @@
*/
public void sendShutdownStart(int wakeupTimeSec) {
Log.i(CarLog.TAG_POWER, "send shutdown start");
- setPowerState(VehicleApPowerStateReport.SHUTDOWN_START, wakeupTimeSec * 1000);
+ setPowerState(VehicleApPowerStateReport.SHUTDOWN_START, wakeupTimeSec);
}
/**