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}"> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [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--> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 8 | <option name="isolated-storage" value="false"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 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 --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 12 | <option name="screen-always-on" value="on"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 13 | <!-- prevents the phone from restarting --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 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 | 0b77bab | 2023-05-26 12:50:06 +0000 | [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) --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 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 --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 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 --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 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 --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 24 | <option name="run-command" |
| 25 | value="setprop ro.test_harness 1 ; am force-stop com.google.android.apps.nexuslauncher"/> |
Nataniel Borges | 33aad1b | 2023-05-02 09:52:30 +0000 | [diff] [blame] | 26 | <!-- Increase trace size: 20mb for WM and 80mb for SF --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 27 | <option name="run-command" value="cmd window tracing size 20480"/> |
| 28 | <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] | 29 | </target_preparer> |
Nataniel Borges | a11775f | 2023-01-16 20:57:16 +0000 | [diff] [blame] | 30 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 31 | <option name="test-user-token" value="%TEST_USER%"/> |
| 32 | <option name="run-command" value="rm -rf /data/user/%TEST_USER%/files/*"/> |
| 33 | <option name="run-command" value="settings put secure show_ime_with_hard_keyboard 1"/> |
| 34 | <option name="run-command" value="settings put system show_touches 1"/> |
| 35 | <option name="run-command" value="settings put system pointer_location 1"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 36 | <option name="teardown-command" |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 37 | value="settings delete secure show_ime_with_hard_keyboard"/> |
| 38 | <option name="teardown-command" value="settings delete system show_touches"/> |
| 39 | <option name="teardown-command" value="settings delete system pointer_location"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 40 | <option name="teardown-command" |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 41 | value="cmd overlay enable com.android.internal.systemui.navbar.gestural"/> |
Nataniel Borges | a11775f | 2023-01-16 20:57:16 +0000 | [diff] [blame] | 42 | </target_preparer> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 43 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 44 | <option name="cleanup-apks" value="true"/> |
Nataniel Borges | 160b9df | 2023-05-12 12:29:57 +0000 | [diff] [blame] | 45 | <option name="test-file-name" value="{MODULE}.apk"/> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 46 | <option name="test-file-name" value="FlickerTestApp.apk"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 47 | </target_preparer> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 48 | <!-- Needed for pushing the trace config file --> |
| 49 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 50 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 51 | <option name="push-file" |
| 52 | key="trace_config.textproto" |
| 53 | value="/data/misc/perfetto-traces/trace_config.textproto" |
| 54 | /> |
| 55 | <!--Install the content provider automatically when we push some file in sdcard folder.--> |
| 56 | <!--Needed to avoid the installation during the test suite.--> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 57 | <option name="push-file" key="trace_config.textproto" value="/sdcard/sample.textproto"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 58 | </target_preparer> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 59 | <test class="com.android.tradefed.testtype.AndroidJUnitTest"> |
Nataniel Borges | 160b9df | 2023-05-12 12:29:57 +0000 | [diff] [blame] | 60 | <option name="package" value="{PACKAGE}"/> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 61 | <option name="shell-timeout" value="6600s"/> |
| 62 | <option name="test-timeout" value="6600s"/> |
| 63 | <option name="hidden-api-checks" value="false"/> |
| 64 | <option name="device-listeners" value="android.device.collectors.PerfettoListener"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 65 | <!-- PerfettoListener related arguments --> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 66 | <option name="instrumentation-arg" key="perfetto_config_text_proto" value="true"/> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 67 | <option name="instrumentation-arg" |
| 68 | key="perfetto_config_file" |
| 69 | value="trace_config.textproto" |
| 70 | /> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 71 | <option name="instrumentation-arg" key="per_run" value="true"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 72 | </test> |
Nataniel Borges | 29178cb | 2022-02-07 17:03:04 +0100 | [diff] [blame] | 73 | <!-- Needed for pulling the collected trace config on to the host --> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 74 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 75 | <option name="pull-pattern-keys" value="perfetto_file_path"/> |
| 76 | <option name="directory-keys" |
| 77 | value="/data/user/0/com.android.server.wm.flicker/files"/> |
| 78 | <option name="directory-keys" |
| 79 | value="/data/user/0/com.android.server.wm.flicker.close/files"/> |
| 80 | <option name="directory-keys" |
| 81 | value="/data/user/0/com.android.server.wm.flicker.ime/files"/> |
| 82 | <option name="directory-keys" |
| 83 | value="/data/user/0/com.android.server.wm.flicker.launch/files"/> |
| 84 | <option name="directory-keys" |
| 85 | value="/data/user/0/com.android.server.wm.flicker.quickswitch/files"/> |
| 86 | <option name="directory-keys" |
| 87 | value="/data/user/0/com.android.server.wm.flicker.rotation/files"/> |
Nataniel Borges | 0b156fa | 2023-07-03 15:00:08 +0000 | [diff] [blame] | 88 | <option name="directory-keys" |
| 89 | value="/data/user/0/com.android.server.wm.flicker.notification/files"/> |
Pablo Gamito | 3bb0290 | 2023-07-06 10:12:59 +0000 | [diff] [blame] | 90 | <option name="directory-keys" |
Pablo Gamito | 4e6e53d7 | 2023-09-07 14:25:44 +0000 | [diff] [blame] | 91 | value="/data/user/0/com.android.server.wm.flicker.service/files"/> |
Nataniel Borges | 0b77bab | 2023-05-26 12:50:06 +0000 | [diff] [blame] | 92 | <option name="collect-on-run-ended-only" value="true"/> |
| 93 | <option name="clean-up" value="true"/> |
Vishnu Nair | 8248b7c | 2018-08-01 10:13:36 -0700 | [diff] [blame] | 94 | </metrics_collector> |
| 95 | </configuration> |