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

/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/media/libstagefright/codecs/aacenc/inc/
H A Dbitbuffer.h53 UWord32 cache; member in struct:BIT_BUF
/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/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/core/java/android/net/
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/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/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/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/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/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/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...]

Completed in 307 milliseconds