HomeSort by relevance Sort by last modified time
    Searched defs:cacheDir (Results 1 - 25 of 200) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/rs/
rsCacheDir.cpp 26 static std::string cacheDir;
42 cacheDir = std::string(path_chars);
52 return cacheDir.c_str();
  /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/volley/src/main/java/com/android/volley/toolbox/
Volley.java 89 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR);
90 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network);
  /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);
  /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);
  /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...]
  /external/glide/library/src/main/java/com/bumptech/glide/
GlideBuilder.java 168 File cacheDir = Glide.getPhotoCacheDir(context);
169 if (cacheDir != null) {
170 diskCache = DiskLruCacheWrapper.get(cacheDir, Glide.DEFAULT_DISK_CACHE_SIZE);
Glide.java 123 File cacheDir = context.getCacheDir();
124 if (cacheDir != null) {
125 File result = new File(cacheDir, cacheName);
  /external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
AndroidTempFileLocator.java 67 File cacheDir = new File(dataDir, "cache");
68 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) {
69 if (isWriteableDirectory(cacheDir)) {
70 results.add(cacheDir);
  /frameworks/base/core/tests/coretests/src/android/text/
FontFallbackSetup.java 47 final File cacheDir = new File(targetCtx.getCacheDir(), testSubDir);
48 if (!cacheDir.isDirectory()) {
49 final boolean dirsCreated = cacheDir.mkdirs();
54 mTestFontsDir = cacheDir.getAbsolutePath() + "/";
  /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/base/core/tests/coretests/src/android/graphics/
TypefaceSystemFallbackTest.java 67 final File cacheDir = new File(targetCtx.getCacheDir(), "TypefaceSystemFallbackTest");
68 if (!cacheDir.isDirectory()) {
69 cacheDir.mkdirs();
71 TEST_FONT_DIR = cacheDir.getAbsolutePath() + "/";
72 TEST_FONTS_XML = new File(cacheDir, "fonts.xml").getAbsolutePath();
  /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);
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
RobolectricTestRunner.java 118 File cacheDir = new File(new File(System.getProperty("java.io.tmpdir")), "robolectric");
123 if (cacheDir.exists() || cacheDir.mkdir()) {
124 Logger.info("Dependency cache location: %s", cacheDir.getAbsolutePath());
125 this.dependencyResolver = new CachedDependencyResolver(dependencyResolver, cacheDir, 60 * 60 * 24 * 1000);
  /cts/tests/core/runner/src/com/android/cts/runner/
CtsTestRunListener.java 72 File cacheDir = getInstrumentation().getTargetContext().getCacheDir();
73 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
  /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...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java 175 final File cacheDir = context.getCacheDir();
177 final long totalSpace = cacheDir.getTotalSpace();
179 final long usableSpace = cacheDir.getUsableSpace() - attachment.size;
191 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir);
235 final long usableSpace = cacheDir.getUsableSpace();
  /frameworks/av/media/libstagefright/filters/
MediaFilter.cpp 448 AString cacheDir;
449 if (!msg->findString("cacheDir", &cacheDir)) {
  /frameworks/support/compat/src/androidTest/java/androidx/core/provider/
MockFontProvider.java 266 final File cacheDir = new File(context.getFilesDir(), "fontCache");
267 return new File(cacheDir, path);
  /hardware/interfaces/renderscript/1.0/vts/functional/
VtsScriptTests.cpp 480 hidl_string cacheDir = "/data/local/tmp";
482 ScriptGroup2 scriptGroup2 = context->scriptGroup2Create(name, cacheDir, closures);
540 hidl_string cacheDir = "/data/local/tmp";
542 ScriptGroup2 scriptGroup2 = context->scriptGroup2Create(name, cacheDir, closures);
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /frameworks/base/core/tests/coretests/src/android/content/pm/
RegisteredServicesCacheTest.java 67 File cacheDir = mContext.getCacheDir();
68 mDataDir = new File(cacheDir, "testServicesCache");

Completed in 1467 milliseconds

1 2 3 4 5 6 7 8