OSDN Git Service

Cleanup USER_OWNER in a11y service and tests
authorXiaohui Chen <xiaohuic@google.com>
Wed, 2 Sep 2015 20:15:21 +0000 (13:15 -0700)
committerXiaohui Chen <xiaohuic@google.com>
Wed, 2 Sep 2015 20:15:21 +0000 (13:15 -0700)
commita826b8c24c45443271567cae4cde6db04f147a7c
tree30810d174aa62a9b02c06688f536170d76e0cdb5
parent43765b77a0286403fd9f7f5305219f0d9a10c953
Cleanup USER_OWNER in a11y service and tests

I need to make some changes to get the tests pass.  First a11y service
will now disable when no service is specified, I need to re-enable
a11y after services are enabled.  Second the old event used in tests
seems to be filtered out by the service, I need to pick a new event.
Also the timeout waiting for mock service to start is extended, I hit
the old timeout quite often with N9.

Bug: 19913735
Change-Id: I8fe1b7b5d93b6a52df0a8940a08761ea5fbf5084
services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java
services/tests/servicestests/src/com/android/server/AccessibilityManagerServiceTest.java
services/tests/servicestests/src/com/android/server/MockAccessibilityService.java