/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
DecoderSpecificInfo.java | 22 import java.nio.ByteBuffer;
37 public void parseDetail(ByteBuffer bb) throws IOException {
48 public ByteBuffer serialize() {
49 ByteBuffer out = ByteBuffer.wrap(bytes);
|
/frameworks/base/core/java/android/net/dhcp/ |
DhcpDiscoverPacket.java | 21 import java.nio.ByteBuffer; 44 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 45 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 57 void finishPacket(ByteBuffer buffer) {
|
DhcpInformPacket.java | 20 import java.nio.ByteBuffer; 43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 44 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 55 void finishPacket(ByteBuffer buffer) {
|
DhcpNakPacket.java | 21 import java.nio.ByteBuffer; 45 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 46 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 59 void finishPacket(ByteBuffer buffer) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
MockSocketChannel.java | 23 import java.nio.ByteBuffer; 53 public int read(ByteBuffer arg0) throws IOException { 57 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { 61 public int write(ByteBuffer arg0) throws IOException { 65 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
|
DatagramChannelTest.java | 27 import java.nio.ByteBuffer; 150 * Test method for 'java.nio.channels.DatagramChannel.read(ByteBuffer)' 159 ByteBuffer[] readBuf = null; 172 readBuf = new ByteBuffer[bufSize]; 186 * Test method for 'java.nio.channels.DatagramChannel.read(ByteBuffer)' 193 ByteBuffer[] readBuf = null; 215 * Test method for 'java.nio.channels.DatagramChannel.write(ByteBuffer)' 222 ByteBuffer[] readBuf = null; 235 readBuf = new ByteBuffer[bufSize]; 251 * Test method for 'java.nio.channels.DatagramChannel.write(ByteBuffer)' [all...] |
SocketChannelTest.java | 32 import java.nio.ByteBuffer; 130 java.nio.ByteBuffer[] buf = new java.nio.ByteBuffer[1]; 131 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); 162 * Test method for 'java.nio.channels.SocketChannel.read(ByteBuffer[])' 165 java.nio.ByteBuffer[] byteBuf = null; 178 byteBuf = new java.nio.ByteBuffer[CAPACITY_NORMAL]; 197 * Test method for 'java.nio.channels.SocketChannel.read(ByteBuffer[])' 200 java.nio.ByteBuffer[] byteBuf = null; 225 * Test method for 'java.nio.channels.SocketChannel.write(ByteBuffer[])' [all...] |
/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...] |
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
CipherSpiTest.java | 31 import java.nio.ByteBuffer; 121 * Test for <code>engineUpdate(ByteBuffer, ByteBuffer)</code> method 132 ByteBuffer bbNull = null; 133 ByteBuffer bb1 = ByteBuffer.allocate(len); 146 ByteBuffer bb2 = ByteBuffer.allocate(bb.length); 173 * Test for <code>engineDoFinal(ByteBuffer, ByteBuffer)</code> metho [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
SampleToChunkBox.java | 23 import java.nio.ByteBuffer; 59 public void _parseDetails(ByteBuffer content) { 73 protected void getContent(ByteBuffer byteBuffer) { 74 writeVersionAndFlags(byteBuffer); 75 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 77 IsoTypeWriter.writeUInt32(byteBuffer, entry.getFirstChunk()); 78 IsoTypeWriter.writeUInt32(byteBuffer, entry.getSamplesPerChunk()); 79 IsoTypeWriter.writeUInt32(byteBuffer, entry.getSampleDescriptionIndex());
|
SampleDependencyTypeBox.java | 23 import java.nio.ByteBuffer; 105 protected void getContent(ByteBuffer byteBuffer) { 106 writeVersionAndFlags(byteBuffer); 108 IsoTypeWriter.writeUInt8(byteBuffer, entry.value); 113 public void _parseDetails(ByteBuffer content) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
FullContainerBox.java | 25 import java.nio.ByteBuffer; 94 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException { 101 public void _parseDetails(ByteBuffer content) { 106 protected final void parseChildBoxes(ByteBuffer content) { 135 protected void getContent(ByteBuffer byteBuffer) { 136 writeVersionAndFlags(byteBuffer); 137 writeChildBoxes(byteBuffer); 140 protected final void writeChildBoxes(ByteBuffer bb) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
DTSSpecificBox.java | 9 import java.nio.ByteBuffer; 47 public void _parseDetails(ByteBuffer content) { 69 protected void getContent(ByteBuffer byteBuffer) { 70 IsoTypeWriter.writeUInt32(byteBuffer, DTSSamplingFrequency); 71 IsoTypeWriter.writeUInt32(byteBuffer, maxBitRate); 72 IsoTypeWriter.writeUInt32(byteBuffer, avgBitRate); 73 IsoTypeWriter.writeUInt8(byteBuffer, pcmSampleDepth); 74 BitWriterBuffer bwb = new BitWriterBuffer(byteBuffer);
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/ |
FsFile.java | 23 import java.nio.ByteBuffer; 53 * Reads from this file into the specified {@code ByteBuffer}. The 55 * {@link ByteBuffer#position() position}, and the number of bytes read 56 * will equal the buffer's {@link ByteBuffer#remaining() remaining} bytes. 62 public void read(long offset, ByteBuffer dest) throws IOException; 66 * {@code ByteBuffer}. This method will read the buffer's 67 * {@link ByteBuffer#remaining() remaining} bytes starting at it's 68 * {@link ByteBuffer#position() position}. 76 public void write(long offset, ByteBuffer src)
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
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/chromium/third_party/libjingle/source/talk/base/ |
bytebuffer.h | 38 class ByteBuffer { 40 ByteBuffer(); 41 ByteBuffer(const char* bytes, size_t len); 42 explicit ByteBuffer(const char* bytes); // uses strlen 43 ~ByteBuffer(); 77 DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
|
/external/smack/src/org/xbill/DNS/ |
TCPClient.java | 48 ByteBuffer [] buffers = new ByteBuffer[2]; 49 buffers[0] = ByteBuffer.wrap(lengthArray); 50 buffers[1] = ByteBuffer.wrap(data); 78 ByteBuffer buffer = ByteBuffer.wrap(data);
|
/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);
|
/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferScalarVersusVectorBenchmark.java | 35 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 36 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 47 ByteBuffer src = ByteBuffer.allocate(aligned ? 8192 : 8192 + 1); 56 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1);
|
/libcore/luni/src/main/java/java/nio/ |
IoVec.java | 25 * Used to implement java.nio read(ByteBuffer[])/write(ByteBuffer[]) operations as POSIX readv(2) 31 private final ByteBuffer[] byteBuffers; 41 IoVec(ByteBuffer[] byteBuffers, int offset, int bufferCount, Direction direction) { 54 ByteBuffer b = byteBuffers[i + offset]; 90 ByteBuffer b = byteBuffers[i + offset];
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
GLUtils.java | 20 import java.nio.ByteBuffer; 47 FloatBuffer bb = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer(); 61 IntBuffer bb = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer(); 75 ShortBuffer bb = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer(); 93 ByteBuffer bb = ByteBuffer.wrap(data);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldFileChannelTest.java | 26 import java.nio.ByteBuffer; 148 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); 260 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); 504 ByteBuffer[] buffer) throws IOException{ 544 ByteBuffer[] readBuffers = new ByteBuffer[2]; 545 readBuffers[0] = ByteBuffer.allocate(CAPACITY); 546 readBuffers[1] = ByteBuffer.allocate(CAPACITY) [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/rmi/ |
RmiSerializer.java | 39 import java.nio.ByteBuffer; 56 private void writeString(ByteBuffer buffer, String string) throws IOException{ 70 private String readString(ByteBuffer buffer){ 78 private void writeType(ByteBuffer buffer, Class<?> clazz) throws IOException{ 91 private Class<?> readType(ByteBuffer buffer) throws IOException{ 106 private void writeMethod(ByteBuffer buffer, Method method) throws IOException{ 118 private MethodDef readMethod(ByteBuffer buffer) throws IOException{ 135 private void writeObjectDef(ByteBuffer buffer, ObjectDef def) throws IOException{ 145 private ObjectDef readObjectDef(ByteBuffer buffer) throws IOException{ 160 private void writeObjectDefs(ByteBuffer buffer, RemoteObjectDefMessage defMsg) throws IOException [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
RateShareEntry.java | 23 import java.nio.ByteBuffer; 59 public void parse(ByteBuffer byteBuffer) { 60 operationPointCut = byteBuffer.getShort(); 62 targetRateShare = byteBuffer.getShort(); 66 entries.add(new Entry(l2i(IsoTypeReader.readUInt32(byteBuffer)), byteBuffer.getShort())); 69 maximumBitrate = l2i(IsoTypeReader.readUInt32(byteBuffer)); 70 minimumBitrate = l2i(IsoTypeReader.readUInt32(byteBuffer)); 71 discardPriority = (short) IsoTypeReader.readUInt8(byteBuffer); [all...] |