Package org.robolectric.shadows
Interface ShadowContextImpl._ContextImpl_
-
- Enclosing class:
- ShadowContextImpl
public static interface ShadowContextImpl._ContextImpl_Reflector interface forContextImpl's internals.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextcreateActivityContext(ActivityThread mainThread, LoadedApk packageInfo, ActivityInfo activityInfo, IBinder activityToken, int displayId, Configuration overrideConfiguration)ContextcreateAppContext(ActivityThread activityThread, LoadedApk loadedApk)ContextcreateSystemContext(ActivityThread activityThread)IBindergetActivityToken()FilegetDatabasePath(String name)SharedPreferencesgetSharedPreferences(String name, int mode)ObjectgetSystemService(String name)voidsetClassLoader(ClassLoader classLoader)voidsetOuterContext(Context context)voidstartActivity(Intent intent, Bundle options)
-
-
-
Method Detail
-
createSystemContext
Context createSystemContext(ActivityThread activityThread)
-
createAppContext
Context createAppContext(ActivityThread activityThread, LoadedApk loadedApk)
-
createActivityContext
Context createActivityContext(ActivityThread mainThread, LoadedApk packageInfo, ActivityInfo activityInfo, IBinder activityToken, int displayId, Configuration overrideConfiguration)
-
getActivityToken
IBinder getActivityToken()
-
setOuterContext
void setOuterContext(Context context)
-
getSharedPreferences
SharedPreferences getSharedPreferences(String name, int mode)
-
setClassLoader
void setClassLoader(ClassLoader classLoader)
-
-