/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() 75 sp<IMemory> mMemory; variable 83 mMemory = memoryDealer->allocate(kBufferSize); in RemoteDataSource() 84 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 | 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() 108 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 | 62 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/test/ |
D | TestUtils.h | 37 : mFd(std::move(fd)), mMapped(std::move(mapped)), mMemory(std::move(memory)) {} in TestAshmem() 67 test_wrapper::Memory* get() { return &mMemory; } in get() 77 test_wrapper::Memory mMemory; variable
|
D | TestNeuralNetworksWrapper.h | 54 Memory(ANeuralNetworksMemory* memory) : mMemory(memory) {} in Memory() 57 mValid = ANeuralNetworksMemory_createFromFd(size, protect, fd, offset, &mMemory) == in Memory() 62 mValid = ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory) == in Memory() 66 virtual ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory() 80 ANeuralNetworksMemory_free(mMemory); 81 mMemory = other.mMemory; 83 other.mMemory = nullptr; 89 ANeuralNetworksMemory* get() const { return mMemory; } in get() 93 ANeuralNetworksMemory* mMemory = nullptr;
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapper.h | 160 mValid = ANeuralNetworksMemory_createFromFd(size, protect, fd, offset, &mMemory) == in Memory() 165 mValid = ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory) == in Memory() 169 ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory() 183 ANeuralNetworksMemory_free(mMemory); 184 mMemory = other.mMemory; 186 other.mMemory = nullptr; 192 ANeuralNetworksMemory* get() const { return mMemory; } in get() 196 ANeuralNetworksMemory* mMemory = nullptr;
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 63 sp<IMemory> getIMemory() override { return mMemory; } in getIMemory() 83 sp<IMemory> mMemory; member in android::HeifDataSource 95 mMemory = memoryDealer->allocate(kBufferSize); in init() 96 if (mMemory == nullptr) { in init() 156 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt() 254 memcpy(mMemory->pointer(), 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/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 420 event->mMemory.clear(); in onCallbackEvent() 435 mEventQueue[0]->mMemory.clear(); in ~CallbackThread() 487 : mType(type), mMemory(memory) in CallbackEvent() 775 sp<IMemory> eventMemory = event->mMemory; in onCallbackEvent() 1121 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 | 296 const sp<IMemory> mMemory; // only used when hidlMemory.name() == "ashmem" member in android::nn::RunTimePoolInfo::RunTimePoolInfoImpl 309 mMemory(memory), in RunTimePoolInfoImpl()
|