Searched refs:cache (Results 1 - 25 of 58) sorted by path

123

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitbuffer.h53 UWord32 cache; member in struct:BIT_BUF
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dbitbuffer.c42 hBitBuf->cache = 0;
85 hBitBuf->cache = 0;
134 writeValue |= hBitBuf->cache;
147 hBitBuf->cache = writeValue;
/frameworks/base/cmds/uiautomator/cmds/uiautomator/
H A Duiautomator19 # * Use an alternative dalvik cache when running as non-root. Jar file needs
22 # cache so we redirect to an alternative cache
37 # if not running as root, trick dalvik into using an alternative dex cache
39 tmp_cache=${run_base}/dalvik-cache
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java114 Log.d(TAG, "loaded animator from cache, " + resources.getResourceName(id));
118 Log.d(TAG, "cache miss for animator " + resources.getResourceName(id));
157 final ConfigurationBoundResourceCache<StateListAnimator> cache = resources
160 StateListAnimator animator = cache.getInstance(id, theme);
173 cache.put(id, theme, constantState);
/frameworks/base/core/java/android/app/
H A DActivityThread.java777 // Setup the service cache in the ServiceManager
1044 pw.print(','); pw.print(dbStats.cache);
1045 pw.print(','); pw.print(dbStats.cache);
1080 printRow(pw, " %8s %8s %14s %14s %s", "pgsz", "dbsz", "Lookaside(b)", "cache",
1088 dbStats.cache, dbStats.dbName);
4513 Log.v(TAG, "Unable to initialize \"java.io.tmpdir\" property due to missing cache directory");
4521 Log.e(TAG, "Unable to setupGraphicsSupport due to missing code-cache directory");
H A DSystemServiceRegistry.java710 * Creates an array which is used to cache per-Context service instances.
763 final Object[] cache = ctx.mServiceCache;
764 synchronized (cache) {
766 Object service = cache[mCacheIndex];
769 cache[mCacheIndex] = service;
/frameworks/base/core/java/android/content/res/
H A DResources.java2406 // First see if this block is in our cache.
2545 // cache.
2554 // cache: preload, not themed, null theme, or theme-specific.
2686 final ConfigurationBoundResourceCache<ColorStateList> cache = mColorStateListCache;
2687 csl = cache.getInstance(key, theme);
2709 cache.put(key, theme, csl.getConstantState());
2791 // First see if this block is in our cache.
2801 // Not in the cache, create a new block and put it at
2802 // the next slot in the cache.
H A DThemedResourceCache.java31 * @param <T> type of data to cache
39 * Adds a new theme-dependent entry to the cache.
44 * @param entry the entry to cache
51 * Adds a new entry to the cache.
56 * @param entry the entry to cache
79 * Returns an entry from the cache.
83 * @return a cached entry, or {@code null} if not in the cache
90 // probably going to be the themed cache.
113 * Prunes cache entries that have been invalidated by a configuration
139 * @return the cached data for the theme, or {@code null} if the cache i
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java419 // Update prepared statement cache size.
446 // Returns true if the prepared statement cache contains the specified SQL.
476 * be bound to it, consequently it it possible to cache certain prepared statements
478 * then it will be stored in the cache for later.
482 * in its prepared statement cache so that it is ready for execution.
881 // The statement is already in the cache but is in use (this statement appears
883 // statement but do not cache it.
899 // it to the cache. If it is already in the cache, then leave it there.
915 // The statement could not be reset due to an error. Remove it from the cache
[all...]
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/core/java/android/emoji/
H A DEmojiFactory.java36 // HashMap for caching Bitmap object. In order not to make a 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/core/java/android/net/
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...]
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...]
/frameworks/base/core/java/android/os/
H A DServiceManager.java130 * @param cache the cache of service references
133 public static void initServiceCache(Map<String, IBinder> cache) { argument
137 sCache.putAll(cache);
/frameworks/base/core/java/android/view/
H A DView.java751 * Ignore any optimizations using the measure cache.
938 * <p>Indicates that no drawing cache should ever be created for this view.<p>
955 * <p>Enables low quality mode for the drawing cache.</p>
960 * <p>Enables high quality mode for the drawing cache.</p>
965 * <p>Enables automatic quality mode for the drawing cache.</p>
974 * <p>Mask for use with setFlags indicating bits used for the cache
3571 * Solid color to use as a background when creating the drawing cache. Enables
3572 * the cache to use 16 bit bitmaps instead of 32 bit.
3647 * accelerated pipeline. It can also be used to cache a complex view tree
3674 * <p>A hardware layer can be used to cache
[all...]
H A DViewDebug.java775 final Bitmap[] cache = new Bitmap[1];
780 cache[0] = captureView.createSnapshot(
792 return cache[0];
/frameworks/base/core/java/android/widget/
H A DNumberPicker.java1872 SparseArray<String> cache = mSelectorIndexToStringCache;
1873 String scrollSelectorValue = cache.get(selectorIndex);
1887 cache.put(selectorIndex, scrollSelectorValue);
H A DSlidingDrawer.java315 final Bitmap cache = mContent.getDrawingCache();
316 if (cache != null) {
318 canvas.drawBitmap(cache, 0, handle.getBottom(), null);
320 canvas.drawBitmap(cache, handle.getRight(), 0, null);
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java113 Object cache = sCache[bucket];
115 if (cache == null || cache.getClass().getComponentType() != kind) {
116 cache = Array.newInstance(kind, 0);
117 sCache[bucket] = cache;
119 // Log.e("cache", "new empty " + kind.getName() + " at " + bucket);
122 return (T[]) cache;
/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
194 assertNotEmptyFileCreated(TestServicesCache cache, int userId) argument
[all...]
/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/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/docs/html/training/
H A Dtraining_toc.cs482 <li><a href="<?cs var:toroot ?>training/displaying-bitmaps/cache-bitmap.html">
/frameworks/base/libs/hwui/
H A DDisplayListOp.h808 PatchCache& cache = renderer.getCaches().patchCache; local
809 mMesh = cache.get(getAtlasEntry(renderer), mBitmap->width(), mBitmap->height(),
811 mGenerationId = cache.getGenerationId();

Completed in 730 milliseconds

123