Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | * Copyright 2018 Google Inc. All Rights Reserved. |
| 4 | --> |
Nataniel Borges | 160b9df | 2023-05-12 12:29:57 +0000 | [diff] [blame] | 5 | <configuration description="Runs WindowManager {MODULE}"> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 6 | <option name="test-tag" value="FlickerTests" /> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 7 | <!-- Needed for storing the perfetto trace files in the sdcard/test_results--> |
| 8 | <option name="isolated-storage" value="false" /> |
| 9 | |
Hsin-Yi Chen | 677a002 | 2019-03-19 13:20:53 +0800 | [diff] [blame] | 10 | <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 11 | <!-- keeps the screen on during tests --> |
| 12 | <option name="screen-always-on" value="on" /> |
| 13 | <!-- prevents the phone from restarting --> |
| 14 | <option name="force-skip-system-props" value="true" /> |
Nataniel Borges | 992a155 | 2019-09-25 17:12:40 +0200 | [diff] [blame] | 15 | <!-- set WM tracing verbose level to all --> |
Nataniel Borges | 7ac1793 | 2020-03-30 11:19:29 +0200 | [diff] [blame] | 16 | <option name="run-command" value="cmd window tracing level all" /> |
Nataniel Borges | d85b2e2 | 2021-03-05 15:52:05 +0100 | [diff] [blame] | 17 | <!-- set WM tracing to frame (avoid incomplete states) --> |
| 18 | <option name="run-command" value="cmd window tracing frame" /> |
Nataniel Borges | 12fafee | 2022-10-03 20:07:04 +0000 | [diff] [blame] | 19 | <!-- ensure lock screen mode is swipe --> |
| 20 | <option name="run-command" value="locksettings set-disabled false" /> |
Sam Dubey | 261cc40 | 2022-11-10 07:46:34 +0000 | [diff] [blame] | 21 | <!-- disable betterbug as it's log collection dialogues cause flakes in e2e tests --> |
| 22 | <option name="run-command" value="pm disable com.google.android.internal.betterbug" /> |
Nataniel Borges | 545adf8 | 2020-04-21 16:36:00 +0000 | [diff] [blame] | 23 | <!-- restart launcher to activate TAPL --> |
| 24 | <option name="run-command" value="setprop ro.test_harness 1 ; am force-stop com.google.android.apps.nexuslauncher" /> |
Nataniel Borges | 6aea00a | 2022-11-10 11:55:34 +0000 | [diff] [blame] | 25 | <!-- Ensure output directory is empty at the start --> |
| 26 | <option name="run-command" value="rm -rf /sdcard/flicker" /> |
Nataniel Borges | 33aad1b | 2023-05-02 09:52:30 +0000 | [diff] [blame] | 27 | <!-- Increase trace size: 20mb for WM and 80mb for SF --> |
| 28 | <option name="run-command" value="cmd window tracing size 20480" /> |
| 29 | <option name="run-command" value="su root service call SurfaceFlinger 1029 i32 81920" /> |
Nataniel Borges | 992a155 | 2019-09-25 17:12:40 +0200 | [diff] [blame] | 30 | </target_preparer> |
Nataniel Borges | a11775f | 2023-01-16 20:57:16 +0000 | [diff] [blame] | 31 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 32 | <option name="run-command" value="settings put secure show_ime_with_hard_keyboard 1" /> |
Nataniel Borges | 3a98979 | 2023-02-23 14:04:46 +0000 | [diff] [blame] | 33 | <option name="run-command" value="settings put system show_touches 1" /> |
| 34 | <option name="run-command" value="settings put system pointer_location 1" /> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 35 | <option name="teardown-command" |
| 36 | value="settings delete secure show_ime_with_hard_keyboard" /> |
Nataniel Borges | 3a98979 | 2023-02-23 14:04:46 +0000 | [diff] [blame] | 37 | <option name="teardown-command" value="settings delete system show_touches" /> |
| 38 | <option name="teardown-command" value="settings delete system pointer_location" /> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 39 | <option name="teardown-command" |
| 40 | value="cmd overlay enable com.android.internal.systemui.navbar.gestural" /> |
Nataniel Borges | a11775f | 2023-01-16 20:57:16 +0000 | [diff] [blame] | 41 | </target_preparer> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 42 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 43 | <option name="cleanup-apks" value="true"/> |
Nataniel Borges | 160b9df | 2023-05-12 12:29:57 +0000 | [diff] [blame] | 44 | <option name="test-file-name" value="{MODULE}.apk"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 45 | <option name="test-file-name" value="FlickerTestApp.apk" /> |
| 46 | </target_preparer> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 47 | <!-- Needed for pushing the trace config file --> |
| 48 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 49 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 50 | <option name="push-file" |
| 51 | key="trace_config.textproto" |
| 52 | value="/data/misc/perfetto-traces/trace_config.textproto" |
| 53 | /> |
| 54 | <!--Install the content provider automatically when we push some file in sdcard folder.--> |
| 55 | <!--Needed to avoid the installation during the test suite.--> |
| 56 | <option name="push-file" key="trace_config.textproto" value="/sdcard/sample.textproto" /> |
| 57 | </target_preparer> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 58 | <test class="com.android.tradefed.testtype.AndroidJUnitTest"> |
Nataniel Borges | 160b9df | 2023-05-12 12:29:57 +0000 | [diff] [blame] | 59 | <option name="package" value="{PACKAGE}"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 60 | <option name="shell-timeout" value="6600s" /> |
Nataniel Borges | 143d584 | 2020-12-15 14:36:03 +0100 | [diff] [blame] | 61 | <option name="test-timeout" value="6600s" /> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 62 | <option name="hidden-api-checks" value="false" /> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 63 | <option name="device-listeners" value="android.device.collectors.PerfettoListener" /> |
| 64 | <!-- PerfettoListener related arguments --> |
| 65 | <option name="instrumentation-arg" key="perfetto_config_text_proto" value="true" /> |
| 66 | <option name="instrumentation-arg" |
| 67 | key="perfetto_config_file" |
| 68 | value="trace_config.textproto" |
| 69 | /> |
| 70 | <option name="instrumentation-arg" key="per_run" value="true" /> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 71 | </test> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 72 | <!-- Needed for pulling the collected trace config on to the host --> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 73 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame^] | 74 | <option name="pull-pattern-keys" value="perfetto_file_path" /> |
| 75 | </metrics_collector> |
| 76 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
| 77 | <option name="pull-pattern-keys" value="(\w)+\.winscope" /> |
| 78 | <option name="pull-pattern-keys" value="(\w)+\.mp4" /> |
| 79 | <option name="collect-on-run-ended-only" value="false" /> |
Nataniel Borges | 9f2ad75 | 2019-12-04 09:23:34 +0100 | [diff] [blame] | 80 | <option name="clean-up" value="true" /> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 81 | </metrics_collector> |
| 82 | </configuration> |