/external/lottie/lottie/src/main/java/com/airbnb/lottie/ |
D | LottieCompositionFactory.java | 129 …tieComposition> fromUrl(final Context context, final String url, @Nullable final String cacheKey) { in fromUrl() argument 130 return cache(cacheKey, () -> { in fromUrl() 131 …ttieResult<LottieComposition> result = L.networkFetcher(context).fetchSync(context, url, cacheKey); in fromUrl() 132 if (cacheKey != null && result.getValue() != null) { in fromUrl() 133 LottieCompositionCache.getInstance().put(cacheKey, result.getValue()); in fromUrl() 156 …ttieResult<LottieComposition> fromUrlSync(Context context, String url, @Nullable String cacheKey) { in fromUrlSync() argument 157 … LottieComposition cachedComposition = cacheKey == null ? null : LottieCompositionCache.getInstanc… in fromUrlSync() 161 …ttieResult<LottieComposition> result = L.networkFetcher(context).fetchSync(context, url, cacheKey); in fromUrlSync() 162 if (cacheKey != null && result.getValue() != null) { in fromUrlSync() 163 LottieCompositionCache.getInstance().put(cacheKey, result.getValue()); in fromUrlSync() [all …]
|
/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/endpointdiscovery/ |
D | EndpointDiscoveryRequest.java | 33 private final String cacheKey; field in EndpointDiscoveryRequest 41 this.cacheKey = builder.cacheKey; in EndpointDiscoveryRequest() 58 public Optional<String> cacheKey() { in cacheKey() method in EndpointDiscoveryRequest 59 return Optional.ofNullable(cacheKey); in cacheKey() 110 Builder cacheKey(String cacheKey); in cacheKey() method 132 private String cacheKey; field in EndpointDiscoveryRequest.BuilderImpl 144 this.cacheKey = request.cacheKey; in BuilderImpl() 168 public Builder cacheKey(String cacheKey) { in cacheKey() argument 169 this.cacheKey = cacheKey; in cacheKey()
|
/external/volley/core/src/main/java/com/android/volley/ |
D | WaitingRequestManager.java | 89 String cacheKey = request.getCacheKey(); in onResponseReceived() local 92 waitingRequests = mWaitingRequests.remove(cacheKey); in onResponseReceived() 98 waitingRequests.size(), cacheKey); in onResponseReceived() 110 String cacheKey = request.getCacheKey(); in onNoUsableResponseReceived() local 111 List<Request<?>> waitingRequests = mWaitingRequests.remove(cacheKey); in onNoUsableResponseReceived() 116 waitingRequests.size(), cacheKey); in onNoUsableResponseReceived() 119 mWaitingRequests.put(cacheKey, waitingRequests); in onNoUsableResponseReceived() 149 String cacheKey = request.getCacheKey(); in maybeAddToWaitingRequests() local 152 if (mWaitingRequests.containsKey(cacheKey)) { in maybeAddToWaitingRequests() 154 List<Request<?>> stagedRequests = mWaitingRequests.get(cacheKey); in maybeAddToWaitingRequests() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/ |
D | NetworkFetcher.java | 38 …ult<LottieComposition> fetchSync(Context context, @NonNull String url, @Nullable String cacheKey) { in fetchSync() argument 39 LottieComposition result = fetchFromCache(context, url, cacheKey); in fetchSync() 46 return fetchFromNetwork(context, url, cacheKey); in fetchSync() 51 …LottieComposition fetchFromCache(Context context, @NonNull String url, @Nullable String cacheKey) { in fetchFromCache() argument 52 if (cacheKey == null || networkCache == null) { in fetchFromCache() 65 …t = LottieCompositionFactory.fromZipStreamSync(context, new ZipInputStream(inputStream), cacheKey); in fetchFromCache() 69 …ult = LottieCompositionFactory.fromJsonInputStreamSync(new GZIPInputStream(inputStream), cacheKey); in fetchFromCache() 75 result = LottieCompositionFactory.fromJsonInputStreamSync(inputStream, cacheKey); in fetchFromCache() 85 …tieComposition> fetchFromNetwork(Context context, @NonNull String url, @Nullable String cacheKey) { in fetchFromNetwork() argument 94 …sult<LottieComposition> result = fromInputStream(context, url, inputStream, contentType, cacheKey); in fetchFromNetwork() [all …]
|
/external/volley/core/src/main/java/com/android/volley/toolbox/ |
D | ImageLoader.java | 172 String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType); 173 return mCache.getBitmap(cacheKey) != null; 224 final String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType); 227 Bitmap cachedBitmap = mCache.getBitmap(cacheKey); 239 new ImageContainer(null, requestUrl, cacheKey, imageListener); 245 BatchedImageRequest request = mInFlightRequests.get(cacheKey); 247 request = mBatchedResponses.get(cacheKey); 258 makeImageRequest(requestUrl, maxWidth, maxHeight, scaleType, cacheKey); 261 mInFlightRequests.put(cacheKey, new BatchedImageRequest(newRequest, imageContainer)); 270 final String cacheKey) { [all …]
|
/external/lottie/lottie-compose/src/main/java/com/airbnb/lottie/compose/ |
D | rememberLottieComposition.kt | 81 cacheKey: String? = DefaultCacheKey, in <lambda>() 88 remember(spec, cacheKey) { lottieTask(context, spec, cacheKey, isWarmingCache = true) } in <lambda>() 89 LaunchedEffect(spec, cacheKey) { in <lambda>() 100 cacheKey, in <lambda>() 121 cacheKey: String?, in lottieComposition() 123 val task = requireNotNull(lottieTask(context, spec, cacheKey, isWarmingCache = false)) { in lottieComposition() 136 cacheKey: String?, in lottieTask() 141 if (cacheKey == DefaultCacheKey) { in lottieTask() 144 LottieCompositionFactory.fromRawRes(context, spec.resId, cacheKey) in lottieTask() 148 if (cacheKey == DefaultCacheKey) { in lottieTask() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/ |
D | LottieCompositionCache.java | 25 public LottieComposition get(@Nullable String cacheKey) { in get() argument 26 if (cacheKey == null) { in get() 29 return cache.get(cacheKey); in get() 32 public void put(@Nullable String cacheKey, LottieComposition composition) { in put() argument 33 if (cacheKey == null) { in put() 36 cache.put(cacheKey, composition); in put()
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | BufferVk.h | 81 VertexConversionBuffer(vk::Renderer *renderer, const CacheKey &cacheKey); 86 bool match(const CacheKey &cacheKey) in match() argument 89 if (mCacheKey.formatID != cacheKey.formatID || mCacheKey.stride != cacheKey.stride || in match() 90 mCacheKey.offsetMustMatchExactly != cacheKey.offsetMustMatchExactly || in match() 91 mCacheKey.hostVisible != cacheKey.hostVisible) in match() 97 if (mCacheKey.offset == cacheKey.offset) in match() 105 if (!cacheKey.offsetMustMatchExactly) in match() 107 int64_t offsetGap = cacheKey.offset - mCacheKey.offset; in match() 108 if ((offsetGap % cacheKey.stride) == 0) in match() 110 if (cacheKey.offset < mCacheKey.offset) in match() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | DownloadBuilder.java | 45 @Nullable private String cacheKey; field in DownloadBuilder 94 @Nullable String cacheKey, in DownloadBuilder() argument 101 this.cacheKey = cacheKey; in DownloadBuilder() 144 public DownloadBuilder setCacheKey(@Nullable String cacheKey) { in setCacheKey() argument 145 this.cacheKey = cacheKey; in setCacheKey() 235 .setCustomCacheKey(cacheKey) in build()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | DownloadBuilder.java | 45 @Nullable private String cacheKey; field in DownloadBuilder 94 @Nullable String cacheKey, in DownloadBuilder() argument 101 this.cacheKey = cacheKey; in DownloadBuilder() 134 public DownloadBuilder setCacheKey(@Nullable String cacheKey) { in setCacheKey() argument 135 this.cacheKey = cacheKey; in setCacheKey() 205 .setCustomCacheKey(cacheKey) in build()
|
/external/moshi/moshi/src/main/java/com/squareup/moshi/ |
D | Moshi.java | 127 Object cacheKey = cacheKey(type, annotations); in adapter() local 129 JsonAdapter<?> result = adapterCache.get(cacheKey); in adapter() 140 JsonAdapter<T> adapterFromCall = lookupChain.push(type, fieldName, cacheKey); in adapter() 198 private Object cacheKey(Type type, Set<? extends Annotation> annotations) { in cacheKey() method in Moshi 323 <T> JsonAdapter<T> push(Type type, @Nullable String fieldName, Object cacheKey) { 327 if (lookup.cacheKey.equals(cacheKey)) { 335 Lookup<Object> lookup = new Lookup<>(type, fieldName, cacheKey); 362 JsonAdapter<?> replaced = adapterCache.put(lookup.cacheKey, lookup.adapter); 365 adapterCache.put(lookup.cacheKey, replaced); 397 final Object cacheKey; [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/ |
D | Representation.java | 104 @Nullable String cacheKey) { in newInstance() argument 114 cacheKey, in newInstance() 185 @Nullable private final String cacheKey; field in Representation.SingleSegmentRepresentation 210 @Nullable String cacheKey, in newInstance() argument 225 cacheKey, in newInstance() 248 @Nullable String cacheKey, in SingleSegmentRepresentation() argument 260 this.cacheKey = cacheKey; in SingleSegmentRepresentation() 283 return cacheKey; in getCacheKey()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/ |
D | Representation.java | 104 @Nullable String cacheKey) { in newInstance() argument 114 cacheKey, in newInstance() 185 @Nullable private final String cacheKey; field in Representation.SingleSegmentRepresentation 210 @Nullable String cacheKey, in newInstance() argument 225 cacheKey, in newInstance() 248 @Nullable String cacheKey, in SingleSegmentRepresentation() argument 260 this.cacheKey = cacheKey; in SingleSegmentRepresentation() 283 return cacheKey; in getCacheKey()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | CachedRegionTracker.java | 41 private final String cacheKey; field in CachedRegionTracker 47 public CachedRegionTracker(Cache cache, String cacheKey, ChunkIndex chunkIndex) { in CachedRegionTracker() argument 49 this.cacheKey = cacheKey; in CachedRegionTracker() 55 NavigableSet<CacheSpan> cacheSpans = cache.addListener(cacheKey, this); in CachedRegionTracker() 67 cache.removeListener(cacheKey, this); in release()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | CachedRegionTracker.java | 41 private final String cacheKey; field in CachedRegionTracker 47 public CachedRegionTracker(Cache cache, String cacheKey, ChunkIndex chunkIndex) { in CachedRegionTracker() argument 49 this.cacheKey = cacheKey; in CachedRegionTracker() 55 NavigableSet<CacheSpan> cacheSpans = cache.addListener(cacheKey, this); in CachedRegionTracker() 67 cache.removeListener(cacheKey, this); in release()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheWriter.java | 52 private final String cacheKey; field in CacheWriter 80 cacheKey = dataSource.getCacheKeyFactory().buildCacheKey(dataSpec); in CacheWriter() 112 bytesCached = cache.getCachedBytes(cacheKey, dataSpec.position, dataSpec.length); in cache() 116 long contentLength = ContentMetadata.getContentLength(cache.getContentMetadata(cacheKey)); in cache() 127 long blockLength = cache.getCachedLength(cacheKey, nextPosition, maxRemainingLength); in cache()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheWriter.java | 52 private final String cacheKey; field in CacheWriter 80 cacheKey = dataSource.getCacheKeyFactory().buildCacheKey(dataSpec); in CacheWriter() 112 bytesCached = cache.getCachedBytes(cacheKey, dataSpec.position, dataSpec.length); in cache() 116 long contentLength = ContentMetadata.getContentLength(cache.getContentMetadata(cacheKey)); in cache() 127 long blockLength = cache.getCachedLength(cacheKey, nextPosition, maxRemainingLength); in cache()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | PluralRulesLoader.java | 190 String cacheKey = rulesId + "/" + rangesId; // could end with "/null" (this is OK) in getOrCreateRulesForLocale() local 195 hasRules = pluralRulesCache.containsKey(cacheKey); in getOrCreateRulesForLocale() 197 rules = pluralRulesCache.get(cacheKey); // can be null in getOrCreateRulesForLocale() 222 if (pluralRulesCache.containsKey(cacheKey)) { in getOrCreateRulesForLocale() 223 rules = pluralRulesCache.get(cacheKey); in getOrCreateRulesForLocale() 225 pluralRulesCache.put(cacheKey, rules); // can be null in getOrCreateRulesForLocale()
|
/external/icu/icu4j/main/core/src/main/java/com/ibm/icu/impl/ |
D | PluralRulesLoader.java | 188 String cacheKey = rulesId + "/" + rangesId; // could end with "/null" (this is OK) in getOrCreateRulesForLocale() local 193 hasRules = pluralRulesCache.containsKey(cacheKey); in getOrCreateRulesForLocale() 195 rules = pluralRulesCache.get(cacheKey); // can be null in getOrCreateRulesForLocale() 220 if (pluralRulesCache.containsKey(cacheKey)) { in getOrCreateRulesForLocale() 221 rules = pluralRulesCache.get(cacheKey); in getOrCreateRulesForLocale() 223 pluralRulesCache.put(cacheKey, rules); // can be null in getOrCreateRulesForLocale()
|
/external/lottie/sample-compose/src/main/java/com/airbnb/lottie/sample/compose/examples/ |
D | ImagesExamplesPage.kt | 59 cacheKey = null, in InlineImage() 72 cacheKey = null, in ImageAssets() 87 cacheKey = null, in DynamicProperties() 107 cacheKey = null, in StoredOnImageAsset()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 58 String cacheKey = keyAlgorithm + "-" + keyLengthBits; in getPrivateKey() local 59 result = cachedKeys.get(cacheKey); in getPrivateKey() 64 cachedKeys.put(cacheKey, result); in getPrivateKey()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 56 String cacheKey = keyAlgorithm + "-" + keyLengthBits; in getPrivateKey() local 57 result = cachedKeys.get(cacheKey); in getPrivateKey() 62 cachedKeys.put(cacheKey, result); in getPrivateKey()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/ |
D | DashUtilTest.java | 88 String cacheKey = DashUtil.resolveCacheKey(representation, rangedUri); in resolveCacheKey_representationCacheKeyIsNull_resolvesRangedUriWithFirstBaseUrl() local 90 assertThat(cacheKey).isEqualTo("http://www.google.com/path/to/resource"); in resolveCacheKey_representationCacheKeyIsNull_resolvesRangedUriWithFirstBaseUrl() 110 String cacheKey = DashUtil.resolveCacheKey(representation, rangedUri); in resolveCacheKey_representationCacheKeyDefined_usesRepresentationCacheKey() local 112 assertThat(cacheKey).isEqualTo("cacheKey"); in resolveCacheKey_representationCacheKeyDefined_usesRepresentationCacheKey()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/ |
D | DashUtilTest.java | 88 String cacheKey = DashUtil.resolveCacheKey(representation, rangedUri); in resolveCacheKey_representationCacheKeyIsNull_resolvesRangedUriWithFirstBaseUrl() local 90 assertThat(cacheKey).isEqualTo("http://www.google.com/path/to/resource"); in resolveCacheKey_representationCacheKeyIsNull_resolvesRangedUriWithFirstBaseUrl() 110 String cacheKey = DashUtil.resolveCacheKey(representation, rangedUri); in resolveCacheKey_representationCacheKeyDefined_usesRepresentationCacheKey() local 112 assertThat(cacheKey).isEqualTo("cacheKey"); in resolveCacheKey_representationCacheKeyDefined_usesRepresentationCacheKey()
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | CertBlocklistImpl.java | 291 ByteArray cacheKey = new ByteArray(encodedPublicKey); in isPublicKeyBlockListed() local 292 Boolean cachedResult = cache.get(cacheKey); in isPublicKeyBlockListed() 298 cache.put(cacheKey, true); in isPublicKeyBlockListed() 304 cache.put(cacheKey, true); in isPublicKeyBlockListed() 308 cache.put(cacheKey, false); in isPublicKeyBlockListed()
|