diff options
Diffstat (limited to 'hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java')
-rw-r--r-- | hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java b/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java index ad925131cf0..d9072497cbf 100644 --- a/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java +++ b/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/HostAtomTests.java @@ -229,14 +229,19 @@ public class HostAtomTests extends DeviceTestCase implements IBuildReceiver { // Trigger events in same order. DeviceUtils.plugInAc(getDevice()); + DeviceUtils.flushBatteryStatsHandlers(getDevice()); Thread.sleep(AtomTestUtils.WAIT_TIME_LONG); DeviceUtils.unplugDevice(getDevice()); + DeviceUtils.flushBatteryStatsHandlers(getDevice()); Thread.sleep(AtomTestUtils.WAIT_TIME_LONG); plugInUsb(); + DeviceUtils.flushBatteryStatsHandlers(getDevice()); Thread.sleep(AtomTestUtils.WAIT_TIME_LONG); DeviceUtils.unplugDevice(getDevice()); + DeviceUtils.flushBatteryStatsHandlers(getDevice()); Thread.sleep(AtomTestUtils.WAIT_TIME_LONG); plugInWireless(); + DeviceUtils.flushBatteryStatsHandlers(getDevice()); Thread.sleep(AtomTestUtils.WAIT_TIME_LONG); DeviceUtils.unplugDevice(getDevice()); DeviceUtils.flushBatteryStatsHandlers(getDevice()); |