public class RoboMonitoringInstrumentation
extends androidx.test.runner.MonitoringInstrumentation
Instrumentation.ActivityMonitor, Instrumentation.ActivityResult, Instrumentation.UiAutomationFlags
REPORT_KEY_IDENTIFIER, REPORT_KEY_STREAMRESULT
Constructor | Description |
---|---|
RoboMonitoringInstrumentation() |
Modifier and Type | Method | Description |
---|---|---|
Instrumentation.ActivityResult |
execStartActivity(Context who,
IBinder contextThread,
IBinder token,
Activity target,
Intent intent,
int requestCode) |
|
Instrumentation.ActivityResult |
execStartActivity(Context who,
IBinder contextThread,
IBinder token,
Activity target,
Intent intent,
int requestCode,
Bundle options) |
|
Instrumentation.ActivityResult |
execStartActivity(Context who,
IBinder contextThread,
IBinder token,
Activity target,
Intent intent,
int requestCode,
Bundle options,
UserHandle user) |
This API was added in Android API 17 (JELLY_BEAN_MR1)
|
Instrumentation.ActivityResult |
execStartActivity(Context who,
IBinder contextThread,
IBinder token,
String target,
Intent intent,
int requestCode,
Bundle options) |
This API was added in Android API 23 (M)
|
void |
finish(int resultCode,
Bundle bundle) |
|
protected void |
installMultidex() |
|
void |
runOnMainSync(Runnable runner) |
|
void |
setInTouchMode(boolean inTouch) |
|
protected void |
specifyDexMakerCacheProperty() |
|
Activity |
startActivitySync(Intent intent) |
|
ActivityController<? extends Activity> |
startActivitySyncInternal(Intent intent) |
|
void |
waitForIdleSync() |
acquireLooperManager, addMonitor, addMonitor, addMonitor, addResults, callActivityOnCreate, callActivityOnNewIntent, callActivityOnNewIntent, callActivityOnPostCreate, callActivityOnPostCreate, callActivityOnRestoreInstanceState, callActivityOnRestoreInstanceState, callActivityOnSaveInstanceState, callActivityOnSaveInstanceState, callActivityOnUserLeaving, checkMonitorHit, checkStartActivityResult, endPerformanceSnapshot, execStartActivitiesAsUser, execStartActivity, execStartActivityAsCaller, execStartActivityFromAppTask, getAllocCounts, getBinderCounts, getComponentName, getContext, getProcessName, getTargetContext, getUiAutomation, getUiAutomation, invokeContextMenuAction, invokeMenuActionSync, isProfiling, newApplication, newApplication, onEnterAnimationComplete, removeMonitor, sendCharacterSync, sendKeyDownUpSync, sendKeySync, sendPointerSync, sendStatus, sendStringSync, sendTrackballEventSync, setAutomaticPerformanceSnapshots, start, startActivitySync, startAllocCounting, startPerformanceSnapshot, startProfiling, stopAllocCounting, stopProfiling, waitForIdle, waitForMonitor, waitForMonitorWithTimeout
callActivityOnCreate, callActivityOnDestroy, callActivityOnPause, callActivityOnRestart, callActivityOnResume, callActivityOnStart, callActivityOnStop, callApplicationOnCreate, dumpThreadStateToOutputs, execStartActivities, execStartActivity, getThreadState, installOldMultiDex, interceptActivityUsing, isPrimaryInstrProcess, isPrimaryInstrProcess, newActivity, newActivity, onCreate, onDestroy, onException, onStart, restoreUncaughtExceptionHandler, setJsBridgeClassName, shouldWaitForActivitiesToComplete, useDefaultInterceptingActivityFactory, waitForActivitiesToComplete
protected void specifyDexMakerCacheProperty()
specifyDexMakerCacheProperty
in class androidx.test.runner.MonitoringInstrumentation
protected void installMultidex()
installMultidex
in class androidx.test.runner.MonitoringInstrumentation
public void setInTouchMode(boolean inTouch)
setInTouchMode
in class Instrumentation
public void waitForIdleSync()
waitForIdleSync
in class Instrumentation
public Activity startActivitySync(Intent intent)
startActivitySync
in class androidx.test.runner.MonitoringInstrumentation
public ActivityController<? extends Activity> startActivitySyncInternal(Intent intent)
public void runOnMainSync(Runnable runner)
runOnMainSync
in class androidx.test.runner.MonitoringInstrumentation
public Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode)
execStartActivity
in class androidx.test.runner.MonitoringInstrumentation
public Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options)
execStartActivity
in class androidx.test.runner.MonitoringInstrumentation
public Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, String target, Intent intent, int requestCode, Bundle options)
execStartActivity
in class androidx.test.runner.MonitoringInstrumentation
public Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options, UserHandle user)
execStartActivity
in class androidx.test.runner.MonitoringInstrumentation
public void finish(int resultCode, Bundle bundle)
finish
in class androidx.test.runner.MonitoringInstrumentation