From 90f29a4eaef4fa7869b0bba68e2a9bd35c023379 Mon Sep 17 00:00:00 2001 From: Michael Troger Date: Wed, 1 Nov 2023 18:11:16 +0100 Subject: [PATCH] Try to fix demo mode --- scripts/run_ui_tests | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/run_ui_tests b/scripts/run_ui_tests index 486736f5..afc42897 100755 --- a/scripts/run_ui_tests +++ b/scripts/run_ui_tests @@ -14,14 +14,18 @@ adb shell mkdir /sdcard/testdata adb push testdata /sdcard/ adb shell settings put global sysui_demo_allowed 1 +sleep 2 adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1200 +sleep 2 adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false -adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4 -adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 +sleep 2 +adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype 5g -e level 4 +sleep 2 +adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi hide +sleep 2 adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false +sleep 2 adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -# run a second time since this one seems to be flaky on the emulator: -adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4 set +e # don't fail on errors