Package org.robolectric.shadows
Class ShadowActivityThread
- java.lang.Object
-
- org.robolectric.shadows.ShadowActivityThread
-
@Implements(value=android.app.ActivityThread.class, isInAndroidSdk=false, looseSignatures=true) public class ShadowActivityThread extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShadowActivityThread._ActivityThread_Accessor interface forActivityThread's internals.static interfaceShadowActivityThread._AppBindData_Accessor interface forActivityThread.AppBindData's internals.
-
Field Summary
Fields Modifier and Type Field Description protected ShadowActivityThread._ActivityThread_activityThreadReflectorprotected ActivityThreadrealActivityThread
-
Constructor Summary
Constructors Constructor Description ShadowActivityThread()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjectcurrentActivityThread()protected static ApplicationcurrentApplication()protected ApplicationgetApplication()static ObjectgetPackageManager()static ObjectgetPermissionManager()protected voidrequestRelaunchActivity(IBinder token, List<ResultInfo> pendingResults, List<com.android.internal.content.ReferrerIntent> pendingNewIntents, int configChanges, boolean notResumed, Configuration config, Configuration overrideConfig, boolean fromServer, boolean preserveWindow)static voidreset()static voidsetApplicationInfo(ApplicationInfo applicationInfo)Deprecated.do not usevoidsetCompatConfiguration(Configuration androidConfiguration)internal, do not use
-
-
-
Field Detail
-
realActivityThread
@RealObject protected ActivityThread realActivityThread
-
activityThreadReflector
@ReflectorObject protected ShadowActivityThread._ActivityThread_ activityThreadReflector
-
-
Method Detail
-
getPackageManager
@Implementation public static Object getPackageManager()
-
currentActivityThread
@Implementation public static Object currentActivityThread()
-
currentApplication
@Implementation protected static Application currentApplication()
-
getApplication
@Implementation protected Application getApplication()
-
getPermissionManager
@Implementation(minSdk=30) public static Object getPermissionManager()
-
requestRelaunchActivity
@Implementation(minSdk=24, maxSdk=27) protected void requestRelaunchActivity(IBinder token, List<ResultInfo> pendingResults, List<com.android.internal.content.ReferrerIntent> pendingNewIntents, int configChanges, boolean notResumed, Configuration config, Configuration overrideConfig, boolean fromServer, boolean preserveWindow)
-
setApplicationInfo
@Deprecated public static void setApplicationInfo(ApplicationInfo applicationInfo)
Deprecated.do not useInternal use only.
-
setCompatConfiguration
public void setCompatConfiguration(Configuration androidConfiguration)
internal, do not use- Parameters:
androidConfiguration-
-
reset
@Resetter public static void reset()
-
-