Home
last modified time | relevance | path

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

/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DDecoder.java24 private final ByteBuffer mBuf; field in Decoder
31 mBuf = buf; in Decoder()
35 return mBuf.hasRemaining(); in hasRemaining()
39 byte sig = mBuf.get(); in readObject()
43 return mBuf.get() == 0 ? Boolean.FALSE : Boolean.TRUE; in readObject()
45 return mBuf.get(); in readObject()
47 return mBuf.getShort(); in readObject()
49 return mBuf.getInt(); in readObject()
51 return mBuf.getLong(); in readObject()
53 return mBuf.getFloat(); in readObject()
[all …]
/frameworks/base/core/java/android/util/apk/
DByteBufferDataSource.java31 private final ByteBuffer mBuf; field in ByteBufferDataSource
36 mBuf = buf.slice(); in ByteBufferDataSource()
41 return mBuf.capacity(); in size()
57 synchronized (mBuf) { in feedIntoDataDigester()
58 mBuf.position(0); in feedIntoDataDigester()
59 mBuf.limit((int) offset + size); in feedIntoDataDigester()
60 mBuf.position((int) offset); in feedIntoDataDigester()
61 region = mBuf.slice(); in feedIntoDataDigester()
/frameworks/base/media/java/android/media/
DResampleInputStream.java43 private byte[] mBuf; field in ResampleInputStream
87 if (mBuf == null) { in read()
88 mBuf = new byte[nIn]; in read()
89 } else if (nIn > mBuf.length) { in read()
91 System.arraycopy(mBuf, 0, bf, 0, mBufCount); in read()
92 mBuf = bf; in read()
103 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
109 fir21(mBuf, 0, b, offset, length / 2); in read()
114 if (mBufCount > 0) System.arraycopy(mBuf, nFwd, mBuf, 0, mBufCount); in read()
DAmrInputStream.java47 private final byte[] mBuf = new byte[SAMPLES_PER_FRAME * 2]; field in AmrInputStream
128 int n = mInputStream.read(mBuf, numRead, SAMPLES_PER_FRAME * 2 - numRead); in read()
136 buf.put(mBuf, 0, numRead); in read()
150 out.get(mBuf, 0 /* offset */, mBufIn /* length */); in read()
163 System.arraycopy(mBuf, mBufOut, b, offset, length); in read()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DByteBufferInputStream.java24 private ByteBuffer mBuf; field in ByteBufferInputStream
27 mBuf = buf; in ByteBufferInputStream()
32 if (!mBuf.hasRemaining()) { in read()
35 return mBuf.get() & 0xFF; in read()
40 if (!mBuf.hasRemaining()) { in read()
44 len = Math.min(len, mBuf.remaining()); in read()
45 mBuf.get(bytes, off, len); in read()
/frameworks/av/media/libaudioprocessing/
DRecordBufferConverter.cpp54 mBuf(NULL), mBufFrames(0), mBufFrameSize(0), in RecordBufferConverter()
66 free(mBuf); in ~RecordBufferConverter()
110 free(mBuf); in convert()
112 (void)posix_memalign(&mBuf, 32, mBufFrames * mBufFrameSize); in convert()
115 memset(mBuf, 0, frames * mBufFrameSize); in convert()
116 frames = mResampler->resample((int32_t*)mBuf, frames, provider); in convert()
118 convertResampler(dst, mBuf, frames); in convert()
229 free(mBuf); in convertNoResampler()
231 (void)posix_memalign(&mBuf, 32, mBufFrames * mBufFrameSize); in convertNoResampler()
235 void *dstBuf = mBuf != NULL ? mBuf : dst; in convertNoResampler()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuProcStringReader.java92 private char[] mBuf; field in KernelCpuProcStringReader
160 if (mBuf == null) { in open()
161 mBuf = new char[1024]; in open()
163 while ((curr = r.read(mBuf, total, mBuf.length - total)) >= 0) { in open()
165 if (total == mBuf.length) { in open()
167 if (mBuf.length == MAX_BUFFER_SIZE) { in open()
172 mBuf = Arrays.copyOf(mBuf, Math.min(mBuf.length << 1, MAX_BUFFER_SIZE)); in open()
227 while (i < mSize && mBuf[i] != '\n') { in nextLine()
232 return CharBuffer.wrap(mBuf, start, i - start); in nextLine()
/frameworks/base/core/java/com/android/internal/util/
DBitwiseOutputStream.java32 private byte[] mBuf; field in BitwiseOutputStream
56 mBuf = new byte[startingLength]; in BitwiseOutputStream()
70 System.arraycopy(mBuf, 0, newBuf, 0, len); in toByteArray()
82 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); in possExpand()
83 mBuf = newBuf; in possExpand()
107 mBuf[index] |= data >>> 8; in write()
108 if (offset < 8) mBuf[index + 1] |= data & 0xFF; in write()
DBitwiseInputStream.java32 private byte[] mBuf; field in BitwiseInputStream
56 mBuf = buf; in BitwiseInputStream()
86 int data = (mBuf[index] & 0xFF) << 8; in read()
87 if (offset < 8) data |= mBuf[index + 1] & 0xFF; in read()
/frameworks/base/tools/incident_report/
Dprinter.cpp32 mBuf((char*)malloc(INITIAL_BUF_SIZE)), in Out()
49 free(mBuf); in reallocate()
51 mBuf = p; in reallocate()
71 len = vsnprintf(mBuf, mBufSize, format, args); in printf()
75 len = vsnprintf(mBuf, mBufSize, format, args); in printf()
80 fwrite(mBuf, len, 1, mOut); in printf()
82 char* last = mBuf; in printf()
Dprinter.h36 char* mBuf; variable
/frameworks/base/libs/androidfw/
DAsset.cpp384 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mFd(-1), mBuf(NULL) in _FileAsset()
486 if (mBuf == NULL) in read()
508 } else if (mBuf != NULL) { in read()
511 memcpy(buf, (char*)mBuf + mOffset, count); in read()
569 if (mBuf != NULL) { in close()
570 delete[] mBuf; in close()
571 mBuf = NULL; in close()
598 if (mBuf != NULL) in getBuffer()
599 return mBuf; in getBuffer()
608 if (mBuf != NULL) in getIncFsBuffer()
[all …]
/frameworks/rs/toolkit/
DColorMatrix.cpp185 unsigned char* mBuf; member in android::renderscript::ColorMatrixTask
212 mBuf = nullptr;
229 if (mBuf) munmap(mBuf, mBufSize); in ~ColorMatrixTask()
230 mBuf = nullptr; in ~ColorMatrixTask()
525 mBuf = (uint8_t *)mmap(0, mBufSize, PROT_READ | PROT_WRITE,
527 if (mBuf == MAP_FAILED) {
528 mBuf = NULL;
532 uint8_t *buf = mBuf;
770 int ret = mprotect(mBuf, mBufSize, PROT_READ | PROT_EXEC);
776 __builtin___clear_cache((char *) mBuf, (char*) mBuf + mBufSize);
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicColorMatrix.cpp191 unsigned char *mBuf; member in android::renderscript::RsdCpuScriptIntrinsicColorMatrix
487 mBuf = (uint8_t *)mmap(0, mBufSize, PROT_READ | PROT_WRITE, in build()
489 if (mBuf == MAP_FAILED) { in build()
490 mBuf = NULL; in build()
494 uint8_t *buf = mBuf; in build()
732 int ret = mprotect(mBuf, mBufSize, PROT_READ | PROT_EXEC); in build()
738 __builtin___clear_cache((char *) mBuf, (char*) mBuf + mBufSize); in build()
978 if (mBuf) munmap(mBuf, mBufSize); in preLaunch()
979 mBuf = nullptr; in preLaunch()
982 mOptKernel = (void (*)(void *, const void *, const int16_t *, uint32_t)) mBuf; in preLaunch()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DAsset.h282 bool isAllocated(void) const override { return mBuf != NULL; } in isAllocated()
301 unsigned char* mBuf; // for read variable
340 virtual bool isAllocated(void) const { return mBuf != NULL; } in isAllocated()
350 unsigned char* mBuf; // for getBuffer() variable
/frameworks/av/media/extractors/ogg/
DOggExtractor.cpp593 MediaBufferHelper *mBuf; in readNextPacket() local
597 media_status_t err = _readNextPacket(&mBuf, /* calcVorbisTimestamp = */false); in readNextPacket()
603 if (mBuf != NULL) { in readNextPacket()
604 mBuf->release(); in readNextPacket()
605 mBuf = NULL; in readNextPacket()
610 numSamples += getNumSamplesInPacket(mBuf); in readNextPacket()
611 mBuf->release(); in readNextPacket()
612 mBuf = NULL; in readNextPacket()
/frameworks/av/media/libaudioprocessing/include/media/
DRecordBufferConverter.h102 void *mBuf; variable
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt23688 Landroid/media/AmrInputStream;->mBuf:[B
29569 Landroid/media/ResampleInputStream;->mBuf:[B