Home
last modified time | relevance | path

Searched refs:xmlFile (Results 1 – 17 of 17) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DXmlContext.java7 private final FsFile xmlFile; field in XmlContext
10 public XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers) { in XmlContext() argument
12 this.xmlFile = xmlFile; in XmlContext()
29 return xmlFile; in getXmlFile()
33 return '{' + packageName + ':' + xmlFile + '}'; in toString()
DStaxDocumentLoader.java25 FsFile xmlFile = xmlContext.getXmlFile(); in loadResourceXmlFile() local
29 xmlStreamReader = factory.createXMLStreamReader(xmlFile.getInputStream()); in loadResourceXmlFile()
32 throw new RuntimeException("error parsing " + xmlFile, e); in loadResourceXmlFile()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DXTagXmlResourceLoader.java38 …protected void processResourceXml( File xmlFile, Document document, boolean isSystem ) throws Exce… in processResourceXml() argument
40 String resourceName = toResourceName( xmlFile ); in processResourceXml()
60 private String toResourceName( File xmlFile ) { in toResourceName() argument
62 return xmlFile.getCanonicalPath().replaceAll( "[/\\\\\\\\]", "/" ).replaceAll( "^.*?/res/", "" ) in toResourceName()
DDrawableResourceLoader.java101 …protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Except… in processResourceXml() argument
102 String name = toResourceName(xmlFile); in processResourceXml()
117 private String toResourceName(File xmlFile) { in toResourceName() argument
119 return xmlFile.getCanonicalPath().replaceAll("[/\\\\\\\\]", "/") in toResourceName()
DMenuLoader.java33 …protected void processResourceXml(File xmlFile, Document document, boolean ignored) throws Excepti… in processResourceXml() argument
38 … throw new RuntimeException("Expected only one top-level item in menu file " + xmlFile.getName()); in processResourceXml()
40 … new RuntimeException("Expected a top-level item called 'menu' in menu file " + xmlFile.getName()); in processResourceXml()
43 menuNodesByMenuName.put("menu/" + xmlFile.getName().replace(".xml", ""), topLevelNode); in processResourceXml()
DDocumentLoader.java62 private Document parse(File xmlFile) throws Exception { in parse() argument
64 return documentBuilder.parse(xmlFile); in parse()
DPreferenceLoader.java34 …protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Except… in processResourceXml() argument
37 …prefNodesByResourceName.put( "xml/" + xmlFile.getName().replace(".xml", ""), topLevelNode.getChild… in processResourceXml()
DViewLoader.java40 …protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Except… in processResourceXml() argument
43 …String layoutName = xmlFile.getParentFile().getName() + "/" + xmlFile.getName().replace(".xml", ""… in processResourceXml()
DXmlLoader.java15 …protected abstract void processResourceXml(File xmlFile, Document document, boolean isSystem) thro… in processResourceXml() argument
DXpathResourceXmlLoader.java21 …@Override protected void processResourceXml(File xmlFile, Document document, boolean isSystem) thr… in processResourceXml() argument
DAttrResourceLoader.java26 …protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Except… in processResourceXml() argument
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DConverterTest.java24 FsFile xmlFile = Fs.newFile(new File("res/values/foo.xml")); in setUp() local
25 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); in setUp()
27 xmlContext = new XmlContext("", xmlFile, qualifiers); in setUp()
/external/doclava/src/com/google/doclava/
DArtifactTagger.java70 String xmlFile = artifactSpec.getKey(); in tagAll() local
75 specApi = new ApiCheck().parseApi(xmlFile); in tagAll()
80 "Failed to parse " + xmlFile + " for " + artifactName + " artifact data.\n" in tagAll()
DSinceTagger.java61 String xmlFile = versionSpec.getKey(); in tagAll() local
66 specApi = new ApiCheck().parseApi(xmlFile); in tagAll()
71 "Failed to parse " + xmlFile + " for " + versionName + " since data.\n" in tagAll()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DQualifiersTest.java26 FsFile xmlFile = Fs.newFile(path + "/whatever.xml"); in configFrom() local
27 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); in configFrom()
29 ResTable_config config = new XmlContext("package", xmlFile, qualifiers) in configFrom()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/builder/
DXmlBlock.java25 private synchronized static Document parse(FsFile xmlFile) { in parse() argument
35 inputStream = xmlFile.getInputStream(); in parse()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/builder/
DXmlResourceParserImplTest.java50 FsFile xmlFile = typedResource.getXmlContext().getXmlFile(); in setUp() local
52 XmlBlock xmlBlock = XmlBlock.create(xmlFile, packageName); in setUp()