diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-03 22:10:00 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-03 22:10:00 +0000 |
commit | 27db8f3a135903b300a943006423a2100c953a11 (patch) | |
tree | 20fb7349f6ded16e0f622f4ed701d85dc53cae5e | |
parent | 756b1b3d88a85162efe4b0a2d369e9b26d1b4b5e (diff) | |
parent | 10f81a7ed2d049b17a5677be9268262938a4a06b (diff) | |
download | interfaces-27db8f3a135903b300a943006423a2100c953a11.tar.gz |
Merge "Screen wakeup is added in VTS tests setup" into main
-rw-r--r-- | confirmationui/aidl/vts/functional/VtsHalConfirmationUITargetTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/confirmationui/aidl/vts/functional/VtsHalConfirmationUITargetTest.cpp b/confirmationui/aidl/vts/functional/VtsHalConfirmationUITargetTest.cpp index 61dae8b8d9..7ffd1465e7 100644 --- a/confirmationui/aidl/vts/functional/VtsHalConfirmationUITargetTest.cpp +++ b/confirmationui/aidl/vts/functional/VtsHalConfirmationUITargetTest.cpp @@ -192,6 +192,12 @@ class ConfirmationUIAidlTest : public ::testing::TestWithParam<std::string> { public: void TearDown() override { confirmator_->abort(); } void SetUp() override { + // Wake up the device in-case screen is off. b/332827323 + int ret = system("input keyevent KEYCODE_WAKEUP"); + if (ret != 0) { + ALOGE("Failed to run keyevent KEYCODE_WAKEUP command"); + } + usleep(100000); // wait for 100ms to wake up the screen. std::string name = GetParam(); ASSERT_TRUE(AServiceManager_isDeclared(name.c_str())) << name; ndk::SpAIBinder binder(AServiceManager_waitForService(name.c_str())); |