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 SQLite 11 * shadow implementation is used for the {@link android.database} package. 12 */ 13 @Documented 14 @Retention(RetentionPolicy.RUNTIME) 15 @Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.METHOD}) 16 public @interface SQLiteMode { 17 18 /** Specifies the different supported SQLite modes. */ 19 enum Mode { 20 /** 21 * Use the legacy SQLite implementation backed by sqlite4java. 22 * 23 * @deprecated This mode is obsolete and will be removed soon. 24 */ 25 @Deprecated 26 LEGACY, 27 /** Use the new SQLite implementation backed by native Android code from AOSP. */ 28 NATIVE, 29 } 30 value()31 Mode value(); 32 } 33