Package org.robolectric.shadows
Interface ShadowContextImpl._ContextImpl_
- Enclosing class:
- ShadowContextImpl
public static interface ShadowContextImpl._ContextImpl_
Reflector interface for
ContextImpl
's internals.-
Method Summary
Modifier and Type Method Description Context
createActivityContext(ActivityThread mainThread, LoadedApk packageInfo, ActivityInfo activityInfo, IBinder activityToken, int displayId, Configuration overrideConfiguration)
Context
createAppContext(ActivityThread activityThread, LoadedApk loadedApk)
Context
createSystemContext(ActivityThread activityThread)
IBinder
getActivityToken()
File
getDatabasePath(String name)
SharedPreferences
getSharedPreferences(String name, int mode)
Object
getSystemService(String name)
void
setClassLoader(ClassLoader classLoader)
void
setOuterContext(Context context)
void
startActivity(Intent intent, Bundle options)
-
Method Details
-
createSystemContext
-
createAppContext
-
createActivityContext
Context createActivityContext(ActivityThread mainThread, LoadedApk packageInfo, ActivityInfo activityInfo, IBinder activityToken, int displayId, Configuration overrideConfiguration) -
getActivityToken
IBinder getActivityToken() -
setOuterContext
-
getSystemService
-
startActivity
-
getDatabasePath
-
getSharedPreferences
-
setClassLoader
-