@Override public void run() { final EditorInfo info = new EditorInfo(); final InputConnection ic = getView().onCreateInputConnection(info); fAssertNotNull("Must have an InputConnection", ic); // Restore the IC to a clean state ic.clearMetaKeyStates(-1); ic.finishComposingText(); mTest.test(ic, info); synchronized (this) { // Test finished; return from launch(). mDone = true; notify(); } }
public InputConnectionTestRunner(final InputConnectionTest test, final Handler handler) { test.inputConnectionHandler = handler; mTest = test; }