本文整理了Java中android.app.Instrumentation.checkMonitorHit()
方法的一些代码示例,展示了Instrumentation.checkMonitorHit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.checkMonitorHit()
方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:checkMonitorHit
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public boolean checkMonitorHit(ActivityMonitor monitor, int minHits) {
return base.checkMonitorHit(monitor, minHits);
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public boolean checkMonitorHit(ActivityMonitor monitor, int minHits) {
return base.checkMonitorHit(monitor, minHits);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public boolean checkMonitorHit(ActivityMonitor monitor, int minHits) {
return base.checkMonitorHit(monitor, minHits);
}
代码示例来源:origin: luili16/UIMocker
@Override
@CallSuper
public boolean checkMonitorHit(Instrumentation.ActivityMonitor monitor, int minHits) {
if (DEBUG) {
Logger.d(TAG,"checkMonitorHit");
}
return mInstrumentation.checkMonitorHit(monitor, minHits);
}
代码示例来源:origin: mttkay/calculon
@Override
public void starts(Class<? extends Activity> activityClass) {
ActivityMonitor monitor = instrumentation.addMonitor(activityClass.getCanonicalName(),
null, false);
performPendingAction();
assertTrue(instrumentation.checkMonitorHit(monitor, 1));
Activity lastActivity = monitor.getLastActivity();
getStoryTestCase().setCurrentActivity(lastActivity);
}
代码示例来源:origin: mttkay/calculon
@Override
public void startsWithIntentAction(String intentAction) {
ActivityMonitor monitor = instrumentation.addMonitor(intentAction, null, false);
performPendingAction();
assertTrue(instrumentation.checkMonitorHit(monitor, 1));
Activity lastActivity = monitor.getLastActivity();
getStoryTestCase().setCurrentActivity(lastActivity);
}
}
内容来源于网络,如有侵权,请联系作者删除!