/packages/modules/DnsResolver/ |
D | res_cache.cpp | 987 cache = std::make_unique<Cache>(); in NetConfig() 993 std::unique_ptr<Cache> cache; member 1018 static bool cache_has_pending_request_locked(Cache* cache, const Entry* key, in cache_has_pending_request_locked() argument 1020 if (!cache || !key) return false; in cache_has_pending_request_locked() 1022 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked() 1023 Cache::pending_req_info* prev = &cache->pending_requests; in cache_has_pending_request_locked() 1043 static void cache_notify_waiting_tid_locked(struct Cache* cache, const Entry* key) { in cache_notify_waiting_tid_locked() argument 1044 if (!cache || !key) return; in cache_notify_waiting_tid_locked() 1046 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_notify_waiting_tid_locked() 1047 Cache::pending_req_info* prev = &cache->pending_requests; in cache_notify_waiting_tid_locked() [all …]
|
D | DnsTlsSessionCache.cpp | 44 DnsTlsSessionCache* cache = reinterpret_cast<DnsTlsSessionCache*>( in newSessionCallback() local 46 if (!cache) { in newSessionCallback() 51 cache->recordSession(session); in newSessionCallback()
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
D | LruCacheUnitTests.java | 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testPut() local 12 cache.put(key, value); in testPut() 13 assertEquals(value, cache.get(key)); in testPut() 17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testTracingInUsedObject() local 20 cache.put(key, value); in testTracingInUsedObject() 22 cache.put(i + 10, i * i); in testTracingInUsedObject() 25 assertEquals(value, cache.get(key)); in testTracingInUsedObject() 29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testLruAlgorithm() local 30 cache.put(0, new Integer(0)); in testLruAlgorithm() 32 cache.put(i + 1, i * i); in testLruAlgorithm() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | CacheProcessing.java | 22 import com.android.gallery3d.filtershow.cache.BitmapCache; 37 Bitmap cache; field in CacheProcessing.CacheStep 122 environment.cache(source); in apply() 169 environment.cache(cacheStep.cache); in process() 181 && mSteps.elementAt(findBaseImageIndex).cache == null) { in process() 184 cacheBitmap = mSteps.elementAt(findBaseImageIndex).cache; in process() 200 environment.cache(prev); in process() 224 if (step.cache == null) { in process() 231 step.cache = cacheBitmap; in process() 235 environment.cache(originalCopy); in process() [all …]
|
D | FilterEnvironment.java | 24 import com.android.gallery3d.filtershow.cache.BitmapCache; 58 public void setBitmapCache(BitmapCache cache) { in setBitmapCache() argument 59 mBitmapCache = cache; in setBitmapCache() 62 public void cache(Buffer buffer) { in cache() method in FilterEnvironment 63 mBitmapCache.cache(buffer); in cache() 66 public void cache(Bitmap bitmap) { in cache() method in FilterEnvironment 67 mBitmapCache.cache(bitmap); in cache() 137 cache(bitmap); in applyRepresentation()
|
D | Buffer.java | 24 import com.android.gallery3d.filtershow.cache.BitmapCache; 37 BitmapCache cache = PrimaryImage.getImage().getBitmapCache(); in Buffer() local 38 mBitmap = cache.getBitmapCopy(bitmap, BitmapCache.PREVIEW_CACHE); in Buffer() 91 BitmapCache cache = PrimaryImage.getImage().getBitmapCache(); in remove() local 92 if (cache.cache(mBitmap)) { in remove()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | MediaCacheManager.java | 50 MediaCache<?> cache = mCaches.get(id); in getOrCreateMediaCacheById() local 51 if (cache == null) { in getOrCreateMediaCacheById() 52 cache = createMediaCacheById(id); in getOrCreateMediaCacheById() 53 if (cache != null) { in getOrCreateMediaCacheById() 54 mCaches.put(id, cache); in getOrCreateMediaCacheById() 57 return cache; in getOrCreateMediaCacheById() 61 final MediaCache<?> cache = getOrCreateMediaCacheById(cacheId); in getOrCreateBitmapPoolForCache() local 62 if (cache != null && cache instanceof PoolableImageCache) { in getOrCreateBitmapPoolForCache() 63 return ((PoolableImageCache) cache).asReusableBitmapPool(); in getOrCreateBitmapPoolForCache()
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | contact_lookup_result.proto | 39 // Number was found in Dialer's local cache but we don't know how it was 43 // Number was found in Dialer's local cache and was originally identified 47 // Number was found in Dialer's local cache and was originally identified 51 // Number was found in Dialer's local cache and was originally identified 55 // Number was found in Dialer's local cache and was originally identified 59 // Number was found in Dialer's local cache and was originally identified 64 // Number was found in Dialer's local cache and was originally identified 71 // Number was found in Dialer's local cache and was originally identified 78 // Number was found in Dialer's local cache and was originally identified 85 // Number was found in Dialer's local cache and was originally identified [all …]
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ExpirableCache.java | 103 private LruCache<K, CachedValue<V>> cache; field in ExpirableCache 105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() argument 106 this.cache = cache; in ExpirableCache() 121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() argument 122 return new ExpirableCache<K, V>(cache); in create() 150 return cache.get(key); in getCachedValue() 193 cache.put(key, newCachedValue(value)); in put()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | SplitAggregateView.java | 240 SplitAggregateItemCache cache = (SplitAggregateItemCache)convertView.getTag(); in getView() local 241 if (cache == null) { in getView() 242 cache = new SplitAggregateItemCache(); in getView() 243 cache.name = (TextView)convertView.findViewById(R.id.name); in getView() 244 cache.additionalData = (TextView)convertView.findViewById(R.id.additionalData); in getView() 245 cache.sourceIcon = (ImageView)convertView.findViewById(R.id.sourceIcon); in getView() 246 convertView.setTag(cache); in getView() 250 cache.name.setText(info.name); in getView() 251 cache.additionalData.setText(info.getAdditionalData()); in getView() 259 cache.sourceIcon.setImageDrawable(icon); in getView() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MemoryCacheManager.java | 45 public void registerMemoryCache(final MemoryCache cache) { in registerMemoryCache() argument 47 mMemoryCaches.add(cache); in registerMemoryCache() 54 public void unregisterMemoryCache(final MemoryCache cache) { in unregisterMemoryCache() argument 56 mMemoryCaches.remove(cache); in unregisterMemoryCache() 71 for (final MemoryCache cache : shallowCopy) { in reclaimMemory() 72 cache.reclaim(); in reclaimMemory()
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactInfoCache.java | 54 private final ExpirableCache<NumberWithCountryIso, ContactInfo> cache; field in ContactInfoCache 93 cache = internalCache; in ContactInfoCache() 110 ExpirableCache.CachedValue<ContactInfo> cachedInfo = cache.getCachedValue(numberCountryIso); in getValue() 117 cache.put(numberCountryIso, ContactInfo.EMPTY); in getValue() 198 ContactInfo existingInfo = cache.getPossiblyExpired(numberCountryIso); in queryContactInfo() 213 cache.put(numberCountryIso, info); in queryContactInfo() 267 cache.expireAll(); in invalidate() 327 cache.put(numberCountryIso, contactInfo); in injectContactInfoForTest()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 228 ArrayList<MediaItem> cache = null; in getItem() local 233 cache = mCacheRef.get(); in getItem() 234 if (cache == null) { in getItem() 240 cache = mBaseSet.getMediaItem(index, PAGE_SIZE); in getItem() 241 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); in getItem() 245 if (index < mStartPos || index >= mStartPos + cache.size()) { in getItem() 249 return cache.get(index - mStartPos); in getItem()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | CacheManager.java | 46 BlobCache cache = sCacheMap.get(filename); in getCache() local 47 if (cache == null) { in getCache() 51 cache = new BlobCache(path, maxEntries, maxBytes, false, in getCache() 53 sCacheMap.put(filename, cache); in getCache() 58 return cache; in getCache()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | LauncherIcons.java | 131 IconCache cache = LauncherAppState.getInstance(mContext).getIconCache(); in createShortcutIcon() local 147 unbadgedBitmap = cache.getDefaultIcon(Process.myUserHandle()).icon; in createShortcutIcon() 158 final ItemInfoWithIcon badge = getShortcutInfoBadge(shortcutInfo, cache); in createShortcutIcon() 168 public ItemInfoWithIcon getShortcutInfoBadge(ShortcutInfo shortcutInfo, IconCache cache) { in getShortcutInfoBadge() argument 180 cache.getTitleAndIcon(appInfo, false); in getShortcutInfoBadge() 184 cache.getTitleAndIconForApp(pkgInfo, false); in getShortcutInfoBadge()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseModelUpdateTaskTestCase.java | 28 import com.android.launcher3.icons.cache.CachingLogic; 148 HashMap<String, Field> cache = fieldCache.get(clazz); in initItem() local 149 if (cache == null) { in initItem() 150 cache = new HashMap<>(); in initItem() 155 cache.put(f.getName(), f); in initItem() 159 fieldCache.put(clazz, cache); in initItem() 165 Field f = cache.get(fieldData[0]); in initItem()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncMessagesAction.java | 226 final SyncManager.ThreadInfoCache cache = syncManager.getThreadInfoCache(); in doBackgroundWork() local 227 cache.clear(); in doBackgroundWork() 245 messagesToDelete, maxMessagesToScan, maxMessagesToUpdate, cache); in doBackgroundWork() 281 final int maxMessagesToUpdate, final ThreadInfoCache cache) { in syncCursorPair() argument 306 smsToAdd, mmsToAdd, messagesToDelete, cache); in syncCursorPair() 320 setMmsSenders(mmsToAdd, cache); in syncCursorPair() 579 final ThreadInfoCache cache) { in setMmsSenders() argument 588 senderId = getMmsSender(mms, cache); in setMmsSenders() 602 private String getMmsSender(final MmsMessage mms, final ThreadInfoCache cache) { in getMmsSender() argument 603 final List<String> recipients = cache.getThreadRecipients(mms.mThreadId); in getMmsSender()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | BitmapCache.java | 17 package com.android.gallery3d.filtershow.cache; 117 public void setCacheProcessing(CacheProcessing cache) { in setCacheProcessing() argument 118 mCacheProcessing = cache; in setCacheProcessing() 121 public void cache(Buffer buffer) { in cache() method in BitmapCache 126 cache(bitmap); in cache() 129 public synchronized boolean cache(Bitmap bitmap) { in cache() method in BitmapCache
|
D | ImageLoader.java | 17 package com.android.gallery3d.filtershow.cache; 254 public static Bitmap loadRegionBitmap(Context context, BitmapCache cache, in loadRegionBitmap() argument 276 Bitmap reuse = cache.getBitmap(imageBounds.width(), in loadRegionBitmap() 281 cache.cache(reuse); // not reused, put back in cache in loadRegionBitmap() 416 BitmapCache cache, in getScaleOneImageForPreset() argument 433 return loadRegionBitmap(context, cache, uri, options, bounds); in getScaleOneImageForPreset()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | CachedSupplier.java | 23 private volatile T cache; field in CachedSupplier 31 if (cache == null) { in get() 32 cache = wrapped.get(); in get() 34 return cache; in get()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | LoggerUtils.java | 50 SparseArray<String> cache; in getFieldName() local 52 cache = sNameCache.get(c); in getFieldName() 53 if (cache == null) { in getFieldName() 54 cache = new SparseArray<>(); in getFieldName() 59 cache.put(f.getInt(null), f.getName()); in getFieldName() 65 sNameCache.put(c, cache); in getFieldName() 68 String result = cache.get(value); in getFieldName()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | ShortcutConfigActivityInfo.java | 70 public abstract Drawable getFullResIcon(IconCache cache); in getFullResIcon() argument 120 public Drawable getFullResIcon(IconCache cache) { in getFullResIcon() argument 121 return cache.getFullResIcon(mInfo); in getFullResIcon() 141 public Drawable getFullResIcon(IconCache cache) { in getFullResIcon() argument 142 return cache.getFullResIcon(mInfo); in getFullResIcon()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | DictionaryFacilitatorLruCacheTests.java | 37 final DictionaryFacilitatorLruCache cache = in testGetFacilitator() local 40 final DictionaryFacilitator dictionaryFacilitatorEnUs = cache.get(Locale.US); in testGetFacilitator() 44 final DictionaryFacilitator dictionaryFacilitatorFr = cache.get(Locale.FRENCH); in testGetFacilitator() 48 final DictionaryFacilitator dictionaryFacilitatorDe = cache.get(Locale.GERMANY); in testGetFacilitator()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | PrimaryImage.java | 31 import com.android.gallery3d.filtershow.cache.BitmapCache; 32 import com.android.gallery3d.filtershow.cache.ImageLoader; 407 mBitmapCache.cache(mPreviousImage); in resetAnimBitmap() 528 mBitmapCache.cache(mPartialBitmap); in invalidatePartialPreview() 536 mBitmapCache.cache(mHighresBitmap); in invalidateHighresPreview() 694 mBitmapCache.cache(mGeometryOnlyBitmap); in available() 699 mBitmapCache.cache(mFiltersOnlyBitmap); in available() 706 mBitmapCache.cache(mPartialBitmap); in available() 713 mBitmapCache.cache(mHighresBitmap); in available()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | BaseTunerTvInputService.java | 33 import com.google.common.cache.CacheBuilder; 34 import com.google.common.cache.CacheLoader; 35 import com.google.common.cache.LoadingCache; 36 import com.google.common.cache.RemovalListener;
|