Use power manager instead of adb to wake up screen.

Fix this before merger back from sc-v2, to prevent merge conflict.


Bug: 201253586
Test: atest SettingsComponentTests
Change-Id: I08871e744e201a10ddbfdf41e3a40df8c65b9865
This commit is contained in:
Syaoran Kuo
2021-09-28 15:32:40 +08:00
parent 1fb716d892
commit 5fed474020

View File

@@ -139,7 +139,7 @@ public class CommonUtils {
UiUtils.waitUntilCondition(1000, () -> sPowerManager.isInteractive()); UiUtils.waitUntilCondition(1000, () -> sPowerManager.isInteractive());
// After power on screen, need to unlock and goto home page. // After power on screen, need to unlock and goto home page.
AdbUtils.shell("input keyevent KEYCODE_MENU"); sPowerManager.wakeUp(1000, PowerManager.WAKE_REASON_POWER_BUTTON, "Wakeup");
} }
/** /**