/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
XmlContext.java | 7 private final FsFile xmlFile; 10 public XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers) { 12 this.xmlFile = xmlFile; 29 return xmlFile; 33 return '{' + packageName + ':' + xmlFile + '}';
|
StaxDocumentLoader.java | 25 FsFile xmlFile = xmlContext.getXmlFile(); 29 xmlStreamReader = factory.createXMLStreamReader(xmlFile.getInputStream()); 32 throw new RuntimeException("error parsing " + xmlFile, e);
|
/cts/suite/audio_quality/test/ |
ModelBuilderTest.cpp | 28 android::String8 xmlFile("test_description/test/no_attrib.xml"); 29 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); 36 android::String8 xmlFile("test_description/host_speaker_calibration.xml"); 37 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); 44 android::String8 xmlFile("test_description/all_playback.xml"); 45 TaskGeneric* testBatch = mModelBuilder.parseTestDescriptionXml(xmlFile); 52 android::String8 xmlFile("test_description/all_playback.xml"); 53 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile, true); 60 android::String8 xmlFile("test_description/test/missing_mandatory.xml"); 61 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile); [all...] |
/developers/build/buildSrc/src/main/groovy/com/example/android/samples/build/ |
SampleGenProperties.groovy | 182 def xmlFile = project.file(templateXml()) 183 if (xmlFile.exists()) { 184 def xml = new XmlSlurper().parse(xmlFile) 199 def xmlFile = project.file(templateXml()) 200 if (xmlFile.exists()) { 201 def xml = new XmlSlurper().parse(xmlFile) 225 def xmlFile = project.file(templateXml()) 226 if (xmlFile.exists()) { 228 def params = freemarker.ext.dom.NodeModel.parse(xmlFile) 263 def xmlFile = project.file(templateXml() [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
XTagXmlResourceLoader.java | 38 protected void processResourceXml( File xmlFile, Document document, boolean isSystem ) throws Exception { 40 String resourceName = toResourceName( xmlFile ); 56 * @param xmlFile 60 private String toResourceName( File xmlFile ) { 62 return xmlFile.getCanonicalPath().replaceAll( "[/\\\\\\\\]", "/" ).replaceAll( "^.*?/res/", "" )
|
XmlLoader.java | 15 protected abstract void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception;
|
DocumentLoader.java | 62 private Document parse(File xmlFile) throws Exception { 64 return documentBuilder.parse(xmlFile);
|
DrawableResourceLoader.java | 93 * @param xmlFile Xml file 101 protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception { 102 String name = toResourceName(xmlFile); 114 * @param xmlFile Xml File 117 private String toResourceName(File xmlFile) { 119 return xmlFile.getCanonicalPath().replaceAll("[/\\\\\\\\]", "/")
|
MenuLoader.java | 33 protected void processResourceXml(File xmlFile, Document document, boolean ignored) throws Exception { 38 throw new RuntimeException("Expected only one top-level item in menu file " + xmlFile.getName()); 40 throw new RuntimeException("Expected a top-level item called 'menu' in menu file " + xmlFile.getName()); 43 menuNodesByMenuName.put("menu/" + xmlFile.getName().replace(".xml", ""), topLevelNode);
|
XpathResourceXmlLoader.java | 21 @Override protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception {
|
PreferenceLoader.java | 34 protected void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception { 37 prefNodesByResourceName.put( "xml/" + xmlFile.getName().replace(".xml", ""), topLevelNode.getChildren().get(0));
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/ |
LicenseHtmlGeneratorFromXml.java | 115 for (File xmlFile : mXmlFiles) { 116 parse(xmlFile); 142 private void parse(File xmlFile) { 143 if (xmlFile == null || !xmlFile.exists() || xmlFile.length() == 0) { 149 if (xmlFile.getName().endsWith(".gz")) { 150 in = new InputStreamReader(new GZIPInputStream(new FileInputStream(xmlFile))); 152 in = new FileReader(xmlFile); 159 Log.e(TAG, "Failed to parse " + xmlFile, e) [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ConverterTest.java | 24 FsFile xmlFile = Fs.newFile(new File("res/values/foo.xml")); 25 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); 27 xmlContext = new XmlContext("", xmlFile, qualifiers);
|
/cts/suite/audio_quality/executable/src/ |
main.cpp | 85 android::String8 xmlFile(argv[optind]); 133 std::unique_ptr<TaskGeneric> topTask(modelBuilder.parseTestDescriptionXml(xmlFile)); 135 LOGE("Parsing of %x failed", xmlFile.string()); 138 Settings::Instance()->addSetting(Settings::ETEST_XML, xmlFile);
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/builder/ |
XmlBlock.java | 25 private synchronized static Document parse(FsFile xmlFile) { 35 inputStream = xmlFile.getInputStream();
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
PackageManagerOTATestUtils.java | 107 * @param xmlFile {@link File} xml file to process 112 public boolean expectExists(File xmlFile, String xPathString) { 113 Node n = getNodeForXPath(xmlFile, xPathString); 124 * @param xmlFile {@link File} the xml file in question 130 public boolean expectStartsWith(File xmlFile, String xPathString, String value) { 131 Node n = getNodeForXPath(xmlFile, xPathString); 143 * @param xmlFile {@link File} the xml file in question 149 public boolean expectEquals(File xmlFile, String xPathString, String value) { 150 Node n = getNodeForXPath(xmlFile, xPathString); 163 public Node getNodeForXPath(File xmlFile, String xPathString) [all...] |
/external/doclava/src/com/google/doclava/ |
ArtifactTagger.java | 70 String xmlFile = artifactSpec.getKey(); 75 specApi = new ApiCheck().parseApi(xmlFile); 80 "Failed to parse " + xmlFile + " for " + artifactName + " artifact data.\n"
|
SinceTagger.java | 61 String xmlFile = versionSpec.getKey(); 66 specApi = new ApiCheck().parseApi(xmlFile); 71 "Failed to parse " + xmlFile + " for " + versionName + " since data.\n"
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
ArtifactTagger.kt | 58 val xmlFile = artifactSpec.key 64 specApi = ApiFile.parseApi(xmlFile, kotlinStyleNulls, false) 67 Errors.BROKEN_ARTIFACT_FILE, xmlFile, 68 "Failed to parse $xmlFile for $artifactName artifact data.\n"
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
QualifiersTest.java | 26 FsFile xmlFile = Fs.newFile(path + "/whatever.xml"); 27 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); 29 ResTable_config config = new XmlContext("package", xmlFile, qualifiers)
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
WatchlistSettings.java | 79 protected WatchlistSettings(File xmlFile) { 80 mXmlFile = new AtomicFile(xmlFile, "net-watchlist");
|
WatchlistConfig.java | 99 protected WatchlistConfig(File xmlFile) { 100 mXmlFile = xmlFile;
|
/libcore/benchmarks/src/benchmarks/ |
XmlParseBenchmark.java | 41 @Param String xmlFile; 74 FileInputStream fileIn = new FileInputStream(xmlFile);
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
ConditionManager.java | 82 private void readFromXml(File xmlFile, ArrayList<Condition> conditions) { 83 if (DEBUG) Log.d(TAG, "Reading from " + xmlFile.toString()); 86 FileReader in = new FileReader(xmlFile);
|
/developers/build/lib/ |
buildSrc.jar | |