Lines Matching refs:mem
54 RemoteMediaBufferWrapper(const sp<IMemory> &mem) in RemoteMediaBufferWrapper() argument
55 : MediaBuffer(mem) { in RemoteMediaBufferWrapper()
158 sp<IMemory> mem; in readMultiple() local
161 mem = interface_cast<IMemory>(binder); in readMultiple()
162 LOG_ALWAYS_FATAL_IF(mem.get() == nullptr, in readMultiple()
164 mMemoryCache.insert(index, mem); in readMultiple()
166 mem = mMemoryCache.lookup(index); in readMultiple()
167 LOG_ALWAYS_FATAL_IF(mem.get() == nullptr, in readMultiple()
173 buf = new RemoteMediaBufferWrapper(mem); in readMultiple()
242 void insert(uint64_t index, const sp<IMemory> &mem) { in insert()
247 (void)mIndexToMemory.emplace(index, mem); in insert()