57dff76579
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
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?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>
|