/external/libbrillo/brillo/streams/ |
memory_containers.cc | 95 ByteBuffer::ByteBuffer(size_t reserve_size) 100 ByteBuffer::~ByteBuffer() {
|
memory_containers.h | 229 // ByteBuffer is a read/write container that manages the data and underlying 231 class BRILLO_EXPORT ByteBuffer : public VectorPtr<uint8_t> { 233 explicit ByteBuffer(size_t reserve_size); 234 ~ByteBuffer() override; 237 DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
ChannelsTest.java | 20 import java.nio.ByteBuffer; 54 sinkChannel.write(ByteBuffer.wrap(content));
|
FileChannelTest.java | 25 import java.nio.ByteBuffer; 31 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer(); 42 fc.read(new ByteBuffer[] { readOnly }); 47 fc.read(new ByteBuffer[] { readOnly }, 0, 1); 62 fc.write(new ByteBuffer[] { readOnly }); 63 fc.write(new ByteBuffer[] { readOnly }, 0, 1); 71 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII"))); 75 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) } [all...] |
/external/google-breakpad/src/common/ |
byte_cursor.h | 53 struct ByteBuffer { 54 ByteBuffer() : start(0), end(0) { } 55 ByteBuffer(const uint8_t *set_start, size_t set_size) 57 ~ByteBuffer() { }; 61 bool operator==(const ByteBuffer &that) const { 64 bool operator!=(const ByteBuffer &that) const { 77 // A cursor pointing into a ByteBuffer that can parse numbers of various 80 // haven't gone beyond the end of the enclosing ByteBuffer. 85 ByteCursor(const ByteBuffer *buffer, bool big_endian = false) 250 const ByteBuffer *buffer_ [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...] |
bytebuffer.h | 22 class ByteBuffer { 31 ByteBuffer(); 32 explicit ByteBuffer(ByteOrder byte_order); 33 ByteBuffer(const char* bytes, size_t len); 34 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order); 37 explicit ByteBuffer(const char* bytes); 39 explicit ByteBuffer(const Buffer& buf); 41 ~ByteBuffer(); 73 // ByteBuffer. 91 friend class ByteBuffer; [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/deqp/execserver/ |
xsDefs.hpp | 61 typedef de::RingBuffer<deUint8> ByteBuffer;
|
/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...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
AESGCMCipherTestBase.java | 19 import java.nio.ByteBuffer; 162 updateAAD(ByteBuffer.wrap(aad));
|
/cts/tools/dex-tools/src/dex/reader/ |
DexBuffer.java | 23 import java.nio.ByteBuffer; 28 private ByteBuffer b; 45 initialize(ByteBuffer.wrap(bytes)); 54 initialize(ByteBuffer.wrap(bytes)); 57 private DexBuffer(ByteBuffer slice) { 61 private void initialize(ByteBuffer buffer) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/ |
Amf0Track.java | 24 import java.nio.ByteBuffer; 52 public List<ByteBuffer> getSamples() { 53 LinkedList<ByteBuffer> samples = new LinkedList<ByteBuffer>(); 55 samples.add(ByteBuffer.wrap(bytes));
|
AC3TrackImpl.java | 12 import java.nio.ByteBuffer; 36 private List<ByteBuffer> samples; 83 samples = new LinkedList<ByteBuffer>(); 90 public List<ByteBuffer> getSamples() { 138 ByteBuffer bb = ByteBuffer.wrap(data); 269 samples.add(ByteBuffer.wrap(data));
|
QuicktimeTextTrackImpl.java | 31 import java.nio.ByteBuffer; 64 public List<ByteBuffer> getSamples() { 65 List<ByteBuffer> samples = new LinkedList<ByteBuffer>(); 70 samples.add(ByteBuffer.wrap(new byte[]{0, 0})); 83 samples.add(ByteBuffer.wrap(baos.toByteArray()));
|
TextTrackImpl.java | 27 import java.nio.ByteBuffer; 67 public List<ByteBuffer> getSamples() { 68 List<ByteBuffer> samples = new LinkedList<ByteBuffer>(); 73 samples.add(ByteBuffer.wrap(new byte[]{0, 0})); 86 samples.add(ByteBuffer.wrap(baos.toByteArray()));
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
SimpleFrame.java | 26 import java.nio.ByteBuffer; 110 public void setData(ByteBuffer buffer, int offset, int length) { 112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length)); 116 public ByteBuffer getData() { 117 return (mObject instanceof ByteBuffer) ? (ByteBuffer)mObject : null;
|
Frame.java | 24 import java.nio.ByteBuffer; 86 } else if (object instanceof ByteBuffer) { 87 setData((ByteBuffer)object); 105 public abstract void setData(ByteBuffer buffer, int offset, int length); 107 public void setData(ByteBuffer buffer) { 112 setData(ByteBuffer.wrap(bytes, offset, length)); 115 public abstract ByteBuffer getData();
|
SerializedFrame.java | 31 import java.nio.ByteBuffer; 226 public void setData(ByteBuffer buffer, int offset, int length) { 228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length)); 232 public ByteBuffer getData() { 234 return (result instanceof ByteBuffer) ? (ByteBuffer)result : null;
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
Decoder.java | 3 import java.nio.ByteBuffer; 24 private final ByteBuffer mBuf; 27 this(ByteBuffer.wrap(buf)); 30 public Decoder(ByteBuffer buf) {
|
/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...] |
/frameworks/base/core/java/android/speech/tts/ |
FileSynthesisCallback.java | 24 import java.nio.ByteBuffer; 140 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH)); 185 fileChannel.write(ByteBuffer.wrap(buffer, offset, length)); 284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, 292 ByteBuffer header = ByteBuffer.wrap(headerBuf);
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/ |
ByteBuffer.java | 33 public abstract class ByteBuffer extends Buffer implements Comparable<ByteBuffer>, StringToByteBuffer { 41 public static ByteBuffer allocate (int capacity) { 54 public static ByteBuffer allocateDirect (int capacity) { 69 public static ByteBuffer wrap (byte[] array) { 84 public static ByteBuffer wrap (byte[] array, int start, int len) { 90 ByteBuffer buf = BufferFactory.newByteBuffer(array); 100 /** Constructs a {@code ByteBuffer} with given capacity. 103 ByteBuffer (int capacity) { 217 public abstract ByteBuffer asReadOnlyBuffer () [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetDecoder2Test.java | 21 import java.nio.ByteBuffer; 61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 67 * @tests java.nio.charset.CharsetDecoder#decode(java.nio.ByteBuffer) 71 // ByteBuffer bb = ByteBuffer.allocate(1); 80 // ByteBuffer buf = ByteBuffer.wrap(b); 94 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 }); 104 * Test malfunction decode(ByteBuffer) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 29 import java.nio.ByteBuffer; 145 channel.read(ByteBuffer.allocate(BUFFER_SIZE)); 184 channel.write(ByteBuffer.allocate(BUFFER_SIZE));
|