Home
last modified time | relevance | path

Searched refs:ByteBuffer (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DSSLEngineTest.java20 import java.nio.ByteBuffer;
94 ByteBuffer bbN = null; in testWrap01()
95 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap01()
101 ByteBuffer roBb = bb.asReadOnlyBuffer(); in testWrap01()
122 ByteBuffer[] bbNA = null; in testWrap02()
123 ByteBuffer[] bbA = { null, ByteBuffer.allocate(10), null }; in testWrap02()
125 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap02()
126 ByteBuffer bbN = null; in testWrap02()
137 ByteBuffer roBb = bb.asReadOnlyBuffer(); in testWrap02()
138 bbA[0] = ByteBuffer.allocate(100); in testWrap02()
[all …]
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
DByteBuffer.java33 public abstract class ByteBuffer extends Buffer implements Comparable<ByteBuffer>, StringToByteBuff… class
41 public static ByteBuffer allocate (int capacity) { in allocate()
54 public static ByteBuffer allocateDirect (int capacity) { in allocateDirect()
69 public static ByteBuffer wrap (byte[] array) { in wrap()
84 public static ByteBuffer wrap (byte[] array, int start, int len) { in wrap()
90 ByteBuffer buf = BufferFactory.newByteBuffer(array); in wrap()
103 ByteBuffer (int capacity) { in ByteBuffer() method in ByteBuffer
217 public abstract ByteBuffer asReadOnlyBuffer (); in asReadOnlyBuffer()
243 public abstract ByteBuffer compact (); in compact()
252 public int compareTo (ByteBuffer otherBuffer) { in compareTo()
[all …]
DReadOnlyHeapByteBuffer.java42 public ByteBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
46 public ByteBuffer compact () { in compact()
50 public ByteBuffer duplicate () { in duplicate()
70 public ByteBuffer put (byte b) { in put()
74 public ByteBuffer put (int index, byte b) { in put()
78 public ByteBuffer put (byte[] src, int off, int len) { in put()
82 public ByteBuffer putDouble (double value) { in putDouble()
86 public ByteBuffer putDouble (int index, double value) { in putDouble()
90 public ByteBuffer putFloat (float value) { in putFloat()
94 public ByteBuffer putFloat (int index, float value) { in putFloat()
[all …]
DDirectReadOnlyByteBuffer.java45 public ByteBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
49 public ByteBuffer compact () { in compact()
53 public ByteBuffer duplicate () { in duplicate()
85 public ByteBuffer put (byte b) { in put()
89 public ByteBuffer put (int index, byte b) { in put()
93 public ByteBuffer put (byte[] src, int off, int len) { in put()
97 public ByteBuffer putDouble (double value) { in putDouble()
101 public ByteBuffer putDouble (int index, double value) { in putDouble()
105 public ByteBuffer putFloat (float value) { in putFloat()
109 public ByteBuffer putFloat (int index, float value) { in putFloat()
[all …]
DStringByteBuffer.java37 public ByteBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
54 public ByteBuffer compact () { in compact()
59 public ByteBuffer duplicate () { in duplicate()
125 public ByteBuffer put (byte b) { in put()
130 public ByteBuffer put (int index, byte b) { in put()
135 public ByteBuffer putDouble (double value) { in putDouble()
140 public ByteBuffer putDouble (int index, double value) { in putDouble()
145 public ByteBuffer putFloat (float value) { in putFloat()
150 public ByteBuffer putFloat (int index, float value) { in putFloat()
155 public ByteBuffer putInt (int value) { in putInt()
[all …]
DDirectReadWriteByteBuffer.java65 public ByteBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
69 public ByteBuffer compact () { in compact()
84 public ByteBuffer duplicate () { in duplicate()
104 public ByteBuffer put (byte b) { in put()
112 public ByteBuffer put (int index, byte b) { in put()
127 public ByteBuffer put (byte[] src, int off, int len) { in put()
144 public ByteBuffer putDouble (double value) { in putDouble()
148 public ByteBuffer putDouble (int index, double value) { in putDouble()
152 public ByteBuffer putFloat (float value) { in putFloat()
156 public ByteBuffer putFloat (int index, float value) { in putFloat()
[all …]
DReadWriteHeapByteBuffer.java51 public ByteBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
55 public ByteBuffer compact () { in compact()
63 public ByteBuffer duplicate () { in duplicate()
83 public ByteBuffer put (byte b) { in put()
91 public ByteBuffer put (int index, byte b) { in put()
106 public ByteBuffer put (byte[] src, int off, int len) { in put()
121 public ByteBuffer putDouble (double value) { in putDouble()
125 public ByteBuffer putDouble (int index, double value) { in putDouble()
129 public ByteBuffer putFloat (float value) { in putFloat()
133 public ByteBuffer putFloat (int index, float value) { in putFloat()
[all …]
/external/webrtc/webrtc/base/
Dbytebuffer.cc25 ByteBuffer::ByteBuffer() { in ByteBuffer() function in rtc::ByteBuffer
29 ByteBuffer::ByteBuffer(ByteOrder byte_order) { in ByteBuffer() function in rtc::ByteBuffer
33 ByteBuffer::ByteBuffer(const char* bytes, size_t len) { in ByteBuffer() function in rtc::ByteBuffer
37 ByteBuffer::ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order) { in ByteBuffer() function in rtc::ByteBuffer
41 ByteBuffer::ByteBuffer(const char* bytes) { in ByteBuffer() function in rtc::ByteBuffer
45 ByteBuffer::ByteBuffer(const Buffer& buf) { in ByteBuffer() function in rtc::ByteBuffer
49 void ByteBuffer::Construct(const char* bytes, size_t len, in Construct()
65 ByteBuffer::~ByteBuffer() { in ~ByteBuffer()
69 bool ByteBuffer::ReadUInt8(uint8_t* val) { in ReadUInt8()
75 bool ByteBuffer::ReadUInt16(uint16_t* val) { in ReadUInt16()
[all …]
Dbytebuffer.h22 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();
91 friend class ByteBuffer; variable
117 RTC_DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DBufferUtils.java20 import java.nio.ByteBuffer;
54 if (dst instanceof ByteBuffer) in copy()
70 if (!(dst instanceof ByteBuffer)) throw new GdxRuntimeException("dst must be a ByteBuffer"); in copy()
72 ByteBuffer byteBuffer = (ByteBuffer)dst; in copy()
90 if (dst instanceof ByteBuffer) in copy()
91 buffer = ((ByteBuffer)dst).asShortBuffer(); in copy()
112 if (dst instanceof ByteBuffer) in copy()
113 buffer = ((ByteBuffer)dst).asCharBuffer(); in copy()
134 if (dst instanceof ByteBuffer) in copy()
135 buffer = ((ByteBuffer)dst).asIntBuffer(); in copy()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DInternal.java35 import java.nio.ByteBuffer;
128 public static ByteBuffer byteBufferDefaultValue(String bytes) { in byteBufferDefaultValue()
129 return ByteBuffer.wrap(byteArrayDefaultValue(bytes)); in byteBufferDefaultValue()
138 public static ByteBuffer copyByteBuffer(ByteBuffer source) { in copyByteBuffer()
141 ByteBuffer temp = source.duplicate(); in copyByteBuffer()
145 ByteBuffer result = ByteBuffer.allocate(temp.capacity()); in copyByteBuffer()
311 public static boolean equalsByteBuffer(ByteBuffer a, ByteBuffer b) { in equalsByteBuffer()
325 List<ByteBuffer> a, List<ByteBuffer> b) { in equalsByteBuffer()
341 public static int hashCodeByteBuffer(List<ByteBuffer> list) { in hashCodeByteBuffer()
343 for (ByteBuffer bytes : list) { in hashCodeByteBuffer()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DIsoTypeReader.java19 import java.nio.ByteBuffer;
24 public static long readUInt32BE(ByteBuffer bb) { in readUInt32BE()
34 public static long readUInt32(ByteBuffer bb) { in readUInt32()
42 public static int readUInt24(ByteBuffer bb) { in readUInt24()
50 public static int readUInt16(ByteBuffer bb) { in readUInt16()
57 public static int readUInt16BE(ByteBuffer bb) { in readUInt16BE()
64 public static int readUInt8(ByteBuffer bb) { in readUInt8()
80 public static String readString(ByteBuffer byteBuffer) { in readString()
90 public static String readString(ByteBuffer byteBuffer, int length) { in readString()
97 public static long readUInt64(ByteBuffer byteBuffer) { in readUInt64()
[all …]
DIsoTypeWriter.java18 import java.nio.ByteBuffer;
22 public static void writeUInt64(ByteBuffer bb, long u) { in writeUInt64()
26 public static void writeUInt32(ByteBuffer bb, long u) { in writeUInt32()
31 public static void writeUInt32BE(ByteBuffer bb, long u) { in writeUInt32BE()
39 public static void writeUInt24(ByteBuffer bb, int i) { in writeUInt24()
47 public static void writeUInt16(ByteBuffer bb, int i) { in writeUInt16()
53 public static void writeUInt16BE(ByteBuffer bb, int i) { in writeUInt16BE()
59 public static void writeUInt8(ByteBuffer bb, int i) { in writeUInt8()
65 public static void writeFixedPont1616(ByteBuffer bb, double v) { in writeFixedPont1616()
73 public static void writeFixedPont88(ByteBuffer bb, double v) { in writeFixedPont88()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/
DPlayReadyHeader.java12 import java.nio.ByteBuffer;
48 public void parse(ByteBuffer byteBuffer) { in parse()
65 public ByteBuffer getData() { in getData()
72 ByteBuffer byteBuffer = ByteBuffer.allocate(size); in getData()
79 ByteBuffer tmp4debug = record.getValue(); in getData()
113 public static List<PlayReadyRecord> createFor(ByteBuffer byteBuffer, int recordCount) { in createFor()
133 record.parse((ByteBuffer) byteBuffer.slice().limit(length)); in createFor()
141 public abstract void parse(ByteBuffer bytes); in parse()
154 public abstract ByteBuffer getValue(); in getValue()
164 public void parse(ByteBuffer bytes) { in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUBinary.java16 import java.nio.ByteBuffer;
51 static boolean validate(ByteBuffer bytes) { in validate()
74 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
90 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
93 ByteBuffer data = bytes.duplicate(); in getData()
102 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
117 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
142 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
150 private static int getDataOffset(ByteBuffer bytes, int index) {
164 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUBinary.java17 import java.nio.ByteBuffer;
55 static boolean validate(ByteBuffer bytes) { in validate()
78 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
94 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
97 ByteBuffer data = bytes.duplicate(); in getData()
106 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
121 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
146 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
154 private static int getDataOffset(ByteBuffer bytes, int index) {
168 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DMediaDataBox.java28 import java.nio.ByteBuffer;
56 ByteBuffer header;
64 private Map<Long, Reference<ByteBuffer>> cache = new HashMap<Long, Reference<ByteBuffer>>();
71 private ByteBuffer content;
118 ByteBuffer h2 = ByteBuffer.allocate(header.limit()); in checkStillOk()
138 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse()
148 cache.put(0l, new SoftReference<ByteBuffer>(content)); in parse()
152 public synchronized ByteBuffer getContent(long offset, int length) { in getContent()
156 ByteBuffer cacheEntry = cache.get(chacheEntryOffset).get(); in getContent()
160 ByteBuffer cachedSample = cacheEntry.slice(); in getContent()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DByteBufferHelper.java18 import java.nio.ByteBuffer;
27 public static List<ByteBuffer> mergeAdjacentBuffers(List<ByteBuffer> samples) { in mergeAdjacentBuffers()
28 ArrayList<ByteBuffer> nuSamples = new ArrayList<ByteBuffer>(samples.size()); in mergeAdjacentBuffers()
29 for (ByteBuffer buffer : samples) { in mergeAdjacentBuffers()
33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers()
34ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffe… in mergeAdjacentBuffers()
41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
DUnknownEntry.java21 import java.nio.ByteBuffer;
27 private ByteBuffer content;
32 public ByteBuffer getContent() { in getContent()
36 public void setContent(ByteBuffer content) { in setContent()
37 this.content = (ByteBuffer) content.duplicate().rewind(); in setContent()
41 public void parse(ByteBuffer byteBuffer) { in parse()
42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind(); in parse()
46 public ByteBuffer get() { in get()
52 ByteBuffer bb = content.duplicate(); in toString()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java35 import java.nio.ByteBuffer;
56 private static void assertEquals(int width, int height, ByteBuffer actual, ByteBuffer expected) { in assertEquals()
80 private static ByteBuffer stripAlphaChannel(ByteBuffer rgbaBuffer) { in stripAlphaChannel()
84 final ByteBuffer rgbBuffer = ByteBuffer.allocateDirect(numberOfPixels * 3); in stripAlphaChannel()
104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering()
121 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testRgbRendering()
141 final ByteBuffer[] yuvPlanes = new ByteBuffer[3]; in testYuvRendering()
144 yuvPlanes[i] = ByteBuffer.allocateDirect(WIDTH * HEIGHT); in testYuvRendering()
168 final ByteBuffer data = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testYuvRendering()
244 public void draw(ByteBuffer rgbPlane) {
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DBufferUtils.java20 import java.nio.ByteBuffer;
36 static Array<ByteBuffer> unsafeBuffers = new Array<ByteBuffer>();
50 if (dst instanceof ByteBuffer) in copy()
398 if (dst instanceof ByteBuffer) in positionInBytes()
417 if (dst instanceof ByteBuffer) in bytesToElements()
436 if (dst instanceof ByteBuffer) in elementsToBytes()
455 ByteBuffer buffer = ByteBuffer.allocateDirect(numFloats * 4); in newFloatBuffer()
461 ByteBuffer buffer = ByteBuffer.allocateDirect(numDoubles * 8); in newDoubleBuffer()
466 public static ByteBuffer newByteBuffer (int numBytes) { in newByteBuffer()
467 ByteBuffer buffer = ByteBuffer.allocateDirect(numBytes); in newByteBuffer()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DETC1.java22 import java.nio.ByteBuffer;
51 public final ByteBuffer compressedData;
55 public ETC1Data (int width, int height, ByteBuffer compressedData, int dataOffset) { in ETC1Data()
153ByteBuffer compressedData = encodeImage(pixmap.getPixels(), 0, pixmap.getWidth(), pixmap.getHeight… in encodeImage()
164ByteBuffer compressedData = encodeImagePKM(pixmap.getPixels(), 0, pixmap.getWidth(), pixmap.getHei… in encodeImagePKM()
214 public static native void formatHeader (ByteBuffer header, int offset, int width, int height); /* in formatHeader()
221 static native int getWidthPKM (ByteBuffer header, int offset); /* in getWidthPKM()
228 static native int getHeightPKM (ByteBuffer header, int offset); /* in getHeightPKM()
235 static native boolean isValidPKM (ByteBuffer header, int offset); /* in isValidPKM()
248 …private static native void decodeImage (ByteBuffer compressedData, int offset, ByteBuffer decodedD… in decodeImage()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DItemDataBox.java5 import java.nio.ByteBuffer;
11 ByteBuffer data = ByteBuffer.allocate(0);
19 public ByteBuffer getData() { in getData()
23 public void setData(ByteBuffer data) { in setData()
34 public void _parseDetails(ByteBuffer content) { in _parseDetails()
40 protected void getContent(ByteBuffer byteBuffer) { in getContent()
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DSSLEngineImplTest.java20 import java.nio.ByteBuffer;
379 engine.wrap(ByteBuffer.allocate(0), ByteBuffer.allocate( in testSetGetUseClientMode()
454 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseOutbound()
455 ByteBuffer.allocate(20000)); in testCloseOutbound()
476 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseInbound()
477 ByteBuffer.allocate(20000)); in testCloseInbound()
505 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testCloseInbound2()
506 ByteBuffer app_data_buffer = ByteBuffer.allocate(applicationBufferSize); in testCloseInbound2()
538 print(result = server.wrap(ByteBuffer.allocate(0), buffer)); in testCloseInbound2()
598 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testErrorProcessing()
[all …]
/external/google-breakpad/src/common/
Dbyte_cursor_unittest.cc43 using google_breakpad::ByteBuffer;
48 ByteBuffer buffer(data, 0); in TEST()
54 ByteBuffer buffer(data, sizeof(data)); in TEST()
60 ByteBuffer buffer(data, 0); in TEST()
67 ByteBuffer buffer(data, 0); in TEST()
74 ByteBuffer buffer(data, 0); in TEST()
81 ByteBuffer buffer(data, sizeof(data)); in TEST()
88 ByteBuffer buffer(data, sizeof(data)); in TEST()
96 ByteBuffer buffer(data, sizeof(data)); in TEST()
109 ByteBuffer buffer(data, sizeof(data)); in TEST()
[all …]

12345678910>>...21