Searched refs:cacheFile (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageCacher.java | 139 private static boolean isCacheUpToDate(File packageFile, File cacheFile) { in isCacheUpToDate() argument 156 final StructStat cache = Os.stat(cacheFile.getAbsolutePath()); in isCacheUpToDate() 184 final File cacheFile = new File(mCacheDir, cacheKey); in getCachedResult() local 188 if (!isCacheUpToDate(packageFile, cacheFile)) { in getCachedResult() 192 final byte[] bytes = IoUtils.readFileAsByteArray(cacheFile.getAbsolutePath()); in getCachedResult() 204 cacheFile.delete(); in getCachedResult() 216 final File cacheFile = new File(mCacheDir, cacheKey); in cacheResult() local 218 if (cacheFile.exists()) { in cacheResult() 219 if (!cacheFile.delete()) { in cacheResult() 220 Slog.e(TAG, "Unable to delete cache file: " + cacheFile); in cacheResult() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageParsingPerfTest.kt | 234 val cacheFile = File(cacheDir, file.name) in <lambda>() constant 235 if (!cacheFile.exists()) { in <lambda>() 239 val bytes = IoUtils.readFileAsByteArray(cacheFile.absolutePath) in <lambda>() 251 val cacheFile = File(cacheDir, file.name) in <lambda>() constant 252 if (cacheFile.exists()) { in <lambda>() 253 if (!cacheFile.delete()) { in <lambda>() 254 throw IllegalStateException("Unable to delete cache file: $cacheFile") in <lambda>() 258 return FileOutputStream(cacheFile).use { fos -> fos.write(cacheEntry) } in <lambda>()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ShaderCacheTests.cpp | 382 std::string cacheFile = getExternalStorageFolder() + "/shaderCacheTest"; in RENDERTHREAD_TEST() local 386 ASSERT_NO_FATAL_FAILURE(deleteFileAssertSuccess(cacheFile)); in RENDERTHREAD_TEST() 400 ShaderCache::get().setFilename(cacheFile.c_str()); in RENDERTHREAD_TEST() 442 ASSERT_NO_FATAL_FAILURE(deleteFileAssertSuccess(cacheFile)); in RENDERTHREAD_TEST()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 825 final File cacheFile = getCacheFile(cacheRingtoneSetting, userId); in openFile() local 826 return ParcelFileDescriptor.open(cacheFile, ParcelFileDescriptor.parseMode(mode)); in openFile() 852 final File cacheFile = new File(getRingtoneCacheDir(actualCacheOwner), cacheName); in getCacheFile() local 853 return cacheFile; in getCacheFile() 1991 File cacheFile = getCacheFile(name, callingUserId); 1992 if (cacheFile != null) { 1997 cacheFile.delete(); 2036 && cacheFile != null && value != null) { 2042 OutputStream out = new FileOutputStream(cacheFile)) {
|
/frameworks/base/graphics/java/android/graphics/ |
D | HardwareRenderer.java | 1475 protected static native void setupShadersDiskCache(String cacheFile, String skiaCacheFile); in setupShadersDiskCache() argument
|