Home
last modified time | relevance | path

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

/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/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()
128 memcpy(buffer, mMemory->pointer(), len); in readAt()
190 sp<IMemory> mMemory; member
DIMediaSource.cpp64 mMemory.clear(); // don't set the dead object flag. in ~RemoteMediaBufferWrapper()
361 if (length >= (supportNonblockingRead() && buf->mMemory != nullptr ? in onTransact()
363 if (buf->mMemory != nullptr) { in onTransact()
372 || transferBuf->mMemory == nullptr) { in onTransact()
397 uint64_t index = mIndexCache.lookup(transferBuf->mMemory); in onTransact()
399 index = mIndexCache.insert(transferBuf->mMemory); in onTransact()
402 reply->writeStrongBinder(IInterface::asBinder(transferBuf->mMemory)); in onTransact()
420 ALOGV_IF(buf->mMemory != nullptr, in onTransact()
422 buf, buf->mMemory->size(), length); in onTransact()
/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp65 mMemory = memoryDealer->allocate(size + sizeof(SharedControl)); in MediaBuffer()
66 if (mMemory == NULL) { in MediaBuffer()
74 mData = (uint8_t *)mMemory->pointer() + sizeof(SharedControl); in MediaBuffer()
108 if (mMemory.get() != nullptr) { in release()
188 if (mOwnsData && mData != NULL && mMemory == NULL) { in ~MediaBuffer()
198 if (mMemory.get() != nullptr) { in ~MediaBuffer()
/frameworks/av/include/media/stagefright/
DMediaBuffer.h68 mMemory = mem; in MediaBuffer()
103 return isDeadObject(mMemory); in isDeadObject()
132 if (mMemory.get() == nullptr) return; in resolvePendingRelease()
146 sp<IMemory> mMemory; variable
223 return reinterpret_cast<SharedControl *>(mMemory->pointer()); in getSharedControl()
/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp36 mMemory = mIDataSource->getIMemory(); in CallbackDataSource()
47 if (mMemory == NULL) { in initCheck()
54 if (mMemory == NULL) { in readAt()
62 const size_t bufferSize = mMemory->size(); in readAt()
80 memcpy(((uint8_t*)data) + totalNumRead, mMemory->pointer(), numRead); in readAt()
DMediaExtractor.cpp94 sp<IMemory> mMemory; member in android::RemoteDataSource
108 mMemory = memoryDealer->allocate(kBufferSize); in RemoteDataSource()
109 if (mMemory == NULL) { in RemoteDataSource()
118 return mMemory; in getIMemory()
122 return mSource->readAt(offset, mMemory->pointer(), size); in readAt()
/frameworks/av/media/libstagefright/include/
DCallbackDataSource.h48 sp<IMemory> mMemory; variable
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h38 sp<IMemory> mMemory; member
DOMXHarness.cpp193 buffer.mMemory = dealer->allocate(def.nBufferSize); in allocatePortBuffers()
195 CHECK(buffer.mMemory != NULL); in allocatePortBuffers()
198 node, portIndex, buffer.mMemory, &buffer.mID, buffer.mMemory->size()); in allocatePortBuffers()
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp411 event->mMemory.clear(); in onCallbackEvent()
426 mEventQueue[0]->mMemory.clear(); in ~CallbackThread()
479 : mType(type), mMemory(memory), mModule(module) in CallbackEvent()
698 sp<IMemory> eventMemory = event->mMemory; in onCallbackEvent()
DSoundTriggerHwService.h96 sp<IMemory> mMemory; variable