Home
last modified time | relevance | path

Searched refs:mCache (Results 1 – 25 of 116) sorted by relevance

12345

/aosp12/hardware/qcom/gps/msm8909w_3100/core/
H A DSystemStatus.cpp1266 mCache.mXoState.erase(mCache.mXoState.begin()); in setXoState()
1339 mCache.mXtra.erase(mCache.mXtra.begin()); in setXtra()
1381 mCache.mPdr.erase(mCache.mPdr.begin()); in setPdr()
1395 mCache.mNavData.erase(mCache.mNavData.begin()); in setNavData()
1701 mCache.mLocation.erase(mCache.mLocation.begin()); in setDefaultReport()
1710 mCache.mXoState.erase(mCache.mXoState.begin()); in setDefaultReport()
1731 mCache.mXtra.erase(mCache.mXtra.begin()); in setDefaultReport()
1735 mCache.mEphemeris.erase(mCache.mEphemeris.begin()); in setDefaultReport()
1739 mCache.mSvHealth.erase(mCache.mSvHealth.begin()); in setDefaultReport()
1743 mCache.mPdr.erase(mCache.mPdr.begin()); in setDefaultReport()
[all …]
/aosp12/hardware/qcom/gps/msm8998/core/
H A DSystemStatus.cpp1222 mCache.mXoState.erase(mCache.mXoState.begin()); in setXoState()
1295 mCache.mXtra.erase(mCache.mXtra.begin()); in setXtra()
1337 mCache.mPdr.erase(mCache.mPdr.begin()); in setPdr()
1351 mCache.mNavData.erase(mCache.mNavData.begin()); in setNavData()
1615 mCache.mLocation.erase(mCache.mLocation.begin()); in setDefaultReport()
1624 mCache.mXoState.erase(mCache.mXoState.begin()); in setDefaultReport()
1645 mCache.mXtra.erase(mCache.mXtra.begin()); in setDefaultReport()
1649 mCache.mEphemeris.erase(mCache.mEphemeris.begin()); in setDefaultReport()
1653 mCache.mSvHealth.erase(mCache.mSvHealth.begin()); in setDefaultReport()
1657 mCache.mPdr.erase(mCache.mPdr.begin()); in setDefaultReport()
[all …]
/aosp12/hardware/qcom/sdm845/gps/msm8998/core/
H A DSystemStatus.cpp1222 mCache.mXoState.erase(mCache.mXoState.begin()); in setXoState()
1295 mCache.mXtra.erase(mCache.mXtra.begin()); in setXtra()
1337 mCache.mPdr.erase(mCache.mPdr.begin()); in setPdr()
1351 mCache.mNavData.erase(mCache.mNavData.begin()); in setNavData()
1615 mCache.mLocation.erase(mCache.mLocation.begin()); in setDefaultReport()
1624 mCache.mXoState.erase(mCache.mXoState.begin()); in setDefaultReport()
1645 mCache.mXtra.erase(mCache.mXtra.begin()); in setDefaultReport()
1649 mCache.mEphemeris.erase(mCache.mEphemeris.begin()); in setDefaultReport()
1653 mCache.mSvHealth.erase(mCache.mSvHealth.begin()); in setDefaultReport()
1657 mCache.mPdr.erase(mCache.mPdr.begin()); in setDefaultReport()
[all …]
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DThumbnailCacheTest.java63 private ThumbnailCache mCache; field in ThumbnailCacheTest
67 mCache = new ThumbnailCache(CACHE_SIZE_LIMIT); in setUp()
74 Result result = mCache.getThumbnail(URI_1, USER_ID_0, MID_SIZE); in testMiss()
82 Result result = mCache.getThumbnail(URI_0, USER_ID_1, MID_SIZE); in testMiss_DifferentUser()
90 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact()
121 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Larger_HasBothSize()
135 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact_MultiplePut()
145 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_EqualLastModified()
167 mCache.onTrimMemory(ComponentCallbacks2.TRIM_MEMORY_MODERATE); in testCacheShrink_OnTrimMemory_Moderate()
197 mCache.removeUri(URI_0, USER_ID_0); in testRemoveUri()
[all …]
/aosp12/packages/modules/NeuralNetworks/driver/cache/nnCache/
H A DnnCache_test.cpp43 mCache->setCacheFilename(""); in TearDown()
44 mCache->terminate(); in TearDown()
47 NNCache* mCache; member in android::NNCacheTest
63 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_P()
74 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_P()
85 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_P()
88 mCache->terminate(); in TEST_P()
96 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_P()
120 mCache->setBlob(&k, 1, "x", 1); in TEST_P()
225 mCache->terminate(); in TEST_P()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DRotationCacheTest.java43 private RotationCache<Object, Pair<Object, Integer>> mCache; field in RotationCacheTest
49 mCache = new RotationCache<>((o, rot) -> { in setUp()
57 assertThat(mCache.getOrCompute("hello", 0), equalTo(create("hello", 0))); in getOrCompute_computes()
65 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_sameRot_hitsCache()
74 assertNotNull(mCache.getOrCompute("hello", 3)); in getOrCompute_sameParam_hitsCache_forAllRots()
75 assertNotNull(mCache.getOrCompute("hello", 2)); in getOrCompute_sameParam_hitsCache_forAllRots()
76 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_sameParam_hitsCache_forAllRots()
77 assertNotNull(mCache.getOrCompute("hello", 0)); in getOrCompute_sameParam_hitsCache_forAllRots()
89 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_recomputes()
96 assertNotNull(mCache.getOrCompute("hello", 1)); in getOrCompute_changingParam_clearsCacheForDifferentRots()
[all …]
/aosp12/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp36 mCache = egl_cache_t::get(); in SetUp()
40 mCache->setCacheFilename(""); in TearDown()
41 mCache->terminate(); in TearDown()
44 egl_cache_t* mCache; member in android::EGLCacheTest
49 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F()
60 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F()
71 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F()
72 mCache->terminate(); in TEST_F()
99 mCache->setCacheFilename(&mTempFile->path[0]); in TEST_F()
101 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationBoundResourceCacheTest.java31 ConfigurationBoundResourceCache<Float> mCache; field in ConfigurationBoundResourceCacheTest
40 mCache = new ConfigurationBoundResourceCache<>(); in setUp()
46 assertNull(mCache.getInstance(-1, res, null)); in testGetEmpty()
53 assertEquals(5f, mCache.getInstance(1, res, null)); in testSetGet()
54 assertNotSame(5f, mCache.getInstance(1, res, null)); in testSetGet()
86 mCache.put(key, getActivity().getTheme(), in testVoidConfigChange()
95 mCache.onConfigurationChange(changes); in testVoidConfigChange()
108 mCache.put(key, getActivity().getTheme(), in testEffectiveConfigChange()
118 mCache.onConfigurationChange(changes); in testEffectiveConfigChange()
148 mCache.onConfigurationChange(changes); in testConfigChangeMultipleResources()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotCacheTest.java48 private TaskSnapshotCache mCache; field in TaskSnapshotCacheTest
61 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
67 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppRemoved()
70 mCache.onAppRemoved(window.mActivityRecord); in testAppRemoved()
71 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
78 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppDied()
81 mCache.onAppDied(window.mActivityRecord); in testAppDied()
89 mCache.putSnapshot(window.getTask(), createSnapshot()); in testTaskRemoved()
92 mCache.onTaskRemoved(window.getTask().mTaskId); in testTaskRemoved()
130 mCache.putSnapshot(window.getTask(), mSnapshot); in testClearCache()
[all …]
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DFastScrollingIndexCacheTest.java31 private FastScrollingIndexCache mCache; field in FastScrollingIndexCacheTest
55 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp()
92 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
93 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
94 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); in testPutAndGet()
95 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
118 mCache.invalidate(); in testPutAndGet()
121 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
122 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
124 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
[all …]
/aosp12/hardware/qcom/sm7250/gps/core/
H A DSystemStatus.cpp1294 mCache.mNetworkInfo[i].mNetworkHandle, mCache.mNetworkInfo[i].mApn); in resetNetworkInfo()
1308 mCache.mLocation.clear(); in SystemStatus()
1311 mCache.mXoState.clear(); in SystemStatus()
1317 mCache.mXtra.clear(); in SystemStatus()
1320 mCache.mPdr.clear(); in SystemStatus()
1321 mCache.mNavData.clear(); in SystemStatus()
1326 mCache.mENH.clear(); in SystemStatus()
1334 mCache.mModel.clear(); in SystemStatus()
1343 mCache.mTac.clear(); in SystemStatus()
1344 mCache.mMccMnc.clear(); in SystemStatus()
[all …]
/aosp12/hardware/qcom/sm8150/gps/core/
H A DSystemStatus.cpp1294 mCache.mNetworkInfo[i].mNetworkHandle, mCache.mNetworkInfo[i].mApn); in resetNetworkInfo()
1308 mCache.mLocation.clear(); in SystemStatus()
1311 mCache.mXoState.clear(); in SystemStatus()
1317 mCache.mXtra.clear(); in SystemStatus()
1320 mCache.mPdr.clear(); in SystemStatus()
1321 mCache.mNavData.clear(); in SystemStatus()
1326 mCache.mENH.clear(); in SystemStatus()
1334 mCache.mModel.clear(); in SystemStatus()
1343 mCache.mTac.clear(); in SystemStatus()
1344 mCache.mMccMnc.clear(); in SystemStatus()
[all …]
/aosp12/hardware/qcom/sm8150p/gps/core/
H A DSystemStatus.cpp1300 mCache.mLocation.clear(); in SystemStatus()
1303 mCache.mXoState.clear(); in SystemStatus()
1309 mCache.mXtra.clear(); in SystemStatus()
1311 mCache.mSvHealth.clear(); in SystemStatus()
1312 mCache.mPdr.clear(); in SystemStatus()
1313 mCache.mNavData.clear(); in SystemStatus()
1318 mCache.mENH.clear(); in SystemStatus()
1326 mCache.mModel.clear(); in SystemStatus()
1335 mCache.mTac.clear(); in SystemStatus()
1336 mCache.mMccMnc.clear(); in SystemStatus()
[all …]
/aosp12/hardware/qcom/sdm845/gps/sdm845/core/
H A DSystemStatus.cpp1267 mCache.mLocation.clear(); in SystemStatus()
1270 mCache.mXoState.clear(); in SystemStatus()
1276 mCache.mXtra.clear(); in SystemStatus()
1278 mCache.mSvHealth.clear(); in SystemStatus()
1279 mCache.mPdr.clear(); in SystemStatus()
1280 mCache.mNavData.clear(); in SystemStatus()
1285 mCache.mENH.clear(); in SystemStatus()
1293 mCache.mModel.clear(); in SystemStatus()
1302 mCache.mTac.clear(); in SystemStatus()
1303 mCache.mMccMnc.clear(); in SystemStatus()
[all …]
/aosp12/hardware/qcom/sm7150/gps/core/
H A DSystemStatus.cpp1300 mCache.mLocation.clear(); in SystemStatus()
1303 mCache.mXoState.clear(); in SystemStatus()
1309 mCache.mXtra.clear(); in SystemStatus()
1311 mCache.mSvHealth.clear(); in SystemStatus()
1312 mCache.mPdr.clear(); in SystemStatus()
1313 mCache.mNavData.clear(); in SystemStatus()
1318 mCache.mENH.clear(); in SystemStatus()
1326 mCache.mModel.clear(); in SystemStatus()
1335 mCache.mTac.clear(); in SystemStatus()
1336 mCache.mMccMnc.clear(); in SystemStatus()
[all …]
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
H A DPreferenceListCacheTest.java42 private PreferenceListCache mCache; field in PreferenceListCacheTest
55 mCache = new PreferenceListCache(mGroup); in testEmptyPreferenceGroup()
56 mCache.removeCachedPrefs(); in testEmptyPreferenceGroup()
69 mCache = new PreferenceListCache(mGroup); in testCacheAndRestoreAllPreferences()
74 mCache.removeCachedPrefs(); in testCacheAndRestoreAllPreferences()
86 mCache = new PreferenceListCache(mGroup); in testRestoreSomePreferences()
90 mCache.removeCachedPrefs(); in testRestoreSomePreferences()
104 mCache = new PreferenceListCache(mGroup); in testRestoreZeroPreferences()
105 mCache.removeCachedPrefs(); in testRestoreZeroPreferences()
123 mCache = new PreferenceListCache(mGroup); in testKeyCollisionThrows()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DAnqpCacheTest.java65 AnqpCache mCache; field in AnqpCacheTest
75 mCache = new AnqpCache(mClock); in setUp()
85 mCache.addEntry(ENTRY_KEY, null); in addAndGetEntry()
98 assertNull(mCache.getEntry(ENTRY_KEY)); in getNonExistEntry()
108 mCache.addEntry(ENTRY_KEY, null); in sweepRemoveExpiredEntry()
113 mCache.sweep(); in sweepRemoveExpiredEntry()
118 mCache.sweep(); in sweepRemoveExpiredEntry()
119 assertNull(mCache.getEntry(ENTRY_KEY)); in sweepRemoveExpiredEntry()
129 mCache.addEntry(ENTRY_KEY, null); in testCacheFlush()
130 mCache.flush(); in testCacheFlush()
[all …]
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DLooperStub.cpp50 while (!mCache.empty() && mCache.front().empty()) { in pollAll()
52 mCache.erase(mCache.begin()); in pollAll()
55 if (mCache.empty()) { in pollAll()
60 const auto messages = mCache.front(); in pollAll()
64 mCache.front().clear(); in pollAll()
82 while (mCache.size() < pos + 1) { in sendMessageAtTime()
83 mCache.emplace_back(LooperStub::CacheEntry()); in sendMessageAtTime()
85 mCache[pos].emplace_back(message); in sendMessageAtTime()
90 mCache.clear(); in removeMessages()
96 for (auto& entry : mCache) { in removeMessages()
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicLUT.java33 private final byte mCache[] = new byte[1024]; field in ScriptIntrinsicLUT
40 mCache[ct] = (byte)ct; in ScriptIntrinsicLUT()
41 mCache[ct + 256] = (byte)ct; in ScriptIntrinsicLUT()
42 mCache[ct + 512] = (byte)ct; in ScriptIntrinsicLUT()
43 mCache[ct + 768] = (byte)ct; in ScriptIntrinsicLUT()
86 mCache[index] = (byte)value; in setRed()
98 mCache[index+256] = (byte)value; in setGreen()
110 mCache[index+512] = (byte)value; in setBlue()
122 mCache[index+768] = (byte)value; in setAlpha()
148 mTables.copyFromUnchecked(mCache); in forEach()
/aosp12/frameworks/av/media/bufferpool/2.0/
H A DBufferPoolClient.cpp145 } mCache; member in android::hardware::media::bufferpool::V2_0::implementation::BufferPoolClient::Impl
189 std::weak_ptr<BufferPoolData> mCache; member
244 mCache = cache; in createCache()
329 active = mCache.mActive > 0; in isActive()
441 if (!mCache.mCreating) { in receive()
442 mCache.mCreating = true; in receive()
473 mCache.mCreateCv.wait(lock); in receive()
680 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
690 (long long)mConnectionId, mCache.mBuffers.size(), mCache.mActive, evicted); in evictCaches()
697 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end(); ++it) { in invalidateBuffer()
[all …]
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/
H A DScriptIntrinsicLUT.java35 private final byte mCache[] = new byte[1024]; field in ScriptIntrinsicLUT
65 si.mCache[ct] = (byte)ct; in create()
66 si.mCache[ct + 256] = (byte)ct; in create()
67 si.mCache[ct + 512] = (byte)ct; in create()
68 si.mCache[ct + 768] = (byte)ct; in create()
92 mCache[index] = (byte)value;
104 mCache[index+256] = (byte)value;
116 mCache[index+512] = (byte)value;
128 mCache[index+768] = (byte)value;
143 mTables.copyFromUnchecked(mCache);
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
H A DCachedEventDispatcher.java33 private ArrayList<MotionEvent> mCache; field in CachedEventDispatcher
42 if (mCache == null) { in dispatchEvent()
43 mCache = new ArrayList<>(); in dispatchEvent()
46 mCache.add(mLastEvent); in dispatchEvent()
56 int cacheCount = mCache == null ? 0 : mCache.size(); in setConsumer()
58 MotionEvent ev = mCache.get(i); in setConsumer()
62 mCache = null; in setConsumer()
/aosp12/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java284 adapter.mCache.reset(); in handleMessage()
378 mCache = cache; in RemoteViewsFrameLayout()
924 synchronized (mCache.mMetaData) { in saveRemoteViewsCache()
927 synchronized (mCache) { in saveRemoteViewsCache()
980 mCache.getMetaData().reset(); in updateTemporaryMetaData()
982 synchronized (mCache) { in updateTemporaryMetaData()
983 mCache.reset(); in updateTemporaryMetaData()
1032 synchronized (mCache) { in updateRemoteViews()
1073 synchronized (mCache) { in getItemId()
1083 synchronized (mCache) { in getItemViewType()
[all …]
/aosp12/frameworks/av/media/bufferpool/1.0/
H A DBufferPoolClient.cpp130 } mCache; member in android::hardware::media::bufferpool::V1_0::implementation::BufferPoolClient::Impl
171 std::weak_ptr<BufferPoolData> mCache; member
223 mCache = cache; in createCache()
292 active = mCache.mActive > 0; in isActive()
380 mCache.incActive_l(); in receive()
386 if (!mCache.mCreating) { in receive()
387 mCache.mCreating = true; in receive()
413 mCache.mCreating = false; in receive()
418 mCache.mCreateCv.wait(lock); in receive()
576 for (auto it = mCache.mBuffers.begin(); it != mCache.mBuffers.end();) { in evictCaches()
[all …]
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java46 private final LinkedHashMap<K, V> mCache; field in UnrefedPooledCache
60 mCache = new LinkedHashMap<K, V>(0, 0.75f, true); in UnrefedPooledCache()
74 synchronized (mCache) { in get()
75 V result = mCache.get(key); in get()
95 synchronized (mCache) { in put()
98 prev = mCache.put(key, value); in put()
129 synchronized (mCache) { in poll()
155 mCache.remove(eldestUnref.getKey()); in poll()
175 synchronized (mCache) { in toDebugString()
179 sb.append(mCache.size()); in toDebugString()
[all …]

12345