OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:cachedHtmlFile
(Results
1 - 2
of
2
) sorted by null
/packages/apps/Settings/tests/robotests/src/com/android/settings/
LicenseHtmlLoaderTest.java
48
File
cachedHtmlFile
, boolean isCachedHtmlFileOutdated,
52
doReturn(
cachedHtmlFile
).when(loader).getCachedHtmlFile();
67
File
cachedHtmlFile
= new File("test.html");
69
LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles,
cachedHtmlFile
, true, true);
71
assertThat(loader.loadInBackground()).isEqualTo(
cachedHtmlFile
);
78
File
cachedHtmlFile
= new File("test.html");
80
LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles,
cachedHtmlFile
, true, true);
90
File
cachedHtmlFile
= new File("test.html");
92
LicenseHtmlLoader loader = newLicenseHtmlLoader(xmlFiles,
cachedHtmlFile
, false, true);
94
assertThat(loader.loadInBackground()).isEqualTo(
cachedHtmlFile
);
[
all
...]
/packages/apps/Settings/src/com/android/settings/
LicenseHtmlLoader.java
65
File
cachedHtmlFile
= getCachedHtmlFile();
66
if(!isCachedHtmlFileOutdated(xmlFiles,
cachedHtmlFile
) ||
67
generateHtmlFile(xmlFiles,
cachedHtmlFile
)) {
68
return
cachedHtmlFile
;
92
boolean isCachedHtmlFileOutdated(List<File> xmlFiles, File
cachedHtmlFile
) {
94
if (
cachedHtmlFile
.exists() &&
cachedHtmlFile
.length() != 0) {
97
if (
cachedHtmlFile
.lastModified() < file.lastModified()) {
Completed in 134 milliseconds