1 package org.robolectric.annotation; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import java.lang.annotation.Target; 8 9 /** 10 * A {@link org.robolectric.pluginapi.config.Configurer} annotation for controlling which graphics 11 * shadow implementation is used for the {@link android.graphics} package. 12 */ 13 @Documented 14 @Retention(RetentionPolicy.RUNTIME) 15 @Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.METHOD}) 16 public @interface GraphicsMode { 17 18 /** Specifies the different supported graphics modes. */ 19 enum Mode { 20 /** Use legacy graphics shadows that are no-ops and fakes. */ 21 LEGACY, 22 /** Use graphics shadows libraries backed by native Android graphics code. */ 23 NATIVE, 24 } 25 value()26 Mode value(); 27 } 28