From c7dd3cabf3b5b5097283fb0eaa2172d217cc5014 Mon Sep 17 00:00:00 2001 From: Dave McCloskey Date: Thu, 24 Mar 2022 16:04:10 -0700 Subject: [PATCH] Changes to reduce flakiness of TrustTests Use AndroidTest.xml to disable the double-click on power for turning on Camera. While trying to dismiss keyguard, use the back button instead of trying to power cycle the phone in order to dismiss bouncer. As part of this, also wake the device if it's asleep since you cannot dismiss keyguard if the display is off. Bug: 226652325 Test: atest --iterations TrustTests Change-Id: I7eb920f220dbc8d28d7c2035252365277d51421a --- tests/TrustTests/AndroidTest.xml | 7 +++++++ .../trust/test/UserUnlockRequestTest.kt | 2 +- .../android/trust/test/lib/ScreenLockRule.kt | 19 +++++++++++-------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/tests/TrustTests/AndroidTest.xml b/tests/TrustTests/AndroidTest.xml index 61b711eb72736..7ed19f5ba5fe3 100644 --- a/tests/TrustTests/AndroidTest.xml +++ b/tests/TrustTests/AndroidTest.xml @@ -16,6 +16,13 @@ -->