Searched refs:ShadowEnvironment (Results 1 – 2 of 2) sorted by relevance
27 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 …]
24 public class ShadowEnvironment { class47 ShadowEnvironment.externalStorageState = externalStorageState; in setExternalStorageState()56 ShadowEnvironment.sIsExternalStorageEmulated = emulated; in setIsExternalStorageEmulated()