io.selendroid
Class ServerInstrumentation
java.lang.Object
android.app.Instrumentation
io.selendroid.ServerInstrumentation
- All Implemented Interfaces:
- ServerDetails
public class ServerInstrumentation
- extends android.app.Instrumentation
- implements ServerDetails
| Nested classes/interfaces inherited from class android.app.Instrumentation |
android.app.Instrumentation.ActivityMonitor, android.app.Instrumentation.ActivityResult |
| Fields inherited from class android.app.Instrumentation |
REPORT_KEY_IDENTIFIER, REPORT_KEY_STREAMRESULT |
| Methods inherited from class android.app.Instrumentation |
addMonitor, addMonitor, addMonitor, callActivityOnNewIntent, callActivityOnPause, callActivityOnPostCreate, callActivityOnRestart, callActivityOnRestoreInstanceState, callActivityOnSaveInstanceState, callActivityOnStart, callActivityOnStop, callActivityOnUserLeaving, callApplicationOnCreate, checkMonitorHit, endPerformanceSnapshot, finish, getAllocCounts, getBinderCounts, getComponentName, getContext, getTargetContext, invokeContextMenuAction, invokeMenuActionSync, isProfiling, newActivity, newActivity, newApplication, newApplication, onException, removeMonitor, runOnMainSync, sendCharacterSync, sendKeyDownUpSync, sendStatus, sendStringSync, setAutomaticPerformanceSnapshots, setInTouchMode, start, startActivitySync, startAllocCounting, startPerformanceSnapshot, startProfiling, stopAllocCounting, stopProfiling, waitForIdle, waitForIdleSync, waitForMonitor, waitForMonitorWithTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mainActivity
public static Class<? extends android.app.Activity> mainActivity
ServerInstrumentation
public ServerInstrumentation()
startMainActivity
public void startMainActivity()
startActivity
public void startActivity(Class activity)
finishAllActivities
public void finishAllActivities()
onCreate
public void onCreate(android.os.Bundle arguments)
- Overrides:
onCreate in class android.app.Instrumentation
onStart
public void onStart()
- Overrides:
onStart in class android.app.Instrumentation
getInstance
public static ServerInstrumentation getInstance()
callActivityOnResume
public void callActivityOnResume(android.app.Activity activity)
- Overrides:
callActivityOnResume in class android.app.Instrumentation
callActivityOnCreate
public void callActivityOnCreate(android.app.Activity activity,
android.os.Bundle icicle)
- Overrides:
callActivityOnCreate in class android.app.Instrumentation
callActivityOnDestroy
public void callActivityOnDestroy(android.app.Activity activity)
- Overrides:
callActivityOnDestroy in class android.app.Instrumentation
getCurrentActivity
public android.app.Activity getCurrentActivity()
getRootView
public android.view.View getRootView()
onDestroy
public void onDestroy()
- Overrides:
onDestroy in class android.app.Instrumentation
startServer
public void startServer()
stopServer
protected void stopServer()
getAndroidWait
public AndroidWait getAndroidWait()
setImplicitWait
public void setImplicitWait(long millies)
getServerVersion
public String getServerVersion()
- Specified by:
getServerVersion in interface ServerDetails
getCpuArch
public String getCpuArch()
- Specified by:
getCpuArch in interface ServerDetails
getOsVersion
public String getOsVersion()
- Specified by:
getOsVersion in interface ServerDetails
getSupportedApps
public org.json.JSONArray getSupportedApps()
- Specified by:
getSupportedApps in interface ServerDetails
getSupportedDevices
public org.json.JSONArray getSupportedDevices()
- Specified by:
getSupportedDevices in interface ServerDetails
getOsName
public String getOsName()
- Specified by:
getOsName in interface ServerDetails
sendKeySync
public void sendKeySync(android.view.KeyEvent event)
- Overrides:
sendKeySync in class android.app.Instrumentation
sendPointerSync
public void sendPointerSync(android.view.MotionEvent event)
- Overrides:
sendPointerSync in class android.app.Instrumentation
sendTrackballEventSync
public void sendTrackballEventSync(android.view.MotionEvent event)
- Overrides:
sendTrackballEventSync in class android.app.Instrumentation
Copyright © 2014. All rights reserved.