本文整理了Java中android.app.Instrumentation.setInTouchMode()
方法的一些代码示例,展示了Instrumentation.setInTouchMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.setInTouchMode()
方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:setInTouchMode
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void setInTouchMode(boolean inTouch) {
base.setInTouchMode(inTouch);
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public void setInTouchMode(boolean inTouch) {
base.setInTouchMode(inTouch);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public void setInTouchMode(boolean inTouch) {
base.setInTouchMode(inTouch);
}
代码示例来源:origin: luili16/UIMocker
@Override
@CallSuper
public void setInTouchMode(boolean inTouch) {
if (DEBUG) {
Logger.d(TAG,"setTouchMode");
}
mInstrumentation.setInTouchMode(inTouch);
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
@SuppressWarnings("unchecked")
@Override
protected T getActivity() {
Activity a = super.getActivity();
if (a == null) {
// set initial touch mode
getInstrumentation().setInTouchMode(mInitialTouchMode);
final String targetPackage = getInstrumentation().getTargetContext()
.getPackageName();
// inject custom intent, if provided
if (mActivityIntent == null) {
a = launchActivity(targetPackage, mActivityClass, null);
} else {
a = launchActivityWithIntent(targetPackage, mActivityClass, mActivityIntent);
}
setActivity(a);
}
return (T) a;
}
内容来源于网络,如有侵权,请联系作者删除!