/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/ |
D | ManifestIdentifier.java | 8 import org.robolectric.res.FsFile; 11 private final FsFile manifestFile; 12 private final FsFile resDir; 13 private final FsFile assetDir; 16 private final FsFile apkFile; 19 FsFile manifestFile, FsFile resDir, FsFile assetDir, in ManifestIdentifier() 25 FsFile manifestFile, FsFile resDir, FsFile assetDir, in ManifestIdentifier() 26 List<ManifestIdentifier> libraries, FsFile apkFile) { in ManifestIdentifier() 39 public ManifestIdentifier(FsFile manifestFile, FsFile resDir, FsFile assetDir, String packageName, in ManifestIdentifier() 40 List<FsFile> libraryDirs) { in ManifestIdentifier() [all …]
|
D | MavenManifestFactory.java | 12 import org.robolectric.res.FsFile; 30 final FsFile manifestFile; in identify() 43 final FsFile baseDir = manifestFile.getParent(); in identify() 44 final FsFile resDir = baseDir.join(config.resourceDir()); in identify() 45 final FsFile assetDir = baseDir.join(config.assetDir()); in identify() 54 FsFile libDir = baseDir.join(libraryDirName); in identify() 67 FsFile getBaseDir() { in getBaseDir() 71 private static Properties getProperties(FsFile propertiesFile) { in getProperties() 100 private static List<ManifestIdentifier> findLibraries(FsFile resDirectory) { in findLibraries() 104 FsFile baseDir = resDirectory.getParent(); in findLibraries() [all …]
|
D | BuckManifestFactory.java | 15 import org.robolectric.res.FsFile; 27 FsFile manifestFile = Fs.fileFromPath(buckManifest); in identify() 33 final List<FsFile> buckResources = getDirectoriesFromProperty(buckResDirs); in identify() 34 final List<FsFile> buckAssets = getDirectoriesFromProperty(buckAssetsDirs); in identify() 35 …final FsFile resDir = buckResources.size() == 0 ? null : buckResources.get(buckResources.size() - … in identify() 36 final FsFile assetsDir = buckAssets.size() == 0 ? null : buckAssets.get(buckAssets.size() - 1); in identify() 61 private List<FsFile> getDirectoriesFromProperty(String property) { in getDirectoriesFromProperty() 79 List<FsFile> files = new ArrayList<>(); in getDirectoriesFromProperty()
|
D | DefaultManifestFactory.java | 12 import org.robolectric.res.FsFile; 26 FsFile manifestFile = getFsFileFromProperty(baseDir, "android_merged_manifest"); in identify() 27 FsFile resourcesDir = getFsFileFromProperty(baseDir, "android_merged_resources"); in identify() 28 FsFile assetsDir = getFsFileFromProperty(baseDir, "android_merged_assets"); in identify() 29 FsFile apkFile = getFsFileFromProperty(baseDir, "android_resource_apk"); in identify() 60 private FsFile resolveFile(String manifestConfig) { in resolveFile() 69 private FsFile getFsFileFromProperty(String baseDir, String name) { in getFsFileFromProperty()
|
D | SdkEnvironment.java | 8 import org.robolectric.res.FsFile; 15 private FsFile compileTimeSystemResourcesFile; 23 …public synchronized FsFile getCompileTimeSystemResourcesFile(DependencyResolver dependencyResolver… in getCompileTimeSystemResourcesFile()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | DocumentLoader.java | 7 private static final FsFile.Filter ENDS_WITH_XML = new FsFile.Filter() { 8 @Override public boolean accept(@Nonnull FsFile fsFile) { 14 private final FsFile resourceBase; 16 public DocumentLoader(String packageName, FsFile resourceBase) { in DocumentLoader() 22 FsFile[] files = resourceBase.listFiles(new StartsWithFilter(folderBaseName)); in load() 26 for (FsFile dir : files) { in load() 31 private void loadFile(FsFile dir) { in loadFile() 47 for (FsFile file : dir.listFiles(ENDS_WITH_XML)) { in loadFile()
|
D | Fs.java | 41 public static FsFile fileFromPath(String urlString) { in fileFromPath() 51 public static FsFile fromURL(URL url) { in fromURL() 68 public static FsFile newFile(File file) { in newFile() 72 public static FsFile newJarFile(File file) { in newJarFile() 77 public static FsFile newFile(String filePath) { in newFile() 81 public static FsFile currentDirectory() { in currentDirectory() 136 @Override public FsFile join(String folderBaseName) { in join() 140 class JarFsFile implements FsFile { 159 @Override public FsFile[] listFiles() { in listFiles() 163 @Override public FsFile[] listFiles(Filter filter) { in listFiles() [all …]
|
D | ResourcePath.java | 5 private final FsFile resourceBase; 6 private final FsFile assetsDir; 9 public ResourcePath(Class<?> rClass, FsFile resourceBase, FsFile assetsDir) { in ResourcePath() 13 …public ResourcePath(Class<?> rClass, FsFile resourceBase, FsFile assetsDir, Class<?> internalRClas… in ResourcePath() 24 public FsFile getResourceBase() { in getResourceBase() 32 public FsFile getAssetsDir() { in getAssetsDir()
|
D | FsFile.java | 7 public interface FsFile { interface 14 FsFile[] listFiles(); in listFiles() 16 FsFile[] listFiles(Filter filter); in listFiles() 20 FsFile getParent(); in getParent() 28 FsFile join(String... pathParts); in join() 43 boolean accept(@Nonnull FsFile fsFile); in accept()
|
D | RawResourceLoader.java | 18 FsFile resourceBase = resourcePath.getResourceBase(); in load() 19 FsFile[] files = resourceBase.listFiles(new StartsWithFilter(folderBaseName)); in load() 23 for (FsFile dir : files) { in load() 28 …private void loadRawFiles(PackageResourceTable resourceTable, String resourceType, FsFile rawDir) { in loadRawFiles() 29 FsFile[] files = rawDir.listFiles(); in loadRawFiles() 39 for (FsFile file : files) { in loadRawFiles()
|
D | FileFsFile.java | 13 public class FileFsFile implements FsFile { 43 public FsFile[] listFiles() { in listFiles() 48 public FsFile[] listFiles(final Filter filter) { in listFiles() 64 public FsFile getParent() { in getParent() 85 public FsFile join(String... pathParts) { in join() 139 private FsFile[] asFsFiles(File[] files) { in asFsFiles() 141 FsFile[] fsFiles = new FsFile[files.length]; in asFsFiles()
|
D | DrawableResourceLoader.java | 21 FsFile[] files = resourcePath.getResourceBase().listFiles(); in findDrawableResources() 23 for (FsFile f : files) { in findDrawableResources() 33 private void listDrawableResources(FsFile dir, String type) { in listDrawableResources() 34 FsFile[] files = dir.listFiles(); in listDrawableResources() 44 for (FsFile f : files) { in listDrawableResources()
|
D | FileTypedResource.java | 4 private final FsFile fsFile; 6 public FileTypedResource(FsFile fsFile, ResType resType, XmlContext xmlContext) { in FileTypedResource() 16 public FsFile getFsFile() { in getFsFile() 28 public Image(FsFile fsFile, boolean isNinePatch, XmlContext xmlContext) { in Image()
|
D | XmlContext.java | 7 private final FsFile xmlFile; 10 public XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers) { in XmlContext() 28 public FsFile getXmlFile() { in getXmlFile()
|
D | StartsWithFilter.java | 3 class StartsWithFilter implements FsFile.Filter { 11 public boolean accept(FsFile file) { in accept()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | DrawableResourceLoaderNoRunnerTest.java | 65 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath() 67 FsFile mockTestBaseDir = mock(FsFile.class); in shouldFindDrawableResourcesWorkWithUnixJarFilePath() 68 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath() 88 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixFilePath() 90 FsFile mockTestBaseDir = mock(FsFile.class); in shouldFindDrawableResourcesWorkWithUnixFilePath() 91 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixFilePath() 111 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath() 113 FsFile mockTestBaseDir = mock(FsFile.class); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath() 114 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath() 134 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithWindowsFilePath() [all …]
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/ |
D | AndroidManifest.java | 19 import org.robolectric.res.FsFile; 32 private final FsFile androidManifestFile; 33 private final FsFile resDirectory; 34 private final FsFile assetsDirectory; 37 private final FsFile apkFile; 72 public AndroidManifest(FsFile androidManifestFile, FsFile resDirectory, FsFile assetsDirectory) { in AndroidManifest() 84 public AndroidManifest(FsFile androidManifestFile, FsFile resDirectory, FsFile assetsDirectory, in AndroidManifest() 98 public AndroidManifest(FsFile androidManifestFile, FsFile resDirectory, FsFile assetsDirectory, in AndroidManifest() 109 public AndroidManifest(FsFile androidManifestFile, FsFile resDirectory, FsFile assetsDirectory, in AndroidManifest() 110 @Nonnull List<AndroidManifest> libraryManifests, String overridePackageName, FsFile apkFile) { in AndroidManifest() [all …]
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/ |
D | PropertiesDependencyResolver.java | 9 import org.robolectric.res.FsFile; 13 private final FsFile baseDir; 16 …public PropertiesDependencyResolver(FsFile propertiesFile, DependencyResolver delegate) throws IOE… in PropertiesDependencyResolver() 22 private Properties loadProperties(FsFile propertiesFile) throws IOException { in loadProperties()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | AssetPath.java | 3 import org.robolectric.res.FsFile; 6 public final FsFile file; 9 public AssetPath(FsFile file, boolean isSystem) { in AssetPath()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowTypeface.java | 24 import org.robolectric.res.FsFile; 67 Collection<FsFile> assetDirs = shadowAssetManager.getAllAssetDirs(); in createFromAsset() 68 for (FsFile assetDir : assetDirs) { in createFromAsset() 69 FsFile[] files = assetDir.listFiles(new StartsWith(path)); in createFromAsset() 70 FsFile assetFile = assetDir.join(path); in createFromAsset() 212 private static class StartsWith implements FsFile.Filter { 220 public boolean accept(FsFile file) { in accept()
|
D | ShadowAssetManager.java | 7 import org.robolectric.res.FsFile; 45 abstract Collection<FsFile> getAllAssetDirs(); in getAllAssetDirs()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/builder/ |
D | XmlBlock.java | 9 import org.robolectric.res.FsFile; 25 private synchronized static Document parse(FsFile xmlFile) { in parse() 49 public static XmlBlock create(FsFile fsFile, String packageName) { in create()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/ |
D | TestUtil.java | 15 import org.robolectric.res.FsFile; 24 public static FsFile resourcesBaseDir() { in resourcesBaseDir() 37 public static FsFile resourceFile(String... pathParts) { in resourceFile()
|
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/util/ |
D | TestRunnerWithManifest.java | 13 import org.robolectric.res.FsFile; 20 private static FsFile resourceFile(String... pathParts) { in resourceFile()
|
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/util/ |
D | TestRunnerWithManifest.java | 13 import org.robolectric.res.FsFile; 20 private static FsFile resourceFile(String... pathParts) { in resourceFile()
|