Home
last modified time | relevance | path

Searched refs:ShadowEnvironment (Results 1 – 5 of 5) sorted by relevance

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowEnvironmentTest.java31 ShadowEnvironment.reset(); in tearDown()
37 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
54 ShadowEnvironment.setStorageDirectory(expectedPath); in setStorageDirectory_shouldReturnDirectory()
59 ShadowEnvironment.setStorageDirectory(null); in setStorageDirectory_shouldReturnDirectory()
76 ShadowEnvironment.setExternalStorageDirectory(expectedPath); in setExternalStorageDirectory_shouldReturnDirectory()
81 ShadowEnvironment.setExternalStorageDirectory(null); in setExternalStorageDirectory_shouldReturnDirectory()
91 …assertThat(path).isEqualTo(new File(ShadowEnvironment.EXTERNAL_FILES_DIR.toFile(), Environment.DIR… in getExternalStoragePublicDirectory_shouldReturnDirectory()
104 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_UNKNOWN); in getExternalStoragePublicDirectory_unknownMediaState_returnsNull()
112 ShadowEnvironment.setExternalStorageRemovable(Environment.getExternalStorageDirectory(), true); in isExternalStorageRemovable_primaryShouldReturnSavedValue()
121 ShadowEnvironment.setExternalStorageRemovable(file, true); in isExternalStorageRemovable_shouldReturnSavedValue()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEnvironmentTest.java27 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_REMOVED); in tearDown()
33 ShadowEnvironment.setExternalStorageState(Environment.MEDIA_MOUNTED); in getExternalStorageState_shouldReturnStorageState()
46 …assertThat(path).isEqualTo(new File(ShadowEnvironment.EXTERNAL_FILES_DIR.toFile(), Environment.DIR… in getExternalStoragePublicDirectory_shouldReturnDirectory()
61 ShadowEnvironment.setExternalStorageRemovable(Environment.getExternalStorageDirectory(), true); in isExternalStorageRemovable_primaryShouldReturnSavedValue()
70 ShadowEnvironment.setExternalStorageRemovable(file, true); in isExternalStorageRemovable_shouldReturnSavedValue()
79 ShadowEnvironment.setExternalStorageEmulated(file, true); in isExternalStorageEmulated_shouldReturnSavedValue()
86 assertNull(ShadowEnvironment.EXTERNAL_CACHE_DIR); in storageIsLazy()
87 assertNull(ShadowEnvironment.EXTERNAL_FILES_DIR); in storageIsLazy()
92 assertNotNull(ShadowEnvironment.EXTERNAL_CACHE_DIR); in storageIsLazy()
93 assertNotNull(ShadowEnvironment.EXTERNAL_FILES_DIR); in storageIsLazy()
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DShadowUtils.java44 File dir = ShadowEnvironment.addExternalDir(path); in addExternalDir()
47 ShadowEnvironment.setExternalStorageEmulated(dir, isEmulated); in addExternalDir()
48 ShadowEnvironment.setExternalStorageState(dir, storageState); in addExternalDir()
57 ShadowEnvironment.setExternalStorageEmulated(packageDir, isEmulated); in addExternalDir()
58 ShadowEnvironment.setExternalStorageState(packageDir, storageState); in addExternalDir()
63 ShadowEnvironment.setExternalStorageDirectory(dir); in addExternalDir()
64 ShadowEnvironment.setIsExternalStorageEmulated(isEmulated); in addExternalDir()
65 ShadowEnvironment.setExternalStorageState(storageState); in addExternalDir()
149 public static class ShadowEnvironment extends org.robolectric.shadows.ShadowEnvironment { class in ShadowUtils
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowEnvironment.java34 public class ShadowEnvironment { class
59 ShadowEnvironment.externalStorageState = externalStorageState; in setExternalStorageState()
68 ShadowEnvironment.sIsExternalStorageEmulated = emulated; in setIsExternalStorageEmulated()
77 ShadowEnvironment.isExternalStorageLegacy = legacy; in setIsExternalStorageLegacy()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowEnvironment.java24 public class ShadowEnvironment { class
47 ShadowEnvironment.externalStorageState = externalStorageState; in setExternalStorageState()
56 ShadowEnvironment.sIsExternalStorageEmulated = emulated; in setIsExternalStorageEmulated()