Home
last modified time | relevance | path

Searched refs:mByteBuffer (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
DBridgeBufferIterator.java29 private final ByteBuffer mByteBuffer; field in BridgeBufferIterator
33 mByteBuffer = buffer; in BridgeBufferIterator()
39 mByteBuffer.position(offset); in seek()
44 int newPosition = mByteBuffer.position() + byteCount; in skip()
46 mByteBuffer.position(newPosition); in skip()
52 mByteBuffer.get(dst, dstOffset, byteCount); in readByteArray()
57 return mByteBuffer.get(); in readByte()
62 return mByteBuffer.getInt(); in readInt()
68 dst[dstOffset++] = mByteBuffer.getInt(); in readIntArray()
74 return mByteBuffer.getShort(); in readShort()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in OrderedDataOutputStream
33 mByteBuffer.order(order); in setByteOrder()
38 mByteBuffer.rewind(); in writeShort()
39 mByteBuffer.putShort(value); in writeShort()
40 out.write(mByteBuffer.array(), 0, 2); in writeShort()
45 mByteBuffer.rewind(); in writeInt()
46 mByteBuffer.putInt(value); in writeInt()
47 out.write(mByteBuffer.array()); in writeInt()
DExifModifier.java31 private final ByteBuffer mByteBuffer; field in ExifModifier
49 mByteBuffer = byteBuffer; in ExifModifier()
59 mByteBuffer.position(0); in ExifModifier()
72 is = new ByteBufferInputStream(mByteBuffer); in commit()
141 mByteBuffer.order(getByteOrder()); in modify()
152 mByteBuffer.position(offset + mOffsetBase); in writeTagValue()
158 mByteBuffer.put(buf); in writeTagValue()
160 mByteBuffer.put(buf); in writeTagValue()
161 mByteBuffer.put((byte) 0); in writeTagValue()
167 mByteBuffer.putInt((int) tag.getValueAt(i)); in writeTagValue()
[all …]
DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in CountedDataInputStream
92 mByteBuffer.order(order); in setByteOrder()
96 return mByteBuffer.order(); in getByteOrder()
101 mByteBuffer.rewind(); in readShort()
102 return mByteBuffer.getShort(); in readShort()
111 mByteBuffer.rewind(); in readInt()
112 return mByteBuffer.getInt(); in readInt()
121 mByteBuffer.rewind(); in readLong()
122 return mByteBuffer.getLong(); in readLong()
/frameworks/base/media/java/android/media/
DMediaSync.java173 public ByteBuffer mByteBuffer; field in MediaSync.AudioBuffer
179 mByteBuffer = byteBuffer; in AudioBuffer()
537 int size = audioBuffer.mByteBuffer.remaining(); in postRenderAudio()
547 audioBuffer.mByteBuffer, in postRenderAudio()
596 callback.onAudioBufferConsumed(sync, audioBuffer.mByteBuffer, in postReturnByteBuffer()
DMediaCodec.java2747 private ByteBuffer mByteBuffer; field in BufferMap.CodecBuffer
2750 if (mByteBuffer != null) { in free()
2752 java.nio.NioUtils.freeDirectBuffer(mByteBuffer); in free()
2753 mByteBuffer = null; in free()
2768 mByteBuffer = buffer; in setByteBuffer()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DAllocation.java64 ByteBuffer mByteBuffer = null; field in Allocation
549 if (mByteBuffer == null || (mUsage & USAGE_IO_INPUT) != 0) { in getByteBuffer()
550mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), xBytesSize, mType.getY(), mType.getZ()); in getByteBuffer()
552 return mByteBuffer; in getByteBuffer()
/frameworks/base/rs/java/android/renderscript/
DAllocation.java88 private ByteBuffer mByteBuffer = null; field in Allocation
2861 if (mByteBuffer == null || (mUsage & USAGE_IO_INPUT) != 0) { in getByteBuffer()
2864mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), stride, xBytesSize, mType.getY(), mType.get… in getByteBuffer()
2868 return mByteBuffer.asReadOnlyBuffer(); in getByteBuffer()
2870 return mByteBuffer; in getByteBuffer()