| /external/scudo/standalone/tests/ |
| D | quarantine_test.cpp | 1 //===-- quarantine_test.cpp -------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 31 static void deallocateCache(CacheT *Cache) { in deallocateCache() argument 32 while (scudo::QuarantineBatch *Batch = Cache->dequeueBatch()) in deallocateCache() 40 scudo::QuarantineBatch From; in TEST() local 41 From.init(FakePtr, 8UL); in TEST() 43 Into.merge(&From); in TEST() 51 EXPECT_EQ(From.Count, 0UL); in TEST() 52 EXPECT_EQ(From.Size, sizeof(scudo::QuarantineBatch)); in TEST() [all …]
|
| /external/python/httplib2/tests/ |
| D | test_cache.py | 12 # Test that can do a GET with cache and 'only-if-cached' 13 http = httplib2.Http(cache=tests.get_cache_path()) 17 uri, "GET", headers={"cache-control": "only-if-cached"} 24 # Test that can do a GET with no cache with 'only-if-cached' 25 http = httplib2.Http(cache=tests.get_cache_path()) 28 uri, "GET", headers={"cache-control": "only-if-cached"} 35 # Test that can do a GET with no cache with 'only-if-cached' 37 # that responds to the 'only-if-cached', so this 42 uri, "GET", headers={"cache-control": "only-if-cached"} 52 # impact if the cache is used [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
| D | CacheDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 41 import com.google.android.exoplayer2.upstream.cache.Cache.CacheException; 56 * A {@link DataSource} that reads and writes a {@link Cache}. Requests are fulfilled from the cache 57 * when possible. When data is not cached it is requested from an upstream {@link DataSource} and 58 * written into the cache. 65 private @MonotonicNonNull Cache cache; field in CacheDataSource.Factory 82 * Sets the cache that will be used. 86 * @param cache The cache that will be used. 89 public Factory setCache(Cache cache) { in setCache() argument [all …]
|
| D | Cache.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 27 * A cache that supports partial caching of resources. 33 * <li>A <em>cache key</em> uniquely identifies a resource. URIs are often suitable for use as 34 * cache keys, however this is not always the case. URIs are not suitable when caching 35 * resources obtained from a service that generates multiple URIs for the same underlying 37 * <li>A <em>cache span</em> is a byte range within a resource, which may or may not be cached. A 38 * cache span that's not cached is called a <em>hole span</em>. A cache span that is cached 39 * corresponds to a single underlying file in the cache. 42 public interface Cache { interface [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
| D | CacheDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 36 import com.google.android.exoplayer2.upstream.cache.Cache.CacheException; 50 * A {@link DataSource} that reads and writes a {@link Cache}. Requests are fulfilled from the cache 51 * when possible. When data is not cached it is requested from an upstream {@link DataSource} and 52 * written into the cache. 59 private @MonotonicNonNull Cache cache; field in CacheDataSource.Factory 76 * Sets the cache that will be used. 80 * @param cache The cache that will be used. 83 public Factory setCache(Cache cache) { in setCache() argument [all …]
|
| D | Cache.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 27 * A cache that supports partial caching of resources. 33 * <li>A <em>cache key</em> uniquely identifies a resource. URIs are often suitable for use as 34 * cache keys, however this is not always the case. URIs are not suitable when caching 35 * resources obtained from a service that generates multiple URIs for the same underlying 37 * <li>A <em>cache span</em> is a byte range within a resource, which may or may not be cached. A 38 * cache span that's not cached is called a <em>hole span</em>. A cache span that is cached 39 * corresponds to a single underlying file in the cache. 42 public interface Cache { interface [all …]
|
| /external/python/cachetools/docs/ |
| D | index.rst | 2 :mod:`cachetools` --- Extensible memoizing collections and decorators 11 For the purpose of this module, a *cache* is a mutable_ mapping_ of a 12 fixed maximum size. When the cache is full, i.e. by adding another 13 item the cache would exceed its maximum size, the cache must choose 14 which item(s) to discard based on a suitable `cache algorithm`_. In 15 general, a cache's size is the total size of its items, and an item's 18 item counts as :const:`1`, a cache's size is equal to the number of 19 its items, or ``len(cache)``. 21 Multiple cache classes based on different caching algorithms are 29 from cachetools import cached, cachedmethod, LRUCache, TTLCache [all …]
|
| /external/libwebsockets/include/libwebsockets/ |
| D | lws-cache-ttl.h | 2 * libwebsockets - small server side websockets and web server implementation 4 * Copyright (C) 2010 - 2021 Andy Green <andy@warmcat.com> 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 25 /** \defgroup lws_cache_ttl Cache supporting expiry 26 * ##Cache supporting expiry 29 * that have a "destroy-by date" and cache limits that will be observed. 32 * L1 / heap cache type, it can have parents and grandparents of other types 33 * which are accessible why writing / looking up and getting from the L1 cache. 34 * The outer "cache" layer may persistently store items to a backing store. 46 * you allocate new objects (to keep the whole cache under the specified limit), [all …]
|
| /external/grpc-grpc/tools/distrib/python/xds_protos/envoy/extensions/filters/http/cache/v3/ |
| D | cache_pb2.py | 1 # -*- coding: utf-8 -*- 3 # source: envoy/extensions/filters/http/cache/v3/cache.proto 5 from google.protobuf import descriptor as _descriptor 6 from google.protobuf import descriptor_pool as _descriptor_pool 7 from google.protobuf import symbol_database as _symbol_database 8 from google.protobuf.internal import builder as _builder 14 from envoy.config.route.v3 import route_components_pb2 as envoy_dot_config_dot_route_dot_v3_dot_rou… 15 from envoy.type.matcher.v3 import string_pb2 as envoy_dot_type_dot_matcher_dot_v3_dot_string__pb2 16 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 17 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 [all …]
|
| /external/mesa3d/src/gallium/drivers/svga/ |
| D | svga_screen_cache.c | 2 * Copyright 2008-2009 VMware, Inc. All rights reserved. 20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 49 assert(key->numMipLevels > 0); in svga_surface_size() 50 assert(key->numFaces > 0); in svga_surface_size() 51 assert(key->arraySize > 0); in svga_surface_size() 53 if (key->format == SVGA3D_BUFFER) { in svga_surface_size() 55 * against the cache size limit, so view them as zero-sized. in svga_surface_size() 60 svga_format_size(key->format, &bw, &bh, &bpb); in svga_surface_size() 64 for (i = 0; i < key->numMipLevels; i++) { in svga_surface_size() 65 unsigned w = u_minify(key->size.width, i); in svga_surface_size() [all …]
|
| /external/grpc-grpc/tools/distrib/python/xds_protos/envoy/config/filter/http/cache/v2alpha/ |
| D | cache_pb2.py | 1 # -*- coding: utf-8 -*- 3 # source: envoy/config/filter/http/cache/v2alpha/cache.proto 5 from google.protobuf import descriptor as _descriptor 6 from google.protobuf import descriptor_pool as _descriptor_pool 7 from google.protobuf import symbol_database as _symbol_database 8 from google.protobuf.internal import builder as _builder 14 from envoy.api.v2.route import route_components_pb2 as envoy_dot_api_dot_v2_dot_route_dot_route__co… 15 from envoy.type.matcher import string_pb2 as envoy_dot_type_dot_matcher_dot_string__pb2 16 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 17 from udpa.annotations import migrate_pb2 as udpa_dot_annotations_dot_migrate__pb2 [all …]
|
| /external/mesa3d/src/util/tests/ |
| D | cache_test.cpp | 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 24 /* A collection of unit tests for cache.c */ 41 #include "util/mesa-sha1.h" 66 * This is equivalent to "rm -rf <dir>" with one bit of protection 70 * Returns 0 on success, -1 on any error. 76 return -1; in rmrf_local() 90 if (stat(full_path, &sb) != -1 && S_ISDIR(sb.st_mode)) in check_directories_created() 98 does_cache_contain(struct disk_cache *cache, const cache_key key) in does_cache_contain() argument 102 result = disk_cache_get(cache, key, NULL); in does_cache_contain() 113 cache_exists(struct disk_cache *cache) in cache_exists() argument [all …]
|
| /external/squashfs-tools/kernel/fs/squashfs/ |
| D | cache.c | 2 * 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 …]
|
| /external/python/jinja/src/jinja2/ |
| D | bccache.py | 1 """The optional bytecode cache system. This is useful if you have very 16 from hashlib import sha1 17 from io import BytesIO 19 from .utils import open_if_exists 22 # Magic bytes to identify Jinja bytecode cache files. Contains the 34 and initialized by the bytecode cache and passed to the loading functions. 36 The buckets get an internal checksum from the cache assigned and use this 37 to automatically reject outdated cache material. Individual bytecode 38 cache subclasses don't have to care about cache invalidation. 52 """Loads bytecode from a file or file like object.""" [all …]
|
| /external/python/mako/mako/ |
| D | cache.py | 1 # mako/cache.py 2 # Copyright 2006-2023 the Mako authors and contributors <see AUTHORS file> 5 # the MIT License: http://www.opensource.org/licenses/mit-license.php 7 from mako import util 9 _cache_plugins = util.PluginLoader("mako.cache") 15 class Cache: class 17 """Represents a data content cache made available to the module 21 :class:`.Cache` by itself is mostly a 29 The construction of a :class:`.Cache` is part of the mechanics 31 cache is typically via the :attr:`.Template.cache` attribute. [all …]
|
| /external/libchrome/third_party/jinja2/ |
| D | bccache.py | 1 # -*- coding: utf-8 -*- 6 This module implements the bytecode cache system Jinja is optionally 17 from os import path, listdir 25 from hashlib import sha1 26 from jinja2.utils import open_if_exists 27 from jinja2._compat import BytesIO, pickle, PY2, text_type 62 and initialized by the bytecode cache and passed to the loading functions. 64 The buckets get an internal checksum from the cache assigned and use this 65 to automatically reject outdated cache material. Individual bytecode 66 cache subclasses don't have to care about cache invalidation. [all …]
|
| /external/apache-xml/src/main/java/org/apache/xpath/axes/ |
| D | NodeSequence.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 19 * $Id: NodeSequence.java 469367 2006-10-31 04:41:08Z minchau $ 43 protected int m_last = -1; 53 * A cache of a list of nodes obtained from the iterator so far. 55 * the cache is complete. 57 * Multiple NodeSequence objects may share the same cache. 62 * If this iterator needs to cache nodes that are fetched, they 71 * Get the cache (if any) of nodes obtained from 72 * the iterator so far. Note that the cache keeps 74 * at which point the cache is "complete". [all …]
|
| /external/autotest/utils/frozen_chromite/third_party/googleapiclient/discovery_cache/ |
| D | file_cache.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """File based cache for the discovery document. 17 The cache is stored in a single file so that multiple processes can 18 share the same cache. It locks the file whenever accesing to the 19 file. When the cache content is corrupted, it will be initialized with 20 an empty cache. 23 from __future__ import division 33 from oauth2client.contrib.locked_file import LockedFile 36 from oauth2client.locked_file import LockedFile 38 from . import base [all …]
|
| /external/tensorflow/tensorflow/core/platform/cloud/ |
| D | ram_file_block_cache.h | 7 http://www.apache.org/licenses/LICENSE-2.0 37 /// \brief An LRU block cache of file contents, keyed by {filename, offset}. 39 /// This class should be shared by read-only random access files on a remote 43 /// The callback executed when a block is not found in the cache, and needs to 44 /// be fetched from the backing filesystem. This callback is provided when the 45 /// cache is constructed. The returned Status should be OK as long as the 46 /// read from the remote filesystem succeeded (similar to the semantics of the 61 pruning_thread_.reset(env_->StartThread(ThreadOptions(), "TF_prune_FBC", in block_size_() 64 VLOG(1) << "GCS file block cache is " in block_size_() 77 /// Read `n` bytes from `filename` starting at `offset` into `out`. This [all …]
|
| /external/python/google-api-python-client/googleapiclient/discovery_cache/ |
| D | file_cache.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """File based cache for the discovery document. 17 The cache is stored in a single file so that multiple processes can 18 share the same cache. It locks the file whenever accesing to the 19 file. When the cache content is corrupted, it will be initialized with 20 an empty cache. 23 from __future__ import division 33 from oauth2client.contrib.locked_file import LockedFile 37 from oauth2client.locked_file import LockedFile 39 # oauth2client > 4.0.0 or google-auth [all …]
|
| /external/libwebsockets/READMEs/ |
| D | README.lws_cache.md | 3 lws_cache implements a single- or multi-level cache for generic payload items 6  8 L1 cache is always stored on heap, but it may be hooked up to additional levels 9 of cache objects with different backing storage. The last level always contains 14 formats and media, while being able to take advantage of a suitably-sized L1 15 heap cache to minimize the cost of repeated access. 17  20 caches in `minimal-examples/api-tests/api-test-lws_cache` 22 ## Cache size restriction, LRU and TTL 29 auto-expire if a non-zero TTL is provided when the object is created. A user [all …]
|
| /external/toolchain-utils/binary_search_tool/ |
| D | bisect_driver.py | 1 # -*- coding: utf-8 -*- 3 # Use of this source code is governed by a BSD-style license that can be 16 …m/a/google.com/chromeos-toolchain-team-home2/home/team-tools-and-scripts/bisecting-chromeos-compil… 19 https://docs.google.com/document/d/1yDgaUIa2O5w6dc3sSTe1ry-1ehKajTGJGQCbyn0fcEM 91 Log current working directory, current execargs, and a from-to relationship 97 log.write("%s -> %s\n" % (link_from, link_to)) 110 """Determine which cache an object belongs to. 114 determine where an object file should be linked from (good or bad). 136 Absolute object path from execution args (-o argument). If no object being 137 outputted, then return empty string. -o argument is checked only if -c is [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
| D | CacheDataSourceTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 68 private SimpleCache cache; field in CacheDataSourceTest 75 httpRequestHeaders.put("Test-key", "Test-val"); in setUp() 82 cacheKeyFactory = dataSpec -> customCacheKey; in setUp() 86 cache = in setUp() 100 for (String key : cache.getKeys()) { in fragmentSize() 101 for (CacheSpan cacheSpan : cache.getCachedSpans(key)) { in fragmentSize() 130 // Read and cache all data from upstream. in cacheAndReadFromLength_readsZeroBytes() 140 // Read from position == length. in cacheAndReadFromLength_readsZeroBytes() [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
| D | CacheDataSourceTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.android.exoplayer2.upstream.cache; 68 private SimpleCache cache; field in CacheDataSourceTest 75 httpRequestHeaders.put("Test-key", "Test-val"); in setUp() 82 cacheKeyFactory = dataSpec -> customCacheKey; in setUp() 86 cache = in setUp() 100 for (String key : cache.getKeys()) { in fragmentSize() 101 for (CacheSpan cacheSpan : cache.getCachedSpans(key)) { in fragmentSize() 130 // Read and cache all data from upstream. in cacheAndReadFromLength_readsZeroBytes() 140 // Read from position == length. in cacheAndReadFromLength_readsZeroBytes() [all …]
|
| /external/volley/core/src/main/java/com/android/volley/ |
| D | Cache.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 /** An interface for a cache keyed by a String with a byte array as data. */ 25 public interface Cache { interface 27 * Retrieves an entry from the cache. 29 * @param key Cache key 30 * @return An {@link Entry} or null in the event of a cache miss 36 * Adds or replaces an entry to the cache. 38 * @param key Cache key 39 * @param entry Data to store and metadata for cache coherency, TTL, etc. 44 * Performs any potentially long-running actions needed to initialize the cache; will be called [all …]
|