Searched refs:cache (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | LruCacheTest.java | 49 LruCache<String, String> cache = new LruCache<String, String>(3); in testStatistics() local 50 assertStatistics(cache); in testStatistics() 52 assertEquals(null, cache.put("a", "A")); in testStatistics() 54 assertStatistics(cache); in testStatistics() 55 assertHit(cache, "a", "A"); in testStatistics() 56 assertSnapshot(cache, "a", "A"); in testStatistics() 58 assertEquals(null, cache.put("b", "B")); in testStatistics() 60 assertStatistics(cache); in testStatistics() 61 assertHit(cache, "a", "A"); in testStatistics() 62 assertHit(cache, "b", "B"); in testStatistics() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | IpcDataCacheTest.java | 236 TestCache cache = new TestCache(MODULE, api); in testCacheRecompute() local 237 cache.invalidateCache(); in testCacheRecompute() 238 assertEquals(cache.isDisabled(), false); in testCacheRecompute() 239 assertEquals("foo5", cache.query(5)); in testCacheRecompute() 240 assertEquals(1, cache.getRecomputeCount()); in testCacheRecompute() 241 assertEquals("foo5", cache.query(5)); in testCacheRecompute() 242 assertEquals(1, cache.getRecomputeCount()); in testCacheRecompute() 243 assertEquals("foo6", cache.query(6)); in testCacheRecompute() 244 assertEquals(2, cache.getRecomputeCount()); in testCacheRecompute() 245 cache.invalidateCache(); in testCacheRecompute() [all …]
|
/cts/tests/tests/apache-http/src/android/net/http/cts/ |
D | HttpResponseCacheTest.java | 103 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseCloses() local 104 initializeCache(cache); in testCloseCloses() 106 cache.close(); in testCloseCloses() 108 cache.flush(); in testCloseCloses() 115 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseUninstalls() local 116 cache.close(); in testCloseUninstalls() 121 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testDeleteUninstalls() local 122 cache.delete(); in testDeleteUninstalls() 132 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testStatisticsTracking() local 144 assertEquals(1, cache.getRequestCount()); in testStatisticsTracking() [all …]
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | KernelConfigTest.java | 75 Map<ITestDevice, HashSet<String>> cache) throws Exception { in getDeviceConfig() argument 80 synchronized (cache) { in getDeviceConfig() 81 set = cache.get(device); in getDeviceConfig() 93 synchronized (cache) { in getDeviceConfig() 94 cache.put(device, set); in getDeviceConfig()
|
D | SELinuxHostTest.java | 205 Map<ITestDevice, File> cache, String deviceFilePath, in getDeviceFile() argument 211 synchronized (cache) { in getDeviceFile() 212 file = cache.get(device); in getDeviceFile() 219 synchronized (cache) { in getDeviceFile() 220 cache.put(device, file); in getDeviceFile() 225 private static File buildSystemPolicy(ITestDevice device, Map<ITestDevice, File> cache, in buildSystemPolicy() argument 228 synchronized (cache) { in buildSystemPolicy() 229 builtPolicyFile = cache.get(device); in buildSystemPolicy() 269 synchronized (cache) { in buildSystemPolicy() 270 cache.put(device, builtPolicyFile); in buildSystemPolicy() [all …]
|
/cts/tools/vm-tests-tf/etc/ |
D | starthosttests | 91 rm -rf --preserve-root $datadir/dalvik-cache 93 mkdir -p $datadir/dalvik-cache
|
D | starttests | 98 rm -rf --preserve-root $datadir/dalvik-cache 100 mkdir -p $datadir/dalvik-cache
|
/cts/tools/release-parser/tests/resources/ |
D | platform.xml.pb.txt | 140 value: "cache"
|