/frameworks/base/media/java/android/media/ |
H A D | ResampleInputStream.java | 45 private byte[] mBuf; field in class:ResampleInputStream 87 // ensure that mBuf is big enough to cover requested 'length' 89 if (mBuf == null) { 90 mBuf = new byte[nIn]; 91 } else if (nIn > mBuf.length) { 93 System.arraycopy(mBuf, 0, bf, 0, mBufCount); 94 mBuf = bf; 104 // TODO: should mBuf.length below be nIn instead? 105 int n = mInputStream.read(mBuf, mBufCount, mBuf [all...] |
H A D | AmrInputStream.java | 47 private final byte[] mBuf = new byte[SAMPLES_PER_FRAME * 2]; field in class:AmrInputStream 87 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i); 93 mBufIn = GsmAmrEncoderEncode(mGae, mBuf, 0, mBuf, 0); 98 System.arraycopy(mBuf, mBufOut, b, offset, length);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | BitwiseOutputStream.java | 30 private byte[] mBuf; field in class:BitwiseOutputStream 53 mBuf = new byte[startingLength]; 66 System.arraycopy(mBuf, 0, newBuf, 0, len); 78 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); 79 mBuf = newBuf; 102 mBuf[index] |= data >>> 8; 103 if (offset < 8) mBuf[index + 1] |= data & 0xFF;
|
H A D | BitwiseInputStream.java | 30 private byte[] mBuf; field in class:BitwiseInputStream 53 mBuf = buf; 81 int data = (mBuf[index] & 0xFF) << 8; 82 if (offset < 8) data |= mBuf[index + 1] & 0xFF;
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | PreviewRenderer.cpp | 101 &mBuf)) != 0) { 111 CHECK_EQ(0, mapper.lock(mBuf->handle, 116 *stride = mBuf->stride; 130 if (mBuf!= NULL) { 131 CHECK_EQ(0, mapper.unlock(mBuf->handle)); 133 if ((err = mSurface->ANativeWindow::queueBuffer(mSurface.get(), mBuf, -1)) != 0) { 137 mBuf = NULL;
|
H A D | PreviewRenderer.h | 58 ANativeWindowBuffer *mBuf; member in class:android::PreviewRenderer
|
/frameworks/base/core/java/android/speech/srec/ |
H A D | UlawEncoderInputStream.java | 43 private final byte[] mBuf = new byte[1024]; field in class:UlawEncoderInputStream 146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount)); 153 encode(mBuf, 0, buf, offset, n, mMax); 155 // move data to bottom of mBuf 157 for (int i = 0; i < mBufCount; i++) mBuf[i] = mBuf[i + n * 2];
|
/frameworks/native/libs/gui/ |
H A D | BufferItemConsumer.cpp | 74 item->mGraphicBuffer = mSlots[item->mBuf].mGraphicBuffer; 85 err = addReleaseFenceLocked(item.mBuf, releaseFence); 87 err = releaseBufferLocked(item.mBuf, EGL_NO_DISPLAY,
|
H A D | ConsumerBase.cpp | 185 mSlots[item->mBuf].mGraphicBuffer = item->mGraphicBuffer; 188 mSlots[item->mBuf].mFence = item->mFence; 190 CB_LOGV("acquireBufferLocked: -> slot=%d", item->mBuf);
|
H A D | CpuConsumer.cpp | 78 int buf = b.mBuf;
|
H A D | SurfaceTexture.cpp | 166 int slot = item->mBuf; 240 int buf = item.mBuf;
|
H A D | BufferQueue.cpp | 842 buffer->mBuf = buf;
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) 450 if (mBuf == NULL) 467 } else if (mBuf != NULL) { 470 memcpy(buf, (char*)mBuf + mOffset, count); 532 if (mBuf != NULL) { 533 delete[] mBuf; 534 mBuf = NULL; 561 if (mBuf != NULL) 562 return mBuf; 602 mBuf [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 258 mBuf = malloc(size); 262 memcpy(mBuf, buf, size); 267 if (mBuf != NULL) { 268 free(mBuf); 272 mBuf = NULL; 277 memcpy((char*)mBuf + offset, data, size); 282 return mBuf;
|
H A D | gltrace_context.h | 37 GLvoid *mBuf; member in class:android::gltrace::ElementArrayBuffer 41 ElementArrayBuffer():mBuf(NULL), mSize(0) {}
|
/frameworks/base/include/androidfw/ |
H A D | Asset.h | 245 virtual bool isAllocated(void) const { return mBuf != NULL; } 262 unsigned char* mBuf; // for read member in class:android::_FileAsset 302 virtual bool isAllocated(void) const { return mBuf != NULL; } 315 unsigned char* mBuf; // for getBuffer() member in class:android::_CompressedAsset
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.cpp | 93 item.mBuf != mCurrentBufferSlot) { 102 mCurrentBufferSlot = item.mBuf;
|
/frameworks/base/core/java/android/net/http/ |
H A D | Connection.java | 103 private byte[] mBuf; field in class:Connection 517 if (mBuf == null) mBuf = new byte[8192]; 518 return mBuf;
|
/frameworks/av/media/libstagefright/ |
H A D | SurfaceMediaSource.cpp | 304 mBufferSlot[item.mBuf] = item.mGraphicBuffer; 314 mBufferQueue->releaseBuffer(item.mBuf, EGL_NO_DISPLAY, 340 mCurrentSlot = item.mBuf;
|
/frameworks/native/include/gui/ |
H A D | BufferQueue.h | 182 mBuf(INVALID_BUFFER_SLOT) { 205 // mBuf is the slot index of this buffer 206 int mBuf; member in struct:android::BufferQueue::BufferItem
|
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | StreamingProcessor.cpp | 514 if (mRecordingBuffers[i].mBuf != 603 if (item.mBuf != BufferItemConsumer::INVALID_BUFFER_SLOT &&
|