@Test public void getStorageRootDirWithScopedStorageTest() { mockUsingScopedStorage(); assertThat(storagePathProvider.getStorageRootDirPath(), is("/storage/emulated/0/Android/data/org.odk.collect.android/files")); }
public String getStorageRootDirPath() { return storageStateProvider.isScopedStorageUsed() ? getScopedStorageRootDirPath() : getUnscopedStorageRootDirPath(); }
StoragePathProvider { public String getStorageRootDirPath() { return storageStateProvider.isScopedStorageUsed() ? getScopedStorageRootDirPath() : getUnscopedStorageRootDirPath(); } }
StoragePathProvider { public String getStorageRootDirPath() { return storageStateProvider.isScopedStorageUsed() ? getScopedStorageRootDirPath() : getUnscopedStorageRootDirPath(); } StoragePathProvider();  StoragePathProvider(StorageStateProvider storageStateProvider); }
StoragePathProvider { public String getStorageRootDirPath() { return storageStateProvider.isScopedStorageUsed() ? getScopedStorageRootDirPath() : getUnscopedStorageRootDirPath(); } StoragePathProvider();  StoragePathProvider(StorageStateProvider storageStateProvider); String[] getOdkDirPaths(); String getScopedStorageRootDirPath(); String getUnscopedStorageRootDirPath(); String getUnscopedStorageDirPath(StorageSubdirectory subdirectory); String getDirPath(StorageSubdirectory subdirectory); String getStorageRootDirPath(); String getTmpFilePath(); String getTmpDrawFilePath(); String getInstanceDbPath(String filePath); String getAbsoluteInstanceFilePath(String filePath); String getFormDbPath(String filePath); String getAbsoluteFormFilePath(String filePath); String getCacheDbPath(String filePath); String getAbsoluteCacheFilePath(String filePath); String getRelativeFilePath(String dirPath, String filePath); @SuppressWarnings("PMD.DoNotHardCodeSDCard") String getRelativeMapLayerPath(String path); String getAbsoluteOfflineMapLayerPath(String path); }
StoragePathProvider { public String getStorageRootDirPath() { return storageStateProvider.isScopedStorageUsed() ? getScopedStorageRootDirPath() : getUnscopedStorageRootDirPath(); } StoragePathProvider();  StoragePathProvider(StorageStateProvider storageStateProvider); String[] getOdkDirPaths(); String getScopedStorageRootDirPath(); String getUnscopedStorageRootDirPath(); String getUnscopedStorageDirPath(StorageSubdirectory subdirectory); String getDirPath(StorageSubdirectory subdirectory); String getStorageRootDirPath(); String getTmpFilePath(); String getTmpDrawFilePath(); String getInstanceDbPath(String filePath); String getAbsoluteInstanceFilePath(String filePath); String getFormDbPath(String filePath); String getAbsoluteFormFilePath(String filePath); String getCacheDbPath(String filePath); String getAbsoluteCacheFilePath(String filePath); String getRelativeFilePath(String dirPath, String filePath); @SuppressWarnings("PMD.DoNotHardCodeSDCard") String getRelativeMapLayerPath(String path); String getAbsoluteOfflineMapLayerPath(String path);  }