Change the type of "hours" from long to double
So we won't have the rounding issue here. Bug: 63112264 Test: RunSettingsRoboTests Change-Id: I85b3525781074294964a956dbe76f3b55f65704d
This commit is contained in:
@@ -59,9 +59,10 @@ public class WakeupAlarmAnomalyDetectorTest {
|
||||
private static final int ANOMALY_UID = 111;
|
||||
private static final int NORMAL_UID = 222;
|
||||
private static final int TARGET_UID = 333;
|
||||
private static final long RUNNING_TIME_MS = 2 * DateUtils.HOUR_IN_MILLIS;
|
||||
private static final long RUNNING_TIME_MS =
|
||||
1 * DateUtils.HOUR_IN_MILLIS + 10 * DateUtils.MINUTE_IN_MILLIS;
|
||||
private static final int ANOMALY_WAKEUP_COUNT = 500;
|
||||
private static final int NORMAL_WAKEUP_COUNT = 50;
|
||||
private static final int NORMAL_WAKEUP_COUNT = 61;
|
||||
@Mock
|
||||
private BatteryStatsHelper mBatteryStatsHelper;
|
||||
@Mock
|
||||
|
Reference in New Issue
Block a user