From 57dff76579e849827869b24f645d8bca43e466a5 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Tue, 28 Jul 2020 23:11:40 -0500 Subject: 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 --- tests/Input/AndroidTest.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/Input/AndroidTest.xml (limited to 'tests/Input/AndroidTest.xml') 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 @@ + + + + -- cgit v1.2.3-59-g8ed1b