/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaBuffer.h | 57 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()
|
D | RemoteDataSource.h | 45 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/ |
D | EffectBufferHalHidl.cpp | 84 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()
|
D | EffectBufferHalHidl.h | 66 sp<IMemory> mMemory; variable
|
/frameworks/av/media/libmedia/ |
D | IMediaHTTPConnection.cpp | 77 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
|
D | IMediaSource.cpp | 64 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/ |
D | android_media_MediaDataSource.cpp | 35 : 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()
|
D | android_media_MediaHTTPConnection.h | 50 sp<IMemory> mMemory; member
|
D | android_media_MediaHTTPConnection.cpp | 45 mMemory = mDealer->allocate(kBufferSize); in JMediaHTTPConnection() 65 return mMemory; in getIMemory()
|
D | android_media_MediaDataSource.h | 62 sp<IMemory> mMemory; variable
|
D | android_media_MediaCodecLinearBlock.h | 34 sp<IMemory> mMemory; member
|
D | android_media_MediaCodec.cpp | 3238 } 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/ |
D | MediaBuffer.cpp | 65 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/ |
D | CallbackDataSource.cpp | 37 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()
|
D | BufferImpl.cpp | 40 mMemory(mem) { in SharedMemoryBuffer()
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 80 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/ |
D | SharedMemoryBuffer.h | 43 const sp<IMemory> mMemory; variable
|
D | CallbackDataSource.h | 48 sp<IMemory> mMemory; variable
|
/frameworks/av/media/libstagefright/omx/tests/ |
D | OMXHarness.h | 43 sp<IMemory> mMemory; member
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 899 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()
|
D | Codec2Buffer.h | 389 sp<IMemory> mMemory; variable
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 444 mMemory(capacity, 0xAA), in TestGraphicAllocation() 456 addr[i] = mMemory.data() + mOffsets[i]; in map() 473 std::vector<uint8_t> mMemory; member in android::TestGraphicAllocation
|