/frameworks/av/media/mtp/ |
D | MtpPacket.cpp | 32 : 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 …]
|
D | MtpDataPacket.cpp | 56 uint16_t result = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); in getUInt16() 63 uint32_t result = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | in getUInt32() 64 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24); in getUInt32() 71 uint64_t result = (uint64_t)mBuffer[offset] | ((uint64_t)mBuffer[offset + 1] << 8) | in getUInt64() 72 ((uint64_t)mBuffer[offset + 2] << 16) | ((uint64_t)mBuffer[offset + 3] << 24) | in getUInt64() 73 ((uint64_t)mBuffer[offset + 4] << 32) | ((uint64_t)mBuffer[offset + 5] << 40) | in getUInt64() 74 ((uint64_t)mBuffer[offset + 6] << 48) | ((uint64_t)mBuffer[offset + 7] << 56); in getUInt64() 157 mBuffer[mOffset++] = (uint8_t)value; in putInt8() 164 mBuffer[mOffset++] = (uint8_t)value; in putUInt8() 171 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt16() [all …]
|
D | MtpStringBuffer.cpp | 30 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 …]
|
/frameworks/av/services/audioflinger/ |
D | AudioBufferProviderSource.cpp | 36 if (mBuffer.raw != NULL) { in ~AudioBufferProviderSource() 37 mProvider->releaseBuffer(&mBuffer); in ~AudioBufferProviderSource() 46 return mBuffer.raw != NULL ? mBuffer.frameCount - mConsumed : 0; in availableToRead() 54 if (CC_UNLIKELY(mBuffer.raw == NULL)) { in read() 55 mBuffer.frameCount = count; in read() 56 status_t status = mProvider->getNextBuffer(&mBuffer, AudioBufferProvider::kInvalidPTS); in read() 60 ALOG_ASSERT(mBuffer.raw != NULL); in read() 63 size_t available = mBuffer.frameCount - mConsumed; in read() 69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed << mBitShift), count << mBitShift); in read() 70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read() [all …]
|
D | AudioResamplerCubic.cpp | 66 if (mBuffer.frameCount == 0) { in resampleStereo16() 67 mBuffer.frameCount = inFrameCount; in resampleStereo16() 68 provider->getNextBuffer(&mBuffer, mPTS); 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() 100 if (mBuffer.raw == NULL) in resampleStereo16() [all …]
|
D | AudioResampler.cpp | 136 mBuffer.frameCount = 0; in AudioResampler() 174 mBuffer.frameCount = 0; in reset() 215 while (mBuffer.frameCount == 0) { in resampleStereo16() 216 mBuffer.frameCount = inFrameCount; in resampleStereo16() 217 provider->getNextBuffer(&mBuffer, in resampleStereo16() 219 if (mBuffer.raw == NULL) { in resampleStereo16() 224 if (mBuffer.frameCount > inputIndex) break; in resampleStereo16() 226 inputIndex -= mBuffer.frameCount; in resampleStereo16() 227 mX0L = mBuffer.i16[mBuffer.frameCount*2-2]; in resampleStereo16() 228 mX0R = mBuffer.i16[mBuffer.frameCount*2-1]; in resampleStereo16() [all …]
|
D | AudioResamplerSinc.cpp | 204 while (mBuffer.frameCount == 0) { in resample() 205 mBuffer.frameCount = inFrameCount; in resample() 206 provider->getNextBuffer(&mBuffer, in resample() 208 if (mBuffer.raw == NULL) { in resample() 214 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 217 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 219 if (inputIndex >= mBuffer.frameCount) { in resample() 220 inputIndex -= mBuffer.frameCount; in resample() 221 provider->releaseBuffer(&mBuffer); in resample() 223 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() [all …]
|
D | Pipe.cpp | 31 mBuffer(malloc(mMaxFrames * Format_frameSize(format))), in Pipe() 40 free(mBuffer); in ~Pipe() 55 memcpy((char *) mBuffer + (rear << mBitShift), buffer, written << mBitShift); in write() 61 memcpy(mBuffer, (char *) buffer + (written << mBitShift), count << mBitShift); in write()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 45 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 …]
|
D | MPEG2PSExtractor.cpp | 99 mBuffer(new ABuffer(0)), in MPEG2PSExtractor() 162 memmove(mBuffer->base(), mBuffer->data(), mBuffer->size()); in feedMore() 163 mBuffer->setRange(0, mBuffer->size()); in feedMore() 165 if (mBuffer->size() + kChunkSize > mBuffer->capacity()) { in feedMore() 166 size_t newCapacity = mBuffer->capacity() + kChunkSize; in feedMore() 168 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in feedMore() 169 newBuffer->setRange(0, mBuffer->size()); in feedMore() 170 mBuffer = newBuffer; in feedMore() 174 mOffset, mBuffer->data() + mBuffer->size(), kChunkSize); in feedMore() 181 mBuffer->setRange(mBuffer->offset(), mBuffer->size() + n); in feedMore() [all …]
|
D | ATSParser.cpp | 119 sp<ABuffer> mBuffer; member 156 sp<ABuffer> mBuffer; member 465 mBuffer = new ABuffer(192 * 1024); in Stream() 466 mBuffer->setRange(0, 0); in Stream() 504 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() 505 if (mBuffer->capacity() < neededSize) { in parse() 512 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in parse() 513 newBuffer->setRange(0, mBuffer->size()); in parse() 514 mBuffer = newBuffer; in parse() 517 memcpy(mBuffer->data() + mBuffer->size(), br->data(), payloadSizeBits / 8); in parse() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MiniThumbFile.java | 54 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/ |
D | EventLog.java | 57 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 …]
|
D | LogPrinter.java | 26 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()
|
D | LogWriter.java | 25 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/core/java/com/android/internal/util/ |
D | ProcFileReader.java | 35 private final byte[] mBuffer; field in ProcFileReader 48 mBuffer = new byte[bufferSize]; in ProcFileReader() 58 final int length = mBuffer.length - mTail; in fillBuf() 63 final int read = mStream.read(mBuffer, mTail, length); in fillBuf() 77 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count); in consumeBuf() 97 final byte b = mBuffer[i]; in nextTokenIndex() 132 if (mBuffer[i] == '\n') { in finishLine() 147 final String s = new String(mBuffer, 0, tokenIndex, Charsets.US_ASCII); in nextString() 157 final boolean negative = mBuffer[0] == '-'; in nextLong() 162 final int digit = mBuffer[i] - '0'; in nextLong() [all …]
|
D | MemInfoReader.java | 24 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/base/media/mca/filterfw/java/android/filterfw/core/ |
D | SerializedFrame.java | 62 private byte[] mBuffer = null; field in SerializedFrame.DirectByteOutputStream 67 mBuffer = new byte[size]; in DirectByteOutputStream() 71 if (mOffset + bytesToWrite > mBuffer.length) { in ensureFit() 72 byte[] oldBuffer = mBuffer; in ensureFit() 73 mBuffer = new byte[Math.max(mOffset + bytesToWrite, mBuffer.length * 2)]; in ensureFit() 74 System.arraycopy(oldBuffer, 0, mBuffer, 0, mOffset); in ensureFit() 88 return mBuffer; in getByteArray() 99 System.arraycopy(b, off, mBuffer, mOffset, len); in write() 106 mBuffer[mOffset++] = (byte)b; in write() 114 return new DirectByteInputStream(mBuffer, mOffset); in getInputStream() [all …]
|
/frameworks/av/libvideoeditor/lvpp/ |
D | VideoEditorSRC.cpp | 44 mBuffer = NULL; in VideoEditorSRC() 89 if (mBuffer) { in stop() 90 mBuffer->release(); in stop() 91 mBuffer = NULL; in stop() 209 if (!mBuffer) { in getNextBuffer() 221 status_t err = mSource->read(&mBuffer, &options); in getNextBuffer() 249 CHECK(mBuffer); in getNextBuffer() 250 mLeftover = mBuffer->range_length(); in getNextBuffer() 253 sp<MetaData> from = mBuffer->meta_data(); in getNextBuffer() 266 uint8_t* end = (uint8_t*)mBuffer->data() + mBuffer->range_offset() in getNextBuffer() [all …]
|
/frameworks/av/media/libstagefright/ |
D | AVIExtractor.cpp | 80 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 …]
|
D | MPEG4Extractor.cpp | 80 MediaBuffer *mBuffer; member in android::MPEG4Source 1902 mBuffer(NULL), in MPEG4Source() 1965 if (mBuffer != NULL) { in stop() 1966 mBuffer->release(); in stop() 1967 mBuffer = NULL; in stop() 2090 if (mBuffer != NULL) { in read() 2091 mBuffer->release(); in read() 2092 mBuffer = NULL; in read() 2103 if (mBuffer == NULL) { in read() 2114 err = mGroup->acquire_buffer(&mBuffer); in read() [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioFormatAdapter.h | 87 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/ |
D | UsbRequest.java | 45 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/ |
D | SkOmxPixelRef.cpp | 26 mBuffer = buffer; in SkOmxPixelRef() 34 mBuffer->release(); in ~SkOmxPixelRef() 41 return mBuffer->data(); in onLockPixels()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerRenderer.cpp | 244 if (entry->mBuffer == NULL) { in onDrainAudioQueue() 256 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainAudioQueue() 279 size_t copy = entry->mBuffer->size() - entry->mOffset; in onDrainAudioQueue() 285 entry->mBuffer->data() + entry->mOffset, copy), in onDrainAudioQueue() 289 if (entry->mOffset == entry->mBuffer->size()) { in onDrainAudioQueue() 322 if (entry.mBuffer == NULL) { in postDrainVideoQueue() 327 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in postDrainVideoQueue() 356 if (entry->mBuffer == NULL) { in onDrainVideoQueue() 371 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs)); in onDrainVideoQueue() 422 entry.mBuffer = buffer; in onQueueBuffer() [all …]
|