Package org.robolectric.shadows
Interface _Activity_
public interface _Activity_
Accessor interface for
Activity
's internals.-
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, Object iVoiceInteractor) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback, IBinder assistToken) void
attach
(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback, IBinder assistToken, IBinder shareableActivityToken) default void
callAttach
(Activity realActivity, Context baseContext, ActivityThread activityThread, Instrumentation instrumentation, Application application, Intent intent, ActivityInfo activityInfo, IBinder token, CharSequence activityTitle, Object lastNonConfigurationInstances) void
dispatchActivityResult
(String who, int requestCode, int resultCode, Intent data) void
dispatchActivityResult
(String who, int requestCode, int resultCode, Intent data, String type) getToken()
boolean
void
void
onActivityResult
(int requestCode, int resultCode, Intent data) onCreateDialog
(int id) void
onNewIntent
(Intent intent) void
onPostCreate
(Bundle savedInstanceState) void
void
onPrepareDialog
(int id, Dialog dialog) void
onPrepareDialog
(int id, Dialog dialog, Bundle args) void
performCreate
(Bundle icicle) void
void
void
void
performRestart
(boolean start) void
performRestart
(boolean start, String reason) void
performRestoreInstanceState
(Bundle savedInstanceState) void
void
performResume
(boolean followedByPause, String reason) void
performSaveInstanceState
(Bundle outState) void
void
performStart
(String reason) void
void
performStop
(boolean preserveWindow) void
performStop
(boolean preserveWindow, String reason) void
performTopResumedActivityChanged
(boolean isTopResumedActivity, String reason) void
setApplication
(Application application) void
setChangingConfigurations
(boolean value) void
setConfigChangeFlags
(int value) void
void
setFinished
(boolean finished) void
setLastNonConfigurationInstances
(Object nonConfigInstance) void
setVoiceInteractor
(Object voiceInteractor) void
-
Method Details
-
getToken
IBinder getToken() -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, Object iVoiceInteractor) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback, IBinder assistToken) -
attach
void attach(Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstances, Configuration configuration, String referer, Object iVoiceInteractor, Window window, Object activityConfigCallback, IBinder assistToken, IBinder shareableActivityToken) -
callAttach
default void callAttach(Activity realActivity, Context baseContext, ActivityThread activityThread, Instrumentation instrumentation, Application application, Intent intent, ActivityInfo activityInfo, IBinder token, CharSequence activityTitle, Object lastNonConfigurationInstances) -
performCreate
-
performDestroy
void performDestroy() -
performPause
void performPause() -
performRestart
void performRestart() -
performRestart
-
performRestart
void performRestart(boolean start) -
performRestoreInstanceState
-
performResume
void performResume() -
performResume
-
performTopResumedActivityChanged
-
performSaveInstanceState
-
performStart
void performStart() -
performStart
-
performStop
void performStop() -
performStop
void performStop(boolean preserveWindow) -
performStop
-
onPostCreate
-
onPostResume
void onPostResume() -
makeVisible
void makeVisible() -
onNewIntent
-
onActivityResult
-
dispatchActivityResult
-
dispatchActivityResult
-
onCreateDialog
-
onPrepareDialog
-
onPrepareDialog
-
retainNonConfigurationInstances
Object retainNonConfigurationInstances() -
setApplication
-
setDecor
-
setFinished
void setFinished(boolean finished) -
setLastNonConfigurationInstances
-
setVoiceInteractor
-
getWindowAdded
boolean getWindowAdded() -
setWindow
-
setChangingConfigurations
void setChangingConfigurations(boolean value) -
setConfigChangeFlags
void setConfigChangeFlags(int value) -
getInstrumentation
Instrumentation getInstrumentation()
-