Loading core/java/android/accessibilityservice/UiTestAutomationBridge.java +8 −3 Original line number Diff line number Diff line Loading @@ -74,6 +74,8 @@ public class UiTestAutomationBridge { private volatile boolean mUnprocessedEventAvailable; private HandlerThread mHandlerThread; /** * Gets the last received {@link AccessibilityEvent}. * Loading Loading @@ -126,9 +128,10 @@ public class UiTestAutomationBridge { // is needed for making sure the binder calls are interleaved // with check for the expected event and also to make sure the // binder threads are allowed to proceed in the received order. HandlerThread handlerThread = new HandlerThread("UiTestAutomationBridge"); handlerThread.start(); Looper looper = handlerThread.getLooper(); mHandlerThread = new HandlerThread("UiTestAutomationBridge"); mHandlerThread.setDaemon(true); mHandlerThread.start(); Looper looper = mHandlerThread.getLooper(); mListener = new IEventListenerWrapper(null, looper, new Callbacks() { @Override Loading Loading @@ -217,6 +220,8 @@ public class UiTestAutomationBridge { throw new IllegalStateException("Already disconnected."); } mHandlerThread.quit(); IAccessibilityManager manager = IAccessibilityManager.Stub.asInterface( ServiceManager.getService(Context.ACCESSIBILITY_SERVICE)); Loading Loading
core/java/android/accessibilityservice/UiTestAutomationBridge.java +8 −3 Original line number Diff line number Diff line Loading @@ -74,6 +74,8 @@ public class UiTestAutomationBridge { private volatile boolean mUnprocessedEventAvailable; private HandlerThread mHandlerThread; /** * Gets the last received {@link AccessibilityEvent}. * Loading Loading @@ -126,9 +128,10 @@ public class UiTestAutomationBridge { // is needed for making sure the binder calls are interleaved // with check for the expected event and also to make sure the // binder threads are allowed to proceed in the received order. HandlerThread handlerThread = new HandlerThread("UiTestAutomationBridge"); handlerThread.start(); Looper looper = handlerThread.getLooper(); mHandlerThread = new HandlerThread("UiTestAutomationBridge"); mHandlerThread.setDaemon(true); mHandlerThread.start(); Looper looper = mHandlerThread.getLooper(); mListener = new IEventListenerWrapper(null, looper, new Callbacks() { @Override Loading Loading @@ -217,6 +220,8 @@ public class UiTestAutomationBridge { throw new IllegalStateException("Already disconnected."); } mHandlerThread.quit(); IAccessibilityManager manager = IAccessibilityManager.Stub.asInterface( ServiceManager.getService(Context.ACCESSIBILITY_SERVICE)); Loading