@Override public Setup createSetup() { return new Setup() { @Override public boolean shouldInstrument(ClassInfo classInfo) { return classInfo.getName().equals(AsyncTasks.class.getName()) || super.shouldInstrument(classInfo); } }; }
@Override public Setup createSetup() { return new Setup() { @Override public boolean shouldInstrument(ClassInfo classInfo) { String name = classInfo.getName(); if (name.equals(AndroidTranslatorClassInstrumentedTest.CustomPaint.class.getName()) || name.equals(AndroidTranslatorClassInstrumentedTest.ClassWithPrivateConstructor.class.getName())) { return true; } return super.shouldInstrument(classInfo); } }; }
@Override public Setup createSetup() { return new Setup() { @Override public boolean isFromAndroidSdk(ClassInfo classInfo) { return super.isFromAndroidSdk(classInfo) || classInfo.getName().startsWith("com.google.ads.") || classInfo.getName().startsWith("com.google.analytics."); } }; }
@Override public boolean shouldInstrument(ClassInfo classInfo) { return CUSTOM_SHADOW_TARGETS.contains(classInfo.getName()) || super.shouldInstrument(classInfo); }