Searched refs:mCache (Results 1 - 25 of 72) sorted by last modified time

123

/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java49 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
72 Bitmap[] result = mCache.get(artUrl);
77 Bitmap[] result = mCache.get(artUrl);
86 Bitmap[] bitmap = mCache.get(artUrl);
104 mCache.put(artUrl, bitmaps);
108 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java39 // mCache is for the bitmap requested by user
40 final LruCache<Integer, Bitmap> mCache; field in class:PlaybackSeekAsyncDataProvider
42 // estimation. We use a different LruCache so that items in mCache will not be evicted by
75 mCache.put(mIndex, bitmap);
89 mCache = new LruCache<Integer, Bitmap>(cacheSize);
105 Bitmap bitmap = mCache.get(key);
111 mCache.put(key, bitmap);
148 if (mCache.get(key) == null && mPrefetchCache.get(key) == null) {
166 mCache.evictAll();
180 for (Iterator<Integer> it = mCache
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java49 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
72 Bitmap[] result = mCache.get(artUrl);
77 Bitmap[] result = mCache.get(artUrl);
86 Bitmap[] bitmap = mCache.get(artUrl);
104 mCache.put(artUrl, bitmaps);
108 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java39 // mCache is for the bitmap requested by user
40 final LruCache<Integer, Bitmap> mCache; field in class:PlaybackSeekAsyncDataProvider
42 // estimation. We use a different LruCache so that items in mCache will not be evicted by
75 mCache.put(mIndex, bitmap);
89 mCache = new LruCache<Integer, Bitmap>(cacheSize);
105 Bitmap bitmap = mCache.get(key);
111 mCache.put(key, bitmap);
148 if (mCache.get(key) == null && mPrefetchCache.get(key) == null) {
166 mCache.evictAll();
180 for (Iterator<Integer> it = mCache
[all...]
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp528 mCache[i] = i;
529 mCache[i+256] = i;
530 mCache[i+512] = i;
531 mCache[i+768] = i;
538 LUT->copy1DFrom((void*)mCache);
557 mCache[offset + base + i] = lutValues[i];
H A DrsCppStructs.h4090 unsigned char mCache[1024]; member in class:android::RSC::ScriptIntrinsicLUT
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicLUT.java30 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
60 si.mCache[ct] = (byte)ct;
61 si.mCache[ct + 256] = (byte)ct;
62 si.mCache[ct + 512] = (byte)ct;
63 si.mCache[ct + 768] = (byte)ct;
87 mCache[index] = (byte)value;
99 mCache[index+256] = (byte)value;
111 mCache[index+512] = (byte)value;
123 mCache[index+768] = (byte)value;
138 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DAnqpCacheTest.java46 AnqpCache mCache; field in class:AnqpCacheTest
56 mCache = new AnqpCache(mClock);
66 mCache.addEntry(ENTRY_KEY, null);
67 ANQPData data = mCache.getEntry(ENTRY_KEY);
79 assertNull(mCache.getEntry(ENTRY_KEY));
89 mCache.addEntry(ENTRY_KEY, null);
94 mCache.sweep();
95 assertNotNull(mCache.getEntry(ENTRY_KEY));
99 mCache.sweep();
100 assertNull(mCache
[all...]
/frameworks/native/include/binder/
H A DPermissionCache.h55 SortedVector< Entry > mCache; member in class:android::PermissionCache
/frameworks/native/libs/binder/
H A DPermissionCache.cpp43 ssize_t index = mCache.indexOf(e);
45 *granted = mCache.itemAt(index).granted;
66 index = mCache.indexOf(e);
68 mCache.add(e);
74 mCache.clear();
/frameworks/native/libs/binder/include/binder/
H A DPermissionCache.h55 SortedVector< Entry > mCache; member in class:android::PermissionCache
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp36 mCache = egl_cache_t::get();
40 mCache->setCacheFilename("");
41 mCache->terminate();
44 egl_cache_t* mCache; member in class:android::EGLCacheTest
49 mCache->setBlob("abcd", 4, "efgh", 4);
50 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
59 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY));
60 mCache->setBlob("abcd", 4, "efgh", 4);
61 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
70 mCache
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp106 Program* program = mCache.valueFor(shaderKey);
109 mCache.add(shaderKey, program);
231 Program* program = mCache.valueFor(needs);
236 mCache.add(needs, program);
240 // needs.mNeeds, uint32_t(ns2ms(time)), mCache.size());
H A DProgramCache.h128 DefaultKeyedVector<Key, Program*> mCache; member in class:android::ProgramCache
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DMainActivity.java38 private final BitmapCache mCache = new UnrefedBitmapCache(TARGET_CACHE_SIZE_BYTES, 0, 0); field in class:MainActivity
119 mCache, true /* limit density */, opts);
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DDecodeTask.java55 private final BitmapCache mCache; field in class:DecodeTask
104 mCache = cache;
144 mInBitmap = mCache.poll();
190 mCache.offer(mInBitmap);
261 + mCache.toDebugString());
377 mCache.offer(mInBitmap);
446 mCache.put(mKey, result);
459 mCache.offer(mInBitmap);
H A DUnrefedPooledCache.java46 private final LinkedHashMap<K, V> mCache; field in class:UnrefedPooledCache
60 mCache = new LinkedHashMap<K, V>(0, 0.75f, true);
74 synchronized (mCache) {
75 V result = mCache.get(key);
95 synchronized (mCache) {
98 prev = mCache.put(key, value);
129 synchronized (mCache) {
132 for (Map.Entry<K, V> entry : mCache.entrySet()) {
155 mCache.remove(eldestUnref.getKey());
175 synchronized (mCache) {
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DBasicBitmapDrawable.java67 private final BitmapCache mCache; field in class:BasicBitmapDrawable
99 mCache = cache;
244 final ReusableBitmap cached = mCache.get(key, true /* incrementRefCount */);
254 "CACHE MISS key=%s\ncache=%s", mCurrKey, mCache.toDebugString()));
334 mTask = new DecodeTask(mCurrKey, opts, factory, this, mCache);
/frameworks/minikin/libs/minikin/
H A DHbFontCache.cpp34 HbFontCache() : mCache(kMaxEntries) {
35 mCache.setOnEntryRemovedListener(this);
44 return mCache.get(fontId);
48 mCache.put(fontId, font);
52 mCache.clear();
56 mCache.remove(fontId);
62 android::LruCache<int32_t, hb_font_t*> mCache; member in class:minikin::HbFontCache
H A DLayout.cpp126 LayoutCache() : mCache(kMaxEntries) {
127 mCache.setOnEntryRemovedListener(this);
131 mCache.clear();
136 Layout* layout = mCache.get(key);
141 mCache.put(key, layout);
153 android::LruCache<LayoutCacheKey, Layout*> mCache; member in class:minikin::LayoutCache
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java2034 Map<Integer, Pair<BridgeTypedArray, PropertiesMap>>>> mCache; field in class:BridgeContext.TypedArrayCache
2037 mCache = new IdentityHashMap<>();
2043 cacheFromThemes = mCache.get(attrs);
2057 cacheFromThemes = mCache.computeIfAbsent(attrs, k -> new HashMap<>());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java60 private Bitmap mCache; field in class:LockscreenWallpaper
85 return mCache;
89 mCache = null;
97 mCache = result.bitmap;
99 return mCache;
188 mCache = result.bitmap;
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicLUT.java28 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
35 mCache[ct] = (byte)ct;
36 mCache[ct + 256] = (byte)ct;
37 mCache[ct + 512] = (byte)ct;
38 mCache[ct + 768] = (byte)ct;
81 mCache[index] = (byte)value;
93 mCache[index+256] = (byte)value;
105 mCache[index+512] = (byte)value;
117 mCache[index+768] = (byte)value;
143 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java76 private final Cache mCache = new Cache(); field in class:LockSettingsStorage
150 mCache.putKeyValue(key, value, userId);
159 synchronized (mCache) {
160 if (mCache.hasKeyValue(key, userId)) {
161 return mCache.peekKeyValue(key, defaultValue, userId);
163 version = mCache.getVersion();
178 mCache.putKeyValueIfUnchanged(key, result, userId, version);
184 synchronized (mCache) {
185 if (mCache.isFetched(userId)) {
188 mCache
589 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>(); field in class:LockSettingsStorage.Cache
[all...]

Completed in 4484 milliseconds

123