android.app.Instrumentation.setInTouchMode()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中android.app.Instrumentation.setInTouchMode()方法的一些代码示例,展示了Instrumentation.setInTouchMode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.setInTouchMode()方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:setInTouchMode

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;
}

相关文章

Instrumentation类方法