Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXml.java119 for (File xmlFile : mXmlFiles) { in generateHtml()
120 parse(xmlFile); in generateHtml()
147 private void parse(File xmlFile) { in parse() argument
148 if (xmlFile == null || !xmlFile.exists() || xmlFile.length() == 0) { in parse()
154 if (xmlFile.getName().endsWith(".gz")) { in parse()
155 in = new InputStreamReader(new GZIPInputStream(new FileInputStream(xmlFile))); in parse()
157 in = new FileReader(xmlFile); in parse()
164 Log.e(TAG, "Failed to parse " + xmlFile, e); in parse()
169 Log.w(TAG, "Failed to close " + xmlFile); in parse()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSignaturesTest.java378 private void verifyReadXmlReturnsExpectedSignatures(String xmlFile, int expectedSchemeVersion, in verifyReadXmlReturnsExpectedSignatures() argument
380 XmlPullParser parser = getXMLFromResources(xmlFile); in verifyReadXmlReturnsExpectedSignatures()
395 private void verifyReadXmlReturnsExpectedSignaturesAndLineage(String xmlFile, in verifyReadXmlReturnsExpectedSignaturesAndLineage() argument
397 XmlPullParser parser = getXMLFromResources(xmlFile); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
450 private XmlPullParser getXMLFromResources(String xmlFile) throws Exception { in getXMLFromResources() argument
452 TEST_RESOURCES_FOLDER + "/" + xmlFile); in getXMLFromResources()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistSettings.java79 protected WatchlistSettings(File xmlFile) { in WatchlistSettings() argument
80 mXmlFile = new AtomicFile(xmlFile, "net-watchlist"); in WatchlistSettings()
DWatchlistConfig.java99 protected WatchlistConfig(File xmlFile) { in WatchlistConfig() argument
100 mXmlFile = xmlFile; in WatchlistConfig()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp658 const char* xmlFile = nullptr; in getInstance() local
661 xmlFile = f; in getInstance()
665 if (xmlFile == nullptr) { in getInstance()
670 sInstance = createInstanceFromXmlFile(xmlFile); in getInstance()
908 bool MediaProfiles::checkXmlFile(const char* xmlFile) { in checkXmlFile() argument
910 return stat(xmlFile, &fStat) == 0 && S_ISREG(fStat.st_mode); in checkXmlFile()
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h360 static bool checkXmlFile(const char* xmlFile);