@Override public void sendStatus(int resultCode, Bundle results) { Log.i(LOG_TAG, "sendStatus: " + resultCode); switch (resultCode) { case InstrumentationTestRunner.REPORT_VALUE_RESULT_ERROR: case InstrumentationTestRunner.REPORT_VALUE_RESULT_FAILURE: case InstrumentationTestRunner.REPORT_VALUE_RESULT_OK: try { recordTestResult(resultCode, results); } catch (Exception e) { throw new RuntimeException(e); } break; case InstrumentationTestRunner.REPORT_VALUE_RESULT_START: recordTestStart(results); break; default: break; } super.sendStatus(resultCode, results); }