@Override public final void testStarted(Description description) { skipLeakDetectionReason = skipLeakDetectionReason(description); if (skipLeakDetectionReason != null) { return; } String testClass = description.getClassName(); String testName = description.getMethodName(); bundle = new Bundle(); bundle.putString(Instrumentation.REPORT_KEY_IDENTIFIER, FailTestOnLeakRunListener.class.getName()); bundle.putString(InstrumentationResultPrinter.REPORT_KEY_NAME_CLASS, testClass); bundle.putString(InstrumentationResultPrinter.REPORT_KEY_NAME_TEST, testName); }