Searched refs:evicted (Results 1 - 14 of 14) sorted by relevance

/frameworks/support/collection/ktx/src/main/java/androidx/collection/
H A DLruCache.kt30 * @param onEntryRemoved a function called for entries that have been evicted or removed.
41 crossinline onEntryRemoved: (evicted: Boolean, key: K, oldValue: V, newValue: V?) -> Unit =
47 override fun entryRemoved(evicted: Boolean, key: K, oldValue: V, newValue: V?) {
48 onEntryRemoved(evicted, key, oldValue, newValue)
/frameworks/support/core/ktx/src/main/java/androidx/core/util/
H A DLruCache.kt32 * @param onEntryRemoved a function called for entries that have been evicted or removed.
43 crossinline onEntryRemoved: (evicted: Boolean, key: K, oldValue: V, newValue: V?) -> Unit =
49 override fun entryRemoved(evicted: Boolean, key: K, oldValue: V, newValue: V?) {
50 onEntryRemoved(evicted, key, oldValue, newValue)
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java40 * added to a cache. If the fragment is evicted from the cache, it will be deleted.
183 protected void entryRemoved(boolean evicted, String key, argument
185 // remove the fragment if it's evicted OR it's replaced by a new fragment
186 if (evicted || (newValue != null && oldValue != newValue)) {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DTaskKeyLruCache.java27 * recently referenced key/values will be evicted as more values than the given cache size are
51 protected void entryRemoved(boolean evicted, Integer taskId, V oldV, V newV) {
/frameworks/base/core/tests/coretests/src/android/util/
H A DLruCacheTest.java60 expectedEvictionCount++; // a should have been evicted
72 expectedEvictionCount++; // d should have been evicted
97 expectedEvictionCount++; // aa will be evicted
101 expectedEvictionCount++; // bb will be evicted
373 boolean evicted, String key, String oldValue, String newValue) {
411 boolean evicted, String key, String oldValue, String newValue) {
438 boolean evicted, String key, Integer oldValue, Integer newValue) {
458 boolean evicted, String key, String oldValue, String newValue) {
459 String message = evicted
/frameworks/av/services/camera/libcameraservice/utils/
H A DClientManager.h239 * LRU descriptor being evicted (this means the incoming descriptor be added in this case).
245 * priority, and a different owner will be evicted in LRU order until either the cost is less
246 * than the max cost, or all descriptors meeting this criteria have been evicted and the
261 * are evicted by this action are returned in a vector.
263 * This may return the ClientDescriptor passed in if it would be evicted.
290 * Return a vector of the ClientDescriptors that would be evicted by adding the given
293 * This may return the ClientDescriptor passed in if it would be evicted.
347 * The onClientRemoved method will be called when the client has been removed or evicted
360 * Return a vector of the ClientDescriptors that would be evicted by adding the given
456 // Find evicted client
506 auto evicted = wouldEvictLocked(client); local
[all...]
/frameworks/base/core/java/android/util/
H A DLruCache.java25 * added to a full cache, the value at the end of that queue is evicted and may
250 * Called for entries that have been evicted or removed. This method is
251 * invoked when a value is evicted to make space, removed by a call to
258 * @param evicted true if the entry is being removed to make space, false
264 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} argument
360 * Returns the number of values that have been evicted.
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pGroupList.java55 protected void entryRemoved(boolean evicted, Integer netId,
/frameworks/layoutlib/bridge/src/android/util/
H A DLruCache.java29 * added to a full cache, the value at the end of that queue is evicted and may
261 * Called for entries that have been evicted or removed. This method is
262 * invoked when a value is evicted to make space, removed by a call to
269 * @param evicted true if the entry is being removed to make space, false
275 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} argument
371 * Returns the number of values that have been evicted.
/frameworks/support/collection/src/main/java/androidx/collection/
H A DLruCache.java214 * Called for entries that have been evicted or removed. This method is
215 * invoked when a value is evicted to make space, removed by a call to
222 * @param evicted true if the entry is being removed to make space, false
228 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} argument
324 * Returns the number of values that have been evicted.
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp321 ALOGI("%s: Client for camera ID %s evicted due to device status change from HAL",
967 auto evicted = mActiveClientManager.addAndEvict(clientDescriptor); local
972 if (evicted.size() > 0) {
974 for (auto& i : evicted) {
979 LOG_ALWAYS_FATAL("%s: Invalid state for CameraService, clients not evicted properly",
1006 // should be returned rather than evicted to allow MediaRecorder to work properly.
1067 // Find clients that would be evicted
1068 auto evicted = mActiveClientManager.wouldEvict(clientDescriptor); local
1070 // If the incoming client was 'evicted,' higher priority clients have the camera in the
1072 if (std::find(evicted
1750 std::vector<sp<BasicClient>> evicted; local
1841 std::vector<sp<BasicClient>> evicted; local
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DTokenCache.java121 protected void entryRemoved(boolean evicted, Key k, Value oldVal, Value newVal) { argument
/frameworks/support/content/src/main/java/androidx/contentpager/content/
H A DContentPager.java576 * LruCache holding at most {@code maxSize} cursors. Once evicted a cursor
590 boolean evicted, Uri uri, Cursor oldCursor, Cursor newCursor) {
589 entryRemoved( boolean evicted, Uri uri, Cursor oldCursor, Cursor newCursor) argument
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java1274 protected void entryRemoved(boolean evicted, String key, argument

Completed in 712 milliseconds