OSDN Git Service

Notify system when uiAutomation terminates
authorPhil Weaver <pweaver@google.com>
Tue, 12 Dec 2017 17:43:22 +0000 (09:43 -0800)
committerPhil Weaver <pweaver@google.com>
Thu, 14 Dec 2017 22:24:04 +0000 (14:24 -0800)
commit239677da55db6d9bfe4775afe60d24d2a2140684
tree9892fff82a190ca2b8154336565e56647716e5d3
parent175b009204b942571baac396edf2127e2f2e3c3c
Notify system when uiAutomation terminates

When the binder died, the system wasn't finding out,
so it got into an inconsistent state and told client
apps that accessibility wasn't enabled when it actually
was.

Also fixing dumping of uiautomation, which was failing
with an NPE.

Fixes: 70338333
Fixes: 70227110
Test: Repro case in 70227110 no longer fails.
Ran a11y and UiAutomation CTS.
Ran a11y system server unit tests, and added one to verify
the new behavior.
Change-Id: I4fa6067f8316114a925de86d3fac611e6196da3e
services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java
services/accessibility/java/com/android/server/accessibility/UiAutomationManager.java
services/tests/servicestests/src/com/android/server/accessibility/UiAutomationManagerTest.java