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

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

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

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

相关文章

Instrumentation类方法