Home
last modified time | relevance | path

Searched refs:cacheFile (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageCacher.java121 private static boolean isCacheUpToDate(File packageFile, File cacheFile) { in isCacheUpToDate() argument
138 final StructStat cache = Os.stat(cacheFile.getAbsolutePath()); in isCacheUpToDate()
165 final File cacheFile = new File(mCacheDir, cacheKey); in getCachedResult() local
169 if (!isCacheUpToDate(packageFile, cacheFile)) { in getCachedResult()
173 final byte[] bytes = IoUtils.readFileAsByteArray(cacheFile.getAbsolutePath()); in getCachedResult()
180 cacheFile.delete(); in getCachedResult()
191 final File cacheFile = new File(mCacheDir, cacheKey); in cacheResult() local
193 if (cacheFile.exists()) { in cacheResult()
194 if (!cacheFile.delete()) { in cacheResult()
195 Slog.e(TAG, "Unable to delete cache file: " + cacheFile); in cacheResult()
[all …]
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
DPackageParsingPerfTest.kt228 val cacheFile = File(cacheDir, file.name) in <lambda>() constant
229 if (!cacheFile.exists()) { in <lambda>()
233 val bytes = IoUtils.readFileAsByteArray(cacheFile.absolutePath) in <lambda>()
245 val cacheFile = File(cacheDir, file.name) in <lambda>() constant
246 if (cacheFile.exists()) { in <lambda>()
247 if (!cacheFile.delete()) { in <lambda>()
248 throw IllegalStateException("Unable to delete cache file: $cacheFile") in <lambda>()
252 return FileOutputStream(cacheFile).use { fos -> fos.write(cacheEntry) } in <lambda>()
/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp381 std::string cacheFile = getExternalStorageFolder() + "/shaderCacheTest"; in RENDERTHREAD_SKIA_PIPELINE_TEST() local
385 ASSERT_NO_FATAL_FAILURE(deleteFileAssertSuccess(cacheFile)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
399 ShaderCache::get().setFilename(cacheFile.c_str()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
441 ASSERT_NO_FATAL_FAILURE(deleteFileAssertSuccess(cacheFile)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
/frameworks/base/graphics/java/android/graphics/
DHardwareRenderer.java1356 protected static native void setupShadersDiskCache(String cacheFile, String skiaCacheFile); in setupShadersDiskCache() argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java852 final File cacheFile = new File(getRingtoneCacheDir(actualCacheOwner), cacheName); in openFile() local
853 return ParcelFileDescriptor.open(cacheFile, ParcelFileDescriptor.parseMode(mode)); in openFile()
1931 final File cacheFile = new File(
1933 cacheFile.delete();