commit | 30c9382181ad0aab22895ec38a2acab9e2383974 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Thu Apr 04 14:37:17 2024 -0700 |
committer | Patrick Rohr <prohr@google.com> | Fri Apr 05 11:57:42 2024 -0700 |
tree | 56f48d4f6ea9553583e5cb040faccdeaa17df849 | |
parent | 39c203f431b26b74ac4b3b2cc2e111a9efc56e42 [diff] |
Toggle screen state before and after ApfIntegrationTest APF is supposed to run when the screen is off. This change turns the screen off as part of setUp() and turns it back on in tearDown() (since apparently CTS is run with the screen on as some tests rely on it). turnScreenOn() / turnScreenOff() also acquire / release a partial wakelock to prevent the CPU from suspending during the test. Test: atest ApfIntegrationTest Change-Id: I31f04f4d39284be387006fdd9d0a7c0e27feddb5