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
Loading
Please register or sign in to comment