Searched defs:cache (Results 1 - 17 of 17) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/util/
H A DExpirableCache.java29 * An LRU cache in which all items can be marked as expired at a given time and it is possible to
35 * Consider a cache for contact information:
41 * the cache:
56 * and insert it back into the cache when the fetch completes.
58 * At a certain point we want to expire the content of the cache because we know the content may
68 * The values will be still available from the cache, but they will be expired.
75 * for evicting items when the cache is full. It is possible to supply your own subclass of LruCache
77 * Since the underlying cache maps keys to cached values it can determine which items are expired
89 * A cached value stored inside the cache.
91 * It provides access to the value stored in the cache bu
155 ExpirableCache(LruCache<K, CachedValue<V>> cache) argument
252 create(LruCache<K, CachedValue<V>> cache) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DBitmapCache.java17 package com.android.gallery3d.filtershow.cache;
117 public void setCacheProcessing(CacheProcessing cache) { argument
118 mCacheProcessing = cache;
121 public void cache(Buffer buffer) { method in class:BitmapCache
126 cache(bitmap);
129 public synchronized boolean cache(Bitmap bitmap) { method in class:BitmapCache
134 Log.e(LOGTAG, "Trying to cache a bitmap still used in the pipeline");
141 Log.e(LOGTAG, "Trying to cache a non mutable bitmap");
167 return true; // bitmap already in the cache
H A DImageLoader.java17 package com.android.gallery3d.filtershow.cache;
238 public static Bitmap loadRegionBitmap(Context context, BitmapCache cache, argument
260 Bitmap reuse = cache.getBitmap(imageBounds.width(),
265 cache.cache(reuse); // not reused, put back in cache
400 BitmapCache cache,
417 return loadRegionBitmap(context, cache, uri, options, bounds);
399 getScaleOneImageForPreset(Context context, BitmapCache cache, Uri uri, Rect bounds, Rect destination) argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DCacheProcessing.java22 import com.android.gallery3d.filtershow.cache.BitmapCache;
37 Bitmap cache; field in class:CacheProcessing.CacheStep
122 environment.cache(source);
145 // New set of filters, let's clear the cache and rebuild it.
154 // First, let's find how similar we are in our cache
169 environment.cache(cacheStep.cache);
181 && mSteps.elementAt(findBaseImageIndex).cache == null) {
184 cacheBitmap = mSteps.elementAt(findBaseImageIndex).cache;
200 environment.cache(pre
[all...]
H A DFilterEnvironment.java24 import com.android.gallery3d.filtershow.cache.BitmapCache;
58 public void setBitmapCache(BitmapCache cache) { argument
59 mBitmapCache = cache;
62 public void cache(Buffer buffer) { method in class:FilterEnvironment
63 mBitmapCache.cache(buffer);
66 public void cache(Bitmap bitmap) { method in class:FilterEnvironment
67 mBitmapCache.cache(bitmap);
137 cache(bitmap);
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DAttachmentGridDrawable.java56 public void setBitmapCache(BitmapCache cache) { argument
57 mCache = cache;
H A DAttachmentDrawable.java88 public AttachmentDrawable(final Resources res, final BitmapCache cache, argument
94 mCache = cache;
167 // this allows the initial transition to be specially instantaneous, so e.g. a cache hit
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DFastScrollingIndexCacheTest.java84 private static final Bundle putAndGetBundle(FastScrollingIndexCache cache, Uri queryUri, argument
88 cache.put(queryUri, selection, selectionArgs, sortOrder, countExpression, bundle);
93 // Initially the cache is empty
141 // Now, create a new cache instance (with the same shared preferences)
142 // It should restore the cache content from the preferences...
/packages/apps/UnifiedEmail/src/com/android/bitmap/
H A DDecodeTask.java19 * decode is complete, even if the task is cancelled, the result is placed in the given cache.
52 * type will also serve as cache keys to fetch cached data.
77 BitmapCache cache) {
84 mCache = cache;
200 "decode thread wants a bitmap. cache dump:\n" + mCache.toDebugString());
322 if (DEBUG) System.out.println("placed result in cache: key=" + mKey + " bmp="
76 DecodeTask(Request key, int w, int h, int bufferW, int bufferH, BitmapView view, BitmapCache cache) argument
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaObject.java57 // These are flags for cache() and return values for getCacheFlag():
144 public void cache(int flag) { method in class:MediaObject
/packages/apps/Email/src/com/android/email/provider/
H A DContentCache.java40 * An LRU cache for EmailContent (Account, HostAuth, Mailbox, and Message, thus far). The intended
41 * user of this cache is EmailProvider itself; caching is entirely transparent to users of the
47 * To create a cache:
48 * ContentCache cache = new ContentCache(name, projection, max);
50 * To (try to) get a cursor from a cache:
51 * Cursor cursor = cache.getCursor(id, projection);
53 * To read from a table and cache the resulting cursor:
54 * 1. Get a CacheToken: CacheToken token = cache.getToken(id);
56 * 3. Put the cursor in the cache: cache
293 CachedCursor(Cursor cursor, ContentCache cache, String id) argument
761 Statistics(ContentCache cache) argument
771 addCacheStatistics(ContentCache cache) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemViewCoordinates.java294 final CoordinatesCache cache) {
316 ViewGroup view = (ViewGroup) cache.getView(layoutId);
319 cache.put(layoutId, view);
663 final Config config, final CoordinatesCache cache) {
665 ConversationItemViewCoordinates coordinates = cache.getCoordinates(cacheKey);
670 coordinates = new ConversationItemViewCoordinates(context, config, cache);
671 cache.put(cacheKey, coordinates);
293 ConversationItemViewCoordinates(final Context context, final Config config, final CoordinatesCache cache) argument
662 forConfig(final Context context, final Config config, final CoordinatesCache cache) argument
H A DMessageHeaderView.java501 public static Address getAddress(Map<String, Address> cache, String emailStr) { argument
503 synchronized (cache) {
504 if (cache != null) {
505 addr = cache.get(emailStr);
509 if (cache != null) {
510 cache.put(emailStr, addr);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherModel.java1852 Log.d(TAG, "bound all " + list.size() + " apps from cache in "
2453 boolean queueIconToBeChecked(HashMap<Object, byte[]> cache, ShortcutInfo info, Cursor c, argument
2466 cache.put(info, c.getBlob(iconIndex));
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherModel.java2348 Log.d(TAG, "bound all " + list.size() + " apps from cache in "
3014 boolean queueIconToBeChecked(HashMap<Object, byte[]> cache, ShortcutInfo info, Cursor c, argument
3027 cache.put(info, c.getBlob(iconIndex));
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java128 /** Resolved canonical path to cache storage. */
140 // In memory cache of path<->id mappings, to speed up inserts during media scan
307 // We could remove only the deleted entry from the cache, but that
309 // clear the entire cache.
311 // entry from the cache
408 * An LRU cache system is used to clean up databases for old external
4619 // don't write to non-cache, non-sdcard files.
5018 * @param cacheName The string that will be inserted in to the cache
5022 * @param cache The cache t
5027 getKeyIdForName(DatabaseHelper helper, SQLiteDatabase db, String table, String keyField, String nameField, String rawName, String cacheName, String path, int albumHash, String artist, HashMap<String, Long> cache, Uri srcuri) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsDatabaseHelper.java728 /** In-memory cache of previously found MIME-type mappings */
731 /** In-memory cache the packages table */
852 // in the cache
3173 * scrolling index cache.
4323 * created. All new, uncached answers are added to the cache automatically.
4327 * existing one is found in cache or from query.
4329 * @param cache In-memory cache of previous answers.
4333 String value, HashMap<String, Long> cache) {
4346 cache
4332 lookupAndCacheId(SQLiteStatement query, SQLiteStatement insert, String value, HashMap<String, Long> cache) argument
[all...]

Completed in 1095 milliseconds