/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryableSize.java | 26 import java.nio.ByteBuffer; 40 public void marshal(Size value, ByteBuffer buffer) { 46 public Size unmarshal(ByteBuffer buffer) {
|
MarshalQueryableSizeF.java | 26 import java.nio.ByteBuffer; 42 public void marshal(SizeF value, ByteBuffer buffer) { 48 public SizeF unmarshal(ByteBuffer buffer) {
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
OutputStreamTarget.java | 27 import java.nio.ByteBuffer; 49 ByteBuffer data; 53 data = ByteBuffer.wrap(stringVal.getBytes());
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
Chunk.java | 19 import java.nio.ByteBuffer; 53 * Construct from a ByteBuffer. The chunk is assumed to start at 56 public Chunk(int type, ByteBuffer buf) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
BufferSubDataTransform.java | 22 import java.nio.ByteBuffer; 49 ByteBuffer bb = ByteBuffer.wrap(mNewData);
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererOneColorBufferTest.java | 20 import java.nio.ByteBuffer; 66 mVertices = ByteBuffer.allocateDirect(mVerticesData.length * 4) 70 ByteBuffer ibb = ByteBuffer.allocateDirect(mIndices.length * 2); 76 mColor = ByteBuffer.allocateDirect(mVertexColor.length*4). 84 mVertices = ByteBuffer.allocateDirect(mVerticesData.length * 4) 88 ByteBuffer ibb = ByteBuffer.allocateDirect(mIndices.length * 2); 94 mColor = ByteBuffer.allocateDirect(mVertexColor.length*4).
|
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
Triangle.java | 18 import java.nio.ByteBuffer; 47 ByteBuffer bb = ByteBuffer.allocateDirect( 53 // create a floating point buffer from the ByteBuffer
|
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/java/src/org/webrtc/ |
VideoRenderer.java | 30 import java.nio.ByteBuffer; 46 public final ByteBuffer[] yuvPlanes; 54 int width, int height, int[] yuvStrides, ByteBuffer[] yuvPlanes) { 59 yuvPlanes = new ByteBuffer[3]; 60 yuvPlanes[0] = ByteBuffer.allocateDirect(yuvStrides[0] * height); 61 yuvPlanes[1] = ByteBuffer.allocateDirect(yuvStrides[1] * height); 62 yuvPlanes[2] = ByteBuffer.allocateDirect(yuvStrides[2] * height); 92 private void copyPlane(ByteBuffer src, ByteBuffer dst) {
|
/external/chromium_org/third_party/webrtc/examples/android/media_demo/jni/ |
media_codec_video_decoder.cc | 30 jni->GetMethodID(decoderClass, "pushBuffer", "(Ljava/nio/ByteBuffer;J)V"); 58 jobject byteBuffer = 60 jni->CallVoidMethod(decoder_, j_push_buffer_, byteBuffer, renderTimeMs); 61 jni->DeleteLocalRef(byteBuffer);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLBIOSource.java | 21 import java.nio.ByteBuffer; 26 public static OpenSSLBIOSource wrap(ByteBuffer buffer) { 55 private final ByteBuffer source; 57 public ByteBufferInputStream(ByteBuffer source) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
AbstractBoxParser.java | 23 import java.nio.ByteBuffer; 50 ByteBuffer header = ChannelHelper.readFully(byteChannel, 8); 65 ByteBuffer bb = ByteBuffer.allocate(8); 81 ByteBuffer bb = ByteBuffer.allocate(16); 98 header = ByteBuffer.allocate(16); 103 header = ByteBuffer.allocate(24); 108 header = ByteBuffer.allocate(32);
|
IsoTypeReaderVariable.java | 18 import java.nio.ByteBuffer; 22 public static long read(ByteBuffer bb, int bytes) {
|
IsoTypeWriterVariable.java | 19 import java.nio.ByteBuffer; 23 public static void write(long v, ByteBuffer bb, int bytes) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
BaseDescriptor.java | 22 import java.nio.ByteBuffer;
65 public final void parse(int tag, ByteBuffer bb) throws IOException {
79 ByteBuffer detailSource = bb.slice();
86 public abstract void parseDetail(ByteBuffer bb) throws IOException;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
GLToolbox.java | 24 import java.nio.ByteBuffer; 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { 104 setTexturePixels(texId, target, (ByteBuffer)null, width, height); 114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, 120 pixels = ByteBuffer.allocateDirect(width * height * 4); 151 public static void setVboData(int vboId, ByteBuffer data) { 159 ByteBuffer buffer = ByteBuffer.allocateDirect(len).order(ByteOrder.nativeOrder());
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
CharsetEncoderTest.java | 19 import java.nio.ByteBuffer; 69 ByteBuffer bb = ByteBuffer.allocate(128); 83 ByteBuffer bb = ByteBuffer.allocate(128); 120 ByteBuffer bb = ByteBuffer.allocate(128); 144 ByteBuffer bb = ByteBuffer.allocate(128);
|
/libcore/luni/src/main/java/java/nio/charset/ |
CharsetEncoder.java | 21 import java.nio.ByteBuffer; 29 * output byte sequence is a {@link java.nio.ByteBuffer ByteBuffer}. 32 * new {@code ByteBuffer}, or {@link #encode(CharBuffer, ByteBuffer, boolean)} for more 36 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} with the {@code endOfInput} 39 * <p>The {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method will 46 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} for the last time with 48 * <li>Invoke {@link #flush(ByteBuffer)} to flush remaining output.</li> 69 * {@link #encodeLoop(CharBuffer, ByteBuffer) encodeLoop} method for basi [all...] |
/external/guava/guava/src/com/google/common/hash/ |
AbstractStreamingHashFunction.java | 21 import java.nio.ByteBuffer; 71 private final ByteBuffer buffer; 83 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 95 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 104 this.buffer = ByteBuffer 114 protected abstract void process(ByteBuffer bb); 118 * fill a whole chunk. The passed {@code ByteBuffer} is guaranteed to be 122 * {@link #process(ByteBuffer)}. 124 protected void processRemaining(ByteBuffer bb) { 142 return putBytes(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)) [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
ByteBuffer.java | 24 public class ByteBuffer 37 public ByteBuffer(int initialCapacity) 45 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 47 public ByteBuffer(byte[] buffer) 55 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 58 public ByteBuffer(byte[] buffer, int length) 75 public ByteBuffer(InputStream in) throws IOException 99 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 103 public ByteBuffer(byte[] buffer, int offset, int length) 216 * @param anotherBuffer another <code>ByteBuffer</code [all...] |
/external/chromium_org/third_party/webrtc/base/ |
bytebuffer_unittest.cc | 11 #include "webrtc/base/bytebuffer.h" 56 ByteBuffer buffer; 89 ByteBuffer buffer("ABCDEF", 6); 91 ByteBuffer::ReadPosition pos(buffer.GetReadPosition()); 115 ByteBuffer::ByteOrder orders[2] = { ByteBuffer::ORDER_HOST, 116 ByteBuffer::ORDER_NETWORK }; 118 ByteBuffer buffer(orders[i]);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
FunnelsTest.java | 11 import java.nio.ByteBuffer; 55 @Override protected void process(ByteBuffer bb) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
Box.java | 23 import java.nio.ByteBuffer; 50 void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException;
|
TimeToSampleBox.java | 24 import java.nio.ByteBuffer; 59 public void _parseDetails(ByteBuffer content) { 71 protected void getContent(ByteBuffer byteBuffer) { 72 writeVersionAndFlags(byteBuffer); 73 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 75 IsoTypeWriter.writeUInt32(byteBuffer, entry.getCount()); 76 IsoTypeWriter.writeUInt32(byteBuffer, entry.getDelta());
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
AbstractAppleMetaDataBox.java | 13 import java.nio.ByteBuffer; 54 public void _parseDetails(ByteBuffer content) { 72 protected void getContent(ByteBuffer byteBuffer) { 74 appleDataBox.getBox(new ByteBufferByteChannel(byteBuffer)); 76 throw new RuntimeException("The Channel is based on a ByteBuffer and therefore it shouldn't throw any exception"); 109 ByteBuffer bb = ByteBuffer.allocate(content.length);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
AbstractContainerBox.java | 25 import java.nio.ByteBuffer; 104 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException { 110 public void _parseDetails(ByteBuffer content) { 140 protected void getContent(ByteBuffer byteBuffer) { 141 writeChildBoxes(byteBuffer); 144 protected final void parseChildBoxes(ByteBuffer content) { 159 protected final void writeChildBoxes(ByteBuffer bb) {
|