Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h57 mMemory = mem; in MediaBuffer()
105 if (mMemory.get() == nullptr || mMemory->unsecurePointer() == nullptr) return 0; in remoteRefcount()
107 reinterpret_cast<SharedControl *>(mMemory->unsecurePointer())->getRemoteRefcount(); in remoteRefcount()
122 if (mMemory.get() == nullptr || mMemory->unsecurePointer() == nullptr) return 0; in addRemoteRefcount()
123 … return reinterpret_cast<SharedControl *>(mMemory->unsecurePointer())->addRemoteRefcount(value); in addRemoteRefcount()
131 return isDeadObject(mMemory); in isDeadObject()
164 sp<IMemory> mMemory; variable
243 return reinterpret_cast<SharedControl *>(mMemory->unsecurePointer()); in getSharedControl()
DRemoteDataSource.h45 if (mMemory.get() == nullptr) { in getIMemory()
49 return mMemory; in getIMemory()
62 return mSource->readAt(offset, mMemory->unsecurePointer(), size); in readAt()
77 mMemory = nullptr; in close()
96 sp<IMemory> mMemory; variable
105 mMemory = memoryDealer->allocate(kBufferSize); in RemoteDataSource()
106 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->unsecurePointer() == NULL) { in readAt()
136 memcpy(buffer, mMemory->unsecurePointer(), len); in readAt()
198 sp<IMemory> mMemory; member
DIMediaSource.cpp64 mMemory.clear(); // don't set the dead object flag. in ~RemoteMediaBufferWrapper()
367 if (length >= (supportNonblockingRead() && buf->mMemory != nullptr ? in onTransact()
369 if (buf->mMemory != nullptr) { in onTransact()
378 || transferBuf->mMemory == nullptr) { in onTransact()
403 uint64_t index = mIndexCache.lookup(transferBuf->mMemory); in onTransact()
405 index = mIndexCache.insert(transferBuf->mMemory); in onTransact()
408 reply->writeStrongBinder(IInterface::asBinder(transferBuf->mMemory)); in onTransact()
427 ALOGV_IF(buf->mMemory != nullptr, in onTransact()
429 buf, buf->mMemory->size(), length); in onTransact()
/frameworks/base/media/jni/
Dandroid_media_MediaDataSource.cpp35 : mJavaObjStatus(OK), mSizeIsCached(false), mCachedSize(0), mMemory(NULL) { in JMediaDataSource()
54 mMemory = memoryDealer->allocate(kBufferSize); in JMediaDataSource()
55 if (mMemory == NULL) { in JMediaDataSource()
68 return mMemory; in getIMemory()
74 if (mJavaObjStatus != OK || mMemory == NULL) { in readAt()
109 (jbyte*)mMemory->unsecurePointer()); in readAt()
Dandroid_media_MediaHTTPConnection.h50 sp<IMemory> mMemory; member
Dandroid_media_MediaHTTPConnection.cpp45 mMemory = mDealer->allocate(kBufferSize); in JMediaHTTPConnection()
65 return mMemory; in getIMemory()
Dandroid_media_MediaDataSource.h62 sp<IMemory> mMemory; variable
Dandroid_media_MediaCodecLinearBlock.h34 sp<IMemory> mMemory; member
Dandroid_media_MediaCodec.cpp3238 } else if (context->mMemory) { in android_media_MediaCodec_LinearBlock_native_map()
3241 context->mMemory->unsecurePointer(), in android_media_MediaCodec_LinearBlock_native_map()
3242 context->mMemory->size(), in android_media_MediaCodec_LinearBlock_native_map()
3244 context->mMemory->size(), in android_media_MediaCodec_LinearBlock_native_map()
3297 context->mMemory = sDealer->allocate(capacity); in android_media_MediaCodec_LinearBlock_native_obtain()
3298 if (context->mMemory == nullptr) { in android_media_MediaCodec_LinearBlock_native_obtain()
3310 context->mMemory = sDealer->allocate(capacity); in android_media_MediaCodec_LinearBlock_native_obtain()
3312 context->mHidlMemory = hardware::fromHeap(context->mMemory->getMemory( in android_media_MediaCodec_LinearBlock_native_obtain()
/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp65 mMemory = memoryDealer->allocate(newSize); in MediaBuffer()
67 if (mMemory == NULL) { in MediaBuffer()
75 mData = (uint8_t *)mMemory->unsecurePointer() + 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->unsecurePointer(), in readAt()
DBufferImpl.cpp40 mMemory(mem) { in SharedMemoryBuffer()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp80 sp<IMemory> getIMemory() override { return mMemory; } in getIMemory()
100 sp<IMemory> mMemory; member in android::HeifDataSource
112 mMemory = memoryDealer->allocate(kBufferSize); in init()
113 if (mMemory == nullptr) { in init()
173 memcpy(mMemory->unsecurePointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
271 memcpy(mMemory->unsecurePointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
/frameworks/av/media/libstagefright/include/
DSharedMemoryBuffer.h43 const sp<IMemory> mMemory; variable
DCallbackDataSource.h48 sp<IMemory> mMemory; variable
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h43 sp<IMemory> mMemory; member
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp899 mMemory(memory), in EncryptedLinearBlockBuffer()
909 BufferChannelBase::IMemoryToSharedBuffer(mMemory, mHeapSeqNum, source); in fillSourceBuffer()
917 mHidlMemory = hardware::fromHeap(mMemory->getMemory(&offset, &size)); in fillSourceBuffer()
937 return copyDecryptedContent(mMemory, length); in copyDecryptedContentFromMemory()
DCodec2Buffer.h389 sp<IMemory> mMemory; variable
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp444 mMemory(capacity, 0xAA), in TestGraphicAllocation()
456 addr[i] = mMemory.data() + mOffsets[i]; in map()
473 std::vector<uint8_t> mMemory; member in android::TestGraphicAllocation