Home
last modified time | relevance | path

Searched refs:xmlFile (Results 1 – 8 of 8) 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.java380 private void verifyReadXmlReturnsExpectedSignatures(String xmlFile, int expectedSchemeVersion, in verifyReadXmlReturnsExpectedSignatures() argument
382 TypedXmlPullParser parser = getXMLFromResources(xmlFile); in verifyReadXmlReturnsExpectedSignatures()
397 private void verifyReadXmlReturnsExpectedSignaturesAndLineage(String xmlFile, in verifyReadXmlReturnsExpectedSignaturesAndLineage() argument
399 TypedXmlPullParser parser = getXMLFromResources(xmlFile); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
452 private TypedXmlPullParser getXMLFromResources(String xmlFile) throws Exception { in getXMLFromResources() argument
454 TEST_RESOURCES_FOLDER + "/" + xmlFile); in getXMLFromResources()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistSettings.java81 protected WatchlistSettings(File xmlFile) { in WatchlistSettings() argument
82 mXmlFile = new AtomicFile(xmlFile, "net-watchlist"); in WatchlistSettings()
DWatchlistConfig.java98 protected WatchlistConfig(File xmlFile) { in WatchlistConfig() argument
99 mXmlFile = xmlFile; in WatchlistConfig()
/frameworks/base/core/tests/coretests/src/android/security/
DCredentialManagementAppTest.java107 File xmlFile = writeToXml(CREDENTIAL_MANAGEMENT_APP); in writeToXmlAndReadFromXml() local
109 CredentialManagementApp loadedCredentialManagementApp = readFromXml(xmlFile); in writeToXmlAndReadFromXml()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp742 const char* xmlFile = nullptr; in getInstance() local
745 xmlFile = f; in getInstance()
749 if (xmlFile == nullptr) { in getInstance()
754 sInstance = createInstanceFromXmlFile(xmlFile); in getInstance()
991 bool MediaProfiles::checkXmlFile(const char* xmlFile) { in checkXmlFile() argument
993 return stat(xmlFile, &fStat) == 0 && S_ISREG(fStat.st_mode); in checkXmlFile()
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsPersister.java522 void restore(File xmlFile, TypedXmlPullParser parser) { in restore() argument
548 mTimestamp = xmlFile.lastModified(); in restore()
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h473 static bool checkXmlFile(const char* xmlFile);