HomeSort by relevance Sort by last modified time
    Searched refs:mCache (Results 1 - 25 of 209) sorted by null

1 2 3 4 5 6 7 8 9

  /packages/apps/Dialer/tests/src/com/android/dialer/util/
ExpirableCacheTest.java 31 private ExpirableCache<String, Integer> mCache;
38 mCache = ExpirableCache.create(lruCache);
43 mCache = null;
48 mCache.put("a", 1);
49 mCache.put("b", 2);
50 assertEquals(1, mCache.getPossiblyExpired("a").intValue());
51 assertEquals(2, mCache.getPossiblyExpired("b").intValue());
52 mCache.put("a", 3);
53 assertEquals(3, mCache.getPossiblyExpired("a").intValue());
57 assertNull(mCache.getPossiblyExpired("a"))
    [all...]
  /frameworks/base/libs/hwui/
FboCache.cpp 42 return mCache.size();
54 for (size_t i = 0; i < mCache.size(); i++) {
55 const GLuint fbo = mCache.itemAt(i);
58 mCache.clear();
63 if (mCache.size() > 0) {
64 fbo = mCache.itemAt(mCache.size() - 1);
65 mCache.removeAt(mCache.size() - 1);
73 if (mCache.size() < mMaxSize)
    [all...]
ResourceCache.cpp 33 for (size_t i = 0; i < mCache->size(); ++i) {
34 ResourceReference* ref = mCache->valueAt(i);
35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
36 i, mCache->keyAt(i), mCache->valueAt(i));
37 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d",
44 mCache = new KeyedVector<const void*, ResourceReference*>();
49 delete mCache;
70 ssize_t index = mCache->indexOfKey(resource);
71 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr
    [all...]
RenderBufferCache.cpp 91 for (auto entry : mCache) {
94 mCache.clear();
101 auto iter = mCache.find(entry);
103 if (iter != mCache.end()) {
105 mCache.erase(iter);
131 RenderBuffer* victim = mCache.begin()->mBuffer;
133 mCache.erase(mCache.begin());
138 mCache.insert(entry);
LayerCache.cpp 46 return mCache.size();
85 for (auto entry : mCache) {
88 mCache.clear();
95 auto iter = mCache.find(entry);
97 if (iter != mCache.end()) {
99 mCache.erase(iter);
125 for (auto entry : mCache) {
138 Layer* victim = mCache.begin()->mLayer;
140 mCache.erase(mCache.begin())
    [all...]
FboCache.h 72 SortedVector<GLuint> mCache;
  /frameworks/native/opengl/tests/EGLTest/
egl_cache_test.cpp 32 mCache = egl_cache_t::get();
36 mCache->setCacheFilename("");
37 mCache->terminate();
40 egl_cache_t* mCache;
45 mCache->setBlob("abcd", 4, "efgh", 4);
46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
55 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY));
56 mCache->setBlob("abcd", 4, "efgh", 4);
57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
66 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY))
    [all...]
  /packages/apps/StorageManager/src/com/android/storagemanager/
PreferenceListCache.java 30 private ArrayMap<String, Preference> mCache;
38 mCache = new ArrayMap<>();
45 mCache.put(p.getKey(), p);
55 return mCache.remove(key);
62 for (Preference p : mCache.values()) {
  /frameworks/base/rs/java/android/renderscript/
ScriptIntrinsicLUT.java 28 private final byte mCache[] = new byte[1024];
35 mCache[ct] = (byte)ct;
36 mCache[ct + 256] = (byte)ct;
37 mCache[ct + 512] = (byte)ct;
38 mCache[ct + 768] = (byte)ct;
77 mCache[index] = (byte)value;
89 mCache[index+256] = (byte)value;
101 mCache[index+512] = (byte)value;
113 mCache[index+768] = (byte)value;
139 mTables.copyFromUnchecked(mCache);
    [all...]
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
ScriptIntrinsicLUT.java 30 private final byte mCache[] = new byte[1024];
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/base/core/tests/coretests/src/android/content/res/
ConfigurationBoundResourceCacheTest.java 30 ConfigurationBoundResourceCache<Float> mCache;
39 mCache = new ConfigurationBoundResourceCache<>();
45 assertNull(mCache.getInstance(-1, res, null));
50 mCache.put(1, null, new DummyFloatConstantState(5f));
52 assertEquals(5f, mCache.getInstance(1, res, null));
53 assertNotSame(5f, mCache.getInstance(1, res, null));
54 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme()));
59 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f));
61 assertEquals(null, mCache.getInstance(1, res, null));
62 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme()))
    [all...]
  /frameworks/base/services/core/java/com/android/server/hdmi/
HdmiCecMessageCache.java 39 private final SparseArray<SparseArray<HdmiCecMessage>> mCache = new SparseArray<>();
54 SparseArray<HdmiCecMessage> messages = mCache.get(address);
68 mCache.remove(address);
75 mCache.clear();
91 SparseArray<HdmiCecMessage> messages = mCache.get(source);
94 mCache.put(source, messages);
  /packages/apps/UnifiedEmail/src/com/android/mail/content/
ObjectCursor.java 31 private final SparseArray<T> mCache;
42 mCache = new SparseArray<T>(cursor.getCount());
44 mCache = null;
63 final T prev = mCache.get(currentPosition);
69 mCache.put(currentPosition, model);
91 mCache.clear();
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
FastScrollingIndexCacheTest.java 32 private FastScrollingIndexCache mCache;
56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs);
93 assertNull(mCache.get(null, null, null, null, null));
94 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*"));
95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*"));
96 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce"));
100 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0);
103 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1);
106 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2);
109 b = putAndGetBundle(mCache, URI_B, "s", PROJECTION_2, "so", "ce", TITLES_3, COUNTS_3)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
UniqueKeysCache.java 48 private final HashMap<Key, Key> mCache;
53 mCache = new HashMap<>();
63 mCache.clear();
71 final Key existingKey = mCache.get(key);
77 mCache.put(key, key);
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
ClearCacheRequest.java 31 private final Cache mCache;
42 mCache = cache;
49 mCache.clear();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
TaskKeyLruCache.java 43 private final LruCache<Integer, V> mCache;
52 mCache = new LruCache<Integer, V>(cacheSize) {
69 return mCache.get(key.id);
89 return mCache.get(key.id);
99 mCache.put(key.id, value);
105 mCache.remove(key.id);
111 mCache.evictAll();
117 mCache.trimToSize(cacheSize);
  /frameworks/volley/src/test/java/com/android/volley/
NetworkDispatcherTest.java 40 private MockCache mCache;
50 mCache = new MockCache();
52 mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery);
86 assertFalse(mCache.putCalled);
95 assertTrue(mCache.putCalled);
96 assertNotNull(mCache.entryPut);
97 assertTrue(Arrays.equals(mCache.entryPut.data, CANNED_DATA));
98 assertEquals("bananaphone", mCache.keyPut);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
ImageCacheService.java 40 private BlobCache mCache;
43 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE,
65 synchronized (mCache) {
66 if (!mCache.lookup(request)) return false;
86 synchronized (mCache) {
88 mCache.insert(cacheKey, buffer.array());
98 synchronized (mCache) {
100 mCache.clearEntry(cacheKey);
  /packages/apps/TV/tests/unit/src/com/android/tv/common/
TvContentRatingCacheTest.java 45 TvContentRatingCache mCache = TvContentRatingCache.getInstance();
50 mCache.performTrimMemory(ComponentCallbacks2.TRIM_MEMORY_COMPLETE);
55 mCache.performTrimMemory(ComponentCallbacks2.TRIM_MEMORY_COMPLETE);
60 TvContentRating[] result = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
65 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
66 TvContentRating[] second = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
71 TvContentRating[] first = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
72 mCache.performTrimMemory(ComponentCallbacks2.TRIM_MEMORY_COMPLETE);
73 TvContentRating[] second = mCache.getRatings(TvContentRatingConstants.STRING_US_TV_MA);
78 TvContentRating[] first = mCache.getRatings(MA_AND_Y7)
    [all...]
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
71 Bitmap[] result = mCache.get(artUrl);
76 Bitmap[] result = mCache.get(artUrl);
85 Bitmap[] bitmap = mCache.get(artUrl);
103 mCache.put(artUrl, bitmaps);
108 mCache.size());
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
71 Bitmap[] result = mCache.get(artUrl);
76 Bitmap[] result = mCache.get(artUrl);
85 Bitmap[] bitmap = mCache.get(artUrl);
103 mCache.put(artUrl, bitmaps);
108 mCache.size());
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
AlbumArtCache.java 48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
71 Bitmap[] result = mCache.get(artUrl);
76 Bitmap[] result = mCache.get(artUrl);
85 Bitmap[] bitmap = mCache.get(artUrl);
103 mCache.put(artUrl, bitmaps);
108 mCache.size());
  /frameworks/minikin/libs/minikin/
HbFontCache.cpp 49 HbFontCache() : mCache(kMaxEntries) {
50 mCache.setOnEntryRemovedListener(this);
59 return mCache.get(fontId);
63 mCache.put(fontId, font);
67 mCache.clear();
71 mCache.remove(fontId);
77 LruCache<int32_t, hb_font_t*> mCache;
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
AlbumArtCache.java 48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
71 Bitmap[] result = mCache.get(artUrl);
76 Bitmap[] result = mCache.get(artUrl);
85 Bitmap[] bitmap = mCache.get(artUrl);
103 mCache.put(artUrl, bitmaps);
107 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());

Completed in 483 milliseconds

1 2 3 4 5 6 7 8 9