/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
SinkChannelTest.java | 22 import java.nio.ByteBuffer; 46 private ByteBuffer buffer; 48 private ByteBuffer positionedBuffer; 55 buffer = ByteBuffer.wrap("bytes".getBytes(ISO8859_1)); 56 positionedBuffer = ByteBuffer.wrap("12345bytes".getBytes(ISO8859_1)); 68 * @tests java.nio.channels.Pipe.SinkChannel#write(ByteBuffer) 71 ByteBuffer[] bufArray = { buffer, positionedBuffer }; 82 for (ByteBuffer buf : bufArray) { 86 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE) [all...] |
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...] |
/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/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
SavableSerializer.java | 42 import java.nio.ByteBuffer; 51 ByteBuffer output; 53 public BufferOutputStream(ByteBuffer output){ 75 ByteBuffer input; 77 public BufferInputStream(ByteBuffer input){ 105 public <T> T readObject(ByteBuffer data, Class<T> c) throws IOException { 113 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
EnumSerializer.java | 38 import java.nio.ByteBuffer; 46 public <T> T readObject(ByteBuffer data, Class<T> c) throws IOException { 60 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
Vector3Serializer.java | 6 import java.nio.ByteBuffer; 14 public Vector3f readObject(ByteBuffer data, Class c) throws IOException { 22 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
/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;
|
/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...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/ |
PlayReadyHeader.java | 12 import java.nio.ByteBuffer; 48 public void parse(ByteBuffer byteBuffer) { 58 length = IsoTypeReader.readUInt32BE(byteBuffer); 59 int recordCount = IsoTypeReader.readUInt16BE(byteBuffer); 61 records = PlayReadyRecord.createFor(byteBuffer, recordCount); 65 public ByteBuffer getData() { 72 ByteBuffer byteBuffer = ByteBuffer.allocate(size) [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
AbstractBoxParser.java | 23 import java.nio.ByteBuffer; 50 ByteBuffer header = ChannelHelper.readFully(byteChannel, 8); 65 ByteBuffer bb = ByteBuffer.allocate(8); 81 ByteBuffer bb = ByteBuffer.allocate(16); 98 header = ByteBuffer.allocate(16); 103 header = ByteBuffer.allocate(24); 108 header = ByteBuffer.allocate(32);
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
RamDisk.java | 25 import java.nio.ByteBuffer; 42 private final ByteBuffer data; 72 final ByteBuffer bb = ByteBuffer.wrap(bos.toByteArray(), 0, total); 76 private RamDisk(ByteBuffer buffer, int sectorSize) { 106 this.data = ByteBuffer.allocate(size); 116 public void read(long devOffset, ByteBuffer dest) throws IOException { 134 public void write(long devOffset, ByteBuffer src) throws IOException { 151 * Returns a slice of the {@code ByteBuffer} that is used by this 154 * {@link #write(long, java.nio.ByteBuffer) method}, but read-only [all...] |
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/util/ |
NativeMeshUtil.java | 38 import java.nio.ByteBuffer;
48 ByteBuffer triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4);
49 ByteBuffer vertexBase = BufferUtils.createByteBuffer(mesh.getVertexCount() * 3 * 4);
75 public static native long createTriangleIndexVertexArray(ByteBuffer triangleIndexBase, ByteBuffer vertexBase, int numTraingles, int numVertices, int vertextStride, int triangleIndexStride);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/ |
AbstractDescriptorBox.java | 24 import java.nio.ByteBuffer; 36 public ByteBuffer data; 43 protected void getContent(ByteBuffer byteBuffer) { 44 writeVersionAndFlags(byteBuffer); 46 byteBuffer.put(data); 62 public void setData(ByteBuffer data) { 67 public void _parseDetails(ByteBuffer content) {
|
/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);
|
SLConfigDescriptor.java | 23 import java.nio.ByteBuffer;
72 public void parseDetail(ByteBuffer bb) throws IOException {
80 public ByteBuffer serialize() {
81 ByteBuffer out = ByteBuffer.allocate(3);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
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);
|
VisualRandomAccessEntry.java | 21 import java.nio.ByteBuffer; 51 public void parse(ByteBuffer byteBuffer) { 52 final byte b = byteBuffer.get(); 58 public ByteBuffer get() { 59 ByteBuffer content = ByteBuffer.allocate(1);
|
/frameworks/base/core/java/android/hardware/ |
SerialPort.java | 29 import java.nio.ByteBuffer; 92 public int read(ByteBuffer buffer) throws IOException { 110 public void write(ByteBuffer buffer, int length) throws IOException { 130 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException; 132 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException;
|
/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) {
|
DhcpRequestPacket.java | 23 import java.nio.ByteBuffer; 48 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 49 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 60 void finishPacket(ByteBuffer buffer) {
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/ |
ImageFlipper.java | 37 import java.nio.ByteBuffer; 61 ByteBuffer data = img.getData(index); 62 ByteBuffer temp = BufferUtils.createByteBuffer(scanline);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
BitRateBox.java | 23 import java.nio.ByteBuffer; 55 public void _parseDetails(ByteBuffer content) { 62 protected void getContent(ByteBuffer byteBuffer) { 63 IsoTypeWriter.writeUInt32(byteBuffer, bufferSizeDb); 64 IsoTypeWriter.writeUInt32(byteBuffer, maxBitrate); 65 IsoTypeWriter.writeUInt32(byteBuffer, avgBitrate);
|
ChunkOffset64BitBox.java | 6 import java.nio.ByteBuffer; 32 public void _parseDetails(ByteBuffer content) { 42 protected void getContent(ByteBuffer byteBuffer) { 43 writeVersionAndFlags(byteBuffer); 44 IsoTypeWriter.writeUInt32(byteBuffer, chunkOffsets.length); 46 IsoTypeWriter.writeUInt64(byteBuffer, chunkOffset);
|