Home
last modified time | relevance | path

Searched refs:mByteBuffer (Results 1 – 5 of 5) 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/
DMediaCodec.java1194 private ByteBuffer mByteBuffer; field in BufferMap.CodecBuffer
1197 if (mByteBuffer != null) { in free()
1199 java.nio.NioUtils.freeDirectBuffer(mByteBuffer); in free()
1200 mByteBuffer = null; in free()
1215 mByteBuffer = buffer; in setByteBuffer()