Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 25 of 84) sorted by relevance

1234

/aosp12/frameworks/rs/
H A DrsScriptC.cpp61 bool ScriptC::createCacheDir(const char *cacheDir) { in createCacheDir() argument
63 const std::string cacheDirString(cacheDir); in createCacheDir()
66 int statReturn = stat(cacheDir, &statBuf); in createCacheDir()
262 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, in dumpBitcodeFile() argument
265 std::string f(cacheDir); in dumpBitcodeFile()
272 if (!ScriptC::createCacheDir(cacheDir)) { in dumpBitcodeFile()
296 const char *cacheDir, in runCompiler() argument
343 if (!cacheDir) { in runCompiler()
345 cacheDir = getenv("EXTERNAL_STORAGE"); in runCompiler()
346 ALOGV("Cache dir changed to %s", cacheDir); in runCompiler()
[all …]
H A DrsCacheDir.cpp26 static std::string cacheDir; in rsQueryCacheDir() local
42 cacheDir = std::string(path_chars); in rsQueryCacheDir()
52 return cacheDir.c_str(); in rsQueryCacheDir()
H A DrsScriptGroup2.h16 ScriptGroup2(Context* rsc, const char* name, const char* cacheDir, in ScriptGroup2() argument
19 mName(name), mCacheDir(cacheDir) {} in ScriptGroup2()
H A DrsScriptGroup2.cpp22 const char* cacheDir, in rsi_ScriptGroup2Create() argument
25 ScriptGroup2* group = new ScriptGroup2(rsc, name, cacheDir, in rsi_ScriptGroup2Create()
H A DrsScriptC.h58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
66 static bool createCacheDir(const char *cacheDir);
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DGalleryAppImpl.java93 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); in getDownloadCache() local
95 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); in getDownloadCache()
97 if (!cacheDir.isDirectory()) { in getDownloadCache()
99 "fail to create: " + cacheDir.getAbsolutePath()); in getDownloadCache()
101 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY); in getDownloadCache()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DCacheStorageUsageInfo.java57 File cacheDir = mContext.getExternalCacheDir(); in loadStorageInfo() local
58 if (cacheDir == null) { in loadStorageInfo()
59 cacheDir = mContext.getCacheDir(); in loadStorageInfo()
62 String path = cacheDir.getAbsolutePath(); in loadStorageInfo()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DCacheManager.java48 File cacheDir = context.getExternalCacheDir(); in getCache() local
49 String path = cacheDir.getAbsolutePath() + "/" + filename; in getCache()
75 File cacheDir = context.getExternalCacheDir(); in removeOldFilesIfNecessary() local
76 String prefix = cacheDir.getAbsolutePath() + "/"; in removeOldFilesIfNecessary()
/aosp12/frameworks/rs/cpu_ref/
H A DrsCpuExecutable.cpp66 static std::string findSharedObjectName(const char *cacheDir, in findSharedObjectName() argument
69 std::string scriptSOName(cacheDir); in findSharedObjectName()
75 ALOGE("Found peculiar cacheDir (missing \"cache\"): %s", cacheDir); in findSharedObjectName()
125 const char *cacheDir, in createSharedLibrary() argument
133 std::string objFileName = cacheDir; in createSharedLibrary()
195 void* SharedLibraryUtils::loadSharedLibrary(const char *cacheDir, in loadSharedLibrary() argument
204 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary()
224 loaded = loadSOHelper(scriptSONameApk.c_str(), cacheDir, resName); in loadSharedLibrary()
238 loaded = loadSOHelper(scriptSONameSystem.c_str(), cacheDir, resName); in loadSharedLibrary()
334 std::string newName(cacheDir); in loadSOHelper()
[all …]
H A DrsCpuScript.cpp62 const char* cacheDir, const char* resName, in setCompileArguments() argument
66 rsAssert(cacheDir && resName && core_lib); in setCompileArguments()
79 args->push_back(cacheDir); in setCompileArguments()
163 bool isChecksumNeeded(const char *cacheDir) { in isChecksumNeeded() argument
165 if ((::strcmp(SYSLIBPATH, cacheDir) == 0) || in isChecksumNeeded()
166 (::strcmp(sysLibPathVndk.c_str(), cacheDir) == 0) || in isChecksumNeeded()
167 (::strcmp(SYSLIBPATH_VENDOR, cacheDir) == 0)) in isChecksumNeeded()
300 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument
326 std::string bcFileName(cacheDir); in init()
338 mChecksumNeeded = isChecksumNeeded(cacheDir); in init()
[all …]
H A DrsCpuScriptGroup2.cpp363 void CpuScriptGroup2Impl::compile(const char* cacheDir) { in compile() argument
433 rsAssert(cacheDir != nullptr); in compile()
434 string objFilePath(cacheDir); in compile()
447 setupCompileArguments(inputs, kernelBatches, invokeBatches, cacheDir, in compile()
480 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr, in compile()
539 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName, in compile()
549 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in compile()
561 string cloneFilePath(cacheDir); in compile()
H A DrsCpuExecutable.h38 const char* cacheDir,
52 static void* loadSharedLibrary(const char *cacheDir, const char *resName,
70 static void *loadSOHelper(const char *origName, const char *cacheDir,
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DPackageParsingPerfTest.kt216 abstract class PackageCacher<PackageType : Parcelable>(private val cacheDir: File) {
219 val cacheFile = File(cacheDir, file.name)
236 val cacheFile = File(cacheDir, file.name)
262 class PackageCacher1(cacheDir: File) : PackageCacher<PackageParser.Package>(cacheDir) {
269 class PackageCacher2(cacheDir: File) : PackageCacher<ParsingPackageRead>(cacheDir) {
/aosp12/frameworks/base/core/tests/coretests/src/android/text/
H A DFontFallbackSetup.java52 final File cacheDir = new File(targetCtx.getCacheDir(), testSubDir); in FontFallbackSetup() local
53 if (!cacheDir.isDirectory()) { in FontFallbackSetup()
54 final boolean dirsCreated = cacheDir.mkdirs(); in FontFallbackSetup()
59 mTestFontsDir = cacheDir.getAbsolutePath() + "/"; in FontFallbackSetup()
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DRenderScriptCacheDir.java40 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument
42 mCacheDir = cacheDir; in setupDiskCache()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
H A DClipStorage.java194 public static File prepareStorage(File cacheDir) { in prepareStorage() argument
195 File clipDir = getClipDir(cacheDir); in prepareStorage()
202 private static File getClipDir(File cacheDir) { in getClipDir() argument
203 return new File(cacheDir, "clippings"); in getClipDir()
/aosp12/build/soong/java/
H A Dlint.go203 cacheDir android.WritablePath member
216 cacheDir := android.PathForModuleOut(ctx, "lint", "cache")
265 cmd.FlagWithArg("--cache_dir ", cacheDir.String())
287 cacheDir: cacheDir,
389 rule.Command().Text("rm -rf").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String())
390 rule.Command().Text("mkdir -p").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String())
452 rule.Command().Text("rm -rf").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String())
/aosp12/frameworks/base/services/core/java/com/android/server/pm/parsing/
H A DPackageParser2.java118 DisplayMetrics displayMetrics, @Nullable File cacheDir, @NonNull Callback callback) {
129 mCacher = cacheDir == null ? null : new PackageCacher(cacheDir);
H A DPackageCacher.java52 public PackageCacher(@NonNull File cacheDir) { in PackageCacher() argument
53 this.mCacheDir = cacheDir; in PackageCacher()
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/
H A DTypefaceSystemFallbackTest.java81 final File cacheDir = new File(targetCtx.getCacheDir(), "TypefaceSystemFallbackTest");
82 if (!cacheDir.isDirectory()) {
83 cacheDir.mkdirs(); in cacheDir.mkdirs()
85 TEST_FONT_DIR = cacheDir.getAbsolutePath() + "/fonts/";
86 TEST_FONTS_XML = new File(cacheDir, "fonts.xml").getAbsolutePath();
87 TEST_OEM_DIR = cacheDir.getAbsolutePath() + "/oem_fonts/";
88 TEST_OEM_XML = new File(cacheDir, "fonts_customization.xml").getAbsolutePath();
89 TEST_UPDATABLE_FONT_DIR = cacheDir.getAbsolutePath() + "/updatable_fonts/";
/aosp12/frameworks/rs/cpp/
H A DScriptC.cpp25 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument
/aosp12/build/soong/cc/
H A Dlto.go119 cacheDir := android.PathForOutput(ctx, "thinlto-cache").String()
120 flags.Local.LdFlags = append(flags.Local.LdFlags, cacheDirFormat+cacheDir)
/aosp12/frameworks/rs/tests/lldb/jni/Allocations/src/com/android/rs/jniallocations/
H A DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/aosp12/frameworks/rs/tests/lldb/jni/BranchingFunCalls/src/com/android/rs/jnibranchingfuncalls/
H A DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/aosp12/frameworks/rs/tests/lldb/jni/DebugWaitAttach/src/com/android/rs/jniwaitattachdebug/
H A DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument

1234