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

/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.
129 CacheManager.CacheResult cache = CacheManager.createCacheFile(
132 if (cache != null) {
133 mCacheResultMap.put(data.mListener, cache);
141 CacheManager.CacheResult cache = mCacheResultMap
143 if (cache != null) {
144 cache
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DSSLPerformanceTest.java60 = SSLPerformanceTest.class.getName() + "/cache";
69 DatabaseSessionCache cache = new DatabaseSessionCache(getContext());
70 cache.getSessionData("crazybob.org", 443);
80 SSLClientSessionCache cache = FileClientSessionCache.usingDirectory(
82 cache.getSessionData("crazybob.org", 443);
90 DatabaseSessionCache cache = new DatabaseSessionCache(getContext());
91 putSessionsIn(cache);
99 cache = new DatabaseSessionCache(getContext());
100 cache.getSessionData("crazybob.org", 443);
108 SSLClientSessionCache cache
270 putSessionsIn(SSLClientSessionCache cache) argument
[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.java111 int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) {
113 mSessionCache = cache == null ? null : cache.mSessionCache;
130 * and SSL session cache.
134 * @param cache The {@link SSLClientSessionCache} to use, or null for no cache.
137 public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { argument
138 return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true);
143 * disabled, using an optional handshake timeout and SSL session cache.
150 * @param cache Th
110 SSLCertificateSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) argument
153 getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) argument
166 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/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/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.java80 // want to cache the existence of a key, but not store its value.
264 // keeping our cache in sync.
289 // Slurp all values (if sane in number & size) into cache.
290 private void fullyPopulateCache(String table, SettingsCache cache) { argument
298 synchronized (cache) {
299 cache.clear();
300 cache.setFullyMatchesDisk(true); // optimistic
306 cache.populate(name, value);
311 cache.setFullyMatchesDisk(false);
312 Log.d(TAG, "row count exceeds max cache entrie
363 lookupValue(String table, SettingsCache cache, String key) argument
799 populate(SettingsCache cache, ContentValues contentValues) argument
842 isRedundantSetValue(SettingsCache cache, String name, String value) argument
[all...]
/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/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1218 sp<AudioCache> cache = new AudioCache(url); local
1219 player = android::createPlayer(playerType, cache.get(), cache->notify);
1223 static_cast<MediaPlayerInterface*>(player.get())->setAudioSink(cache);
1232 if (cache->wait() != NO_ERROR) goto Exit;
1238 if (cache->wait() != NO_ERROR) goto Exit;
1240 mem = new MemoryBase(cache->getHeap(), 0, cache->size());
1241 *pSampleRate = cache->sampleRate();
1242 *pNumChannels = cache
1261 sp<AudioCache> cache = new AudioCache("decode_fd"); local
[all...]
/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/core/java/android/view/
H A DView.java798 * <p>Indicates that no drawing cache should ever be created for this view.<p>
810 * <p>Enables low quality mode for the drawing cache.</p>
815 * <p>Enables high quality mode for the drawing cache.</p>
820 * <p>Enables automatic quality mode for the drawing cache.</p>
829 * <p>Mask for use with setFlags indicating bits used for the cache
1848 * Solid color to use as a background when creating the drawing cache. Enables
1849 * the cache to use 16 bit bitmaps instead of 32 bit.
2245 ScrollabilityCache cache = mScrollCache;
2246 if (cache != null) {
2247 return cache
[all...]
H A DViewGroup.java183 * When set, this ViewGroup tries to always draw its children using their drawing cache.
189 * draw its children with their drawing cache.
238 * Used to indicate that no drawing cache should be kept in memory.
243 * Used to indicate that the animation drawing cache should be kept in memory.
248 * Used to indicate that the scrolling drawing cache should be kept in memory.
1232 * Enables or disables the drawing cache for each child of this view group.
1234 * @param enabled true to enable the cache, false to dispose of it
1250 // When this ViewGroup's animation starts, build the cache for the children
1271 // When this ViewGroup's animation ends, destroy the cache of the children
1318 final boolean cache
[all...]
H A DViewDebug.java1165 final Bitmap[] cache = new Bitmap[1];
1170 cache[0] = captureView.createSnapshot(
1174 cache[0] = captureView.createSnapshot(
1187 return cache[0];
/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/test-runner/src/android/test/
H A DClassPathPackageInfoSource.java47 private final SimpleCache<String, ClassPathPackageInfo> cache = field in class:ClassPathPackageInfoSource
59 // A cache of jar file contents
73 return cache.get(pkgName);
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DUsimPhoneBookManager.java78 public UsimPhoneBookManager(PhoneBase phone, AdnRecordCache cache) { argument
85 mAdnCache = cache;
101 // Check if the PBR file is present in the cache, if not read it

Completed in 458 milliseconds