/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 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; 101 mBuf[index] |= data >>> 8; 102 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/media/libvideoeditor/lvpp/ |
H A D | PreviewRenderer.cpp | 100 if ((err = mSurface->ANativeWindow::dequeueBuffer(mSurface.get(), &mBuf)) != 0) { 105 CHECK_EQ(0, mSurface->ANativeWindow::lockBuffer(mSurface.get(), mBuf)); 112 CHECK_EQ(0, mapper.lock(mBuf->handle, 117 *stride = mBuf->stride; 131 if (mBuf!= NULL) { 132 CHECK_EQ(0, mapper.unlock(mBuf->handle)); 134 if ((err = mSurface->ANativeWindow::queueBuffer(mSurface.get(), mBuf)) != 0) { 138 mBuf = NULL;
|
H A D | PreviewRenderer.h | 59 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/base/libs/utils/ |
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/base/include/utils/ |
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/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;
|