Home
last modified time | relevance | path

Searched refs:cacheKey (Results 1 – 25 of 38) sorted by relevance

12

/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieCompositionFactory.java80 …sk<LottieComposition> fromUrl(final Context context, final String url, @Nullable String cacheKey) { in fromUrl() argument
81 return cache(cacheKey, new Callable<LottieResult<LottieComposition>>() { in fromUrl()
109 String cacheKey = "asset_" + fileName;
110 return fromAsset(context, fileName, cacheKey);
122 …ieComposition> fromAsset(Context context, final String fileName, @Nullable final String cacheKey) {
125 return cache(cacheKey, new Callable<LottieResult<LottieComposition>>() {
128 return fromAssetSync(appContext, fileName, cacheKey);
144 String cacheKey = "asset_" + fileName;
145 return fromAssetSync(context, fileName, cacheKey);
158 …ult<LottieComposition> fromAssetSync(Context context, String fileName, @Nullable String cacheKey) {
[all …]
/external/volley/src/main/java/com/android/volley/
DWaitingRequestManager.java89 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/volley/src/main/java/com/android/volley/toolbox/
DImageLoader.java172 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/src/main/java/com/airbnb/lottie/model/
DLottieCompositionCache.java26 public LottieComposition get(@Nullable String cacheKey) { in get() argument
27 if (cacheKey == null) { in get()
30 return cache.get(cacheKey); in get()
33 public void put(@Nullable String cacheKey, LottieComposition composition) { in put() argument
34 if (cacheKey == null) { in put()
37 cache.put(cacheKey, composition); in put()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDownloadBuilder.java44 @Nullable private String cacheKey; field in DownloadBuilder
90 @Nullable String cacheKey, in DownloadBuilder() argument
96 this.cacheKey = cacheKey; in DownloadBuilder()
123 public DownloadBuilder setCacheKey(@Nullable String cacheKey) { in setCacheKey() argument
124 this.cacheKey = cacheKey; in setCacheKey()
190 new DownloadRequest(id, type, uri, streamKeys, cacheKey, customMetadata); in build()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DRepresentation.java114 @Nullable String cacheKey) { in newInstance() argument
122 cacheKey, in newInstance()
189 @Nullable private final String cacheKey; field in Representation.SingleSegmentRepresentation
214 @Nullable String cacheKey, in newInstance() argument
221 revisionId, format, uri, segmentBase, inbandEventStreams, cacheKey, contentLength); in newInstance()
239 @Nullable String cacheKey, in SingleSegmentRepresentation() argument
244 this.cacheKey = cacheKey; in SingleSegmentRepresentation()
267 return cacheKey; in getCacheKey()
/external/skqp/src/gpu/
DGrImageTextureMaker.cpp32 GrUniqueKey cacheKey; in makeCopyKey() local
33 fImage->makeCacheKeyFromOrigKey(fOriginalKey, &cacheKey); in makeCopyKey()
34 MakeCopyKeyFromOrigKey(cacheKey, stretch, paramsCopyKey); in makeCopyKey()
71 GrUniqueKey cacheKey; in makeCopyKey() local
73 GrUniqueKey::Builder builder(&cacheKey, fOriginalKey, kDomain, 0, "Image"); in makeCopyKey()
74 MakeCopyKeyFromOrigKey(cacheKey, stretch, paramsCopyKey); in makeCopyKey()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCachedRegionTracker.java39 private final String cacheKey; field in CachedRegionTracker
45 public CachedRegionTracker(Cache cache, String cacheKey, ChunkIndex chunkIndex) { in CachedRegionTracker() argument
47 this.cacheKey = cacheKey; in CachedRegionTracker()
53 NavigableSet<CacheSpan> cacheSpans = cache.addListener(cacheKey, this); in CachedRegionTracker()
65 cache.removeListener(cacheKey, this); in release()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DPluralRulesLoader.java190 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()
DResourceBundleWrapper.java150 String cacheKey = disableFallback ? name : name + '#' + defaultID; in instantiateBundle() local
151 return BUNDLE_CACHE.getInstance(cacheKey, new Loader() { in instantiateBundle()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPluralRulesLoader.java188 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()
DResourceBundleWrapper.java148 String cacheKey = disableFallback ? name : name + '#' + defaultID; in instantiateBundle() local
149 return BUNDLE_CACHE.getInstance(cacheKey, new Loader() { in instantiateBundle()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java56 String cacheKey = keyAlgorithm + "-" + keyLengthBits; in getPrivateKey() local
57 result = cachedKeys.get(cacheKey); in getPrivateKey()
62 cachedKeys.put(cacheKey, result); in getPrivateKey()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java58 String cacheKey = keyAlgorithm + "-" + keyLengthBits; in getPrivateKey() local
59 result = cachedKeys.get(cacheKey); in getPrivateKey()
64 cachedKeys.put(cacheKey, result); in getPrivateKey()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java201 public static DownloadHelper forProgressive(Uri uri, @Nullable String cacheKey) { in forProgressive() argument
205 cacheKey, in forProgressive()
219 public static DownloadHelper forProgressive(Context context, Uri uri, @Nullable String cacheKey) { in forProgressive() argument
223 cacheKey, in forProgressive()
490 @Nullable private final String cacheKey; field in DownloadHelper
522 @Nullable String cacheKey, in DownloadHelper() argument
528 this.cacheKey = cacheKey; in DownloadHelper()
783 id, downloadType, uri, /* streamKeys= */ Collections.emptyList(), cacheKey, data); in getDownloadRequest()
797 return new DownloadRequest(id, downloadType, uri, streamKeys, cacheKey, data); in getDownloadRequest()
DSegmentDownloader.java243 String cacheKey = keyFactory.buildCacheKey(segment.dataSpec); in mergeSegments() local
244 @Nullable Integer lastIndex = lastIndexByCacheKey.get(cacheKey); in mergeSegments()
249 lastIndexByCacheKey.put(cacheKey, nextOutIndex); in mergeSegments()
/external/volley/src/test/java/com/android/volley/mock/
DMockRequest.java50 public void setCacheKey(String cacheKey) { in setCacheKey() argument
51 mCacheKey = cacheKey; in setCacheKey()
/external/cldr/tools/java/org/unicode/cldr/util/
DSimpleFactory.java539 final Object cacheKey; in handleMake() local
544 cacheKey = localeName; in handleMake()
548 cacheKey = new CLDRCacheKey(localeName, resolved, minimalDraftStatus, parentDirs); in handleMake()
551 result = combinedCache.getIfPresent(cacheKey); in handleMake()
566 Object returned = mapToSynchronizeOn.get(cacheKey); in handleMake()
602 mapToSynchronizeOn.put(cacheKey, result); in handleMake()
/external/testng/src/main/java/org/testng/internal/
DMethodGroupsHelper.java289 Pair<String, String> cacheKey = Pair.create(pattern.pattern(), group); in isMatch() local
290 Boolean match = MATCH_CACHE.get(cacheKey); in isMatch()
293 MATCH_CACHE.put(cacheKey, match); in isMatch()
DMethodHelper.java90 Pair<String, String> cacheKey = Pair.create(regexp, methodName); in findDependedUponMethods() local
91 Boolean match = MATCH_CACHE.get(cacheKey); in findDependedUponMethods()
94 MATCH_CACHE.put(cacheKey, match); in findDependedUponMethods()
/external/skqp/src/gpu/ccpr/
DGrCCPathCache.h205 const GrCCPathCache::Key& cacheKey() const { SkASSERT(fCacheKey); return *fCacheKey; } in cacheKey() function
244 GrCCPathCacheEntry(sk_sp<GrCCPathCache::Key> cacheKey, const MaskTransform& maskTransform) in GrCCPathCacheEntry() argument
245 : fCacheKey(std::move(cacheKey)), fMaskTransform(maskTransform) { in GrCCPathCacheEntry()
/external/tensorflow/tensorflow/core/platform/hadoop/
Dhadoop_file_system.cc166 string cacheKey(scheme.data(), scheme.size()); in Connect() local
191 cacheKey += nn; in Connect()
194 if (connectionCache_.find(cacheKey) == connectionCache_.end()) { in Connect()
202 connectionCache_[cacheKey] = cacheFs; in Connect()
204 *fs = connectionCache_[cacheKey]; in Connect()
/external/llvm-project/libcxx/utils/libcxx/test/
Ddsl.py35 cacheKey = pickle.dumps(extractCacheKey(*args, **kwargs))
36 if cacheKey not in cache:
37 cache[cacheKey] = function(*args, **kwargs)
38 return cache[cacheKey]
/external/vogar/src/vogar/android/
DAndroidSdk.java323 String cacheKey = null; in dex() local
326 cacheKey = dexCache.makeKey(classpathSubKey, multidexSubKey); in dex()
327 boolean cacheHit = dexCache.getFromCache(output, cacheKey); in dex()
392 dexCache.insert(cacheKey, output); in dex()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngine.java254 public void onResourceReleased(Key cacheKey, EngineResource resource) { in onResourceReleased() argument
255 activeResources.remove(cacheKey); in onResourceReleased()
257 cache.put(cacheKey, resource); in onResourceReleased()

12