Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h53 mMemory = mem; in MediaBuffer()
97 if (mMemory.get() == nullptr || mMemory->pointer() == nullptr) return 0; in remoteRefcount()
99 reinterpret_cast<SharedControl *>(mMemory->pointer())->getRemoteRefcount(); in remoteRefcount()
110 if (mMemory.get() == nullptr || mMemory->pointer() == nullptr) return 0; in addRemoteRefcount()
111 return reinterpret_cast<SharedControl *>(mMemory->pointer())->addRemoteRefcount(value); in addRemoteRefcount()
119 return isDeadObject(mMemory); in isDeadObject()
148 sp<IMemory> mMemory; variable
223 return reinterpret_cast<SharedControl *>(mMemory->pointer()); in getSharedControl()
DRemoteDataSource.h44 return mMemory; in getIMemory()
51 return mSource->readAt(offset, mMemory->pointer(), size); in readAt()
61 mMemory = nullptr; in close()
78 sp<IMemory> mMemory; variable
86 mMemory = memoryDealer->allocate(kBufferSize); in RemoteDataSource()
87 if (mMemory.get() == nullptr) { in RemoteDataSource()
/frameworks/av/media/libaudiohal/impl/
DEffectBufferHalHidl.cpp84 mMemory = hardware::mapMemory(mHidlBuffer.data); in init()
85 if (mMemory != 0) { in init()
86 mMemory->update(); in init()
87 mAudioBuffer.raw = static_cast<void*>(mMemory->getPointer()); in init()
88 memset(mAudioBuffer.raw, 0, mMemory->getSize()); in init()
89 mMemory->commit(); in init()
134 mMemory->update(); in update()
137 mMemory->commit(); in update()
DEffectBufferHalHidl.h66 sp<IMemory> mMemory; variable
/frameworks/av/media/libmedia/
DIMediaHTTPConnection.cpp77 mMemory = interface_cast<IMemory>(binder); in connect()
79 return mMemory != NULL; in connect()
123 if (len > mMemory->size()) { in readAt()
124 ALOGE("got %zu, but memory has %zu", len, mMemory->size()); in readAt()
131 if (mMemory->pointer() == NULL) { in readAt()
136 memcpy(buffer, mMemory->pointer(), len); in readAt()
198 sp<IMemory> mMemory; member
DIMediaSource.cpp64 mMemory.clear(); // don't set the dead object flag. in ~RemoteMediaBufferWrapper()
365 if (length >= (supportNonblockingRead() && buf->mMemory != nullptr ? in onTransact()
367 if (buf->mMemory != nullptr) { in onTransact()
376 || transferBuf->mMemory == nullptr) { in onTransact()
401 uint64_t index = mIndexCache.lookup(transferBuf->mMemory); in onTransact()
403 index = mIndexCache.insert(transferBuf->mMemory); in onTransact()
406 reply->writeStrongBinder(IInterface::asBinder(transferBuf->mMemory)); in onTransact()
425 ALOGV_IF(buf->mMemory != nullptr, in onTransact()
427 buf, buf->mMemory->size(), length); in onTransact()
/frameworks/base/media/jni/
Dandroid_media_MediaDataSource.cpp36 : mJavaObjStatus(OK), mSizeIsCached(false), mCachedSize(0), mMemory(NULL) { in JMediaDataSource()
55 mMemory = memoryDealer->allocate(kBufferSize); in JMediaDataSource()
56 if (mMemory == NULL) { in JMediaDataSource()
69 return mMemory; in getIMemory()
75 if (mJavaObjStatus != OK || mMemory == NULL) { in readAt()
109 env->GetByteArrayRegion(mByteArrayObj, 0, numread, (jbyte*)mMemory->pointer()); in readAt()
Dandroid_media_MediaHTTPConnection.cpp45 mMemory = mDealer->allocate(kBufferSize); in JMediaHTTPConnection()
65 return mMemory; in getIMemory()
Dandroid_media_MediaHTTPConnection.h50 sp<IMemory> mMemory; member
Dandroid_media_MediaDataSource.h63 sp<IMemory> mMemory; variable
/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp65 mMemory = memoryDealer->allocate(newSize); in MediaBuffer()
67 if (mMemory == NULL) { in MediaBuffer()
75 mData = (uint8_t *)mMemory->pointer() + sizeof(SharedControl); in MediaBuffer()
163 if (mOwnsData && mData != NULL && mMemory == NULL) { in ~MediaBuffer()
168 if (mMemory.get() != nullptr) { in ~MediaBuffer()
/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp37 mMemory = mIDataSource->getIMemory(); in CallbackDataSource()
51 if (mMemory == NULL) { in initCheck()
58 if (mMemory == NULL || data == NULL) { in readAt()
66 const size_t bufferSize = mMemory->size(); in readAt()
84 memcpy(((uint8_t*)data) + totalNumRead, mMemory->pointer(), numRead); in readAt()
DBufferImpl.cpp36 mMemory(mem) { in SharedMemoryBuffer()
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h146 mValid = ANeuralNetworksMemory_createFromFd(size, protect, fd, offset, &mMemory) == in Memory()
151 mValid = ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory) == in Memory()
155 ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory()
169 ANeuralNetworksMemory_free(mMemory);
170 mMemory = other.mMemory;
172 other.mMemory = nullptr;
178 ANeuralNetworksMemory* get() const { return mMemory; } in get()
182 ANeuralNetworksMemory* mMemory = nullptr;
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp63 sp<IMemory> getIMemory() override { return mMemory; } in getIMemory()
86 sp<IMemory> mMemory; member in android::HeifDataSource
98 mMemory = memoryDealer->allocate(kBufferSize); in init()
99 if (mMemory == nullptr) { in init()
159 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
257 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
/frameworks/ml/nn/runtime/
DMemory.h56 *buffer = static_cast<uint8_t*>(static_cast<void*>(mMemory->getPointer())); in getPointer()
77 sp<IMemory> mMemory; variable
DMemory.cpp38 mMemory = mapMemory(mHidlMemory); in create()
39 if (mMemory == nullptr) { in create()
/frameworks/av/media/libstagefright/include/
DSharedMemoryBuffer.h43 const sp<IMemory> mMemory; variable
DCallbackDataSource.h49 sp<IMemory> mMemory; variable
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h43 sp<IMemory> mMemory; member
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp394 event->mMemory.clear(); in onCallbackEvent()
409 mEventQueue[0]->mMemory.clear(); in ~CallbackThread()
461 : mType(type), mMemory(memory) in CallbackEvent()
737 sp<IMemory> eventMemory = event->mMemory; in onCallbackEvent()
1083 sp<IMemory> eventMemory = event->mMemory; in onCallbackEvent()
DSoundTriggerHwService.h104 sp<IMemory> mMemory; variable
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp769 mMemory(memory), in EncryptedLinearBlockBuffer()
779 source->mSharedMemory = mMemory; in fillSourceBuffer()
788 mHidlMemory = hardware::fromHeap(mMemory->getMemory(&offset, &size)); in fillSourceBuffer()
808 return copyDecryptedContent(mMemory, length); in copyDecryptedContentFromMemory()
DCodec2Buffer.h399 sp<IMemory> mMemory; variable
/frameworks/ml/nn/common/
DCpuExecutor.cpp273 const sp<IMemory> mMemory; // only used when hidlMemory.name() == "ashmem" member in android::nn::RunTimePoolInfo::RunTimePoolInfoImpl
282 : mHidlMemory(hidlMemory), mBuffer(buffer), mMemory(memory), mGraphicBuffer(graphicBuffer) {} in RunTimePoolInfoImpl()
310 mMemory->commit(); in update()