HomeSort by relevance Sort by last modified time
    Searched refs:ByteBuffer (Results 51 - 75 of 808) sorted by null

1 23 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/nio/channels/
PipeTest.java 19 import java.nio.ByteBuffer;
26 assertEquals(0, p.source().read(ByteBuffer.allocate(1)));
FileChannelTest.java 22 import java.nio.ByteBuffer;
28 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer();
39 fc.read(new ByteBuffer[] { readOnly });
44 fc.read(new ByteBuffer[] { readOnly }, 0, 1);
59 fc.write(new ByteBuffer[] { readOnly });
60 fc.write(new ByteBuffer[] { readOnly }, 0, 1);
68 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII")));
72 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
IsoTypeReader.java 19 import java.nio.ByteBuffer;
24 public static long readUInt32BE(ByteBuffer bb) {
34 public static long readUInt32(ByteBuffer bb) {
42 public static int readUInt24(ByteBuffer bb) {
50 public static int readUInt16(ByteBuffer bb) {
57 public static int readUInt16BE(ByteBuffer bb) {
64 public static int readUInt8(ByteBuffer bb) {
76 * @param byteBuffer the data source
80 public static String readString(ByteBuffer byteBuffer) {
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
SourceChannelTest.java 20 import java.nio.ByteBuffer;
42 private ByteBuffer buffer;
44 private ByteBuffer positionedBuffer;
51 buffer = ByteBuffer.wrap("bytes".getBytes(ISO8859_1));
52 positionedBuffer = ByteBuffer.wrap("12345bytes".getBytes(ISO8859_1));
64 * @tests java.nio.channels.Pipe.SourceChannel#read(ByteBuffer)
68 sink.write(ByteBuffer.allocate(1));
69 int count = source.read(ByteBuffer.allocate(10));
74 * @tests java.nio.channels.Pipe.SourceChannel#read(ByteBuffer)
77 ByteBuffer nullBuf = null
    [all...]
MockSocketChannel.java 23 import java.nio.ByteBuffer;
53 public int read(ByteBuffer arg0) throws IOException {
57 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
61 public int write(ByteBuffer arg0) throws IOException {
65 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
MockDatagramChannel.java 23 import java.nio.ByteBuffer;
49 public SocketAddress receive(ByteBuffer arg0) throws IOException {
53 public int send(ByteBuffer arg0, SocketAddress arg1) throws IOException {
57 public int read(ByteBuffer arg0) throws IOException {
61 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
65 public int write(ByteBuffer arg0) throws IOException {
69 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
ASCIICharsetEncoderTest.java 19 import java.nio.ByteBuffer;
85 ByteBuffer out = ByteBuffer.allocate(10);
90 out = ByteBuffer.allocate(10);
103 ByteBuffer bb = encoder.encode(cb);
121 ByteBuffer bb = ByteBuffer.allocate(0x10);
134 ByteBuffer out = ByteBuffer.allocate(0x10);
156 ByteBuffer out = ByteBuffer.allocate(0x10)
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
RollRecoveryEntry.java 19 import java.nio.ByteBuffer;
43 public void parse(ByteBuffer byteBuffer) {
44 rollDistance = byteBuffer.getShort();
48 public ByteBuffer get() {
49 ByteBuffer content = ByteBuffer.allocate(2);
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
ByteBufferByteChannel.java 20 import java.nio.ByteBuffer;
24 * Creates a <code>ReadableByteChannel</code> that is backed by a <code>ByteBuffer</code>.
27 ByteBuffer byteBuffer;
29 public ByteBufferByteChannel(ByteBuffer byteBuffer) {
30 this.byteBuffer = byteBuffer;
33 public int read(ByteBuffer dst) throws IOException {
36 if (byteBuffer.remaining() >= r)
    [all...]
  /frameworks/base/core/java/android/net/dhcp/
DhcpDeclinePacket.java 20 import java.nio.ByteBuffer;
43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {
44 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);
55 void finishPacket(ByteBuffer buffer) {
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
PixelUtils.java 18 import java.nio.ByteBuffer;
44 public static void copyPixels(ByteBuffer input,
45 ByteBuffer output,
67 private static native void nativeCopyPixels(ByteBuffer input,
68 ByteBuffer output,
  /libcore/luni/src/test/java/libcore/java/nio/charset/
OldCharsetEncoderDecoderBufferTest.java 19 import java.nio.ByteBuffer;
43 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'a', (byte)'b', (byte)'c', (byte)'d'}),
51 out = ByteBuffer.wrap(bBuf).asCharBuffer();
53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true);
74 ByteBuffer inWithArray = ByteBuffer.wrap(inArray);
80 // A read-only ByteBuffer must not expose its array.
81 ByteBuffer inWithoutArray = ByteBuffer.wrap(new byte[] { (byte) 'x' }).asReadOnlyBuffer();
99 ByteBuffer out = ByteBuffer.wrap(buffer)
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
ReplaceSampleTrack.java 23 import java.nio.ByteBuffer;
29 * Generates a Track where a single sample has been replaced by a given <code>ByteBuffer</code>.
35 private ByteBuffer sampleContent;
36 private List<ByteBuffer> samples;
38 public ReplaceSampleTrack(Track origTrack, long sampleNumber, ByteBuffer content) {
46 public List<ByteBuffer> getSamples() {
88 private class ReplaceASingleEntryList extends AbstractList<ByteBuffer> {
90 public ByteBuffer get(int index) {
  /libcore/luni/src/main/java/java/nio/channels/
SocketChannel.java 23 import java.nio.ByteBuffer;
254 * @see java.nio.channels.ReadableByteChannel#read(java.nio.ByteBuffer)
256 public abstract int read(ByteBuffer target) throws IOException;
290 * @see java.nio.channels.ScatteringByteChannel#read(java.nio.ByteBuffer[],
293 public abstract long read(ByteBuffer[] targets, int offset, int length) throws IOException;
324 public synchronized final long read(ByteBuffer[] targets) throws IOException {
355 * @see java.nio.channels.WritableByteChannel#write(java.nio.ByteBuffer)
357 public abstract int write(ByteBuffer source) throws IOException;
393 * @see java.nio.channels.GatheringByteChannel#write(java.nio.ByteBuffer[],
396 public abstract long write(ByteBuffer[] sources, int offset, int length) throws IOException
    [all...]
FileChannel.java 20 import java.nio.ByteBuffer;
346 public abstract int read(ByteBuffer buffer) throws IOException;
383 public abstract int read(ByteBuffer buffer, long position)
416 public final long read(ByteBuffer[] buffers) throws IOException {
455 public abstract long read(ByteBuffer[] buffers, int start, int number)
645 * @see java.nio.channels.WritableByteChannel#write(java.nio.ByteBuffer)
647 public abstract int write(ByteBuffer src) throws IOException;
684 public abstract int write(ByteBuffer buffer, long position)
715 public final long write(ByteBuffer[] buffers) throws IOException {
    [all...]
  /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/libjingle/source/talk/base/
bytebuffer.h 38 class ByteBuffer {
47 ByteBuffer();
48 explicit ByteBuffer(ByteOrder byte_order);
49 ByteBuffer(const char* bytes, size_t len);
50 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order);
53 explicit ByteBuffer(const char* bytes);
55 ~ByteBuffer();
87 // ByteBuffer.
105 friend class ByteBuffer;
131 DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
    [all...]
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/base/
MessageProtocol.java 38 import java.nio.ByteBuffer;
58 private ByteBuffer current;
63 * Converts a message to a ByteBuffer using the Serializer
67 public static ByteBuffer messageToBuffer( Message message, ByteBuffer target )
70 ByteBuffer buffer = target == null ? ByteBuffer.allocate( 32767 + 2 ) : target;
106 public int addBuffer( ByteBuffer buffer )
142 current = ByteBuffer.allocate(size);
178 protected void createMessage( ByteBuffer buffer
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/
IndexByteBuffer.java 36 import java.nio.ByteBuffer;
39 * IndexBuffer implementation for {@link ByteBuffer}s.
45 private ByteBuffer buf;
47 public IndexByteBuffer(ByteBuffer buffer) {
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
DateSerializer.java 37 import java.nio.ByteBuffer;
48 public Date readObject(ByteBuffer data, Class c) throws IOException {
52 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DataReferenceBox.java 23 import java.nio.ByteBuffer;
51 public void _parseDetails(ByteBuffer content) {
59 protected void getContent(ByteBuffer byteBuffer) {
60 writeVersionAndFlags(byteBuffer);
61 IsoTypeWriter.writeUInt32(byteBuffer, getBoxes().size());
62 writeChildBoxes(byteBuffer);
FreeSpaceBox.java 21 import java.nio.ByteBuffer;
50 public void _parseDetails(ByteBuffer content) {
56 protected void getContent(ByteBuffer byteBuffer) {
57 byteBuffer.put(data);
RecordingYearBox.java 23 import java.nio.ByteBuffer;
52 public void _parseDetails(ByteBuffer content) {
58 protected void getContent(ByteBuffer byteBuffer) {
59 writeVersionAndFlags(byteBuffer);
60 IsoTypeWriter.writeUInt16(byteBuffer, recordingYear);
SoundMediaHeaderBox.java 22 import java.nio.ByteBuffer;
42 public void _parseDetails(ByteBuffer content) {
49 protected void getContent(ByteBuffer byteBuffer) {
50 writeVersionAndFlags(byteBuffer);
51 IsoTypeWriter.writeFixedPont88(byteBuffer, balance);
52 IsoTypeWriter.writeUInt16(byteBuffer, 0);
UserBox.java 21 import java.nio.ByteBuffer;
55 public void _parseDetails(ByteBuffer content) {
61 protected void getContent(ByteBuffer byteBuffer) {
62 byteBuffer.put(data);

Completed in 350 milliseconds

1 23 4 5 6 7 8 91011>>