本文整理了Java中android.app.Instrumentation.sendStatus()
方法的一些代码示例,展示了Instrumentation.sendStatus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instrumentation.sendStatus()
方法的具体详情如下:
包路径:android.app.Instrumentation
类名称:Instrumentation
方法名:sendStatus
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void sendStatus(int resultCode, Bundle results) {
base.sendStatus(resultCode, results);
}
代码示例来源:origin: square/leakcanary
/** Can be overridden to report leaks in a different way or do additional reporting. */
protected void reportLeaks(@NonNull InstrumentationLeakResults results) {
if (!results.detectedLeaks.isEmpty()) {
String message =
checkNotNull(buildLeakDetectedMessage(results.detectedLeaks), "buildLeakDetectedMessage");
bundle.putString(InstrumentationResultPrinter.REPORT_KEY_STACK, message);
getInstrumentation().sendStatus(REPORT_VALUE_RESULT_FAILURE, bundle);
}
}
代码示例来源:origin: darkskygit/VirtualApp
@Override
public void sendStatus(int resultCode, Bundle results) {
base.sendStatus(resultCode, results);
}
代码示例来源:origin: bzsome/VirtualApp-x326
@Override
public void sendStatus(int resultCode, Bundle results) {
base.sendStatus(resultCode, results);
}
代码示例来源:origin: luili16/UIMocker
@Override
@CallSuper
public void sendStatus(int resultCode, Bundle results) {
if (DEBUG) {
Logger.d(TAG,"sendStatus");
}
mInstrumentation.sendStatus(resultCode, results);
}
代码示例来源:origin: com.uphyca/android-junit4
iterations.putInt("currentiterations",
runCount);
fInstrumentation.sendStatus(2,
iterations);
代码示例来源:origin: esmasui/AndroidJUnit4
iterations.putInt("currentiterations",
runCount);
fInstrumentation.sendStatus(2,
iterations);
内容来源于网络,如有侵权,请联系作者删除!