/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LruCacheTest.java | 34 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/libs/hwui/tests/unit/ |
H A D | GradientCacheTests.cpp | 28 GradientCache cache(extensions); 29 ASSERT_LT(1000u, cache.getMaxSize()) << "Expect non-trivial size"; 33 Texture* texture = cache.get(colors, positions, 3); 36 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize()); 37 ASSERT_TRUE(cache.getSize()); 38 cache.clear(); 39 ASSERT_EQ(cache.getSize(), 0u);
|
H A D | TextureCacheTests.cpp | 27 TextureCache cache; local 28 ASSERT_EQ(cache.getSize(), 0u); 35 cache.get(hwBitmap.get()); 37 cache.clear();
|
H A D | TextDropShadowCacheTests.cpp | 36 TextDropShadowCache cache(MB(5)); 37 cache.setFontRenderer(fontRenderer); 47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data()); 51 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize()); 52 ASSERT_TRUE(cache.getSize()); 53 cache.clear(); 54 ASSERT_EQ(cache.getSize(), 0u);
|
/frameworks/native/cmds/installd/ |
H A D | otapreopt_slot.sh | 23 if test -d /data/ota/$SLOT_SUFFIX/dalvik-cache ; then 25 OLD_SIZE=$(du -h -s /data/dalvik-cache) 26 rm -rf /data/dalvik-cache/* 27 NEW_SIZE=$(du -h -s /data/ota/$SLOT_SUFFIX/dalvik-cache) 28 mv /data/ota/$SLOT_SUFFIX/dalvik-cache/* /data/dalvik-cache/ 29 rmdir /data/ota/$SLOT_SUFFIX/dalvik-cache
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | RegisteredServicesCacheTest.java | 76 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/base/core/java/android/net/ |
H A D | SSLSessionCache.java | 33 * 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 D | SSLCertificateSocketFactory.java | 105 int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) { 107 mSessionCache = cache == null ? null : cache.mSessionCache; 124 * and SSL session cache. 128 * @param cache The {@link SSLSessionCache} to use, or null for no cache. 131 public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { argument 132 return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true); 137 * disabled, using an optional handshake timeout and SSL session cache. 144 * @param cache Th 104 SSLCertificateSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) argument 147 getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) argument 168 getHttpSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | FontUtil.h | 44 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph)
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | bitbuffer.c | 42 hBitBuf->cache = 0; 85 hBitBuf->cache = 0; 134 writeValue |= hBitBuf->cache; 147 hBitBuf->cache = writeValue;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | BigCacheTest.java | 29 * 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 D | ZeroSizedTest.java | 28 * 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/services/core/java/com/android/server/hdmi/ |
H A D | HdmiLogger.java | 110 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/tools/layoutlib/bridge/src/android/os/ |
H A D | ServiceManager.java | 75 * @param cache the cache of service references 78 public static void initServiceCache(Map<String, IBinder> cache) { argument
|
/frameworks/minikin/libs/minikin/ |
H A D | HbFontCache.cpp | 67 static HbFontCache* cache = nullptr; local 68 if (cache == nullptr) { 69 cache = new HbFontCache(); 71 return cache;
|
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDebug.java | 97 /** 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/content/res/ |
H A D | ThemedResourceCache.java | 32 * @param <T> type of data to cache 40 * Adds a new theme-dependent entry to the cache. 45 * @param entry the entry to cache 52 * Adds a new entry to the cache. 57 * @param entry the entry to cache 80 * Returns an entry from the cache. 84 * @return a cached entry, or {@code null} if not in the cache 91 // probably going to be the themed cache. 114 * Prunes cache entries that have been invalidated by a configuration 140 * @return the cached data for the theme, or {@code null} if the cache i [all...] |
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 456 BearingDistanceCache cache = sBearingDistanceCache.get(); 458 endLatitude, endLongitude, cache); 459 results[0] = cache.mDistance; 461 results[1] = cache.mInitialBearing; 463 results[2] = cache.mFinalBearing; 477 BearingDistanceCache cache = sBearingDistanceCache.get(); 479 if (mLatitude != cache.mLat1 || mLongitude != cache.mLon1 || 480 dest.mLatitude != cache.mLat2 || dest.mLongitude != cache [all...] |
/frameworks/compile/slang/tests/ |
H A D | slang_test.py | 142 # If cache has not yet been calculated, do that 143 if GetOutDir.cache is None: 146 GetOutDir.cache = os.environ['ANDROID_HOST_OUT'] 150 GetOutDir.cache = subprocess.check_output(['bash', '-c', 155 GetOutDir.cache = GetOutDir.cache.strip() 156 return GetOutDir.cache 159 # Declare/define cache variable for GetOutDir to cache results 161 GetOutDir.cache [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
H A D | bitbuffer.h | 53 UWord32 cache; member in struct:BIT_BUF
|
/frameworks/native/include/binder/ |
H A D | PermissionCache.h | 33 * Currently the cache is not updated when there is a permission change, 37 * to cache. This restriction may be lifted at a later time. 54 // this is our cache per say. it stores pooled names. 57 // free the whole cache, but keep the permission name pool 63 void cache(const String16& permission, uid_t uid, bool granted);
|
/frameworks/native/libs/binder/include/binder/ |
H A D | PermissionCache.h | 33 * Currently the cache is not updated when there is a permission change, 37 * to cache. This restriction may be lifted at a later time. 54 // this is our cache per say. it stores pooled names. 57 // free the whole cache, but keep the permission name pool 63 void cache(const String16& permission, uid_t uid, bool granted);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 49 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
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/ |
H A D | uiautomator | 19 # * 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/os/ |
H A D | ServiceManager.java | 148 * @param cache the cache of service references 151 public static void initServiceCache(Map<String, IBinder> cache) { argument 155 sCache.putAll(cache);
|