/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | DirectPresetCache.java | 17 package com.android.gallery3d.filtershow.cache; 87 CachedPreset cache = mCache.elementAt(i); in getCachedPreset() local 88 if (cache.mPreset == preset) { in getCachedPreset() 89 return cache; in getCachedPreset() 98 CachedPreset cache = getCachedPreset(preset); in get() local 99 if (cache != null && !cache.mBusy) { in get() 100 return cache.mBitmap; in get() 109 CachedPreset cache = getCachedPreset(preset); in reset() local 110 if (cache != null && !cache.mBusy) { in reset() 111 cache.mBitmap = null; in reset() [all …]
|
D | DelayedPresetCache.java | 17 package com.android.gallery3d.filtershow.cache; 37 CachedPreset cache = (CachedPreset) msg.obj; 38 didCompute(cache); 49 CachedPreset cache = (CachedPreset) msg.obj; in handleMessage() local 50 compute(cache); in handleMessage() 51 Message uimsg = mUIHandler.obtainMessage(NEW_PRESET, cache); in handleMessage() 67 protected void willCompute(CachedPreset cache) { in willCompute() argument 68 if (cache == null) { in willCompute() 71 cache.setBusy(true); in willCompute() 72 Message msg = mProcessingHandler.obtainMessage(COMPUTE_PRESET, cache); in willCompute()
|
D | Cache.java | 17 package com.android.gallery3d.filtershow.cache;
|
D | ZoomCache.java | 17 package com.android.gallery3d.filtershow.cache;
|
D | BitmapCache.java | 17 package com.android.gallery3d.filtershow.cache;
|
D | ImageLoader.java | 17 package com.android.gallery3d.filtershow.cache;
|
/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/Email/tests/src/com/android/email/provider/ |
D | ContentCacheTests.java | 206 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); in testContentCacheRemoveEldestEntry() local 210 CacheToken token = cache.getCacheToken("1"); in testContentCacheRemoveEldestEntry() 212 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token); in testContentCacheRemoveEldestEntry() 213 assertEquals(1, cache.size()); in testContentCacheRemoveEldestEntry() 218 token = cache.getCacheToken("2"); in testContentCacheRemoveEldestEntry() 220 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token); in testContentCacheRemoveEldestEntry() 221 assertEquals(2, cache.size()); in testContentCacheRemoveEldestEntry() 224 Cursor cachedCursor = cache.getCachedCursor("1", SIMPLE_PROJECTION); in testContentCacheRemoveEldestEntry() 227 cachedCursor = cache.getCachedCursor("2", SIMPLE_PROJECTION); in testContentCacheRemoveEldestEntry() 238 token = cache.getCacheToken("3"); in testContentCacheRemoveEldestEntry() [all …]
|
/packages/apps/Email/src/com/android/email/provider/ |
D | ContentCache.java | 292 public CachedCursor(Cursor cursor, ContentCache cache, String id) { in CachedCursor() argument 295 mCache = cache; in CachedCursor() 748 for (ContentCache cache: sContentCaches) { in invalidateAllCaches() 749 cache.invalidate(); in invalidateAllCaches() 789 Statistics(ContentCache cache) { in Statistics() argument 790 mCache = cache; in Statistics() 799 private void addCacheStatistics(ContentCache cache) { in addCacheStatistics() argument 800 if (cache != null) { in addCacheStatistics() 801 mHitCount += cache.mStats.mHitCount; in addCacheStatistics() 802 mMissCount += cache.mStats.mMissCount; in addCacheStatistics() [all …]
|
D | EmailProvider.java | 704 ContentCache cache = mContentCaches[table]; in delete() local 751 if (cache != null) { in delete() 752 cache.lock(id); in delete() 756 if (cache != null) { in delete() 773 cache.invalidate("Delete", uri, selection); in delete() 782 if (cache != null) { in delete() 783 cache.unlock(id); in delete() 816 cache.invalidate("Delete", uri, selection); in delete() 1100 ContentCache cache = null; in query() local 1104 cache = mContentCaches[table]; in query() [all …]
|
/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/Contacts/src/com/android/contacts/ |
D | SplitAggregateView.java | 237 SplitAggregateItemCache cache = (SplitAggregateItemCache)convertView.getTag(); in getView() local 238 if (cache == null) { in getView() 239 cache = new SplitAggregateItemCache(); in getView() 240 cache.name = (TextView)convertView.findViewById(R.id.name); in getView() 241 cache.additionalData = (TextView)convertView.findViewById(R.id.additionalData); in getView() 242 cache.sourceIcon = (ImageView)convertView.findViewById(R.id.sourceIcon); in getView() 243 convertView.setTag(cache); in getView() 247 cache.name.setText(info.name); in getView() 248 cache.additionalData.setText(info.getAdditionalData()); in getView() 256 cache.sourceIcon.setImageDrawable(icon); in getView() [all …]
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | CacheManager.java | 47 BlobCache cache = sCacheMap.get(filename); in getCache() local 48 if (cache == null) { in getCache() 54 cache = new BlobCache(path, maxEntries, maxBytes, false, in getCache() 56 sCacheMap.put(filename, cache); in getCache() 61 return cache; in getCache()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 231 ArrayList<MediaItem> cache = null; in getItem() local 236 cache = mCacheRef.get(); in getItem() 237 if (cache == null) { in getItem() 243 cache = mBaseSet.getMediaItem(index, PAGE_SIZE); in getItem() 244 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); in getItem() 248 if (index < mStartPos || index >= mStartPos + cache.size()) { in getItem() 252 return cache.get(index - mStartPos); in getItem()
|
D | MediaObject.java | 147 public void cache(int flag) { in cache() method in MediaObject
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ExpirableCache.java | 155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() argument 156 mCache = cache; in ExpirableCache() 252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() argument 253 return new ExpirableCache<K, V>(cache); in create()
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | userdict.cpp | 1364 UserDictCache *cache = &caches_[searchable->splids_len - 1]; in _get_lpis() local 1365 if (cache->head == cache->tail) in _get_lpis() 1369 uint16 i = cache->head; in _get_lpis() 1373 if (cache->signatures[i][j] != searchable->signature[j]) in _get_lpis() 1380 if (i == cache->tail) in _get_lpis() 1384 *offset = cache->offsets[i]; in _get_lpis() 1385 *length = cache->lengths[i]; in _get_lpis() 1393 UserDictCache *cache = &caches_[searchable->splids_len - 1]; in _get_lpis() local 1394 uint16 next = cache->tail; in _get_lpis() 1396 cache->offsets[next] = offset; in _get_lpis() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | CallerInfoCache.java | 162 CallerInfoCache cache = new CallerInfoCache(context); in init() local 164 cache.startAsyncCache(); in init() 165 cache.setRepeatingCacheUpdateAlarm(); in init() 166 return cache; in init()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 1010 CalendarCache cache = new CalendarCache(helper); in initCalendarCacheLocked() local 1015 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_DATABASE_VERSION, "2010k"); in initCalendarCacheLocked() 1016 … cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_TYPE, CalendarCache.TIMEZONE_TYPE_AUTO); in initCalendarCacheLocked() 1017 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES, localTimezone); in initCalendarCacheLocked() 1018 cache.writeDataLocked(db, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS, localTimezone); in initCalendarCacheLocked() 2743 CalendarCache cache = new CalendarCache(helper); in testGetAndSetTimezoneDatabaseVersion() local 2747 String value = cache.readData(null); in testGetAndSetTimezoneDatabaseVersion() 2753 assertNull(cache.readTimezoneDatabaseVersion()); in testGetAndSetTimezoneDatabaseVersion() 2755 cache.writeTimezoneDatabaseVersion("1234"); in testGetAndSetTimezoneDatabaseVersion() 2756 assertEquals("1234", cache.readTimezoneDatabaseVersion()); in testGetAndSetTimezoneDatabaseVersion() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MoviePlayer.java | 470 BlobCache cache = CacheManager.getCache(mContext, in setBookmark() local 480 cache.insert(uri.hashCode(), bos.toByteArray()); in setBookmark() 488 BlobCache cache = CacheManager.getCache(mContext, in getBookmark() local 492 byte[] data = cache.lookup(uri.hashCode()); in getBookmark()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | FastScrollingIndexCacheTest.java | 84 private static final Bundle putAndGetBundle(FastScrollingIndexCache cache, Uri queryUri, in putAndGetBundle() argument 88 cache.put(queryUri, selection, selectionArgs, sortOrder, countExpression, bundle); in putAndGetBundle()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 332 final ResolveCache cache = ResolveCache.getInstance(this); in bindData() local 363 final boolean wasAdded = considerAdd(action, cache, isSuperPrimary); in bindData() 380 considerAdd(action, cache, isSuperPrimary); in bindData() 429 final View actionView = inflateAction(mimeType, cache, mTrack); in bindData()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageZoom.java | 28 import com.android.gallery3d.filtershow.cache.ImageLoader;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | ImagePreset.java | 23 import com.android.gallery3d.filtershow.cache.ImageLoader;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveCopyTask.java | 34 import com.android.gallery3d.filtershow.cache.ImageLoader;
|