/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/media/libnbaio/ |
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() 56 if (CC_UNLIKELY(mBuffer.raw == NULL)) { in read() 57 mBuffer.frameCount = count; in read() 58 status_t status = mProvider->getNextBuffer(&mBuffer, readPTS); in read() 62 ALOG_ASSERT(mBuffer.raw != NULL); in read() 65 size_t available = mBuffer.frameCount - mConsumed; in read() 71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed << mBitShift), count << mBitShift); in read() 72 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read() [all …]
|
/frameworks/av/camera/ |
D | CameraMetadata.cpp | 28 mBuffer(NULL), mLocked(false) { in CameraMetadata() 34 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity); in CameraMetadata() 39 mBuffer = clone_camera_metadata(other.mBuffer); in CameraMetadata() 43 mBuffer(NULL), mLocked(false) { in CameraMetadata() 48 return operator=(other.mBuffer); in operator =() 57 if (CC_LIKELY(buffer != mBuffer)) { in operator =() 60 mBuffer = newBuffer; in operator =() 72 return mBuffer; in getAndLock() 80 if (buffer != mBuffer) { in unlock() 94 camera_metadata_t *released = mBuffer; in release() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 48 if (mBuffer != NULL) { in clear() 49 mBuffer->setRange(0, 0); in clear() 125 if (mBuffer == NULL || mBuffer->size() == 0) { in appendData() 265 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData() 266 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData() 272 if (mBuffer != NULL) { in appendData() 273 memcpy(buffer->data(), mBuffer->data(), mBuffer->size()); in appendData() 274 buffer->setRange(0, mBuffer->size()); in appendData() 279 mBuffer = buffer; in appendData() 282 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 | 130 sp<ABuffer> mBuffer; member 169 sp<ABuffer> mBuffer; member 516 mBuffer = new ABuffer(192 * 1024); in Stream() 517 mBuffer->setRange(0, 0); in Stream() 538 mBuffer->setRange(0, 0); in parse() 579 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() 580 if (mBuffer->capacity() < neededSize) { in parse() 587 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in parse() 588 newBuffer->setRange(0, mBuffer->size()); in parse() 589 mBuffer = newBuffer; in parse() [all …]
|
/frameworks/av/services/audioflinger/ |
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 | 228 mBuffer.frameCount = 0; in AudioResampler() 275 mBuffer.frameCount = 0; in reset() 316 while (mBuffer.frameCount == 0) { in resampleStereo16() 317 mBuffer.frameCount = inFrameCount; in resampleStereo16() 318 provider->getNextBuffer(&mBuffer, in resampleStereo16() 320 if (mBuffer.raw == NULL) { in resampleStereo16() 325 if (mBuffer.frameCount > inputIndex) break; in resampleStereo16() 327 inputIndex -= mBuffer.frameCount; in resampleStereo16() 328 mX0L = mBuffer.i16[mBuffer.frameCount*2-2]; in resampleStereo16() 329 mX0R = mBuffer.i16[mBuffer.frameCount*2-1]; in resampleStereo16() [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/av/media/libstagefright/wifi-display/source/ |
D | RepeaterSource.cpp | 19 mBuffer(NULL), in RepeaterSource() 58 mBuffer = NULL; in start() 89 if (mBuffer != NULL) { in stop() 90 ALOGV("releasing mbuf %p", mBuffer); in stop() 91 mBuffer->release(); in stop() 92 mBuffer = NULL; in stop() 119 while ((mLastBufferUpdateUs < 0ll || mBuffer == NULL) in read() 143 CHECK(mBuffer == NULL); in read() 155 mBuffer->add_ref(); in read() 156 *buffer = mBuffer; in read() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProcFileReader.java | 36 private final byte[] mBuffer; field in ProcFileReader 49 mBuffer = new byte[bufferSize]; in ProcFileReader() 59 final int length = mBuffer.length - mTail; in fillBuf() 64 final int read = mStream.read(mBuffer, mTail, length); in fillBuf() 78 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count); in consumeBuf() 101 final byte b = mBuffer[i]; in nextTokenIndex() 136 if (mBuffer[i] == '\n') { in finishLine() 184 final String s = new String(mBuffer, 0, tokenIndex, Charsets.US_ASCII); in parseAndConsumeString() 190 final boolean negative = mBuffer[0] == '-'; in parseAndConsumeLong() 195 final int digit = mBuffer[i] - '0'; in parseAndConsumeLong() [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/libs/hwui/ |
D | PixelBuffer.cpp | 46 uint8_t* mBuffer; member in android::uirenderer::CpuPixelBuffer 51 mBuffer = new uint8_t[width * height * formatSize(format)]; in CpuPixelBuffer() 55 delete[] mBuffer; in ~CpuPixelBuffer() 62 return mBuffer; in map() 70 return mAccessMode == kAccessMode_None ? NULL : mBuffer; in getMappedPointer() 75 mFormat, GL_UNSIGNED_BYTE, mBuffer + offset); in upload() 95 GLuint mBuffer; member in android::uirenderer::GpuPixelBuffer 102 glGenBuffers(1, &mBuffer); in GpuPixelBuffer() 103 mCaches.bindPixelBuffer(mBuffer); in GpuPixelBuffer() 109 glDeleteBuffers(1, &mBuffer); in ~GpuPixelBuffer() [all …]
|
D | PathTessellator.h | 32 mBuffer(0), in VertexBuffer() 38 if (mCleanupMethod) mCleanupMethod(mBuffer); in ~VertexBuffer() 51 if (mReallocBuffer != mBuffer) { in alloc() 59 mReallocBuffer = mBuffer = (void*)new TYPE[size]; in alloc() 62 return (TYPE*)mBuffer; in alloc() 65 void* getBuffer() const { return mBuffer; } in getBuffer() 70 TYPE* end = (TYPE*)mBuffer + mSize; in createDegenerateSeparators() 71 for (TYPE* degen = (TYPE*)mBuffer + allocSize; degen < end; degen += 2 + allocSize) { in createDegenerateSeparators() 83 void* mBuffer; variable
|
/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 | MPEG4Extractor.cpp | 101 MediaBuffer *mBuffer; member in android::MPEG4Source 2306 mBuffer(NULL), in MPEG4Source() 2391 if (mBuffer != NULL) { in stop() 2392 mBuffer->release(); in stop() 2393 mBuffer = NULL; in stop() 3044 if (mBuffer != NULL) { in read() 3045 mBuffer->release(); in read() 3046 mBuffer = NULL; in read() 3057 if (mBuffer == NULL) { in read() 3068 err = mGroup->acquire_buffer(&mBuffer); in read() [all …]
|
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 …]
|
/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() 156 if (mBuffer.isDirect()) { in dequeue() 159 bytesRead = native_dequeue_array(mBuffer.array(), mLength, out); in dequeue() 162 mBuffer.position(Math.min(bytesRead, mLength)); in dequeue() 164 mBuffer = null; in dequeue()
|