Home
last modified time | relevance | path

Searched +full:file +full:- +full:entry +full:- +full:cache (Results 1 – 25 of 1517) sorted by relevance

12345678910>>...61

/aosp_15_r20/external/volley/core/src/test/java/com/android/volley/toolbox/
H A DDiskBasedCacheTest.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
35 import com.android.volley.Cache;
42 import java.io.File;
67 private Cache cache; field in DiskBasedCacheTest
75 // Initialize empty cache in setup()
76 cache = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE); in setup()
77 cache.initialize(); in setup()
82 cache = null; in teardown()
87 assertThat(cache.get("key"), is(nullValue())); in testEmptyInitialize()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/internal/cache/
Dcache.go2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Package cache implements a build artifact cache.
6 package cache package
27 // An ActionID is a cache action key, the hash of a complete description of a
29 // input file contents, executable contents).
32 // An OutputID is a cache output key, the hash of an output of a computation.
35 // Cache is the interface as used by the cmd/go.
36 type Cache interface { interface
37 // Get returns the cache entry for the provided ActionID.
[all …]
/aosp_15_r20/external/volley/core/src/main/java/com/android/volley/toolbox/
H A DDiskBasedCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
22 import com.android.volley.Cache;
29 import java.io.File;
45 * Cache implementation that caches files directly onto the hard disk in the specified directory.
48 * <p>This cache supports the {@link Entry#allResponseHeaders} headers field.
50 public class DiskBasedCache implements Cache {
55 /** Total amount of space currently used by the cache in bytes. */
58 /** The supplier for the root directory to use for the cache. */
61 /** The maximum size of the cache in bytes. */
[all …]
/aosp_15_r20/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
H A DDiskLruCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
22 import java.io.File;
42 * A cache that uses a bounded amount of space on a filesystem. Each cache
43 * entry has a string key and a fixed number of values. Each key must match
44 * the regex <strong>[a-z0-9_-]{1,120}</strong>. Values are byte sequences,
48 * <p>The cache stores its data in a directory on the filesystem. This
49 * directory must be exclusive to the cache; the cache may delete or overwrite
51 * same cache directory at the same time.
53 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/frameworks/native/opengl/libs/EGL/
H A DMultifileBlobCache_test.cpp5 ** you may not use this file except in compliance with the License.
8 ** http://www.apache.org/licenses/LICENSE-2.0
19 #include <android-base/properties.h>
20 #include <android-base/test_utils.h>
51 kMaxTotalEntries, &mTempFile->path[0])); in SetUp()
80 mMBC->set("abcd", 4, "efgh", 4); in TEST_F()
81 ASSERT_EQ(size_t(4), mMBC->get("abcd", 4, buf, 4)); in TEST_F()
90 mMBC->set("ab", 2, "cd", 2); in TEST_F()
91 mMBC->set("ef", 2, "gh", 2); in TEST_F()
92 ASSERT_EQ(size_t(2), mMBC->get("ab", 2, buf, 2)); in TEST_F()
[all …]
H A DMultifileBlobCache.cpp5 ** you may not use this file except in compliance with the License.
8 ** http://www.apache.org/licenses/LICENSE-2.0
21 #include <android-base/properties.h>
51 // A divisor of two will decrease the cache to 50%, four to 25% and so on
52 // We use the same limit to manage size and entry count
58 void freeHotCacheEntry(android::MultifileHotCache& entry) { in freeHotCacheEntry() argument
59 if (entry.entryFd != -1) { in freeHotCacheEntry()
60 // If we have an fd, then this entry was added to hot cache via INIT or GET in freeHotCacheEntry()
61 // We need to unmap the entry in freeHotCacheEntry()
62 munmap(entry.entryBuffer, entry.entrySize); in freeHotCacheEntry()
[all …]
/aosp_15_r20/external/squashfs-tools/squashfs-tools/
H A Dunsquashfs.c21 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
47 struct cache *fragment_cache, *data_cache;
53 int processors = -1;
141 if(ioctl(1, TIOCGWINSZ, &winsize) == -1) { in sigwinch_handler()
159 return (INT_MAX - a) < b; in add_overflow()
186 queue->data = malloc(sizeof(void *) * (size + 1)); in queue_init()
187 if(queue->data == NULL) in queue_init()
190 queue->size = size + 1; in queue_init()
191 queue->readp = queue->writep = 0; in queue_init()
192 pthread_mutex_init(&queue->mutex, NULL); in queue_init()
[all …]
/aosp_15_r20/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
H A DDiskLruCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
23 import java.io.File;
55 …* https://android.googlesource.com/platform/libcore/+/android-4.1.1_r1/luni/src/main/java/libcore/…
58 * A cache that uses a bounded amount of space on a filesystem. Each cache
59 * entry has a string key and a fixed number of values. Values are byte
63 * <p>The cache stores its data in a directory on the filesystem. This
64 * directory must be exclusive to the cache; the cache may delete or overwrite
66 * same cache directory at the same time.
68 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DDiskLruCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
23 import java.io.File;
55 …* https://android.googlesource.com/platform/libcore/+/android-4.1.1_r1/luni/src/main/java/libcore/…
58 * A cache that uses a bounded amount of space on a filesystem. Each cache
59 * entry has a string key and a fixed number of values. Values are byte
63 * <p>The cache stores its data in a directory on the filesystem. This
64 * directory must be exclusive to the cache; the cache may delete or overwrite
66 * same cache directory at the same time.
68 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
H A DDiskLruCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
23 import java.io.File;
55 …* https://android.googlesource.com/platform/libcore/+/android-4.1.1_r1/luni/src/main/java/libcore/…
58 * A cache that uses a bounded amount of space on a filesystem. Each cache
59 * entry has a string key and a fixed number of values. Values are byte
63 * <p>The cache stores its data in a directory on the filesystem. This
64 * directory must be exclusive to the cache; the cache may delete or overwrite
66 * same cache directory at the same time.
68 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
H A DDiskLruCache.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
22 import java.io.File;
45 * A cache that uses a bounded amount of space on a filesystem. Each cache
46 * entry has a string key and a fixed number of values. Each key must match
47 * the regex <strong>[a-z0-9_-]{1,64}</strong>. Values are byte sequences,
51 * <p>The cache stores its data in a directory on the filesystem. This
52 * directory must be exclusive to the cache; the cache may delete or overwrite
54 * same cache directory at the same time.
56 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
H A DDiskLruCache.java6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
23 import java.io.File;
46 * A cache that uses a bounded amount of space on a filesystem. Each cache
47 * entry has a string key and a fixed number of values. Each key must match
48 * the regex <strong>[a-z0-9_-]{1,64}</strong>. Values are byte sequences,
52 * <p>The cache stores its data in a directory on the filesystem. This
53 * directory must be exclusive to the cache; the cache may delete or overwrite
55 * same cache directory at the same time.
57 * <p>This cache limits the number of bytes that it will store on the
[all …]
/aosp_15_r20/frameworks/base/core/java/android/webkit/
H A DCacheManager.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
22 import java.io.File;
29 * Manages the HTTP cache used by an application's {@link WebView} instances.
30 * @deprecated Access to the HTTP cache will be removed in a future release.
33 // The class CacheManager provides the persistent cache of content that is
35 // utilizes the relevant cache headers to determine if the content should be
37 // this component and if they can not be resolved by the cache, the HTTP headers
39 // class also manages the cache size.
45 * Represents a resource stored in the HTTP cache. Instances of this class
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang/Tooling/DependencyScanning/
DDependencyScanningFilesystem.h1 //===- DependencyScanningFilesystem.h - clang-scan-deps fs ===---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
29 /// Contents and directive tokens of a cached file entry. Single instance can
48 /// An in-memory representation of a file system entity that is of interest to
52 /// - opened file with contents and a stat value,
53 /// - opened file with contents, directive tokens and a stat value,
54 /// - directory entry with its stat value,
55 /// - filesystem error.
58 /// a regular file and a symlink). For this reason the status filename is empty
[all …]
/aosp_15_r20/external/cronet/net/disk_cache/
H A Dbackend_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
12 #include "base/files/file.h"
65 #include "third_party/abseil-cpp/absl/base/dynamic_annotations.h"
81 // TODO(crbug.com/949811): Fix memory leaks in tests and re-enable on LSAN.
98 const char kExistingEntryKey[] = "existing entry key";
104 std::unique_ptr<disk_cache::BackendImpl> cache( in CreateExistingEntryCache() local
110 cache->Init(cb.callback()); in CreateExistingEntryCache()
116 cache->CreateEntry(kExistingEntryKey, net::HIGHEST, cb2.callback()); in CreateExistingEntryCache()
121 return cache; in CreateExistingEntryCache()
[all …]
H A Ddisk_cache.h2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Defines the public interface of the disk cache. For more details see
6 // http://dev.chromium.org/developers/design-documents/network-stack/disk-cache
18 #include "base/files/file.h"
46 class Entry; variable
54 // How to handle resetting the back-end cache from the previous session.
79 // (nullable) is used to broker file operations in sandboxed environments.
82 // appropriate). This cache instance must be the only object that will be
89 // cache initialization, the files will be deleted and a new set will be
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/clang/Tooling/DependencyScanning/
DDependencyScanningFilesystem.h1 //===- DependencyScanningFilesystem.h - clang-scan-deps fs ===---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
29 /// Contents and directive tokens of a cached file entry. Single instance can
48 /// An in-memory representation of a file system entity that is of interest to
52 /// - opened file with contents and a stat value,
53 /// - opened file with contents, directive tokens and a stat value,
54 /// - directory entry with its stat value,
55 /// - filesystem error.
58 /// a regular file and a symlink). For this reason the status filename is empty
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/clang/Tooling/DependencyScanning/
DDependencyScanningFilesystem.h1 //===- DependencyScanningFilesystem.h - clang-scan-deps fs ===---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
29 /// Contents and directive tokens of a cached file entry. Single instance can
48 /// An in-memory representation of a file system entity that is of interest to
52 /// - opened file with contents and a stat value,
53 /// - opened file with contents, directive tokens and a stat value,
54 /// - directory entry with its stat value,
55 /// - filesystem error.
58 /// a regular file and a symlink). For this reason the status filename is empty
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang/Tooling/DependencyScanning/
DDependencyScanningFilesystem.h1 //===- DependencyScanningFilesystem.h - clang-scan-deps fs ===---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
29 /// Contents and directive tokens of a cached file entry. Single instance can
48 /// An in-memory representation of a file system entity that is of interest to
52 /// - opened file with contents and a stat value,
53 /// - opened file with contents, directive tokens and a stat value,
54 /// - directory entry with its stat value,
55 /// - filesystem error.
58 /// a regular file and a symlink). For this reason the status filename is empty
[all …]
/aosp_15_r20/trusty/user/app/storage/
Dblock_cache.c5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
57 const struct block_cache_entry* entry) { in block_cache_entry_data_is_valid() argument
58 return entry->state == BLOCK_ENTRY_DATA_CLEAN_DECRYPTED || in block_cache_entry_data_is_valid()
59 entry->state == BLOCK_ENTRY_DATA_CLEAN_ENCRYPTED || in block_cache_entry_data_is_valid()
60 entry->state == BLOCK_ENTRY_DATA_DIRTY_DECRYPTED || in block_cache_entry_data_is_valid()
61 entry->state == BLOCK_ENTRY_DATA_DIRTY_ENCRYPTED; in block_cache_entry_data_is_valid()
65 const struct block_cache_entry* entry) { in block_cache_entry_data_is_dirty() argument
66 return entry->state == BLOCK_ENTRY_DATA_DIRTY_DECRYPTED || in block_cache_entry_data_is_dirty()
67 entry->state == BLOCK_ENTRY_DATA_DIRTY_ENCRYPTED; in block_cache_entry_data_is_dirty()
[all …]
/aosp_15_r20/external/mtools/
H A Dvfat.c2 * Copyright 1996-2003,2005,2007-2009 Alain Knaff.
3 * This file is part of mtools.
20 * Miscellaneous VFAT-related functions
27 #include "file.h"
50 tildapos = -1; in autorename()
66 seqnum = seqnum * 10 + (uint8_t)(name[dotpos] - '0'); in autorename()
69 tildapos = -1; /* sequence number interrupted */ in autorename()
71 if(tildapos == -1) { in autorename()
73 if(dotpos > limit - 2) { in autorename()
74 tildapos = limit - 2; in autorename()
[all …]
/aosp_15_r20/external/mesa3d/src/util/tests/
H A Dcache_test.cpp24 /* A collection of unit tests for cache.c */
42 #include "util/mesa-sha1.h"
67 * This is equivalent to "rm -rf <dir>" with one bit of protection
71 * Returns 0 on success, -1 on any error.
77 return -1; in rmrf_local()
91 if (stat(full_path, &sb) != -1 && S_ISDIR(sb.st_mode)) in check_directories_created()
99 does_cache_contain(struct disk_cache *cache, const cache_key key) in does_cache_contain() argument
103 result = disk_cache_get(cache, key, NULL); in does_cache_contain()
114 cache_exists(struct disk_cache *cache) in cache_exists() argument
119 if (!cache) in cache_exists()
[all …]
/aosp_15_r20/external/cronet/components/nacl/browser/
H A Dpnacl_host.cc2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
31 // Delay to wait for initialization of the cache backend
34 void CloseBaseFile(base::File file) { in CloseBaseFile() argument
38 base::DoNothingWithBoundArgs(std::move(file))); in CloseBaseFile()
47 FileProxy(std::unique_ptr<base::File> file, PnaclHost* host);
52 std::unique_ptr<base::File> file_;
56 FileProxy::FileProxy(std::unique_ptr<base::File> file, PnaclHost* host) in FileProxy() argument
57 : file_(std::move(file)), host_(host) {} in FileProxy()
60 int rv = file_->Write(0, buffer->data(), buffer->size()); in Write()
[all …]
/aosp_15_r20/external/iproute2/lib/
H A Drt_names.c37 static int fread_id_name(FILE *fp, int *id, char *namebuf) in fread_id_name()
55 return -1; in fread_id_name()
63 rtnl_hash_initialize(const char *file, struct rtnl_hash_entry **hash, int size) in rtnl_hash_initialize() argument
65 struct rtnl_hash_entry *entry; in rtnl_hash_initialize() local
66 FILE *fp; in rtnl_hash_initialize()
71 fp = fopen(file, "r"); in rtnl_hash_initialize()
76 if (ret == -1) { in rtnl_hash_initialize()
78 file, namebuf); in rtnl_hash_initialize()
86 entry = malloc(sizeof(*entry)); in rtnl_hash_initialize()
87 entry->id = id; in rtnl_hash_initialize()
[all …]
/aosp_15_r20/external/squashfs-tools/kernel/fs/squashfs/
H A Dcache.c2 * Squashfs - a compressed read only filesystem for Linux
19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * cache.c
28 * This file implements a generic cache implementation used for both caches,
29 * plus functions layered ontop of the generic cache implementation to
32 * To avoid out of memory and fragmentation isssues with vmalloc the cache
35 * It should be noted that the cache is not used for file datablocks, these
36 * are decompressed and cached in the page-cache in the normal way. The
37 * cache is only used to temporarily cache fragment and metadata blocks
42 * have been packed with it, these because of locality-of-reference may be read
[all …]

12345678910>>...61