Home
last modified time | relevance | path

Searched refs:mBuf (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/media/java/android/media/
DResampleInputStream.java45 private byte[] mBuf; field in ResampleInputStream
89 if (mBuf == null) { in read()
90 mBuf = new byte[nIn]; in read()
91 } else if (nIn > mBuf.length) { in read()
93 System.arraycopy(mBuf, 0, bf, 0, mBufCount); in read()
94 mBuf = bf; in read()
105 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
111 fir21(mBuf, 0, b, offset, length / 2); in read()
116 if (mBufCount > 0) System.arraycopy(mBuf, nFwd, mBuf, 0, mBufCount); in read()
DAmrInputStream.java47 private byte[] mBuf = new byte[SAMPLES_PER_FRAME * 2]; field in AmrInputStream
87 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i); in read()
93 mBufIn = GsmAmrEncoderEncode(mGae, mBuf, 0, mBuf, 0); in read()
98 System.arraycopy(mBuf, mBufOut, b, offset, length); in read()
/frameworks/base/core/java/com/android/internal/util/
DBitwiseOutputStream.java30 private byte[] mBuf; field in BitwiseOutputStream
53 mBuf = new byte[startingLength]; in BitwiseOutputStream()
66 System.arraycopy(mBuf, 0, newBuf, 0, len); in toByteArray()
78 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); in possExpand()
79 mBuf = newBuf; in possExpand()
101 mBuf[index] |= data >>> 8; in write()
102 if (offset < 8) mBuf[index + 1] |= data & 0xFF; in write()
DBitwiseInputStream.java30 private byte[] mBuf; field in BitwiseInputStream
53 mBuf = buf; in BitwiseInputStream()
81 int data = (mBuf[index] & 0xFF) << 8; in read()
82 if (offset < 8) data |= mBuf[index + 1] & 0xFF; in read()
/frameworks/media/libvideoeditor/lvpp/
DPreviewRenderer.cpp100 if ((err = mSurface->ANativeWindow::dequeueBuffer(mSurface.get(), &mBuf)) != 0) { in getBufferYV12()
105 CHECK_EQ(0, mSurface->ANativeWindow::lockBuffer(mSurface.get(), mBuf)); in getBufferYV12()
112 CHECK_EQ(0, mapper.lock(mBuf->handle, in getBufferYV12()
117 *stride = mBuf->stride; in getBufferYV12()
131 if (mBuf!= NULL) { in renderYV12()
132 CHECK_EQ(0, mapper.unlock(mBuf->handle)); in renderYV12()
134 if ((err = mSurface->ANativeWindow::queueBuffer(mSurface.get(), mBuf)) != 0) { in renderYV12()
138 mBuf = NULL; in renderYV12()
DPreviewRenderer.h59 ANativeWindowBuffer *mBuf; variable
/frameworks/base/libs/utils/
DAsset.cpp356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
450 if (mBuf == NULL) in read()
467 } else if (mBuf != NULL) { in read()
470 memcpy(buf, (char*)mBuf + mOffset, count); in read()
532 if (mBuf != NULL) { in close()
533 delete[] mBuf; in close()
534 mBuf = NULL; in close()
561 if (mBuf != NULL) in getBuffer()
562 return mBuf; in getBuffer()
602 mBuf = buf; in getBuffer()
[all …]
/frameworks/base/core/java/android/speech/srec/
DUlawEncoderInputStream.java43 private final byte[] mBuf = new byte[1024]; field in UlawEncoderInputStream
146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount)); in read()
153 encode(mBuf, 0, buf, offset, n, mMax); in read()
157 for (int i = 0; i < mBufCount; i++) mBuf[i] = mBuf[i + n * 2]; in read()
/frameworks/base/include/utils/
DAsset.h245 virtual bool isAllocated(void) const { return mBuf != NULL; } in isAllocated()
262 unsigned char* mBuf; // for read variable
302 virtual bool isAllocated(void) const { return mBuf != NULL; } in isAllocated()
315 unsigned char* mBuf; // for getBuffer() variable
/frameworks/base/core/java/android/net/http/
DConnection.java103 private byte[] mBuf; field in Connection
517 if (mBuf == null) mBuf = new byte[8192]; in getBuf()
518 return mBuf; in getBuf()