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

12

/frameworks/base/core/java/android/net/
H A DSSLSessionCache.java33 * File-based cache of established SSL sessions. When re-establishing a
34 * connection to the same server, using an SSL session cache can save some time,
36 * This is a persistent cache which can span executions of the application.
45 * Installs a {@link SSLSessionCache} on a {@link SSLContext}. The cache will
49 * @param cache the cache instance to install, or {@code null} to uninstall any
50 * existing cache.
53 * cache.
57 public static void install(SSLSessionCache cache, SSLContext context) { argument
61 cache
74 SSLSessionCache(Object cache) argument
[all...]
H A DSSLCertificateSocketFactory.java103 int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) {
105 mSessionCache = cache == null ? null : cache.mSessionCache;
122 * and SSL session cache.
126 * @param cache The {@link SSLSessionCache} to use, or null for no cache.
129 public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { argument
130 return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true);
135 * disabled, using an optional handshake timeout and SSL session cache.
142 * @param cache Th
102 SSLCertificateSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) argument
145 getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) argument
166 getHttpSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitbuffer.h53 UWord32 cache; member in struct:BIT_BUF
/frameworks/base/core/java/android/os/
H A DServiceManager.java132 * @param cache the cache of service references
135 public static void initServiceCache(Map<String, IBinder> cache) { argument
139 sCache.putAll(cache);
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DServiceManager.java68 * @param cache the cache of service references
71 public static void initServiceCache(Map<String, IBinder> cache) { argument
/frameworks/volley/src/main/java/com/android/volley/
H A DCacheDispatcher.java24 * Provides a thread for performing cache triage on a queue of requests.
26 * Requests added to the specified cache queue are resolved from cache.
42 /** The cache to read from. */
52 * Creates a new cache triage dispatcher thread. You must call {@link #start()}
57 * @param cache Cache interface to use for resolution
62 Cache cache, ResponseDelivery delivery) {
65 mCache = cache;
83 // Make a blocking call to initialize the cache.
88 // Get a request from the cache triag
60 CacheDispatcher( BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, Cache cache, ResponseDelivery delivery) argument
[all...]
H A DNetworkDispatcher.java31 * specified {@link Network} interface. Responses are committed to cache, if
40 /** The cache to write to. */
53 * @param cache Cache interface to use for writing responses to cache
57 Network network, Cache cache,
61 mCache = cache;
126 // Write to cache if applicable.
127 // TODO: Only update cache metadata instead of entire record for 304s.
130 request.addMarker("network-cache-written");
56 NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) argument
H A DRequestQueue.java37 * resolving from either cache or network on a worker thread, and then delivering
55 * <li>containsKey(cacheKey) indicates that there is a request in flight for the given cache
57 * <li>get(cacheKey) returns waiting requests for the given cache key. The in flight request
71 /** The cache triage queue. */
94 /** The cache dispatcher. */
103 * @param cache A Cache to use for persisting responses to disk
108 public RequestQueue(Cache cache, Network network, int threadPoolSize, argument
110 mCache = cache;
119 * @param cache A Cache to use for persisting responses to disk
123 public RequestQueue(Cache cache, Networ argument
134 RequestQueue(Cache cache, Network network) argument
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DClearCacheRequest.java28 * A synthetic request used for clearing the cache.
35 * Creates a synthetic request for clearing the cache.
36 * @param cache Cache to clear
37 * @param callback Callback to make on the main thread once the cache is clear,
40 public ClearCacheRequest(Cache cache, Runnable callback) { argument
42 mCache = cache;
/frameworks/native/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/database/sqlite/
H A DSQLiteDebug.java97 /** the number of bytes of page cache allocation which could not be sattisfied by the
101 * that overflowed because no space was left in the page cache.
133 /** statement cache stats: hits/misses/cachesize */
134 public String cache; field in class:SQLiteDebug.DbStats
142 this.cache = hits + "/" + misses + "/" + cachesize;
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiLogger.java110 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { argument
112 Pair<Long, Integer> timing = cache.get(logMessage);
115 cache.put(logMessage, new Pair<>(curTime, 1));
118 increaseLogCount(cache, logMessage);
129 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, argument
131 Pair<Long, Integer> timing = cache.get(message);
133 cache.put(message, new Pair<>(timing.first, timing.second + 1));
/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/minikin/libs/minikin/
H A DHbFontCache.cpp82 static HbFontCache* cache = nullptr; local
83 if (cache == nullptr) {
84 cache = new HbFontCache();
86 return cache;
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DCircularBitmapDrawable.java49 BitmapCache cache, boolean limitDensity) {
50 this(res, cache, limitDensity, null);
54 BitmapCache cache, boolean limitDensity, ExtendedOptions opts) {
55 super(res, cache, limitDensity, opts);
48 CircularBitmapDrawable(Resources res, BitmapCache cache, boolean limitDensity) argument
53 CircularBitmapDrawable(Resources res, BitmapCache cache, boolean limitDensity, ExtendedOptions opts) argument
H A DBasicBitmapDrawable.java52 * If being used with a long-lived cache (static cache, attached to the Application instead of the
54 * times so the cache has accurate unref counts. The
96 public BasicBitmapDrawable(final Resources res, final BitmapCache cache, argument
99 mCache = cache;
120 * attached to the same cache, because caches can only contain bitmaps of one size for re-use.
167 * Binds to the given key and start the decode process. This will first look in the cache, then
H A DStyledCornersBitmapDrawable.java83 public StyledCornersBitmapDrawable(Resources res, BitmapCache cache, argument
86 super(res, cache, limitDensity, opts);
H A DExtendedBitmapDrawable.java73 public ExtendedBitmapDrawable(final Resources res, final BitmapCache cache, argument
75 super(res, cache, limitDensity);
190 // this allows the initial transition to be specially instantaneous, so e.g. a cache hit
/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/SettingsLib/src/com/android/settingslib/drawer/
H A DTileUtils.java117 HashMap<Pair<String, String>, Tile> cache) {
127 getTilesForAction(context, user, SETTINGS_ACTION, cache, null, tiles, true);
128 getTilesForAction(context, user, OPERATOR_SETTINGS, cache,
130 getTilesForAction(context, user, MANUFACTURER_SETTINGS, cache,
134 getTilesForAction(context, user, EXTRA_SETTINGS_ACTION, cache, null, tiles, false);
116 getCategories(Context context, HashMap<Pair<String, String>, Tile> cache) argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DAccessPointPreference.java70 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, argument
73 mBadgeCache = cache;
88 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, argument
91 mBadgeCache = cache;
167 // Get the badge using a cache since the PM will ask the UserManager for the list
H A DWifiTracker.java371 // If we aren't using saved networks, drop them into the cache so that
444 private AccessPoint getCachedOrCreate(ScanResult result, List<AccessPoint> cache) { argument
445 final int N = cache.size();
447 if (cache.get(i).matches(result)) {
448 AccessPoint ret = cache.remove(i);
456 private AccessPoint getCachedOrCreate(WifiConfiguration config, List<AccessPoint> cache) { argument
457 final int N = cache.size();
459 if (cache.get(i).matches(config)) {
460 AccessPoint ret = cache.remove(i);
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DDecodeTask.java39 * decode is complete, even if the task is cancelled, the result is placed in the given cache.
91 * @param requestKey The request to decode, also the key to use for the cache.
96 * @param cache The cache and pool.
99 FileDescriptorFactory factory, DecodeCallback callback, BitmapCache cache) {
104 mCache = cache;
260 Log.e(TAG, "decode thread wants a bitmap. cache dump:\n"
443 // Cancellations can't be guaranteed to be correct, so skip the cache
445 // Put result in cache, regardless of null. The cache wil
98 DecodeTask(RequestKey requestKey, DecodeOptions decodeOpts, FileDescriptorFactory factory, DecodeCallback callback, BitmapCache cache) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DRegisteredServicesCacheTest.java76 TestServicesCache cache = new TestServicesCache();
77 cache.addServiceForQuerying(U0, r1, newServiceInfo(t1, UID1));
78 cache.addServiceForQuerying(U0, r2, newServiceInfo(t2, UID2));
79 assertEquals(2, cache.getAllServicesSize(U0));
80 assertEquals(2, cache.getPersistentServicesSize(U0));
81 assertNotEmptyFileCreated(cache, U0);
83 cache = new TestServicesCache();
84 assertEquals(2, cache.getPersistentServicesSize(U0));
88 TestServicesCache cache = new TestServicesCache();
89 cache
197 assertNotEmptyFileCreated(TestServicesCache cache, int userId) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DUsimPhoneBookManager.java110 public UsimPhoneBookManager(IccFileHandler fh, AdnRecordCache cache) { argument
117 mAdnCache = cache;
146 // Check if the PBR file is present in the cache, if not read it
169 // Refresh the phonebook cache.
180 // Invalidate the phonebook cache.

Completed in 598 milliseconds

12