void init( ActivityThread thread, Context instrContext, Context appContext, ComponentName component, @WithType("android.app.IInstrumentationWatcher") Object watcher);
private Class<?> findWithType(Annotation[] paramAnnotation) { for (Annotation annotation : paramAnnotation) { if (annotation instanceof WithType) { String withTypeName = ((WithType) annotation).value(); try { return Class.forName(withTypeName, true, iClass.getClassLoader()); } catch (ClassNotFoundException e1) { // it's okay, ignore } } } return null; } }
private Class<?> findWithType(Annotation[] paramAnnotation) { for (Annotation annotation : paramAnnotation) { if (annotation instanceof WithType) { String withTypeName = ((WithType) annotation).value(); try { return Class.forName(withTypeName, true, iClass.getClassLoader()); } catch (ClassNotFoundException e1) { // it's okay, ignore } } } return null; } }
void attach( Context context, ActivityThread activityThread, Instrumentation instrumentation, IBinder token, int ident, Application application, Intent intent, ActivityInfo activityInfo, CharSequence title, Activity parent, String id, @WithType("android.app.Activity$NonConfigurationInstances") 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, @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances, Configuration configuration, @WithType("com.android.internal.app.IVoiceInteractor") 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, @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances, Configuration configuration, String referer, @WithType("com.android.internal.app.IVoiceInteractor") 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, @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances, Configuration configuration, String referer, @WithType("com.android.internal.app.IVoiceInteractor") 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, @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances, Configuration configuration, String referer, @WithType("com.android.internal.app.IVoiceInteractor") Object iVoiceInteractor, Window window, @WithType("android.view.ViewRootImpl$ActivityConfigCallback") Object activityConfigCallback);
String anotherMethod(@WithType("java.lang.String") Object a, String b);
private ActivityController<T> attach( @Nullable @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances) { if (attached) { return this; } // make sure the component is enabled Context context = RuntimeEnvironment.application.getBaseContext(); context .getPackageManager() .setComponentEnabledSetting( new ComponentName(context.getPackageName(), component.getClass().getName()), PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 0); ShadowActivity shadowActivity = Shadow.extract(component); shadowActivity.callAttach(getIntent(), lastNonConfigurationInstances); attached = true; return this; }
public void callAttach( Intent intent, @Nullable @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances) { Application application = RuntimeEnvironment.application;
ActivityInfo activityInfo, CharSequence activityTitle, @WithType("android.app.Activity$NonConfigurationInstances") Object lastNonConfigurationInstances) { int apiLevel = RuntimeEnvironment.getApiLevel();