本文整理了Java中android.app.Instrumentation.callActivityOnCreate()
方法的一些代码示例,展示了Instrumentation.callActivityOnCreate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.callActivityOnCreate()
方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:callActivityOnCreate
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
base.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: android-hacker/VirtualXposed
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
base.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: Tencent/tinker
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
if (activity != null) {
final ActivityInfo targetAInfo = IncrementComponentManager.queryActivityInfo(activity.getClass().getName());
if (targetAInfo != null) {
fixActivityParams(activity, targetAInfo);
}
}
super.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: Tencent/tinker
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
if (activity != null) {
final ActivityInfo targetAInfo = IncrementComponentManager.queryActivityInfo(activity.getClass().getName());
if (targetAInfo != null) {
fixActivityParams(activity, targetAInfo);
}
}
super.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: robolectric/robolectric
public ActivityController<T> create(final Bundle bundle) {
shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnCreate(component, bundle));
return this;
}
代码示例来源:origin: iqiyi/Neptune
/**
* 执行插件的onCreate方法
*
* @see android.app.Activity#onCreate(android.os.Bundle)
*/
@Override
public void callOnCreate(Bundle saveInstance) {
if (null != mHostInstr) {
mHostInstr.callActivityOnCreate(mPlugin, saveInstance);
}
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
base.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
base.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
base.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: RealMoMo/Study_Android_Demo
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
if (Constants.DEBUG) Log.e(TAG, "callActivityOnCreate");
super.callActivityOnCreate(activity, icicle);
}
}
代码示例来源:origin: darkskygit/VirtualApp
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
base.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: luili16/UIMocker
@Override
@CallSuper
public void callActivityOnCreate(Activity activity, Bundle icicle) {
if (DEBUG) {
Logger.d(TAG,"callActivityOnCreate(Activity activity, Bundle icicle)");
}
mInstrumentation.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: luili16/UIMocker
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
@CallSuper
public void callActivityOnCreate(Activity activity, Bundle icicle,
PersistableBundle persistentState) {
if (DEBUG) {
Logger.d(TAG,"callActivityOnCreate(Activity activity, Bundle icicle PersistableBundle persistentState)");
}
mInstrumentation.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: baidu/GPT
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
onCallActivityOnCreate(activity);
super.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: baidu/GPT
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
onCallActivityOnCreate(activity);
super.callActivityOnCreate(activity, icicle, persistentState);
}
代码示例来源:origin: limpoxe/Android-Plugin-Framework
real.callActivityOnCreate(activity, icicle);
代码示例来源:origin: org.robolectric/shadows-framework
public ActivityController<T> create(final Bundle bundle) {
shadowMainLooper.runPaused(() -> getInstrumentation().callActivityOnCreate(component, bundle));
return this;
}
代码示例来源:origin: ximsfei/Android-plugin-support
@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
String clsName = activity.getIntent().getStringExtra(DynamicConstants.DYNAMIC_ACTIVITY_FLAG);
DynamicApkParser.Activity a = (DynamicApkParser.Activity)
DynamicApkManager.getInstance()
.queryClassName(clsName,
DynamicConstants.RESOLVE_ACTIVITY);
if (a != null) hookActivity(a, activity);
super.callActivityOnCreate(activity, icicle);
}
代码示例来源:origin: gdpancheng/LoonAndroid3
@Override
public void callActivityOnCreate(Activity activity, Bundle bundle) {
long time = System.currentTimeMillis();
// ----------------------------------------------------------------------------------------
LayoutInflater.from(activity).setFactory(new XmlFactory(activity));
// --------------------------------------------------------------
// 清除了所有动画
activity.overridePendingTransition(0, 0);
// --------------------------------------------------------------
AnalysisManager.analysisCreateBefore(activity, bundle);
// --------------------------------------------------------------
super.callActivityOnCreate(activity, bundle);
// --------------------------------------------------------------
AnalysisManager.analysisCreateAfter(activity);
// --------------------------------------------------------------
Ioc.getIoc().getLogger().d(activity + " 布局设置耗时 View组件,适配器,fragment解析 等耗时 " + (System.currentTimeMillis() - time));
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
getInstrumentation().callActivityOnCreate(getActivity(), savedInstanceState);
mCreated = true;
内容来源于网络,如有侵权,请联系作者删除!