Home
last modified time | relevance | path

Searched refs:MemoryCache (Results 1 – 19 of 19) sorted by relevance

/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DMemoryCacheManager.java28 private final HashSet<MemoryCache> mMemoryCaches = new HashSet<MemoryCache>();
38 public interface MemoryCache { interface in MemoryCacheManager
45 public void registerMemoryCache(final MemoryCache cache) { in registerMemoryCache()
54 public void unregisterMemoryCache(final MemoryCache cache) { in unregisterMemoryCache()
67 final HashSet<MemoryCache> shallowCopy; in reclaimMemory()
69 shallowCopy = (HashSet<MemoryCache>) mMemoryCaches.clone(); in reclaimMemory()
71 for (final MemoryCache cache : shallowCopy) { in reclaimMemory()
H A DBitmapPool.java26 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
39 public class BitmapPool implements MemoryCache {
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
H A DMemoryCacheManagerTest.java22 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
30 final MemoryCache mockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
31 final MemoryCache otherMockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
H A DExecutionBurstController.h81 class MemoryCache : public std::enable_shared_from_this<MemoryCache> {
91 MemoryCache();
140 explicit ExecutionBurstCallback(const std::shared_ptr<MemoryCache>& memoryCache);
146 const std::weak_ptr<MemoryCache> kMemoryCache;
166 std::shared_ptr<MemoryCache> memoryCache,
197 const std::shared_ptr<MemoryCache> mMemoryCache;
H A DExecutionBurstServer.h57 class MemoryCache {
61 MemoryCache(nn::SharedBurst burstExecutor, sp<IBurstCallback> burstCallback);
150 MemoryCache mMemoryCache;
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
H A DBitmapCache.java33 private final MemoryCache mMemoryCache = new MemoryCache(CACHE_SIZE);
47 private static class MemoryCache extends LruCache<Uri, Bitmap> { class in BitmapCache
48 private MemoryCache(int maxSize) { in MemoryCache() method in BitmapCache.MemoryCache
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/src/
H A DExecutionBurstController.cpp96 const std::shared_ptr<ExecutionBurstController::MemoryCache>& memoryCache) { in getMemoriesHelper()
113 ExecutionBurstController::MemoryCache::MemoryCache() { in MemoryCache() function in android::hardware::neuralnetworks::V1_2::utils::ExecutionBurstController::MemoryCache
122 void ExecutionBurstController::MemoryCache::setBurstContext(sp<IBurstContext> burstContext) { in setBurstContext()
127 std::pair<int32_t, ExecutionBurstController::MemoryCache::SharedCleanup>
128 ExecutionBurstController::MemoryCache::cacheMemory(const nn::SharedMemory& memory) { in cacheMemory()
166 nn::GeneralResult<nn::SharedMemory> ExecutionBurstController::MemoryCache::getMemory(int32_t slot) { in getMemory()
174 void ExecutionBurstController::MemoryCache::freeMemory(const nn::SharedMemory& memory) { in freeMemory()
189 int32_t ExecutionBurstController::MemoryCache::allocateSlotLocked() { in allocateSlotLocked()
211 const std::shared_ptr<MemoryCache>& memoryCache) in ExecutionBurstCallback()
262 auto memoryCache = std::make_shared<MemoryCache>(); in create()
[all …]
H A DExecutionBurstServer.cpp66 ExecutionBurstServer::MemoryCache::MemoryCache(nn::SharedBurst burstExecutor, in MemoryCache() function in android::hardware::neuralnetworks::V1_2::utils::ExecutionBurstServer::MemoryCache
74 ExecutionBurstServer::MemoryCache::getCacheEntries(const std::vector<int32_t>& slots) { in getCacheEntries()
87 nn::GeneralResult<void> ExecutionBurstServer::MemoryCache::ensureCacheEntriesArePresentLocked( in ensureCacheEntriesArePresentLocked()
128 ExecutionBurstServer::MemoryCache::getCacheEntryLocked(int32_t slot) { in getCacheEntryLocked()
137 void ExecutionBurstServer::MemoryCache::addCacheEntryLocked(int32_t slot, nn::SharedMemory memory) { in addCacheEntryLocked()
142 void ExecutionBurstServer::MemoryCache::removeCacheEntry(int32_t slot) { in removeCacheEntry()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DBurst.h49 class MemoryCache : public std::enable_shared_from_this<MemoryCache> {
56 explicit MemoryCache(std::shared_ptr<aidl_hal::IBurst> burst);
116 const std::shared_ptr<MemoryCache> kMemoryCache;
/aosp12/system/unwinding/libunwindstack/
H A DMemoryCache.h65 class MemoryCache : public MemoryCacheBase {
67 MemoryCache(Memory* memory) : MemoryCacheBase(memory) {} in MemoryCache() function
68 virtual ~MemoryCache() = default;
H A DMemory.cpp224 return std::shared_ptr<Memory>(new MemoryCache(new MemoryLocal())); in CreateProcessMemoryCached()
226 return std::shared_ptr<Memory>(new MemoryCache(new MemoryRemote(pid))); in CreateProcessMemoryCached()
515 void MemoryCache::Clear() { in Clear()
520 size_t MemoryCache::CachedRead(uint64_t addr, void* dst, size_t size) { in CachedRead()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DBurst.cpp79 Burst::MemoryCache::MemoryCache(std::shared_ptr<aidl_hal::IBurst> burst) in MemoryCache() function in aidl::android::hardware::neuralnetworks::utils::Burst::MemoryCache
82 std::pair<int64_t, Burst::MemoryCache::SharedCleanup> Burst::MemoryCache::getOrCacheMemory( in getOrCacheMemory()
118 std::optional<std::pair<int64_t, Burst::MemoryCache::SharedCleanup>>
119 Burst::MemoryCache::getMemoryIfAvailable(const nn::SharedMemory& memory) { in getMemoryIfAvailable()
136 void Burst::MemoryCache::tryFreeMemory(const nn::SharedMemory& memory, int64_t identifier) { in tryFreeMemory()
163 : kBurst(std::move(burst)), kMemoryCache(std::make_shared<MemoryCache>(kBurst)) { in Burst()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaCacheManager.java22 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
28 public abstract class MediaCacheManager implements MemoryCache {
/aosp12/system/unwinding/libunwindstack/tests/
H A DMemoryCacheTest.cpp32 memory_cache_.reset(new MemoryCache(memory_)); in SetUp()
40 std::unique_ptr<MemoryCache> memory_cache_;
/aosp12/frameworks/av/media/libmedia/
H A DIMediaSource.cpp232 struct MemoryCache { struct in android::BpMediaSource
/aosp12/art/build/boot/
H A Dpreloaded-classes2357 sun.security.util.MemoryCache$CacheEntry
2358 sun.security.util.MemoryCache$SoftCacheEntry
2359 sun.security.util.MemoryCache
H A Dboot-image-profile.txt9041 …ecurity/util/Cache;[BLjava/lang/Object;)V+]Lsun/security/util/Cache;Lsun/security/util/MemoryCache;
9290 HSPLsun/security/util/MemoryCache$SoftCacheEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;JLjav…
9291 …ity/util/MemoryCache$SoftCacheEntry;->getValue()Ljava/lang/Object;+]Lsun/security/util/MemoryCache
9292 …un/security/util/MemoryCache$SoftCacheEntry;->isValid(J)Z+]Lsun/security/util/MemoryCache$SoftCach…
9293MemoryCache;->emptyQueue()V+]Ljava/lang/ref/ReferenceQueue;Ljava/lang/ref/ReferenceQueue;]Ljava/ut…
9294 …curity/util/MemoryCache;->get(Ljava/lang/Object;)Ljava/lang/Object;+]Lsun/security/util/MemoryCach…
9295 …n/security/util/MemoryCache;->newEntry(Ljava/lang/Object;Ljava/lang/Object;JLjava/lang/ref/Referen…
9296MemoryCache;->put(Ljava/lang/Object;Ljava/lang/Object;)V+]Lsun/security/util/MemoryCache;Lsun/secu…
12107 Lsun/security/util/MemoryCache$CacheEntry;
12108 Lsun/security/util/MemoryCache$SoftCacheEntry;
[all …]
/aosp12/frameworks/base/config/
H A Dboot-image-profile.txt31731 …ecurity/util/Cache;[BLjava/lang/Object;)V+]Lsun/security/util/Cache;Lsun/security/util/MemoryCache;
31980 HSPLsun/security/util/MemoryCache$SoftCacheEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;JLjav…
31981 …ity/util/MemoryCache$SoftCacheEntry;->getValue()Ljava/lang/Object;+]Lsun/security/util/MemoryCache
31982 …un/security/util/MemoryCache$SoftCacheEntry;->isValid(J)Z+]Lsun/security/util/MemoryCache$SoftCach…
31983MemoryCache;->emptyQueue()V+]Ljava/lang/ref/ReferenceQueue;Ljava/lang/ref/ReferenceQueue;]Ljava/ut…
31984 …curity/util/MemoryCache;->get(Ljava/lang/Object;)Ljava/lang/Object;+]Lsun/security/util/MemoryCach…
31985 …n/security/util/MemoryCache;->newEntry(Ljava/lang/Object;Ljava/lang/Object;JLjava/lang/ref/Referen…
31986MemoryCache;->put(Ljava/lang/Object;Ljava/lang/Object;)V+]Lsun/security/util/MemoryCache;Lsun/secu…
48414 Lsun/security/util/MemoryCache$CacheEntry;
48415 Lsun/security/util/MemoryCache$SoftCacheEntry;
[all …]
H A Dpreloaded-classes13829 sun.security.util.MemoryCache$CacheEntry
13830 sun.security.util.MemoryCache$SoftCacheEntry
13831 sun.security.util.MemoryCache