Searched refs:cache (Results 26 - 50 of 74) sorted by relevance

123

/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 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...]
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
/frameworks/native/cmds/installd/
H A Dutils.h129 void add_cache_files(cache_t* cache, const std::string& data_path);
131 void clear_cache_files(const std::string& data_path, cache_t* cache, int64_t free_size);
133 void finish_cache_collection(cache_t* cache);
/frameworks/compile/mclinker/lib/Support/Unix/
H A DFileSystem.inc49 // idx does not stay at the end, but all elements had beed put into cache.
68 // set cache is full, then Directory::begin() can return end().
72 // read one entry for advance the end element of the 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/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/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/core/java/com/android/internal/util/
H A DArrayUtils.java117 Object cache = sCache[bucket];
119 if (cache == null || cache.getClass().getComponentType() != kind) {
120 cache = Array.newInstance(kind, 0);
121 sCache[bucket] = cache;
123 // Log.e("cache", "new empty " + kind.getName() + " at " + bucket);
126 return (T[]) cache;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatDrawableManager.java216 LongSparseArray<WeakReference<ConstantState>> cache = mDrawableCaches.get(context);
217 if (cache != null) {
218 // Crude, but we'll just clear the cache when the configuration changes
219 cache.clear();
253 // If we reached here then we created a new drawable, add it to the cache
321 // Create an id cache as we'll need one later
359 // Add the tag name to the cache
369 // Add it to the drawable cache
372 Log.i(TAG, "[loadDrawableFromDelegates] Saved drawable to cache: " +
393 final LongSparseArray<WeakReference<ConstantState>> cache
[all...]
/frameworks/multidex/library/src/android/support/multidex/
H A DMultiDex.java369 File cache = new File(applicationInfo.dataDir, CODE_CACHE_NAME);
371 mkdirChecked(cache);
377 cache = new File(context.getFilesDir(), CODE_CACHE_NAME);
378 mkdirChecked(cache);
380 File dexDir = new File(cache, CODE_CACHE_SECONDARY_FOLDER_NAME);
/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/compile/mclinker/lib/Support/Windows/
H A DFileSystem.inc53 // set cache is full, then Directory::begin() can return end().
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNetworkHistory.java634 ScanDetailCache cache = scanDetailCaches.get(config.networkId);
635 if (cache == null && config.networkId != WifiConfiguration.INVALID_NETWORK_ID) {
636 cache = new ScanDetailCache(config);
637 scanDetailCaches.put(config.networkId, cache);
639 return cache;
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/libs/
H A Dpicasso-2.5.2.jar ... .Dispatcher dispatcher final com.squareup.picasso.Cache cache final com.squareup.picasso.Stats stats ...
/frameworks/support/samples/SupportLeanbackShowcase/libs/
H A Dpicasso-2.5.2.jar ... .Dispatcher dispatcher final com.squareup.picasso.Cache cache final com.squareup.picasso.Stats stats ...
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java313 final Bitmap cache = mContent.getDrawingCache();
314 if (cache != null) {
316 canvas.drawBitmap(cache, 0, handle.getBottom(), null);
318 canvas.drawBitmap(cache, handle.getRight(), 0, null);
/frameworks/multidex/
H A Dgradlew174 exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain --project-cache-dir=$ANDROID_CACHE_DIR "$@"
/frameworks/opt/setupwizard/tools/gradle/
H A Dgradlew177 # Also, blow away lint's API cache, since it can easily become out of date
179 (cd "$HOME/.android/cache" && rm -f api-versions*) 2> /dev/null
204 --project-cache-dir=$ANDROID_CACHE_DIR \
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
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 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
H A DStyledCornersBitmapDrawable.java83 public StyledCornersBitmapDrawable(Resources res, BitmapCache cache, argument
86 super(res, cache, limitDensity, opts);
/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/java/android/view/
H A DView.java801 * Ignore any optimizations using the measure cache.
1026 * <p>Indicates that no drawing cache should ever be created for this view.<p>
1043 * <p>Enables low quality mode for the drawing cache.</p>
1048 * <p>Enables high quality mode for the drawing cache.</p>
1053 * <p>Enables automatic quality mode for the drawing cache.</p>
1062 * <p>Mask for use with setFlags indicating bits used for the cache
3737 * Solid color to use as a background when creating the drawing cache. Enables
3738 * the cache to use 16 bit bitmaps instead of 32 bit.
3861 * accelerated pipeline. It can also be used to cache a complex view tree
3888 * <p>A hardware layer can be used to cache
[all...]

Completed in 1148 milliseconds

123