Home
last modified time | relevance | path

Searched refs:xmlFiles (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/
H A DLicenseHtmlLoaderCompatTest.java60 ArrayList<File> xmlFiles = new ArrayList<>(); in testLoadInBackground() local
61 xmlFiles.add(new File("test.xml")); in testLoadInBackground()
64 setupFakeData(xmlFiles, cachedHtmlFile, true, true); in testLoadInBackground()
71 ArrayList<File> xmlFiles = new ArrayList<>(); in testLoadInBackgroundWithNoVaildXmlFiles() local
74 setupFakeData(xmlFiles, cachedHtmlFile, true, true); in testLoadInBackgroundWithNoVaildXmlFiles()
81 ArrayList<File> xmlFiles = new ArrayList<>(); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile() local
82 xmlFiles.add(new File("test.xml")); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile()
85 setupFakeData(xmlFiles, cachedHtmlFile, false, true); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile()
92 ArrayList<File> xmlFiles = new ArrayList<>(); in testLoadInBackgroundWithGenerateHtmlFileFailed() local
93 xmlFiles.add(new File("test.xml")); in testLoadInBackgroundWithGenerateHtmlFileFailed()
[all …]
H A DLicenseHtmlGeneratorFromXmlTest.java223 List<File> xmlFiles = new ArrayList<>(); in testGenerateHtml() local
239 xmlFiles, fileNameToLibraryToContentIdMap, contentIdToFileContentMap, in testGenerateHtml()
246 List<File> xmlFiles = new ArrayList<>(); in testGenerateNewHtml() local
266 xmlFiles, fileNameToLibraryToContentIdMap, contentIdToFileContentMap, in testGenerateNewHtml()
273 List<File> xmlFiles = new ArrayList<>(); in testGenerateHtmlWithCustomHeading() local
289 xmlFiles, fileNameToLibraryToContentIdMap, contentIdToFileContentMap, in testGenerateHtmlWithCustomHeading()
296 List<File> xmlFiles = new ArrayList<>(); in testGenerateNewHtmlWithCustomHeading() local
316 xmlFiles, fileNameToLibraryToContentIdMap, contentIdToFileContentMap, in testGenerateNewHtmlWithCustomHeading()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/
H A DLicenseHtmlLoaderCompat.java64 final List<File> xmlFiles = getVaildXmlFiles(); in generateHtmlFromDefaultXmlFiles() local
65 if (xmlFiles.isEmpty()) { in generateHtmlFromDefaultXmlFiles()
71 if (!isCachedHtmlFileOutdated(xmlFiles, cachedHtmlFile) in generateHtmlFromDefaultXmlFiles()
72 || generateHtmlFile(mContext, xmlFiles, cachedHtmlFile)) { in generateHtmlFromDefaultXmlFiles()
80 final List<File> xmlFiles = new ArrayList(); in getVaildXmlFiles() local
84 xmlFiles.add(file); in getVaildXmlFiles()
87 return xmlFiles; in getVaildXmlFiles()
94 private boolean isCachedHtmlFileOutdated(List<File> xmlFiles, File cachedHtmlFile) { in isCachedHtmlFileOutdated() argument
98 for (File file : xmlFiles) { in isCachedHtmlFileOutdated()
108 private boolean generateHtmlFile(Context context, List<File> xmlFiles, File htmlFile) { in generateHtmlFile() argument
[all …]
H A DLicenseHtmlGeneratorFromXml.java124 private LicenseHtmlGeneratorFromXml(List<File> xmlFiles) { in LicenseHtmlGeneratorFromXml() argument
125 mXmlFiles = xmlFiles; in LicenseHtmlGeneratorFromXml()
128 public static boolean generateHtml(List<File> xmlFiles, File outputFile, in generateHtml() argument
130 LicenseHtmlGeneratorFromXml genertor = new LicenseHtmlGeneratorFromXml(xmlFiles); in generateHtml()
294 static void generateHtml(List<File> xmlFiles, in generateHtml() argument
425 if (!xmlFiles.isEmpty()) { in generateHtml()
427 for (File file : xmlFiles) { in generateHtml()