commit | e29e57f13548e0572fd3088e4fb7679284239eaf | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Fri Aug 16 09:37:58 2019 -0700 |
committer | Jim Kaye <jameskaye@google.com> | Wed Aug 21 10:39:21 2019 -0700 |
tree | 54cc6938f2472505ac70ac289e70c5396606dda2 | |
parent | f9228792a21a202301880124c21cf4bbce077507 [diff] |
[AAE test] Allow SHUTDOWN_PREPARE to be transient during test Test com.android.car.CarPowerManagementTest#testSleepEntry sends a SHUTDOWN_PREPARE request and verifies that the system enters that power state. After entering SHUTDOWN_PREPARE, however, the system quickly proceeds to SHUTDOWN_POSTPONE. The test sometimes failed because it saw the system in SHUTDOWN_POSTONE. This CL makes the test pass if the SHUTDOWN_PREPARE state is seen, even if the system later transitions to another state. Bug: 138940104 Test: Temporarily added a delay to the test to make it always lose the race. Change-Id: I4b9aa26a1560b494d192f75ba9bd3ec6b17bf41a
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.