/frameworks/base/rs/java/android/renderscript/ |
RenderScriptCacheDir.java | 31 * @param cacheDir A directory the current process can write to 33 public static void setupDiskCache(File cacheDir) { 35 mCacheDir = cacheDir;
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
FileDownloadCacheFactory.java | 47 * Note that the cache assumes that this process has exclusive access to the <var>cacheDir</var> 51 * @param cacheDir the local filesystem directory to use as a cache 52 * @return the {@link FileDownloadCache} for given cacheDir 54 public synchronized FileDownloadCache getCache(File cacheDir) { 55 FileDownloadCache cache = mCacheObjectMap.get(cacheDir.getAbsolutePath()); 57 cache = new FileDownloadCache(cacheDir); 58 mCacheObjectMap.put(cacheDir.getAbsolutePath(), cache);
|
FileDownloadCacheWrapper.java | 31 public FileDownloadCacheWrapper(File cacheDir, IFileDownloader delegateDownloader) { 32 mCache = FileDownloadCacheFactory.getInstance().getCache(cacheDir);
|
/frameworks/rs/ |
rsScriptGroup2.h | 16 ScriptGroup2(Context* rsc, const char* name, const char* cacheDir, 19 mName(name), mCacheDir(cacheDir) {}
|
rsScriptGroup2.cpp | 22 const char* cacheDir, 25 ScriptGroup2* group = new ScriptGroup2(rsc, name, cacheDir,
|
rsScriptC.cpp | 61 bool ScriptC::createCacheDir(const char *cacheDir) { 63 const std::string cacheDirString(cacheDir); 66 int statReturn = stat(cacheDir, &statBuf); 74 // Reserve space in currentDir for the entire cacheDir path. 262 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, 265 std::string f(cacheDir); 272 if (!ScriptC::createCacheDir(cacheDir)) { 296 const char *cacheDir, 300 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 333 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) [all...] |
rsScriptC.h | 58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 66 static bool createCacheDir(const char *cacheDir);
|
/cts/tests/tests/net/src/android/net/http/cts/ |
HttpResponseCacheTest.java | 41 private File cacheDir; 48 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); 49 cacheDir.mkdirs(); 51 FileUtils.setPermissions(cacheDir.getPath(), 0777); 61 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 68 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 69 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 74 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 77 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); 102 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
GalleryAppImpl.java | 93 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); 95 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); 97 if (!cacheDir.isDirectory()) { 99 "fail to create: " + cacheDir.getAbsolutePath()); 101 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CacheStorageUsageInfo.java | 57 File cacheDir = mContext.getExternalCacheDir(); 58 if (cacheDir == null) { 59 cacheDir = mContext.getCacheDir(); 62 String path = cacheDir.getAbsolutePath();
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
CacheManager.java | 48 File cacheDir = context.getExternalCacheDir(); 49 String path = cacheDir.getAbsolutePath() + "/" + filename; 75 File cacheDir = context.getExternalCacheDir(); 76 String prefix = cacheDir.getAbsolutePath() + "/";
|
/frameworks/rs/cpp/ |
ScriptC.cpp | 25 const char *cacheDir, size_t cacheDirLength)
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
FileClientSessionCacheTest.java | 31 File cacheDir = new File(tmpDir 34 = FileClientSessionCache.usingDirectory(cacheDir); 54 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length);
|
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/ |
AndroidTempFileLocator.java | 63 File cacheDir = new File(dataDir, "cache"); 64 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { 65 if (isWriteableDirectory(cacheDir)) { 66 results.add(cacheDir);
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/ |
HttpResponseCacheTest.java | 55 private File cacheDir; 59 cacheDir = cacheRule.getRoot(); 68 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 75 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 76 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 81 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 84 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); 112 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 124 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 130 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024) [all...] |
/frameworks/base/test-runner/src/android/test/ |
InstrumentationCoreTestRunner.java | 61 File cacheDir = getTargetContext().getCacheDir(); 67 System.setProperty("java.home", cacheDir.getAbsolutePath()); 68 System.setProperty("user.home", cacheDir.getAbsolutePath()); 69 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
|
/frameworks/rs/tests/lldb/jni/Allocations/src/com/android/rs/jniallocations/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/src/com/android/rs/jnibranchingfuncalls/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/src/com/android/rs/jniwaitattachdebug/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/InfiniteLoop/src/com/android/rs/jniinfiniteloop/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/KernelVariables/src/com/android/rs/jnikernelvariables/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/src/com/android/rs/jnimultiplersfiles/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/frameworks/rs/tests/lldb/jni/NoDebugWaitAttach/src/com/android/rs/jninodebugwaitattach/ |
MainActivity.java | 34 native void nativeRS(String cacheDir);
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
Volley.java | 43 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); 65 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network);
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
AppDataDirGuesser.java | 151 File cacheDir = new File(dataDir, "cache"); 153 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { 154 if (isWriteableDirectory(cacheDir)) { 155 results.add(cacheDir);
|