Searched refs:cache (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/util/
H A DLruCacheTest.java34 LruCache<String, String> cache = new LruCache<String, String>(3);
35 assertStatistics(cache);
37 assertEquals(null, cache.put("a", "A"));
39 assertStatistics(cache);
40 assertHit(cache, "a", "A");
41 assertSnapshot(cache, "a", "A");
43 assertEquals(null, cache.put("b", "B"));
45 assertStatistics(cache);
46 assertHit(cache, "a", "A");
47 assertHit(cache, "
467 assertHit(LruCache<String, String> cache, String key, String value) argument
473 assertMiss(LruCache<String, String> cache, String key) argument
479 assertCreated(LruCache<String, String> cache, String key, String value) argument
486 assertStatistics(LruCache<?, ?> cache) argument
494 assertSnapshot(LruCache<T, T> cache, T... keysAndValues) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewWorker.java44 * Package level class to be used while creating a cache entry.
56 * Package level class to be used while saving a cache entry.
65 * Package level class to be used while updating a cache entry's encoding.
73 * Package level class to be used while appending data to a cache entry.
130 CacheManager.CacheResult cache = CacheManager.createCacheFile(
133 if (cache != null) {
134 mCacheResultMap.put(data.mListener, cache);
143 CacheManager.CacheResult cache = mCacheResultMap
145 if (cache != null) {
146 cache
[all...]
/frameworks/base/core/java/android/net/
H A DSSLSessionCache.java29 * File-based cache of established SSL sessions. When re-establishing a
30 * connection to the same server, using an SSL session cache can save some time,
32 * This is a persistent cache which can span executions of the application.
41 * Create a session cache using the specified directory.
46 * @throws IOException if the cache can't be opened
53 * Create a session cache at the default location for this app.
60 SSLClientSessionCache cache = null;
62 cache = FileClientSessionCache.usingDirectory(dir);
64 Log.w(TAG, "Unable to create SSL session cache in " + dir, e);
66 mSessionCache = cache;
[all...]
H A DSSLCertificateSocketFactory.java104 int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) {
106 mSessionCache = cache == null ? null : cache.mSessionCache;
123 * and SSL session cache.
127 * @param cache The {@link SSLSessionCache} to use, or null for no cache.
130 public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { argument
131 return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true);
136 * disabled, using an optional handshake timeout and SSL session cache.
143 * @param cache Th
103 SSLCertificateSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) argument
146 getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) argument
159 getHttpSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java108 Object cache = sCache[bucket];
110 if (cache == null || cache.getClass().getComponentType() != kind) {
111 cache = Array.newInstance(kind, 0);
112 sCache[bucket] = cache;
114 // Log.e("cache", "new empty " + kind.getName() + " at " + bucket);
117 return (T[]) cache;
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DServiceManager.java66 * @param cache the cache of service references
69 public static void initServiceCache(Map<String, IBinder> cache) { argument
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DHttpResponseCacheTest.java83 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
84 cache.close();
86 cache.flush();
93 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
94 cache.close();
99 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
100 cache.delete();
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dbitbuffer.c65 hBitBuf->cache = 0;
108 hBitBuf->cache = 0;
156 writeValue |= hBitBuf->cache;
169 hBitBuf->cache = writeValue;
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java29 * Builds the drawing cache of two Views, one smaller than the maximum cache size,
30 * one larger than the maximum cache size. The latter should always have a null
31 * drawing cache.
72 final Bitmap[] cache = new Bitmap[1];
78 cache[0] = view.getDrawingCache();
82 return cache[0];
H A DZeroSizedTest.java28 * Builds the drawing cache of Views of various dimension. The assumption is that
30 * drawing cache.
90 final Bitmap[] cache = new Bitmap[1];
96 cache[0] = view.getDrawingCache();
100 return cache[0];
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDebug.java45 * Controls the printing of compiled-sql-statement cache stats.
123 /** the number of bytes of page cache allocation which could not be sattisfied by the
127 * that overflowed because no space was left in the page cache.
159 /** statement cache stats: hits/misses/cachesize */
160 public String cache; field in class:SQLiteDebug.DbStats
168 this.cache = hits + "/" + misses + "/" + cachesize;
/frameworks/base/core/java/android/os/
H A DServiceManager.java113 * @param cache the cache of service references
116 public static void initServiceCache(Map<String, IBinder> cache) { argument
120 sCache.putAll(cache);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProvider.java77 // want to cache the existence of a key, but not store its value.
261 // keeping our cache in sync.
283 // Slurp all values (if sane in number & size) into cache.
284 private void fullyPopulateCache(String table, SettingsCache cache) { argument
292 synchronized (cache) {
293 cache.evictAll();
294 cache.setFullyMatchesDisk(true); // optimistic
300 cache.populate(name, value);
305 cache.setFullyMatchesDisk(false);
306 Log.d(TAG, "row count exceeds max cache entrie
357 lookupValue(String table, SettingsCache cache, String key) argument
789 populate(SettingsCache cache, ContentValues contentValues) argument
832 isRedundantSetValue(SettingsCache cache, String name, String value) argument
[all...]
/frameworks/base/include/binder/
H A DPermissionCache.h32 * Currently the cache is not updated when there is a permission change,
36 * to cache. This restriction may be lifted at a later time.
53 // this is our cache per say. it stores pooled names.
56 // free the whole cache, but keep the permission name pool
62 void cache(const String16& permission, uid_t uid, bool granted);
/frameworks/base/media/libstagefright/codecs/aacenc/inc/
H A Dbitbuffer.h53 UWord32 cache; member in struct:BIT_BUF
/frameworks/base/core/java/android/emoji/
H A DEmojiFactory.java36 // HashMap for caching Bitmap object. In order not to make an cache object
46 * If size() becomes more than sCacheSize, least recently used cache
102 WeakReference<Bitmap> cache = mCache.get(pua);
103 if (cache == null) {
105 // There is no need to cache returned null, since in most cases it means there
113 Bitmap tmp = cache.get();
/frameworks/base/libs/binder/
H A DPermissionCache.cpp51 void PermissionCache::cache(const String16& permission, function in class:android::PermissionCache
107 pc.cache(permission, uid, granted);
/frameworks/base/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1171 sp<AudioCache> cache = new AudioCache(url); local
1172 player = android::createPlayer(playerType, cache.get(), cache->notify);
1176 static_cast<MediaPlayerInterface*>(player.get())->setAudioSink(cache);
1185 if (cache->wait() != NO_ERROR) goto Exit;
1191 cache->wait();
1193 if (cache->size() == 0) {
1197 mem = new MemoryBase(cache->getHeap(), 0, cache->size());
1198 *pSampleRate = cache
1218 sp<AudioCache> cache = new AudioCache("decode_fd"); local
[all...]
/frameworks/base/core/tests/overlaytests/
H A Druntests.sh45 $adb shell rm /data/resource-cache/vendor@overlay@framework@framework-res.apk@idmap
/frameworks/base/core/java/android/net/http/
H A DHttpsConnection.java71 * @param sessionDir directory to cache SSL sessions
75 SSLClientSessionCache cache = null;
79 cache = FileClientSessionCache.usingDirectory(sessionDir);
102 sslContext.engineGetClientSessionContext().setPersistentCache(cache);
/frameworks/base/test-runner/src/android/test/
H A DClassPathPackageInfoSource.java46 private final SimpleCache<String, ClassPathPackageInfo> cache = field in class:ClassPathPackageInfoSource
58 // A cache of jar file contents
72 return cache.get(pkgName);
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java289 final Bitmap cache = mContent.getDrawingCache();
290 if (cache != null) {
292 canvas.drawBitmap(cache, 0, handle.getBottom(), null);
294 canvas.drawBitmap(cache, handle.getRight(), 0, null);
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DUsimPhoneBookManager.java77 public UsimPhoneBookManager(PhoneBase phone, AdnRecordCache cache) { argument
84 mAdnCache = cache;
108 // Check if the PBR file is present in the cache, if not read it
/frameworks/base/core/java/android/content/res/
H A DResources.java1509 LongSparseArray<WeakReference<ConstantState>> cache,
1511 int N = cache.size();
1517 WeakReference<Drawable.ConstantState> ref = cache.valueAt(i);
1529 cache.setValueAt(i, null);
1532 + Long.toHexString(cache.keyAt(i))
1824 // First see if this block is in our cache.
2122 // First see if this block is in our cache.
2132 // Not in the cache, create a new block and put it at
2133 // the next slot in the cache.
1508 clearDrawableCache( LongSparseArray<WeakReference<ConstantState>> cache, int configChanges) argument
/frameworks/base/core/java/android/view/
H A DView.java818 * <p>Indicates that no drawing cache should ever be created for this view.<p>
830 * <p>Enables low quality mode for the drawing cache.</p>
835 * <p>Enables high quality mode for the drawing cache.</p>
840 * <p>Enables automatic quality mode for the drawing cache.</p>
849 * <p>Mask for use with setFlags indicating bits used for the cache
2389 * Set to true when drawing cache is enabled and cannot be created.
2466 * Solid color to use as a background when creating the drawing cache. Enables
2467 * the cache to use 16 bit bitmaps instead of 32 bit.
2542 * accelerated pipeline. It can also be used to cache a complex view tree
2569 * <p>A hardware layer can be used to cache
[all...]

Completed in 563 milliseconds

12