Ejemplo n.º 1
0
 @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();
   }
 }
Ejemplo n.º 2
0
 public InputConnectionTestRunner(final InputConnectionTest test, final Handler handler) {
   test.inputConnectionHandler = handler;
   mTest = test;
 }