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