commit | 9b1843eae3f8300e1a4d04934e638d559e688d9c | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Fri Jun 12 22:41:25 2020 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Jun 12 22:42:12 2020 +0800 |
tree | 05f47d78c79a3567a724366cecd1bf731c148aa2 | |
parent | 6dca466770a982bcc34df7813a8f86532eeec4d4 [diff] |
Avoid unexpected screen off during perf testing The plugged-in type may be BATTERY_PLUGGED_AC in test environment. And the precondition of the device may have set stay-on with any type, then it is enough to keep device interactive. Previously the usb type doesn't match the current state that causes device to sleep if the screen off timeout has occurred. Bug: 131727899 Test: atest WmPerfTests Change-Id: Ia76a0f55e967a2d52fc4b1057b19a8af921260f3