Home
last modified time | relevance | path

Searched refs:mBuffer (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/media/mtp/
DMtpPacket.cpp32 : mBuffer(NULL), in MtpPacket()
37 mBuffer = (uint8_t *)malloc(bufferSize); in MtpPacket()
38 if (!mBuffer) { in MtpPacket()
45 if (mBuffer) in ~MtpPacket()
46 free(mBuffer); in ~MtpPacket()
52 memset(mBuffer, 0, mBufferSize); in reset()
58 mBuffer = (uint8_t *)realloc(mBuffer, newLength); in allocate()
59 if (!mBuffer) { in allocate()
73 sprintf(bufptr, "%02X ", mBuffer[i]); in dump()
91 memcpy(mBuffer, src.mBuffer, length); in copyFrom()
[all …]
DMtpDataPacket.cpp54 uint16_t result = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); in getUInt16()
61 uint32_t result = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | in getUInt32()
62 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24); in getUInt32()
69 uint64_t result = (uint64_t)mBuffer[offset] | ((uint64_t)mBuffer[offset + 1] << 8) | in getUInt64()
70 ((uint64_t)mBuffer[offset + 2] << 16) | ((uint64_t)mBuffer[offset + 3] << 24) | in getUInt64()
71 ((uint64_t)mBuffer[offset + 4] << 32) | ((uint64_t)mBuffer[offset + 5] << 40) | in getUInt64()
72 ((uint64_t)mBuffer[offset + 6] << 48) | ((uint64_t)mBuffer[offset + 7] << 56); in getUInt64()
155 mBuffer[mOffset++] = (uint8_t)value; in putInt8()
162 mBuffer[mOffset++] = (uint8_t)value; in putUInt8()
169 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt16()
[all …]
DMtpStringBuffer.cpp30 mBuffer[0] = 0; in MtpStringBuffer()
51 memcpy(mBuffer, src.mBuffer, mByteCount); in MtpStringBuffer()
60 if (length >= sizeof(mBuffer)) in set()
61 length = sizeof(mBuffer) - 1; in set()
62 memcpy(mBuffer, src, length); in set()
94 mBuffer[length] = 0; in set()
101 uint8_t* dest = mBuffer; in set()
118 mByteCount = dest - mBuffer; in set()
123 uint8_t* dest = mBuffer; in readFromPacket()
139 mByteCount = dest - mBuffer; in readFromPacket()
[all …]
DMtpRequestPacket.cpp39 int ret = ::read(fd, mBuffer, mBufferSize); in read()
54 request->buffer = mBuffer; in write()
DMtpStringBuffer.h32 uint8_t mBuffer[255 * 3 + 1];
52 inline operator const char*() const { return (const char *)mBuffer; }
DMtpResponsePacket.cpp41 int ret = ::write(fd, mBuffer, mPacketSize); in write()
48 request->buffer = mBuffer; in read()
DMtpEventPacket.cpp49 event.data = mBuffer; in write()
58 request->buffer = mBuffer; in read()
/frameworks/base/services/audioflinger/
DAudioResampler.cpp131 mBuffer.frameCount = 0; in AudioResampler()
158 mBuffer.frameCount = 0; in reset()
199 while (mBuffer.frameCount == 0) { in resampleStereo16()
200 mBuffer.frameCount = inFrameCount; in resampleStereo16()
201 provider->getNextBuffer(&mBuffer); in resampleStereo16()
202 if (mBuffer.raw == NULL) { in resampleStereo16()
207 if (mBuffer.frameCount > inputIndex) break; in resampleStereo16()
209 inputIndex -= mBuffer.frameCount; in resampleStereo16()
210 mX0L = mBuffer.i16[mBuffer.frameCount*2-2]; in resampleStereo16()
211 mX0R = mBuffer.i16[mBuffer.frameCount*2-1]; in resampleStereo16()
[all …]
DAudioResamplerCubic.cpp66 if (mBuffer.frameCount == 0) { in resampleStereo16()
67 mBuffer.frameCount = inFrameCount; in resampleStereo16()
68 provider->getNextBuffer(&mBuffer); in resampleStereo16()
69 if (mBuffer.raw == NULL) in resampleStereo16()
73 int16_t *in = mBuffer.i16; in resampleStereo16()
94 if (inputIndex == mBuffer.frameCount) { in resampleStereo16()
96 provider->releaseBuffer(&mBuffer); in resampleStereo16()
97 mBuffer.frameCount = inFrameCount; in resampleStereo16()
98 provider->getNextBuffer(&mBuffer); in resampleStereo16()
99 if (mBuffer.raw == NULL) in resampleStereo16()
[all …]
/frameworks/base/media/libstagefright/mpeg2ts/
DESQueue.cpp45 if (mBuffer != NULL) { in clear()
46 mBuffer->setRange(0, 0); in clear()
122 if (mBuffer == NULL || mBuffer->size() == 0) { in appendData()
256 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData()
257 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData()
263 if (mBuffer != NULL) { in appendData()
264 memcpy(buffer->data(), mBuffer->data(), mBuffer->size()); in appendData()
265 buffer->setRange(0, mBuffer->size()); in appendData()
270 mBuffer = buffer; in appendData()
273 memcpy(mBuffer->data() + mBuffer->size(), data, size); in appendData()
[all …]
DATSParser.cpp111 sp<ABuffer> mBuffer; member
431 mBuffer = new ABuffer(192 * 1024); in Stream()
432 mBuffer->setRange(0, 0); in Stream()
470 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse()
471 if (mBuffer->capacity() < neededSize) { in parse()
478 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in parse()
479 newBuffer->setRange(0, mBuffer->size()); in parse()
480 mBuffer = newBuffer; in parse()
483 memcpy(mBuffer->data() + mBuffer->size(), br->data(), payloadSizeBits / 8); in parse()
484 mBuffer->setRange(0, mBuffer->size() + payloadSizeBits / 8); in parse()
[all …]
/frameworks/base/media/java/android/media/
DMiniThumbFile.java54 private ByteBuffer mBuffer; field in MiniThumbFile
133 mBuffer = ByteBuffer.allocateDirect(BYTES_PER_MINTHUMB); in MiniThumbFile()
158 mBuffer.clear(); in getMagic()
159 mBuffer.limit(1 + 8); in getMagic()
164 if (mChannel.read(mBuffer, pos) == 9) { in getMagic()
165 mBuffer.position(0); in getMagic()
166 if (mBuffer.get() == 1) { in getMagic()
167 return mBuffer.getLong(); in getMagic()
201 mBuffer.clear(); in saveMiniThumbToFile()
202 mBuffer.put((byte) 1); in saveMiniThumbToFile()
[all …]
/frameworks/base/core/java/android/util/
DEventLog.java57 private final ByteBuffer mBuffer; field in EventLog.Event
78 mBuffer = ByteBuffer.wrap(data); in Event()
79 mBuffer.order(ByteOrder.nativeOrder()); in Event()
84 return mBuffer.getInt(PROCESS_OFFSET); in getProcessId()
89 return mBuffer.getInt(THREAD_OFFSET); in getThreadId()
94 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l in getTimeNanos()
95 + mBuffer.getInt(NANOSECONDS_OFFSET); in getTimeNanos()
100 return mBuffer.getInt(TAG_OFFSET); in getTag()
106 mBuffer.limit(PAYLOAD_START + mBuffer.getShort(LENGTH_OFFSET)); in getData()
107 mBuffer.position(DATA_START); // Just after the tag. in getData()
[all …]
DLogPrinter.java26 private final int mBuffer; field in LogPrinter
43 mBuffer = Log.LOG_ID_MAIN; in LogPrinter()
53 mBuffer = buffer; in LogPrinter()
57 Log.println_native(mBuffer, mPriority, mTag, x); in println()
DLogWriter.java25 private final int mBuffer; field in LogWriter
43 mBuffer = Log.LOG_ID_MAIN; in LogWriter()
53 mBuffer = buffer; in LogWriter()
78 Log.println_native(mBuffer, mPriority, mTag, mBuilder.toString()); in flushBuilder()
/frameworks/base/libs/rs/
DrsLocklessFifo.cpp24 LocklessCommandFifo::LocklessCommandFifo() : mBuffer(0), mInitialized(false) { in LocklessCommandFifo()
34 if (mBuffer) { in ~LocklessCommandFifo()
35 free(mBuffer); in ~LocklessCommandFifo()
46 mBuffer = static_cast<uint8_t *>(malloc(sizeInBytes + 4)); in init()
47 if (!mBuffer) { in init()
54 free(mBuffer); in init()
60 mPut = mBuffer; in init()
61 mGet = mBuffer; in init()
62 mEnd = mBuffer + (sizeInBytes) - 1; in init()
173 mGet = mBuffer; in get()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DMemInfoReader.java24 byte[] mBuffer = new byte[1024]; field in MemInfoReader
70 int len = is.read(mBuffer); in readMemInfo()
72 final int BUFLEN = mBuffer.length; in readMemInfo()
75 if (matchText(mBuffer, i, "MemTotal")) { in readMemInfo()
77 mTotalSize = extractMemValue(mBuffer, i); in readMemInfo()
79 } else if (matchText(mBuffer, i, "MemFree")) { in readMemInfo()
81 mFreeSize = extractMemValue(mBuffer, i); in readMemInfo()
83 } else if (matchText(mBuffer, i, "Cached")) { in readMemInfo()
85 mCachedSize = extractMemValue(mBuffer, i); in readMemInfo()
88 while (i < BUFLEN && mBuffer[i] != '\n') { in readMemInfo()
/frameworks/media/libvideoeditor/lvpp/
DVideoEditorSRC.cpp41 mBuffer = NULL; in VideoEditorSRC()
82 if (mBuffer) { in stop()
83 mBuffer->release(); in stop()
84 mBuffer = NULL; in stop()
190 if (!mBuffer) { in getNextBuffer()
202 status_t err = mSource->read(&mBuffer, &options); in getNextBuffer()
227 CHECK(mBuffer); in getNextBuffer()
228 mLeftover = mBuffer->range_length(); in getNextBuffer()
231 sp<MetaData> from = mBuffer->meta_data(); in getNextBuffer()
244 uint8_t* end = (uint8_t*)mBuffer->data() + mBuffer->range_offset() in getNextBuffer()
[all …]
/frameworks/base/media/libstagefright/
DAVIExtractor.cpp80 sp<ABuffer> mBuffer; member
231 if (mBuffer != NULL) { in clear()
232 mBuffer->setRange(0, 0); in clear()
237 size_t prevCapacity = (mBuffer != NULL) ? mBuffer->capacity() : 0; in append()
240 CHECK(mBuffer == NULL || mBuffer->size() == 0); in append()
245 if (mBuffer != NULL && mBuffer->offset() > 0) { in append()
246 memmove(mBuffer->base(), mBuffer->data(), mBuffer->size()); in append()
247 mBuffer->setRange(0, mBuffer->size()); in append()
250 if (mBuffer == NULL in append()
251 || mBuffer->size() + buffer->range_length() > prevCapacity) { in append()
[all …]
DMPEG4Extractor.cpp79 MediaBuffer *mBuffer; member in android::MPEG4Source
1822 mBuffer(NULL), in MPEG4Source()
1885 if (mBuffer != NULL) { in stop()
1886 mBuffer->release(); in stop()
1887 mBuffer = NULL; in stop()
2010 if (mBuffer != NULL) { in read()
2011 mBuffer->release(); in read()
2012 mBuffer = NULL; in read()
2023 if (mBuffer == NULL) { in read()
2034 err = mGroup->acquire_buffer(&mBuffer); in read()
[all …]
/frameworks/base/media/libeffects/testlibs/
DAudioFormatAdapter.h87 mBuffer, numSamplesIter); in process()
98 mpProcessor->process(mBuffer, mBuffer, numSamplesIter); in process()
115 audio_sample_t mBuffer[bufSize]; variable
130 audio_sample_t * pOut = mBuffer; in ConvertInput()
147 const audio_sample_t * pIn = mBuffer; in ConvertOutput()
172 const audio_sample_t * pIn = mBuffer; in MixOutput()
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java45 private ByteBuffer mBuffer; field in UsbRequest
147 mBuffer = buffer; in queue()
155 if (mBuffer.isDirect()) { in dequeue()
158 native_dequeue_array(mBuffer.array(), mLength, out); in dequeue()
160 mBuffer = null; in dequeue()
/frameworks/base/media/tests/omxjpegdecoder/
DSkOmxPixelRef.cpp26 mBuffer = buffer; in SkOmxPixelRef()
34 mBuffer->release(); in ~SkOmxPixelRef()
41 return mBuffer->data(); in onLockPixels()
/frameworks/base/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp242 if (entry->mBuffer == NULL) { in onDrainAudioQueue()
254 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue()
277 size_t copy = entry->mBuffer->size() - entry->mOffset; in onDrainAudioQueue()
283 entry->mBuffer->data() + entry->mOffset, copy), in onDrainAudioQueue()
287 if (entry->mOffset == entry->mBuffer->size()) { in onDrainAudioQueue()
320 if (entry.mBuffer == NULL) { in postDrainVideoQueue()
325 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in postDrainVideoQueue()
354 if (entry->mBuffer == NULL) { in onDrainVideoQueue()
369 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainVideoQueue()
420 entry.mBuffer = buffer; in onQueueBuffer()
[all …]
/frameworks/base/core/java/android/text/method/
DMultiTapKeyListener.java245 t.mBuffer = null; in removeTimeouts()
255 mBuffer = buffer; in Timeout()
256 mBuffer.setSpan(Timeout.this, 0, mBuffer.length(), in Timeout()
263 Spannable buf = mBuffer; in run()
280 private Editable mBuffer; field in MultiTapKeyListener.Timeout

123