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

1 23 4 5 6 7 8 91011>>

  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
IsoTypeWriter.java 18 import java.nio.ByteBuffer;
22 public static void writeUInt64(ByteBuffer bb, long u) {
26 public static void writeUInt32(ByteBuffer bb, long u) {
31 public static void writeUInt32BE(ByteBuffer bb, long u) {
39 public static void writeUInt24(ByteBuffer bb, int i) {
47 public static void writeUInt16(ByteBuffer bb, int i) {
53 public static void writeUInt16BE(ByteBuffer bb, int i) {
59 public static void writeUInt8(ByteBuffer bb, int i) {
65 public static void writeFixedPont1616(ByteBuffer bb, double v) {
73 public static void writeFixedPont88(ByteBuffer bb, double v)
    [all...]
IsoTypeReaderVariable.java 18 import java.nio.ByteBuffer;
22 public static long read(ByteBuffer bb, int bytes) {
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/ojluni/src/main/java/java/nio/channels/
SeekableByteChannel.java 28 import java.nio.ByteBuffer;
65 int read(ByteBuffer dst) throws IOException;
80 int write(ByteBuffer src) throws IOException;
  /tools/apksig/src/main/java/com/android/apksig/util/
DataSource.java 20 import java.nio.ByteBuffer;
28 * {@link java.nio.ByteBuffer}, {@link java.io.RandomAccessFile}, memory-mapped file.</li>
29 * <li>Support sources larger than 2 GB. If all sources were smaller than 2 GB, {@code ByteBuffer}
42 * <li>Obtain a {@link ByteBuffer} containing the chunk's data using
47 * <li>Copy the chunk's data to a {@link ByteBuffer} using
48 * {@link #copyTo(long, int, ByteBuffer) copyTo}. This is best suited for scenarios where
85 ByteBuffer getByteBuffer(long offset, int size) throws IOException;
97 void copyTo(long offset, int size, ByteBuffer dest) throws IOException;
  /external/brotli/java/org/brotli/dec/
Dictionary.java 9 import java.nio.ByteBuffer;
21 private static volatile ByteBuffer data;
37 public static void setData(ByteBuffer data) {
44 public static ByteBuffer getData() {
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/
TestUtils.java 7 import java.nio.ByteBuffer;
19 * Returns a new direct ByteBuffer of the given size with random (but reproducible) data.
21 public static ByteBuffer newRandomBuffer(int size) {
25 ByteBuffer data = ByteBuffer.allocateDirect(size);
  /external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
Message.java 10 import java.nio.ByteBuffer;
22 private final ByteBuffer mBuffer;
40 public Message(ByteBuffer buffer, List<? extends Handle> handles) {
49 public ByteBuffer getData() {
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
UnknownEntry.java 21 import java.nio.ByteBuffer;
27 private ByteBuffer content;
32 public ByteBuffer getContent() {
36 public void setContent(ByteBuffer content) {
37 this.content = (ByteBuffer) content.duplicate().rewind();
41 public void parse(ByteBuffer byteBuffer) {
42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind();
46 public ByteBuffer get()
    [all...]
  /external/webrtc/webrtc/base/
bytebuffer.cc 11 #include "webrtc/base/bytebuffer.h"
25 ByteBuffer::ByteBuffer() {
29 ByteBuffer::ByteBuffer(ByteOrder byte_order) {
33 ByteBuffer::ByteBuffer(const char* bytes, size_t len) {
37 ByteBuffer::ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order) {
41 ByteBuffer::ByteBuffer(const char* bytes)
    [all...]
  /frameworks/base/core/java/android/util/apk/
ByteBufferDataSource.java 20 import java.nio.ByteBuffer;
24 * {@link DataSource} which provides data from a {@link ByteBuffer}.
31 private final ByteBuffer mBuf;
33 ByteBufferDataSource(ByteBuffer buf) {
47 // There's no way to tell MessageDigest to read data from ByteBuffer from a position
54 // creating a new ByteBuffer corresponding to the requested data range and then,
56 ByteBuffer region;
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
WrappedByteBufferTest.java 19 import java.nio.ByteBuffer;
25 buf = ByteBuffer.wrap(new byte[BUFFER_LENGTH]);
36 * @tests java.nio.ByteBuffer#allocate(byte[],int,int)
42 ByteBuffer.wrap(array, -1, 0);
48 ByteBuffer.wrap(array, BUFFER_LENGTH + 1, 0);
54 ByteBuffer.wrap(array, 0, -1);
60 ByteBuffer.wrap(array, 0, BUFFER_LENGTH + 1);
66 ByteBuffer.wrap(array, 1, Integer.MAX_VALUE);
72 ByteBuffer.wrap(array, Integer.MAX_VALUE, 1);
78 ByteBuffer.wrap((byte[])null, 1, Integer.MAX_VALUE)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
UTF16CharsetDecoderTest.java 20 import java.nio.ByteBuffer;
47 protected ByteBuffer getByteBuffer() {
58 return ByteBuffer.wrap(b);
61 protected ByteBuffer getHeadlessByteBuffer() {
62 ByteBuffer b = getByteBuffer();
66 return ByteBuffer.wrap(bytes);
98 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException {
102 ByteBuffer getMalformedByteBuffer() throws UnsupportedEncodingException {
105 // ByteBuffer buffer = ByteBuffer.allocate(100)
    [all...]
ASCIICharsetEncoderTest.java 20 import java.nio.ByteBuffer;
85 ByteBuffer out = ByteBuffer.allocate(10);
91 out = ByteBuffer.allocate(10);
109 ByteBuffer bb = encoder.encode(cb);
127 ByteBuffer bb = ByteBuffer.allocate(0x10);
140 ByteBuffer out = ByteBuffer.allocate(0x10);
162 ByteBuffer out = ByteBuffer.allocate(0x10)
    [all...]
  /art/test/712-varhandle-invocations/src/
VarHandleUnitTestHelpers.java 21 import java.nio.ByteBuffer;
57 return getBytesAs_boolean(ByteBuffer.wrap(array), index, order);
61 return getBytesAs_byte(ByteBuffer.wrap(array), index, order);
65 return getBytesAs_char(ByteBuffer.wrap(array), index, order);
69 return getBytesAs_short(ByteBuffer.wrap(array), index, order);
73 return getBytesAs_int(ByteBuffer.wrap(array), index, order);
77 return getBytesAs_long(ByteBuffer.wrap(array), index, order);
81 return getBytesAs_float(ByteBuffer.wrap(array), index, order);
85 return getBytesAs_double(ByteBuffer.wrap(array), index, order);
88 public static boolean getBytesAs_boolean(ByteBuffer buffer, int index, ByteOrder order)
    [all...]
  /libcore/ojluni/src/main/java/javax/net/ssl/
SSLEngine.java 28 import java.nio.ByteBuffer;
85 * traditional Input/OutputStreams, local {@link java.nio.ByteBuffer
172 * Data moves through the engine by calling {@link #wrap(ByteBuffer,
173 * ByteBuffer) wrap()} or {@link #unwrap(ByteBuffer, ByteBuffer)
193 * <code>ByteBuffer</code>s must be sized appropriately to hold the
221 * ByteBuffer b = ByteBuffer.allocate(appSize + dst.position());
231 * ByteBuffer b = ByteBuffer.allocate(netSize)
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
BufferAllocator.java 18 import java.nio.ByteBuffer;
29 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));
  /external/flatbuffers/tests/FlatBuffers.Test/
ByteBufferTests.cs 29 var uut = new ByteBuffer(buffer);
37 var uut = new ByteBuffer(buffer);
48 var uut = new ByteBuffer(buffer);
57 var uut = new ByteBuffer(buffer);
70 var uut = new ByteBuffer(buffer);
80 var uut = new ByteBuffer(buffer);
88 var uut = new ByteBuffer(buffer);
97 var uut = new ByteBuffer(buffer);
112 var uut = new ByteBuffer(buffer);
120 var uut = new ByteBuffer(buffer)
    [all...]
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
ByteBufferWriterTest.java 37 import java.nio.ByteBuffer;
48 testWrite(ByteBuffer.allocate(100));
49 testWrite(ByteBuffer.allocate(1024 * 100));
54 testWrite(ByteBuffer.allocateDirect(100));
55 testWrite(ByteBuffer.allocateDirect(1024 * 100));
58 private void testWrite(ByteBuffer buffer) throws IOException {
66 private void fillRandom(ByteBuffer buf) {
74 private byte[] toArray(ByteBuffer buf) {
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
NAIRealmDataTest.java 27 import java.nio.ByteBuffer;
41 NAIRealmData.parse(ByteBuffer.wrap(new byte[0]));
52 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES);
65 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES);
77 ByteBuffer buffer = ByteBuffer.wrap(
ProtocolPortTupleTest.java 26 import java.nio.ByteBuffer;
44 * @return {@link ByteBuffer}
46 private ByteBuffer getTestBuffer(int protocol, int port, int status) {
47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE)
63 ProtocolPortTuple.parse(ByteBuffer.allocate(0));
74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1);
88 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS);
  /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)));
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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...]
  /cts/tests/tests/media/src/android/media/cts/
MediaCodecWrapper.java 24 import java.nio.ByteBuffer;
52 ByteBuffer getOutputBuffer(int index);
54 ByteBuffer[] getOutputBuffers();
56 ByteBuffer getInputBuffer(int index);
58 ByteBuffer[] getInputBuffers();
  /external/deqp/execserver/
xsTestDriver.hpp 46 bool poll (ByteBuffer& messageBuffer);
61 bool pollLogFile (ByteBuffer& messageBuffer);
62 bool pollInfo (ByteBuffer& messageBuffer);
63 bool pollBuffer (ByteBuffer& messageBuffer, MessageType msgType);
65 bool writeMessage (ByteBuffer& messageBuffer, const Message& message);

Completed in 1526 milliseconds

1 23 4 5 6 7 8 91011>>