Home
last modified time | relevance | path

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

/frameworks/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 return mByteBuffer.position(); in pos()
49 int newPosition = mByteBuffer.position() + byteCount; in skip()
51 mByteBuffer.position(newPosition); in skip()
57 mByteBuffer.get(dst, dstOffset, byteCount); in readByteArray()
62 return mByteBuffer.get(); in readByte()
67 return mByteBuffer.getInt(); in readInt()
73 dst[dstOffset++] = mByteBuffer.getInt(); in readIntArray()
[all …]
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
DMetadataListReader.java238 private final ByteBuffer mByteBuffer; field in MetadataListReader.InputStreamOpenTypeReader
251 mByteBuffer = ByteBuffer.wrap(mByteArray); in InputStreamOpenTypeReader()
252 mByteBuffer.order(ByteOrder.BIG_ENDIAN); in InputStreamOpenTypeReader()
257 mByteBuffer.position(0); in readUnsignedShort()
259 return toUnsignedShort(mByteBuffer.getShort()); in readUnsignedShort()
264 mByteBuffer.position(0); in readUnsignedInt()
266 return toUnsignedInt(mByteBuffer.getInt()); in readUnsignedInt()
271 mByteBuffer.position(0); in readTag()
273 return mByteBuffer.getInt(); in readTag()
307 private final ByteBuffer mByteBuffer; field in MetadataListReader.ByteBufferReader
[all …]
/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.java2877 private ByteBuffer mByteBuffer; field in BufferMap.CodecBuffer
2880 if (mByteBuffer != null) { in free()
2882 java.nio.NioUtils.freeDirectBuffer(mByteBuffer); in free()
2883 mByteBuffer = null; in free()
2898 mByteBuffer = buffer; in setByteBuffer()
/frameworks/base/core/jni/android/graphics/
DByteBufferStreamAdaptor.cpp17 , mByteBuffer(jbyteBuffer) in ByteBufferStream()
50 env->DeleteGlobalRef(mByteBuffer); in ~ByteBufferStream()
71 env->CallObjectMethod(mByteBuffer, gByteBuffer_getMethodID, mStorage, 0, jrequested); in read()
138 jobject mByteBuffer; member in ByteBufferStream
150 env->CallObjectMethod(mByteBuffer, gByteBuffer_setPositionMethodID, in setPosition()
/frameworks/rs/support/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()