summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nataniel Borges <natanieljr@google.com> 2023-05-02 09:52:30 +0000
committer Nataniel Borges <natanieljr@google.com> 2023-05-02 09:52:30 +0000
commit33aad1b529d21dd8fda9614d69caa155f15c599b (patch)
tree860b7d6c266d2ebc92261339c2212ced57807e12
parentf806e9d7e74579fd96a1d5f20fcd2ba37822a576 (diff)
Increase buffer size during testing
The SF hierarchy is now being mirrored, which uses significantly more space on the trace. In some bugs the trace is being cut after the transition started and causing test failures Bug: 280052029 Test: atest FlickerTests WMShellFlickerTests Change-Id: Ia5b8cfdbb71c9145a9248effb47e4f98c402f649
-rw-r--r--libs/WindowManager/Shell/tests/flicker/AndroidTest.xml3
-rw-r--r--tests/FlickerTests/AndroidTest.xml3
2 files changed, 6 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml b/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml
index b6d92814ad43..b5937ae80f0a 100644
--- a/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml
+++ b/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml
@@ -21,6 +21,9 @@
<option name="run-command" value="setprop ro.test_harness 1 ; am force-stop com.google.android.apps.nexuslauncher" />
<!-- Ensure output directory is empty at the start -->
<option name="run-command" value="rm -rf /sdcard/flicker" />
+ <!-- Increase trace size: 20mb for WM and 80mb for SF -->
+ <option name="run-command" value="cmd window tracing size 20480" />
+ <option name="run-command" value="su root service call SurfaceFlinger 1029 i32 81920" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="run-command" value="settings put secure show_ime_with_hard_keyboard 1" />
diff --git a/tests/FlickerTests/AndroidTest.xml b/tests/FlickerTests/AndroidTest.xml
index 7272abba897d..32ff243921ec 100644
--- a/tests/FlickerTests/AndroidTest.xml
+++ b/tests/FlickerTests/AndroidTest.xml
@@ -21,6 +21,9 @@
<option name="run-command" value="setprop ro.test_harness 1 ; am force-stop com.google.android.apps.nexuslauncher" />
<!-- Ensure output directory is empty at the start -->
<option name="run-command" value="rm -rf /sdcard/flicker" />
+ <!-- Increase trace size: 20mb for WM and 80mb for SF -->
+ <option name="run-command" value="cmd window tracing size 20480" />
+ <option name="run-command" value="su root service call SurfaceFlinger 1029 i32 81920" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="run-command" value="settings put secure show_ime_with_hard_keyboard 1" />