/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 27 import java.nio.ByteBuffer; 43 private static ByteBuffer allocateMapped(int size) throws Exception { 111 testByteSwappedBulkGet(ByteBuffer.allocateDirect(10)); 115 testByteSwappedBulkGet(ByteBuffer.allocate(10)); 122 private void testByteSwappedBulkGet(ByteBuffer b) throws Exception { 195 private static String toString(ByteBuffer b) { 204 testByteSwappedBulkPut(ByteBuffer.allocateDirect(10)); 208 testByteSwappedBulkPut(ByteBuffer.allocate(10)); 215 private void testByteSwappedBulkPut(ByteBuffer b) throws Exception { 257 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), false) [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
ChannelHelper.java | 20 import java.nio.ByteBuffer; 30 public static ByteBuffer readFully(final ReadableByteChannel channel, long size) throws IOException { 33 ByteBuffer bb = ((FileChannel) channel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) channel).position(), size); 37 ByteBuffer buf = ByteBuffer.allocate(l2i(size)); 48 public static void readFully(final ReadableByteChannel channel, final ByteBuffer buf) 53 public static int readFully(final ReadableByteChannel channel, final ByteBuffer buf, final int length) 69 public static void writeFully(final WritableByteChannel channel, final ByteBuffer buf)
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
AuthorBox.java | 25 import java.nio.ByteBuffer; 76 public void _parseDetails(ByteBuffer content) { 83 protected void getContent(ByteBuffer byteBuffer) { 84 writeVersionAndFlags(byteBuffer); 85 IsoTypeWriter.writeIso639(byteBuffer, language); 86 byteBuffer.put(Utf8.convert(author)); 87 byteBuffer.put((byte) 0);
|
SchemeTypeBox.java | 25 import java.nio.ByteBuffer; 73 public void _parseDetails(ByteBuffer content) { 83 protected void getContent(ByteBuffer byteBuffer) { 84 writeVersionAndFlags(byteBuffer); 85 byteBuffer.put(IsoFile.fourCCtoBytes(schemeType)); 86 IsoTypeWriter.writeUInt32(byteBuffer, schemeVersion); 88 byteBuffer.put(Utf8.convert(schemeUri));
|
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...] |
/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/harmony-tests/src/test/java/org/apache/harmony/tests/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,
|
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...] |
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/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; 105 * Class under test for int engineUpdate(ByteBuffer, ByteBuffer) 111 ByteBuffer inbuf = ByteBuffer.wrap(b, 0, b.length); 112 ByteBuffer outbuf = ByteBuffer.allocate(6); 136 inbuf = ByteBuffer.wrap(b, 0, b.length); 137 outbuf = ByteBuffer.allocate(5); 150 * Class under test for int engineDoFinal(ByteBuffer, ByteBuffer [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/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...] |
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
Encoder.java | 13 import java.nio.ByteBuffer; 37 * The ByteBuffer to which the message will be encoded. 39 public ByteBuffer byteBuffer; 60 byteBuffer = ByteBuffer.allocateDirect( 62 byteBuffer.order(ByteOrder.nativeOrder()); 75 * Grow the associated ByteBuffer if needed. 78 if (byteBuffer.capacity() >= dataEnd) { 81 int targetSize = byteBuffer.capacity() * 2 [all...] |
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/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/ |
DataPipeConsumerHandleImpl.java | 10 import java.nio.ByteBuffer; 48 * @see ConsumerHandle#readData(ByteBuffer, ReadFlags) 51 public int readData(ByteBuffer elements, ReadFlags flags) { 59 public ByteBuffer beginReadData(int numBytes, ReadFlags flags) {
|
DataPipeProducerHandleImpl.java | 10 import java.nio.ByteBuffer; 40 * @see ProducerHandle#writeData(ByteBuffer, WriteFlags) 43 public int writeData(ByteBuffer elements, WriteFlags flags) { 51 public ByteBuffer beginWriteData(int numBytes, WriteFlags flags) {
|
SharedBufferHandleImpl.java | 9 import java.nio.ByteBuffer; 50 public ByteBuffer map(long offset, long numBytes, MapFlags flags) { 55 * @see SharedBufferHandle#unmap(ByteBuffer) 58 public void unmap(ByteBuffer buffer) {
|
/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...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glGetDebugMessageLogKHR.nativeReg | 2 {"glGetDebugMessageLogKHR", "(ILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)I", (void *) android_glGetDebugMessageLogKHR__ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2 },
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/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);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
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;
|
/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;
|