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.cpp89 sp<IMemory> mMemory; member in android::RemoteMediaBufferWrapper
95 mMemory = mem; in RemoteMediaBufferWrapper()
100 mMemory.clear(); in ~RemoteMediaBufferWrapper()
320 if (transferBuf->mMemory == NULL) { in onTransact()
333 if (ret != OK || newBuf == NULL || newBuf->mMemory == NULL) { in onTransact()
352 reply->writeStrongBinder(IInterface::asBinder(transferBuf->mMemory)); in onTransact()
356 if (buf->mMemory == NULL) { in onTransact()
361 if (buf->mMemory != NULL) { in onTransact()
362 … ALOGV("%zu shared mem available, but only %zu used", buf->mMemory->size(), buf->range_length()); in onTransact()
/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/foundation/
DMediaBuffer.cpp61 mMemory = memoryDealer->allocate(size); in MediaBuffer()
62 if (mMemory == NULL) { in MediaBuffer()
69 mData = mMemory->pointer(); in MediaBuffer()
177 if (mOwnsData && mData != NULL && mMemory == NULL) { in ~MediaBuffer()
/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/include/media/stagefright/
DMediaBuffer.h127 sp<IMemory> mMemory; variable
/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()
676 sp<IMemory> eventMemory = event->mMemory; in onCallbackEvent()
DSoundTriggerHwService.h96 sp<IMemory> mMemory; variable