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

1 2 3 4 5 6 7 8 91011

  /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 99 for (auto entry : mCache) {
102 mCache.clear();
109 auto iter = mCache.find(entry);
111 if (iter != mCache.end()) {
113 mCache.erase(iter);
139 RenderBuffer* victim = mCache.begin()->mBuffer;
141 mCache.erase(mCache.begin());
146 mCache.insert(entry);
  /frameworks/base/services/tests/servicestests/src/com/android/server/wm/
TaskSnapshotCacheTest.java 41 private TaskSnapshotCache mCache;
46 mCache = new TaskSnapshotCache(sWm, mLoader);
52 mCache.putSnapshot(window.getTask(), createSnapshot());
53 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
55 mCache.onAppRemoved(window.mAppToken);
56 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
63 mCache.putSnapshot(window.getTask(), createSnapshot());
64 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
66 mCache.onAppDied(window.mAppToken);
67 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */
    [all...]
  /frameworks/native/opengl/tests/EGLTest/
egl_cache_test.cpp 36 mCache = egl_cache_t::get();
40 mCache->setCacheFilename("");
41 mCache->terminate();
44 egl_cache_t* mCache;
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->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY))
    [all...]
  /packages/apps/StorageManager/src/com/android/storagemanager/utils/
PreferenceListCache.java 30 private ArrayMap<String, Preference> mCache;
38 mCache = new ArrayMap<>();
43 if (TextUtils.isEmpty(key) || mCache.containsKey(key)) {
47 mCache.put(p.getKey(), p);
57 return mCache.remove(key);
64 for (Preference p : mCache.values()) {
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
ThumbnailCacheTest.java 58 private ThumbnailCache mCache;
62 mCache = new ThumbnailCache(CACHE_SIZE_LIMIT);
67 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
69 Result result = mCache.getThumbnail(URI_1, MID_SIZE);
76 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
78 Result result = mCache.getThumbnail(URI_0, MID_SIZE);
86 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
88 Result result = mCache.getThumbnail(URI_0, LARGE_SIZE);
96 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
98 Result result = mCache.getThumbnail(URI_0, SMALL_SIZE)
    [all...]
  /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;
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
AnqpCacheTest.java 46 AnqpCache mCache;
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.getEntry(ENTRY_KEY))
    [all...]
  /frameworks/rs/support/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...]
  /tools/tradefederation/core/src/com/android/tradefed/build/
FileDownloadCacheWrapper.java 28 private final FileDownloadCache mCache;
32 mCache = FileDownloadCacheFactory.getInstance().getCache(cacheDir);
41 return mCache.fetchRemoteFile(mDelegateDownloader, remoteFilePath);
  /frameworks/ml/nn/driver/cache/nnCache/
nnCache_test.cpp 43 mCache = NNCache::get();
47 mCache->setCacheFilename("");
48 mCache->terminate();
51 NNCache* mCache;
66 mCache->setBlob("abcd", 4, "efgh", 4);
67 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
76 mCache->initialize(maxKeySize, maxValueSize, maxTotalSize, GetParam());
77 mCache->setBlob("abcd", 4, "efgh", 4);
78 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
87 mCache->initialize(maxKeySize, maxValueSize, maxTotalSize, GetParam())
    [all...]
  /hardware/qcom/gps/msm8998/core/
SystemStatus.cpp     [all...]
  /hardware/qcom/gps/sdm845/core/
SystemStatus.cpp     [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
TaskKeyStrongCache.java 34 private final ArrayMap<Integer, V> mCache = new ArrayMap<>();
39 put(key, other.mCache.get(key.id));
56 return mCache.get(id);
61 mCache.put(id, value);
66 mCache.remove(id);
71 mCache.clear();
TaskKeyLruCache.java 37 private final LruCache<Integer, V> mCache;
46 mCache = new LruCache<Integer, V>(cacheSize) {
60 mCache.trimToSize(cacheSize);
77 return mCache.get(id);
82 mCache.put(id, value);
87 mCache.remove(id);
92 mCache.evictAll();
  /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);
  /external/volley/src/main/java/com/android/volley/toolbox/
ClearCacheRequest.java 31 private final Cache mCache;
42 mCache = cache;
49 mCache.clear();
  /external/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);
  /tools/tradefederation/core/tests/src/com/android/tradefed/build/
FileDownloadCacheTest.java 46 private FileDownloadCache mCache;
53 mCache = new FileDownloadCache(mCacheDir);
58 mCache.empty();
94 mCache.setMaxCacheSize(DOWNLOADED_CONTENTS.length() + 1);
101 assertNotNull(mCache.getCachedFile(REMOTE_PATH));
102 assertNull(mCache.getCachedFile(remotePath2));
116 mCache.fetchRemoteFile(mMockDownloader, REMOTE_PATH);
121 assertNull(mCache.getCachedFile(REMOTE_PATH));
135 mCache.fetchRemoteFile(mMockDownloader, REMOTE_PATH);
140 assertNull(mCache.getCachedFile(REMOTE_PATH))
    [all...]

Completed in 552 milliseconds

1 2 3 4 5 6 7 8 91011