OSDN Git Service

Trying to unregister a semi connected accessibility service.
authorSvetoslav <svetoslavganov@google.com>
Thu, 21 Feb 2013 00:28:39 +0000 (16:28 -0800)
committerSvetoslav <svetoslavganov@google.com>
Thu, 21 Feb 2013 00:28:43 +0000 (16:28 -0800)
commit6f8218a442a8de50ef33d20263a59cd47c513e62
tree168cf05757f9d724d35e04b9c774ebec2e860dca
parentab8e936e852b984624087c97dffc4c74b250fc68
Trying to unregister a semi connected accessibility service.

    When an accessibility service connects we get a callback in
    which we either add the service, if this service is in the list
    of connecting services (we still want the service to connect),
    or we unbind and clear the state, if the service is no longer in
    the list of connecting services (we do not want this service to
    connect because something change between the bind request and
    the connection callback).

    The problem is that when the service connects and it is not in
    the list of connecting services on service connected we called
    the clean up code before the connection was complete. However,
    the clean up code expects fully configured services. Now we
    fully connect the service and in case there is a problem -
    disconnect it.

    bug:8232627

Change-Id: I939e544e31ffc1406035265a012c180f2ca95d7c
services/java/com/android/server/accessibility/AccessibilityManagerService.java