Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19557de7 authored by Phil Weaver's avatar Phil Weaver
Browse files

Make AccessibilityService#disableSelf atomic.

This API was using a oneway aidl call, which meant that the
service was disabled some time after the method returned. That
confused tests that were turning a service off during tearDown
and then turning it back on again in setUp.

Bug: 28621277

Change-Id: I75984df0613bdbb1bc876e2a15caf59106027337
parent bd1708a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ interface IAccessibilityServiceConnection {

    boolean performGlobalAction(int action);

    oneway void disableSelf();
    void disableSelf();

    oneway void setOnKeyEventResult(boolean handled, int sequence);