Search in sources :

Example 11 with UiAutomationConnection

use of android.app.UiAutomationConnection in project android_frameworks_base by crdroidandroid.

the class UiAutomationShellWrapper method connect.

public void connect() {
    if (mHandlerThread.isAlive()) {
        throw new IllegalStateException("Already connected!");
    }
    mHandlerThread.start();
    mUiAutomation = new UiAutomation(mHandlerThread.getLooper(), new UiAutomationConnection());
    mUiAutomation.connect();
}
Also used : UiAutomationConnection(android.app.UiAutomationConnection) UiAutomation(android.app.UiAutomation)

Aggregations

UiAutomationConnection (android.app.UiAutomationConnection)11 IInstrumentationWatcher (android.app.IInstrumentationWatcher)6 ComponentName (android.content.ComponentName)6 Bundle (android.os.Bundle)6 AndroidException (android.util.AndroidException)6 IWindowManager (android.view.IWindowManager)6 UiAutomation (android.app.UiAutomation)5 InstrumentationInfo (android.content.pm.InstrumentationInfo)5 ArrayList (java.util.ArrayList)5