summaryrefslogtreecommitdiff
path: root/tests/Input/AndroidTest.xml
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2020-07-28 23:11:40 -0500
committer Siarhei Vishniakou <svv@google.com> 2020-08-04 09:55:40 -0500
commit57dff76579e849827869b24f645d8bca43e466a5 (patch)
treea963cf25d25fbd06113d95ae4436099278bb16b0 /tests/Input/AndroidTest.xml
parent1971ba5dc815e646e927d3d828919680b7297f56 (diff)
Show ANR dialog for unresponsive gesture monitors
If a gesture monitor is unresponsive, today there will not be an ANR dialog. Since the input channel token for the gesture monitor is not provided to WindowManager, there is no way for the proper ANR to occur. That means, the user will not know that the gesture monitor isn't working. To fix the issue, we record the pid of the caller when first registering a gesture monitor. This will be stored in InputManagerService. Next, when an ANR for this gesture monitor occurs, we will provide this pid to the WM. WM will use this pid to properly blame that process. Bug: 161904619 Bug: 160903019 Test: atest AnrTest Test: adb shell input dump Change-Id: Ie1a16352a116914ba6550958ad41de07cff063be
Diffstat (limited to 'tests/Input/AndroidTest.xml')
-rw-r--r--tests/Input/AndroidTest.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Input/AndroidTest.xml b/tests/Input/AndroidTest.xml
new file mode 100644
index 000000000000..c62db1ea5ca9
--- /dev/null
+++ b/tests/Input/AndroidTest.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright 2020 Google Inc. All Rights Reserved.
+ -->
+<configuration description="Runs Input Tests">
+ <option name="test-tag" value="InputTests" />
+ <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
+ <!-- keeps the screen on during tests -->
+ <option name="screen-always-on" value="on" />
+ <!-- prevents the phone from restarting -->
+ <option name="force-skip-system-props" value="true" />
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
+ <option name="cleanup-apks" value="true"/>
+ <option name="test-file-name" value="InputTests.apk"/>
+
+ </target_preparer>
+ <test class="com.android.tradefed.testtype.AndroidJUnitTest">
+ <option name="package" value="com.android.test.input"/>
+ <option name="exclude-annotation" value="androidx.test.filters.FlakyTest" />
+ <option name="shell-timeout" value="660s" />
+ <option name="test-timeout" value="600s" />
+ <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
+ </test>
+</configuration>