HomeSort by relevance Sort by last modified time
    Searched full:bytebuffer (Results 126 - 150 of 935) sorted by null

1 2 3 4 56 7 8 91011>>

  /libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
UTFCharsetDecoderTest.java 20 import java.nio.ByteBuffer;
48 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException {
52 ByteBuffer getMalformedByteBuffer() throws UnsupportedEncodingException {
53 ByteBuffer buffer = ByteBuffer.allocate(getByteBuffer().remaining() + 1);
60 ByteBuffer getExceptionByteArray() throws UnsupportedEncodingException {
68 protected ByteBuffer getByteBuffer() {
69 return ByteBuffer.wrap(new byte[] { 32, 98, 117, 102, 102, 101, 114,
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...]
ISOCharsetDecoderTest.java 20 import java.nio.ByteBuffer;
46 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException {
52 ByteBuffer getMalformedByteBuffer() throws UnsupportedEncodingException {
57 ByteBuffer getExceptionByteArray() throws UnsupportedEncodingException {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
CharsetDecoderTest.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...]
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
SampleAuxiliaryInformationSizesBox.java 24 import java.nio.ByteBuffer;
56 protected void getContent(ByteBuffer byteBuffer) {
57 writeVersionAndFlags(byteBuffer);
59 byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoType));
60 byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoTypeParameter));
63 IsoTypeWriter.writeUInt8(byteBuffer, defaultSampleInfoSize);
66 IsoTypeWriter.writeUInt32(byteBuffer, sampleInfoSizes.size());
68 IsoTypeWriter.writeUInt8(byteBuffer, sampleInfoSize);
71 IsoTypeWriter.writeUInt32(byteBuffer, sampleCount)
    [all...]
MetaBox.java 25 import java.nio.ByteBuffer;
64 public void _parseDetails(ByteBuffer content) {
91 protected void getContent(ByteBuffer byteBuffer) {
93 IsoTypeWriter.writeUInt8(byteBuffer, version);
94 IsoTypeWriter.writeUInt24(byteBuffer, flags);
96 writeChildBoxes(byteBuffer);
RatingBox.java 25 import java.nio.ByteBuffer;
95 public void _parseDetails(ByteBuffer content) {
105 protected void getContent(ByteBuffer byteBuffer) {
106 writeVersionAndFlags(byteBuffer);
107 byteBuffer.put(IsoFile.fourCCtoBytes(ratingEntity));
108 byteBuffer.put(IsoFile.fourCCtoBytes(ratingCriteria));
109 IsoTypeWriter.writeIso639(byteBuffer, language);
110 byteBuffer.put(Utf8.convert(ratingInfo));
111 byteBuffer.put((byte) 0)
    [all...]
TrackReferenceTypeBox.java 23 import java.nio.ByteBuffer;
44 public void _parseDetails(ByteBuffer content) {
53 protected void getContent(ByteBuffer byteBuffer) {
55 IsoTypeWriter.writeUInt32(byteBuffer, trackId);
  /libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
ChunkHandler.java 19 import java.nio.ByteBuffer;
65 ByteBuffer out = ByteBuffer.allocate(8 + msg.length() * 2);
75 * Utility function to wrap a ByteBuffer around a Chunk.
77 public static ByteBuffer wrapChunk(Chunk request) {
78 ByteBuffer in;
80 in = ByteBuffer.wrap(request.data, request.offset, request.length);
87 * Utility function to copy a String out of a ByteBuffer.
92 public static String getString(ByteBuffer buf, int len) {
100 * Utility function to copy a String into a ByteBuffer
    [all...]
  /external/apache-harmony/crypto/src/test/impl/java.injected/org/apache/harmony/crypto/internal/
NullCipherSpiTest.java 24 import java.nio.ByteBuffer;
106 * Class under test for int engineUpdate(ByteBuffer, ByteBuffer)
112 ByteBuffer inbuf = ByteBuffer.wrap(b,0,b.length);
113 ByteBuffer outbuf = ByteBuffer.allocate(6);
137 inbuf = ByteBuffer.wrap(b,0,b.length);
138 outbuf = ByteBuffer.allocate(5);
151 * Class under test for int engineDoFinal(ByteBuffer, ByteBuffer
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
FileChannelTest.java 29 import java.nio.ByteBuffer;
234 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES);
287 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH);
334 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES);
346 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH);
350 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES)
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/
BufferTest.java 27 private static ByteBuffer allocateMapped(int size) throws Exception {
95 testByteSwappedBulkGet(ByteBuffer.allocateDirect(10));
99 testByteSwappedBulkGet(ByteBuffer.allocate(10));
106 private void testByteSwappedBulkGet(ByteBuffer b) throws Exception {
179 private static String toString(ByteBuffer b) {
188 testByteSwappedBulkPut(ByteBuffer.allocateDirect(10));
192 testByteSwappedBulkPut(ByteBuffer.allocate(10));
199 private void testByteSwappedBulkPut(ByteBuffer b) throws Exception {
241 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), false);
245 testByteBufferByteOrder(ByteBuffer.allocate(10), false)
    [all...]
  /external/jmonkeyengine/engine/src/bullet-native/
com_jme3_bullet_collision_shapes_HeightfieldCollisionShape.h 13 * Signature: (IILjava/nio/ByteBuffer;FFFIZ)J
com_jme3_bullet_collision_shapes_HullCollisionShape.h 13 * Signature: (Ljava/nio/ByteBuffer;)J
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
UnknownDescriptor.java 20 import java.nio.ByteBuffer;
24 private ByteBuffer data;
28 public void parseDetail(ByteBuffer bb) throws IOException {
29 data = (ByteBuffer) bb.slice().limit(this.getSizeOfInstance());
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/threegpp26244/
SegmentIndexBox.java 9 import java.nio.ByteBuffer;
72 protected void getContent(ByteBuffer byteBuffer) {
73 writeVersionAndFlags(byteBuffer);
74 IsoTypeWriter.writeUInt32(byteBuffer, referenceId);
75 IsoTypeWriter.writeUInt32(byteBuffer, timeScale);
77 IsoTypeWriter.writeUInt32(byteBuffer, earliestPresentationTime);
78 IsoTypeWriter.writeUInt32(byteBuffer, firstOffset);
80 IsoTypeWriter.writeUInt64(byteBuffer, earliestPresentationTime);
81 IsoTypeWriter.writeUInt64(byteBuffer, firstOffset)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
DirectByteBufferTest.java 18 import java.nio.ByteBuffer;
24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH);
35 * @tests java.nio.ByteBuffer#allocateDirect(int)
40 ByteBuffer.allocateDirect(-1);
HeapByteBufferTest.java 19 import java.nio.ByteBuffer;
26 buf = ByteBuffer.allocate(BUFFER_LENGTH);
37 * @tests java.nio.ByteBuffer#allocate(int)
42 ByteBuffer.allocate(-1);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Cube.java 19 import java.nio.ByteBuffer;
72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
99 private ByteBuffer mIndexBuffer;
  /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);
TemporalLevelEntry.java 19 import java.nio.ByteBuffer;
41 public void parse(ByteBuffer byteBuffer) {
42 final byte b = byteBuffer.get();
47 public ByteBuffer get() {
48 ByteBuffer content = ByteBuffer.allocate(1);
  /frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
Cube.java 19 import java.nio.ByteBuffer;
72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
99 private ByteBuffer mIndexBuffer;
  /libcore/crypto/src/main/java/org/conscrypt/
SSLEngineDataStream.java 20 import java.nio.ByteBuffer;
24 * implemented over the array of ByteBuffer instances.
27 * The source ByteBuffer objects can be replaced by other.
33 private ByteBuffer[] srcs;
42 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) {
67 // use ByteBuffer.get(byte[],int,int)
68 // and ByteBuffer.hasArray() methods
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/
TfrfBox.java 7 import java.nio.ByteBuffer;
56 protected void getContent(ByteBuffer byteBuffer) {
57 writeVersionAndFlags(byteBuffer);
58 IsoTypeWriter.writeUInt8(byteBuffer, entries.size());
62 IsoTypeWriter.writeUInt64(byteBuffer, entry.fragmentAbsoluteTime);
63 IsoTypeWriter.writeUInt64(byteBuffer, entry.fragmentAbsoluteDuration);
65 IsoTypeWriter.writeUInt32(byteBuffer, entry.fragmentAbsoluteTime);
66 IsoTypeWriter.writeUInt32(byteBuffer, entry.fragmentAbsoluteDuration);
72 public void _parseDetails(ByteBuffer content) {
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
AC3SpecificBox.java 7 import java.nio.ByteBuffer;
28 public void _parseDetails(ByteBuffer content) {
40 protected void getContent(ByteBuffer byteBuffer) {
41 BitWriterBuffer bwb = new BitWriterBuffer(byteBuffer);

Completed in 941 milliseconds

1 2 3 4 56 7 8 91011>>