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

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in class:OrderedDataOutputStream
33 mByteBuffer.order(order);
38 mByteBuffer.rewind();
39 mByteBuffer.putShort(value);
40 out.write(mByteBuffer.array(), 0, 2);
45 mByteBuffer.rewind();
46 mByteBuffer.putInt(value);
47 out.write(mByteBuffer.array());
H A DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in class:CountedDataInputStream
92 mByteBuffer.order(order);
96 return mByteBuffer.order();
101 mByteBuffer.rewind();
102 return mByteBuffer.getShort();
111 mByteBuffer.rewind();
112 return mByteBuffer.getInt();
121 mByteBuffer.rewind();
122 return mByteBuffer.getLong();
H A DExifModifier.java31 private final ByteBuffer mByteBuffer; field in class:ExifModifier
49 mByteBuffer = byteBuffer;
59 mByteBuffer.position(0);
72 is = new ByteBufferInputStream(mByteBuffer);
141 mByteBuffer.order(getByteOrder());
152 mByteBuffer.position(offset + mOffsetBase);
158 mByteBuffer.put(buf);
160 mByteBuffer.put(buf);
161 mByteBuffer.put((byte) 0);
167 mByteBuffer
[all...]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java29 private final ByteBuffer mByteBuffer; field in class:BridgeBufferIterator
33 mByteBuffer = buffer;
39 mByteBuffer.position(offset);
44 return mByteBuffer.position();
49 int newPosition = mByteBuffer.position() + byteCount;
51 mByteBuffer.position(newPosition);
57 mByteBuffer.get(dst, dstOffset, byteCount);
62 return mByteBuffer.get();
67 return mByteBuffer.getInt();
73 dst[dstOffset++] = mByteBuffer
[all...]
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DMetadataListReader.java238 private final ByteBuffer mByteBuffer; field in class:MetadataListReader.InputStreamOpenTypeReader
251 mByteBuffer = ByteBuffer.wrap(mByteArray);
252 mByteBuffer.order(ByteOrder.BIG_ENDIAN);
257 mByteBuffer.position(0);
259 return toUnsignedShort(mByteBuffer.getShort());
264 mByteBuffer.position(0);
266 return toUnsignedInt(mByteBuffer.getInt());
271 mByteBuffer.position(0);
273 return mByteBuffer.getInt();
307 private final ByteBuffer mByteBuffer; field in class:MetadataListReader.ByteBufferReader
[all...]
/frameworks/base/media/java/android/media/
H A DMediaSync.java173 public ByteBuffer mByteBuffer; field in class:MediaSync.AudioBuffer
179 mByteBuffer = byteBuffer;
537 int size = audioBuffer.mByteBuffer.remaining();
547 audioBuffer.mByteBuffer,
596 callback.onAudioBufferConsumed(sync, audioBuffer.mByteBuffer,
H A DMediaCodec.java2877 private ByteBuffer mByteBuffer; field in class:MediaCodec.BufferMap.CodecBuffer
2880 if (mByteBuffer != null) {
2882 java.nio.NioUtils.freeDirectBuffer(mByteBuffer);
2883 mByteBuffer = null;
2898 mByteBuffer = buffer;
/frameworks/base/core/jni/android/graphics/
H A DByteBufferStreamAdaptor.cpp17 , mByteBuffer(jbyteBuffer)
50 env->DeleteGlobalRef(mByteBuffer);
71 env->CallObjectMethod(mByteBuffer, gByteBuffer_getMethodID, mStorage, 0, jrequested);
138 jobject mByteBuffer; member in class:ByteBufferStream
141 // Initial position of mByteBuffer, treated as mPosition 0.
144 // mByteBuffer.limit().
150 env->CallObjectMethod(mByteBuffer, gByteBuffer_setPositionMethodID,
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DAllocation.java64 ByteBuffer mByteBuffer = null; field in class:Allocation
549 if (mByteBuffer == null || (mUsage & USAGE_IO_INPUT) != 0) {
550 mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), xBytesSize, mType.getY(), mType.getZ());
552 return mByteBuffer;
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java88 private ByteBuffer mByteBuffer = null; field in class:Allocation
2861 if (mByteBuffer == null || (mUsage & USAGE_IO_INPUT) != 0) {
2864 mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), stride, xBytesSize, mType.getY(), mType.getZ());
2868 return mByteBuffer.asReadOnlyBuffer();
2870 return mByteBuffer;

Completed in 381 milliseconds