diff --git a/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java b/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java index 8e9da55a..2e8be2a3 100644 --- a/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java +++ b/tests/benchmark_hostside/java/android/avf/test/AVFHostTestCase.java @@ -121,8 +121,9 @@ public final class AVFHostTestCase extends MicrodroidHostTestCaseBase { // Boot time with compilation OS test. reInstallApex(REINSTALL_APEX_TIMEOUT_SEC); compileStagedApex(COMPILE_STAGED_APEX_TIMEOUT_SEC); + getDevice().nonBlockingReboot(); long start = System.nanoTime(); - rebootAndWaitBootCompleted(); + waitForBootCompleted(); long elapsedWithCompOS = System.nanoTime() - start; double elapsedSec = elapsedWithCompOS / NANOS_IN_SEC; bootWithCompOsTime[round] = elapsedSec; @@ -130,8 +131,9 @@ public final class AVFHostTestCase extends MicrodroidHostTestCaseBase { // Boot time without compilation OS test. reInstallApex(REINSTALL_APEX_TIMEOUT_SEC); + getDevice().nonBlockingReboot(); start = System.nanoTime(); - rebootAndWaitBootCompleted(); + waitForBootCompleted(); long elapsedWithoutCompOS = System.nanoTime() - start; elapsedSec = elapsedWithoutCompOS / NANOS_IN_SEC; bootWithoutCompOsTime[round] = elapsedSec; @@ -216,8 +218,7 @@ public final class AVFHostTestCase extends MicrodroidHostTestCaseBase { getDevice().enableAdbRoot(); } - private void rebootAndWaitBootCompleted() throws Exception { - getDevice().nonBlockingReboot(); + private void waitForBootCompleted() throws Exception { getDevice().waitForDeviceOnline(BOOT_COMPLETE_TIMEOUT_MS); getDevice().waitForBootComplete(BOOT_COMPLETE_TIMEOUT_MS); getDevice().enableAdbRoot();