/libcore/luni/src/main/java/java/nio/ |
ByteBufferAsCharBuffer.java | 36 private final ByteBuffer byteBuffer; 38 static CharBuffer asCharBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private ByteBufferAsCharBuffer(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.CHAR) [all...] |
ByteBufferAsDoubleBuffer.java | 36 private final ByteBuffer byteBuffer; 38 static DoubleBuffer asDoubleBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private ByteBufferAsDoubleBuffer(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.DOUBLE) [all...] |
ByteBufferAsFloatBuffer.java | 35 private final ByteBuffer byteBuffer; 37 static FloatBuffer asFloatBuffer(ByteBuffer byteBuffer) { 38 ByteBuffer slice = byteBuffer.slice(); 39 slice.order(byteBuffer.order()); 43 ByteBufferAsFloatBuffer(ByteBuffer byteBuffer) { 44 super(byteBuffer.capacity() / SizeOf.FLOAT) [all...] |
ByteBufferAsIntBuffer.java | 36 private final ByteBuffer byteBuffer; 38 static IntBuffer asIntBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private ByteBufferAsIntBuffer(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.INT) [all...] |
ByteBufferAsLongBuffer.java | 36 private final ByteBuffer byteBuffer; 38 static LongBuffer asLongBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private ByteBufferAsLongBuffer(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.LONG) [all...] |
ByteBufferAsShortBuffer.java | 35 private final ByteBuffer byteBuffer; 37 static ShortBuffer asShortBuffer(ByteBuffer byteBuffer) { 38 ByteBuffer slice = byteBuffer.slice(); 39 slice.order(byteBuffer.order()); 43 private ByteBufferAsShortBuffer(ByteBuffer byteBuffer) { 44 super(byteBuffer.capacity() / SizeOf.SHORT) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
ByteBufferByteChannel.java | 20 import java.nio.ByteBuffer; 24 * Creates a <code>ReadableByteChannel</code> that is backed by a <code>ByteBuffer</code>. 27 ByteBuffer byteBuffer; 29 public ByteBufferByteChannel(ByteBuffer byteBuffer) { 30 this.byteBuffer = byteBuffer; 33 public int read(ByteBuffer dst) throws IOException { 36 if (byteBuffer.remaining() >= r) [all...] |
/external/icu4c/samples/layout/ |
UnicodeReader.cpp | 32 char *byteBuffer; 83 byteBuffer = new char[fileSize]; 85 if(byteBuffer == 0) { 92 fread(byteBuffer, sizeof(char), fileSize, f); 97 delete[] byteBuffer; 102 UnicodeString myText(byteBuffer, fileSize, cp); 104 delete[] byteBuffer;
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
NinePatchChunk.java | 21 import java.nio.ByteBuffer; 37 private static void readIntArray(int[] data, ByteBuffer buffer) { 50 ByteBuffer byteBuffer = 51 ByteBuffer.wrap(data).order(ByteOrder.nativeOrder()); 53 byte wasSerialized = byteBuffer.get(); 57 chunk.mDivX = new int[byteBuffer.get()]; 58 chunk.mDivY = new int[byteBuffer.get()]; 59 chunk.mColor = new int[byteBuffer.get()]; 65 byteBuffer.getInt() [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
Ovc1VisualSampleEntryImpl.java | 6 import java.nio.ByteBuffer; 26 public void _parseDetails(ByteBuffer content) { 34 protected void getContent(ByteBuffer byteBuffer) { 35 byteBuffer.put(new byte[6]); 36 IsoTypeWriter.writeUInt16(byteBuffer, getDataReferenceIndex()); 37 byteBuffer.put(vc1Content);
|
/libcore/luni/src/test/java/libcore/java/nio/ |
OldDirectIntBufferTest.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); 30 byteBuffer.order(ByteOrder.nativeOrder()); 31 IntBuffer intBuffer = byteBuffer.asIntBuffer();
|
OldDirectShortBufferTest.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); 30 byteBuffer.order(ByteOrder.nativeOrder()); 31 ShortBuffer shortBuffer = byteBuffer.asShortBuffer();
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
CencSampleEncryptionInformationGroupEntry.java | 23 import java.nio.ByteBuffer; 42 public void parse(ByteBuffer byteBuffer) { 43 isEncrypted = IsoTypeReader.readUInt24(byteBuffer); 44 ivSize = (byte) IsoTypeReader.readUInt8(byteBuffer); 46 byteBuffer.get(kid); 51 public ByteBuffer get() { 52 ByteBuffer byteBuffer = ByteBuffer.allocate(20) [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererTwoShaderTest.java | 20 import java.nio.ByteBuffer; 56 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); 57 byteBuffer.order(ByteOrder.nativeOrder()); 58 floatBuffer = byteBuffer.asFloatBuffer();
|
RendererOneShaderTest.java | 18 import java.nio.ByteBuffer; 80 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); 81 byteBuffer.order(ByteOrder.nativeOrder()); 82 floatBuffer = byteBuffer.asFloatBuffer();
|
RendererThreeShaderTest.java | 18 import java.nio.ByteBuffer; 83 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); 84 byteBuffer.order(ByteOrder.nativeOrder()); 85 floatBuffer = byteBuffer.asFloatBuffer();
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
DataEntryUrnBox.java | 23 import java.nio.ByteBuffer; 52 public void _parseDetails(ByteBuffer content) { 59 protected void getContent(ByteBuffer byteBuffer) { 60 byteBuffer.put(Utf8.convert(name)); 61 byteBuffer.put((byte) 0); 62 byteBuffer.put(Utf8.convert(location)); 63 byteBuffer.put((byte) 0);
|
AlbumBox.java | 24 import java.nio.ByteBuffer; 79 public void _parseDetails(ByteBuffer content) { 92 protected void getContent(ByteBuffer byteBuffer) { 93 writeVersionAndFlags(byteBuffer); 94 IsoTypeWriter.writeIso639(byteBuffer, language); 95 byteBuffer.put(Utf8.convert(albumTitle)); 96 byteBuffer.put((byte) 0); 98 IsoTypeWriter.writeUInt8(byteBuffer, trackNumber);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/vodafone/ |
CoverUriBox.java | 23 import java.nio.ByteBuffer; 50 public void _parseDetails(ByteBuffer content) { 56 protected void getContent(ByteBuffer byteBuffer) { 57 writeVersionAndFlags(byteBuffer); 58 byteBuffer.put(Utf8.convert(coverUri)); 59 byteBuffer.put((byte) 0);
|
LyricsUriBox.java | 23 import java.nio.ByteBuffer; 51 public void _parseDetails(ByteBuffer content) { 57 protected void getContent(ByteBuffer byteBuffer) { 58 writeVersionAndFlags(byteBuffer); 59 byteBuffer.put(Utf8.convert(lyricsUri)); 60 byteBuffer.put((byte) 0);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
InputStreamSource.java | 33 import java.nio.ByteBuffer; 65 ByteBuffer byteBuffer = null; 76 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray()); 85 output.setData(byteBuffer);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 20 import java.nio.ByteBuffer; 106 * @tests java.security.MessageDigest#update(ByteBuffer) 111 ByteBuffer byteBuffer = ByteBuffer.wrap(b); 113 int limit = byteBuffer.limit(); 114 md.update(byteBuffer); 116 assertEquals(byteBuffer.limit(), byteBuffer.position()); 117 assertEquals(limit, byteBuffer.limit()) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 20 import java.nio.ByteBuffer; 109 * java.security.MessageDigest#update(ByteBuffer) 114 ByteBuffer byteBuffer = ByteBuffer.wrap(b); 116 int limit = byteBuffer.limit(); 117 md.update(byteBuffer); 119 assertEquals(byteBuffer.limit(), byteBuffer.position()); 120 assertEquals(limit, byteBuffer.limit()) [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
LiteralByteStringTest.java | 40 import java.nio.ByteBuffer; 203 ByteBuffer myBuffer = ByteBuffer.allocate(referenceBytes.length); 205 assertTrue(classUnderTest + ".copyTo(ByteBuffer) must give back the same bytes", 210 ByteBuffer byteBuffer = stringUnderTest.asReadOnlyByteBuffer(); 212 assertTrue(byteBuffer.remaining() == referenceBytes.length); 213 assertTrue(byteBuffer.isReadOnly()); 214 byteBuffer.get(roundTripBytes); 220 List<ByteBuffer> byteBuffers = stringUnderTest.asReadOnlyByteBufferList() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
MappedByteBufferTest.java | 26 import java.nio.ByteBuffer; 196 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(26 + 20); 198 byteBuffer.put((byte) ('A' + i)); 201 byteBuffer.putInt(i + 1); 203 byteBuffer.rewind(); 204 fileChannel.write(byteBuffer);
|