Home
last modified time | relevance | path

Searched refs:ShadowContext (Results 1 – 6 of 6) sorted by relevance

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowEnvironment.java27 ShadowContext.EXTERNAL_CACHE_DIR.mkdirs(); in getExternalStorageDirectory()
28 return ShadowContext.EXTERNAL_CACHE_DIR; in getExternalStorageDirectory()
33 …File f = (type == null) ? ShadowContext.EXTERNAL_FILES_DIR : new File( ShadowContext.EXTERNAL_FILE… in getExternalStoragePublicDirectory()
DShadowContext.java26 abstract public class ShadowContext { class
DShadowContextWrapper.java32 public class ShadowContextWrapper extends ShadowContext {
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DEnvironmentTest.java22 deleteDir(ShadowContext.EXTERNAL_CACHE_DIR); in tearDown()
23 deleteDir(ShadowContext.EXTERNAL_FILES_DIR); in tearDown()
43 assertThat(extStoragePublic, equalTo( new File(ShadowContext.EXTERNAL_FILES_DIR, "Movies" ) ) ); in testGetExternalStoragePublicDirectory()
DContextTest.java64 File dataDir = new File(ShadowContext.FILES_DIR, "data"); in shouldGetApplicationDataDirectory()
75 File dataDir = new File(ShadowContext.FILES_DIR, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java183 ShadowContext.class, in getDefaultShadowClasses()
373 ShadowContext.clearFilesAndCache(); in resetStaticState()
573 public static ShadowContext shadowOf(Context instance) { in shadowOf()
574 return (ShadowContext) shadowOf_(instance); in shadowOf()