Searched refs:mBuffer (Results 1 - 25 of 163) sorted by relevance

1234567

/frameworks/av/media/libnbaio/
H A DAudioBufferProviderSource.cpp36 if (mBuffer.raw != NULL) {
37 mProvider->releaseBuffer(&mBuffer);
46 return mBuffer.raw != NULL ? mBuffer.frameCount - mConsumed : 0;
54 if (CC_UNLIKELY(mBuffer.raw == NULL)) {
55 mBuffer.frameCount = count;
56 status_t status = mProvider->getNextBuffer(&mBuffer);
60 ALOG_ASSERT(mBuffer.raw != NULL);
63 size_t available = mBuffer.frameCount - mConsumed;
69 memcpy(buffer, (char *) mBuffer
[all...]
H A DPipe.cpp32 mBuffer(buffer == NULL ? malloc(mMaxFrames * Format_frameSize(format)) : buffer),
33 mFifo(mMaxFrames, Format_frameSize(format), mBuffer, false /*throttlesWriter*/),
44 free(mBuffer);
/frameworks/base/core/java/android/util/
H A DLogPrinter.java26 private final int mBuffer; field in class:LogPrinter
43 mBuffer = Log.LOG_ID_MAIN;
53 mBuffer = buffer;
57 Log.println_native(mBuffer, mPriority, mTag, x);
H A DEventLog.java60 private final ByteBuffer mBuffer; field in class:EventLog.Event
86 mBuffer = ByteBuffer.wrap(data);
87 mBuffer.order(ByteOrder.nativeOrder());
92 return mBuffer.getInt(PROCESS_OFFSET);
102 return mBuffer.getInt(UID_OFFSET);
111 return mBuffer.getInt(THREAD_OFFSET);
116 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l
117 + mBuffer.getInt(NANOSECONDS_OFFSET);
122 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET);
126 return mBuffer
[all...]
H A DLogWriter.java25 private final int mBuffer; field in class:LogWriter
43 mBuffer = Log.LOG_ID_MAIN;
53 mBuffer = buffer;
78 Log.println_native(mBuffer, mPriority, mTag, mBuilder.toString());
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDelayedMessageBuffer.java29 private final ArrayList<HdmiCecMessage> mBuffer = new ArrayList<>(); field in class:DelayedMessageBuffer
52 mBuffer.add(message);
56 mBuffer.add(message);
69 for (Iterator<HdmiCecMessage> iter = mBuffer.iterator(); iter.hasNext(); ) {
78 for (HdmiCecMessage message : mBuffer) {
88 ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<HdmiCecMessage>(mBuffer);
89 mBuffer.clear();
107 ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<HdmiCecMessage>(mBuffer);
108 mBuffer.clear();
112 mBuffer
[all...]
/frameworks/av/media/mtp/
H A DMtpPacket.cpp32 : mBuffer(NULL),
37 mBuffer = (uint8_t *)malloc(bufferSize);
38 if (!mBuffer) {
45 if (mBuffer)
46 free(mBuffer);
52 memset(mBuffer, 0, mBufferSize);
58 mBuffer = (uint8_t *)realloc(mBuffer, newLength);
59 if (!mBuffer) {
74 mBuffer[
[all...]
H A DMtpDataPacket.cpp77 value = mBuffer[mOffset++];
85 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8);
94 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) |
95 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24);
104 value = (uint64_t)mBuffer[offset] | ((uint64_t)mBuffer[offset + 1] << 8) |
105 ((uint64_t)mBuffer[offse
[all...]
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerCubic.cpp67 if (mBuffer.frameCount == 0) {
68 mBuffer.frameCount = inFrameCount;
69 provider->getNextBuffer(&mBuffer);
70 if (mBuffer.raw == NULL) {
73 // ALOGW("New buffer: offset=%p, frames=%dn", mBuffer.raw, mBuffer.frameCount);
75 int16_t *in = mBuffer.i16;
95 if (inputIndex == mBuffer.frameCount) {
97 provider->releaseBuffer(&mBuffer);
98 mBuffer
[all...]
H A DAudioResampler.cpp283 mBuffer.frameCount = 0;
314 mBuffer.frameCount = 0;
356 while (mBuffer.frameCount == 0) {
357 mBuffer.frameCount = inFrameCount;
358 provider->getNextBuffer(&mBuffer);
359 if (mBuffer.raw == NULL) {
363 // ALOGE("New buffer fetched: %d frames", mBuffer.frameCount);
364 if (mBuffer.frameCount > inputIndex) break;
366 inputIndex -= mBuffer.frameCount;
367 mX0L = mBuffer
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java54 private ByteBuffer mBuffer; field in class:UsbRequest
188 mBuffer = buffer;
202 mBuffer = null;
237 mBuffer = buffer;
253 mTempBuffer = ByteBuffer.allocateDirect(mBuffer.remaining());
257 mBuffer.mark();
258 mTempBuffer.put(mBuffer);
260 mBuffer.reset();
275 mBuffer = null;
290 if (mBuffer
[all...]
/frameworks/av/media/libmedia/
H A DMediaCodecBuffer.cpp31 mBuffer(buffer),
37 return mBuffer->base();
41 return mBuffer->data();
45 return mBuffer->capacity();
49 return mBuffer->size();
53 return mBuffer->offset();
57 mBuffer->setRange(offset, size);
/frameworks/base/core/java/com/android/internal/util/
H A DProcFileReader.java36 private final byte[] mBuffer; field in class:ProcFileReader
38 /** Write pointer in {@link #mBuffer}. */
49 mBuffer = new byte[bufferSize];
59 final int length = mBuffer.length - mTail;
64 final int read = mStream.read(mBuffer, mTail, length);
78 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count);
101 final byte b = mBuffer[i];
136 if (mBuffer[i] == '\n') {
184 final String s = new String(mBuffer,
[all...]
/frameworks/base/libs/hwui/utils/
H A DRingBuffer.h42 return mBuffer[mHead];
54 return mBuffer[(mHead + index + 1) % mCount];
58 return mBuffer[(mHead + index + 1) % mCount];
67 T mBuffer[SIZE]; member in class:android::uirenderer::RingBuffer
/frameworks/av/include/media/
H A DRingBuffer.h169 std::vector<T> mBuffer; member in class:android::final
266 if (mBuffer.size() < mMaxBufferSize) {
267 mBuffer.push_back(item);
272 mBuffer[mFrontIdx] = item;
278 if (mBuffer.size() != mMaxBufferSize) {
279 mBuffer.push_back(std::forward<T>(item));
285 mBuffer[mFrontIdx] = std::forward<T>(item);
292 if (mBuffer.size() != mMaxBufferSize) {
293 mBuffer.emplace_back(std::forward<Args>(args)...);
299 mBuffer[mFrontId
[all...]
/frameworks/av/media/libmedia/include/media/
H A DRingBuffer.h169 std::vector<T> mBuffer; member in class:android::final
266 if (mBuffer.size() < mMaxBufferSize) {
267 mBuffer.push_back(item);
272 mBuffer[mFrontIdx] = item;
278 if (mBuffer.size() != mMaxBufferSize) {
279 mBuffer.push_back(std::forward<T>(item));
285 mBuffer[mFrontIdx] = std::forward<T>(item);
292 if (mBuffer.size() != mMaxBufferSize) {
293 mBuffer.emplace_back(std::forward<Args>(args)...);
299 mBuffer[mFrontId
[all...]
/frameworks/native/services/sensorservice/
H A DRingBuffer.h169 std::vector<T> mBuffer; member in class:android::SensorServiceUtil::final
266 if (mBuffer.size() < mMaxBufferSize) {
267 mBuffer.push_back(item);
272 mBuffer[mFrontIdx] = item;
278 if (mBuffer.size() != mMaxBufferSize) {
279 mBuffer.push_back(std::forward<T>(item));
285 mBuffer[mFrontIdx] = std::forward<T>(item);
292 if (mBuffer.size() != mMaxBufferSize) {
293 mBuffer.emplace_back(std::forward<Args>(args)...);
299 mBuffer[mFrontId
[all...]
/frameworks/av/camera/
H A DCameraMetadata.cpp36 mBuffer(NULL), mLocked(false) {
42 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity);
47 mBuffer = clone_camera_metadata(other.mBuffer);
51 mBuffer(NULL), mLocked(false) {
56 return operator=(other.mBuffer);
65 if (CC_LIKELY(buffer != mBuffer)) {
68 mBuffer = newBuffer;
80 return mBuffer;
88 if (buffer != mBuffer) {
345 __FUNCTION__, mBuffer); local
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DRepeaterSource.cpp19 mBuffer(NULL),
58 mBuffer = NULL;
91 if (mBuffer != NULL) {
92 ALOGV("releasing mbuf %p", mBuffer);
93 mBuffer->release();
94 mBuffer = NULL;
120 while ((mLastBufferUpdateUs < 0ll || mBuffer == NULL)
144 CHECK(mBuffer == NULL);
156 mBuffer->add_ref();
157 *buffer = mBuffer;
[all...]
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java53 private ByteBuffer mBuffer; field in class:MiniThumbFile
132 mBuffer = ByteBuffer.allocateDirect(BYTES_PER_MINTHUMB);
157 mBuffer.clear();
158 mBuffer.limit(1 + 8);
163 if (mChannel.read(mBuffer, pos) == 9) {
164 mBuffer.position(0);
165 if (mBuffer.get() == 1) {
166 return mBuffer.getLong();
200 mBuffer.clear();
201 mBuffer
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp61 if (mBuffer != NULL) {
62 mBuffer->setRange(0, 0);
282 if (mBuffer == NULL || mBuffer->size() == 0) {
458 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size;
459 if (mBuffer == NULL || neededSize > mBuffer->capacity()) {
465 if (mBuffer != NULL) {
466 memcpy(buffer->data(), mBuffer
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiInputPort.java48 private final byte[] mBuffer = new byte[MidiPortImpl.MAX_PACKET_SIZE]; field in class:MidiInputPort
84 synchronized (mBuffer) {
88 int length = MidiPortImpl.packData(msg, offset, count, timestamp, mBuffer);
89 mOutputStream.write(mBuffer, 0, length);
95 synchronized (mBuffer) {
99 int length = MidiPortImpl.packFlush(mBuffer);
100 mOutputStream.write(mBuffer, 0, length);
108 synchronized (mBuffer) {
138 synchronized (mBuffer) {
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketDecoder.java32 private final byte[] mBuffer; field in class:BluetoothPacketDecoder
40 mBuffer = new byte[maxPacketSize];
89 receiver.send(mBuffer, 0, dataCount, nanoTimestamp);
103 mBuffer[dataCount++] = b;
109 receiver.send(mBuffer, 0, dataCount, nanoTimestamp);
/frameworks/base/core/java/com/android/internal/midi/
H A DMidiFramer.java38 private byte[] mBuffer = new byte[3]; field in class:MidiFramer
86 mBuffer[0] = currentByte;
102 mBuffer[mCount++] = currentByte;
105 mBuffer[0] = mRunningStatus;
107 mReceiver.send(mBuffer, 0, mCount, timestamp);
108 mNeeded = MidiConstants.getBytesPerMessage(mBuffer[0]) - 1;
/frameworks/webview/chromium/plat_support/
H A Dgraphic_buffer_impl.cpp27 : mBuffer(new android::GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888,
93 return mBuffer->lock(usage, vaddr);
97 return mBuffer->unlock();
101 return mBuffer->initCheck();
105 return mBuffer->getNativeBuffer();
110 return mBuffer->getStride() * kBytesPerPixel;

Completed in 292 milliseconds

1234567