Home
last modified time | relevance | path

Searched defs:cache (Results 1 – 25 of 69) sorted by relevance

123

/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DLruCacheTest.java35 LruCache<String, String> cache = new LruCache<String, String>(3); in testStatistics() local
84 LruCache<String, String> cache = newCreatingCache(); in testStatisticsWithCreate() local
108 LruCache<String, String> cache = newCreatingCache(); in testCreateOnCacheMiss() local
114 LruCache<String, String> cache = newCreatingCache(); in testNoCreateOnCacheHit() local
128 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullKey() local
137 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullValue() local
172 LruCache<String, String> cache = newRemovalLogCache(log); in testEntryEvictedWhenFull() local
189 LruCache<String, String> cache = newRemovalLogCache(log); in testPutCauseEviction() local
304 LruCache<String, String> cache = newRemovalLogCache(log); in testEvictAll() local
357 LruCache<String, String> cache = newRemovalLogCache(log); in testRemoveCallsEntryRemoved() local
[all …]
H A DHashedStringCacheTest.java55 HashedStringCache cache = HashedStringCache.getInstance(); in testInstanceNotNull() local
61 HashedStringCache cache = HashedStringCache.getInstance(); in testInstanceMatchesOnSecondCall() local
67 HashedStringCache cache = HashedStringCache.getInstance(); in testHashedStringNotOriginalString() local
75 HashedStringCache cache = HashedStringCache.getInstance(); in testThatMultipleCallsResultInSameHash() local
86 HashedStringCache cache = HashedStringCache.getInstance(); in testThatMultipleInputResultInDifferentHash() local
96 HashedStringCache cache = HashedStringCache.getInstance(); in testThatZeroDaysResultsInNewHash() local
106 HashedStringCache cache = HashedStringCache.getInstance(); in testThatNegativeDaysResultsInNewHash() local
116 HashedStringCache cache = HashedStringCache.getInstance(); in testThatDaysGreater365ResultsInSameResult() local
131 HashedStringCache cache = HashedStringCache.getInstance(); in testMinusOneResultsInNull() local
139 HashedStringCache cache = HashedStringCache.getInstance(); in testEmptyStringInput() local
[all …]
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DProgramInfoCacheTest.java72 ProgramInfoCache cache = new ProgramInfoCache(null, false, mAmFmInfo); in testUpdateFromHal() local
98 ProgramInfoCache cache = new ProgramInfoCache(null, true); in testNullFilter() local
106 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testEmptyFilter() local
118 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(filterTypes, in testFilterByType() local
129 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testFilterByIdentifier() local
137 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testFilterExcludeCategories() local
145 ProgramInfoCache cache = new ProgramInfoCache(null, false, mAmFmInfo); in testPurgeUpdateChunks() local
159 ProgramInfoCache cache = new ProgramInfoCache(null, true, mAmFmInfo, mRdsInfo, in testDeltaUpdateChunksModificationsIncluded() local
195 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testDeltaUpdateChunksModificationsExcluded() local
/aosp14/system/core/libutils/
H A DLruCache_test.cpp251 ComplexCache cache(100); in TEST_F() local
260 ComplexCache cache(100); in TEST_F() local
272 ComplexCache cache(100); in TEST_F() local
286 ComplexCache cache(100); in TEST_F() local
348 LruCache<int, int> cache(100); in TEST_F() local
368 LruCache<int, int> cache(100); in TEST_F() local
380 LruCache<int, int> cache(100); in TEST_F() local
392 LruCache<int, int> cache(100); in TEST_F() local
406 LruCache<int, int> cache(100); in TEST_F() local
422 LruCache<int, int> cache(100); in TEST_F() local
[all …]
H A DLruCache_fuzz.cpp67 FuzzCache cache(MAX_CACHE_ENTRIES); in LLVMFuzzerTestOneInput() local
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
H A DProgramInfoCacheTest.java131 ProgramInfoCache cache = new ProgramInfoCache(/* filter= */ null, in updateFromHalProgramListChunk_withPurgingCompleteChunk() local
148 ProgramInfoCache cache = new ProgramInfoCache(/* filter= */ null, in updateFromHalProgramListChunk_withNonPurgingIncompleteChunk() local
167 ProgramInfoCache cache = new ProgramInfoCache(/* filter= */ null, in filterAndUpdateFromInternal_withNullFilter() local
180 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withEmptyFilter() local
194 ProgramInfoCache cache = new ProgramInfoCache( in filterAndUpdateFromInternal_withFilterByIdentifierType() local
208 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter( in filterAndUpdateFromInternal_withFilterByIdentifier() local
229 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withFilterExcludingCategories() local
254 ProgramInfoCache cache = new ProgramInfoCache(filterExcludingModifications, in filterAndUpdateFromInternal_withFilterExcludingModifications() local
276 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withPurge() local
299 ProgramInfoCache cache = new ProgramInfoCache(/* filter= */ null, in filterAndApplyChunkInternal_withPurgingIncompleteChunk() local
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DPropertyInvalidatedCacheTests.java239 TestCache cache = new TestCache(); in testCacheRecompute() local
261 TestCache cache = new TestCache(); in testCacheInitialState() local
274 TestCache cache = new TestCache(MODULE, UNSET_API); in testCachePropertyUnset() local
282 TestCache cache = new TestCache(); in testCacheDisableState() local
303 TestCache cache = new TestCache() { in testRefreshSameObject() local
324 TestCache cache = new TestCache() { in testRefreshInvalidateRace() local
343 TestCache cache = new TestCache(); in testLocalProcessDisable() local
374 TestCache cache = new TestCache(MODULE, "trimMemoryTest"); in testOnTrimMemory() local
/aosp14/frameworks/base/core/java/android/net/
H A DSSLSessionCache.java59 public static void install(SSLSessionCache cache, SSLContext context) { in install()
76 public SSLSessionCache(Object cache) { in SSLSessionCache()
100 SSLClientSessionCache cache = null; in SSLSessionCache() local
H A DSSLCertificateSocketFactory.java144 int handshakeTimeoutMillis, SSLSessionCache cache, boolean secure) { in SSLCertificateSocketFactory()
170 public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { in getDefault()
186 public static SSLSocketFactory getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) { in getInsecure()
208 int handshakeTimeoutMillis, SSLSessionCache cache) { in getHttpSocketFactory()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DWifiRestrictionsCache.java58 WifiRestrictionsCache cache; in getInstance() local
66 sInstances.put(context.getUserId(), cache); in getInstance() local
78 WifiRestrictionsCache cache = sInstances.get(key); in clearInstance() local
H A DAccessPointPreference.java102 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
108 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
115 AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
H A DWifiTracker.java730 List<AccessPoint> cache) { in getCachedOrCreate()
745 List<AccessPoint> cache) { in getCachedOrCreatePasspoint()
759 List<AccessPoint> cache) { in getCachedOrCreateOsu()
769 private AccessPoint getCachedByKey(List<AccessPoint> cache, String key) { in getCachedByKey()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DRegisteredServicesCacheTest.java82 TestServicesCache cache = new TestServicesCache(); in testGetAllServicesHappyPath() local
94 TestServicesCache cache = new TestServicesCache(); in testGetAllServicesReplaceUid() local
116 TestServicesCache cache = new TestServicesCache(); in testGetAllServicesServiceRemoved() local
131 TestServicesCache cache = new TestServicesCache(); in testGetAllServicesMultiUser() local
149 TestServicesCache cache = new TestServicesCache(); in testOnRemove() local
176 TestServicesCache cache = new TestServicesCache(); in testMigration() local
203 private void assertNotEmptyFileCreated(TestServicesCache cache, int userId) { in assertNotEmptyFileCreated()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DIpcDataCacheTest.java295 TestCache cache = new TestCache(); in testCacheRecompute() local
317 TestCache cache = new TestCache(); in testCacheInitialState() local
330 TestCache cache = new TestCache(MODULE, UNSET_API); in testCachePropertyUnset() local
338 TestCache cache = new TestCache(); in testCacheDisableState() local
358 TestCache cache = new TestCache(); in testLocalProcessDisable() local
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DShaderCacheTests.cpp50 static void reinitializeAllFields(ShaderCache& cache) { in reinitializeAllFields()
74 static void setSaveDelayMs(ShaderCache& cache, unsigned int saveDelayMs) { in setSaveDelayMs()
83 static void terminate(ShaderCache& cache, bool saveContent) { in terminate()
95 static bool validateCache(ShaderCache& cache, std::vector<T> hash) { in validateCache()
110 static void waitForPendingSave(ShaderCache& cache, const int timeoutMs = 50) { in waitForPendingSave()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DAccessibilityInteractionClientTest.java101 AccessibilityCache cache = AccessibilityInteractionClient.getCache( in getCache_addConnectionWithoutCache_returnsNullCache() local
108 AccessibilityCache cache = AccessibilityInteractionClient.getCache(MOCK_CONNECTION_ID); in getCache_removeConnection_returnsNull() local
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A DPackageMatchingCacheTest.java43 private final PackageMatchingCache cache = new PackageMatchingCache(supplier); field in PackageMatchingCacheTest
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/
H A DSceneTransitions.kt40 private val cache = mutableMapOf<SceneKey, MutableMap<SceneKey, TransitionSpec>>() regex
100 private val cache = mutableMapOf<ElementKey, ElementTransformations>() regex
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityInteractionClient.java331 public static void setCache(int connectionId, AccessibilityCache cache) { in setCache()
402 AccessibilityCache cache = getCache(connectionId); in getWindow() local
489 AccessibilityCache cache = getCache(connectionId); in getWindowsOnAllDisplays() local
605 AccessibilityCache cache = getCache(connectionId); in findAccessibilityNodeInfoByAccessibilityId() local
940 AccessibilityCache cache = getCache(connectionId); in findFocus() local
1126 AccessibilityCache cache = getCache(connectionId); in clearCache() local
1151 AccessibilityCache cache = getCache(connectionId); in onAccessibilityEvent() local
1444 AccessibilityCache cache = getCache(connectionId); in finalizeAndCacheAccessibilityNodeInfo() local
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java70 final Bitmap[] cache = new Bitmap[1]; in createCacheForView() local
H A DZeroSizedTest.java89 final Bitmap[] cache = new Bitmap[1]; in createCacheForView() local
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/attention/
H A DAttentionManagerServiceTest.java272 AttentionCheckCache cache = new AttentionCheckCache(0, 0, 2L); in testAttentionCheckCacheBuffer_getLast_returnTheLastElement() local
286 AttentionCheckCache cache = new AttentionCheckCache(0L, 0, 1L); in testAttentionCheckCacheBuffer_get_handleCircularIndexing() local
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiLogger.java112 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { in updateLog()
131 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
H A DBubbleVolatileRepository.kt161 private fun cache(bubbles: List<BubbleEntity>) { regex
/aosp14/frameworks/base/services/core/java/com/android/server/attention/
H A DAttentionManagerService.java296 final AttentionCheckCache cache = mAttentionCheckCacheBuffer == null ? null in checkAttention() local
560 public void add(@NonNull AttentionCheckCache cache) { in add()
577 AttentionCheckCache cache; in dump() local
725 private void appendResultToAttentionCacheBuffer(AttentionCheckCache cache) { in appendResultToAttentionCacheBuffer()

123