/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaBuffer.h | 53 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()
|
D | RemoteDataSource.h | 44 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/ |
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->pointer() == NULL) { in readAt() 136 memcpy(buffer, mMemory->pointer(), len); in readAt() 198 sp<IMemory> mMemory; member
|
D | IMediaSource.cpp | 64 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/ |
D | android_media_MediaDataSource.cpp | 36 : 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()
|
D | android_media_MediaHTTPConnection.cpp | 45 mMemory = mDealer->allocate(kBufferSize); in JMediaHTTPConnection() 65 return mMemory; in getIMemory()
|
D | android_media_MediaHTTPConnection.h | 50 sp<IMemory> mMemory; member
|
D | android_media_MediaDataSource.h | 63 sp<IMemory> mMemory; variable
|
/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->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/ |
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->pointer(), numRead); in readAt()
|
D | BufferImpl.cpp | 36 mMemory(mem) { in SharedMemoryBuffer()
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapper.h | 146 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/ |
D | HeifDecoderImpl.cpp | 63 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/ |
D | Memory.h | 56 *buffer = static_cast<uint8_t*>(static_cast<void*>(mMemory->getPointer())); in getPointer() 77 sp<IMemory> mMemory; variable
|
D | Memory.cpp | 38 mMemory = mapMemory(mHidlMemory); in create() 39 if (mMemory == nullptr) { in create()
|
/frameworks/av/media/libstagefright/include/ |
D | SharedMemoryBuffer.h | 43 const sp<IMemory> mMemory; variable
|
D | CallbackDataSource.h | 49 sp<IMemory> mMemory; variable
|
/frameworks/av/media/libstagefright/omx/tests/ |
D | OMXHarness.h | 43 sp<IMemory> mMemory; member
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 394 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()
|
D | SoundTriggerHwService.h | 104 sp<IMemory> mMemory; variable
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 769 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()
|
D | Codec2Buffer.h | 399 sp<IMemory> mMemory; variable
|
/frameworks/ml/nn/common/ |
D | CpuExecutor.cpp | 273 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()
|