/packages/apps/Bluetooth/src/com/android/bluetooth/ |
Utils.java | 30 import java.nio.ByteBuffer; 77 ByteBuffer converter = ByteBuffer.wrap(valueBuf); 83 ByteBuffer converter = ByteBuffer.wrap(valueBuf); 89 ByteBuffer converter = ByteBuffer.allocate(4); 97 ByteBuffer converter = ByteBuffer.allocate(length); 110 ByteBuffer converter = ByteBuffer.allocate(length) [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
CompositionTimeToSample.java | 7 import java.nio.ByteBuffer; 67 public void _parseDetails(ByteBuffer content) { 78 protected void getContent(ByteBuffer byteBuffer) { 79 writeVersionAndFlags(byteBuffer); 80 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 83 IsoTypeWriter.writeUInt32(byteBuffer, entry.getCount()); 84 byteBuffer.putInt(entry.getOffset());
|
FreeBox.java | 26 import java.nio.ByteBuffer; 40 ByteBuffer data; 48 this.data = ByteBuffer.allocate(size); 52 public ByteBuffer getData() { 56 public void setData(ByteBuffer data) { 64 ByteBuffer header = ByteBuffer.allocate(8); 95 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
|
ItemLocationBox.java | 27 import java.nio.ByteBuffer; 84 protected void getContent(ByteBuffer byteBuffer) { 85 writeVersionAndFlags(byteBuffer); 86 IsoTypeWriter.writeUInt8(byteBuffer, ((offsetSize << 4) | lengthSize)); 88 IsoTypeWriter.writeUInt8(byteBuffer, (baseOffsetSize << 4 | indexSize)); 90 IsoTypeWriter.writeUInt8(byteBuffer, (baseOffsetSize << 4)); 92 IsoTypeWriter.writeUInt16(byteBuffer, items.size()); 94 item.getContent(byteBuffer); 99 public void _parseDetails(ByteBuffer content) [all...] |
HandlerBox.java | 26 import java.nio.ByteBuffer; 112 public void _parseDetails(ByteBuffer content) { 133 protected void getContent(ByteBuffer byteBuffer) { 134 writeVersionAndFlags(byteBuffer); 135 IsoTypeWriter.writeUInt32(byteBuffer, shouldBeZeroButAppleWritesHereSomeValue); 136 byteBuffer.put(IsoFile.fourCCtoBytes(handlerType)); 137 IsoTypeWriter.writeUInt32(byteBuffer, a); 138 IsoTypeWriter.writeUInt32(byteBuffer, b); 139 IsoTypeWriter.writeUInt32(byteBuffer, c) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/cenc/ |
ProtectionSystemSpecificHeaderBox.java | 12 import java.nio.ByteBuffer; 71 protected void getContent(ByteBuffer byteBuffer) { 72 writeVersionAndFlags(byteBuffer); 74 byteBuffer.put(systemId, 0, 16); 75 IsoTypeWriter.writeUInt32(byteBuffer, content.length); 76 byteBuffer.put(content); 80 protected void _parseDetails(ByteBuffer content) {
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
PipeTest.java | 19 import java.nio.ByteBuffer; 26 assertEquals(0, p.source().read(ByteBuffer.allocate(1)));
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/ |
IndexByteBuffer.java | 36 import java.nio.ByteBuffer; 39 * IndexBuffer implementation for {@link ByteBuffer}s. 45 private ByteBuffer buf; 47 public IndexByteBuffer(ByteBuffer buffer) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
MediaDataBox.java | 28 import java.nio.ByteBuffer; 56 ByteBuffer header; 64 private Map<Long, Reference<ByteBuffer>> cache = new HashMap<Long, Reference<ByteBuffer>>(); 71 private ByteBuffer content; 118 ByteBuffer h2 = ByteBuffer.allocate(header.limit()); 138 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException { 148 cache.put(0l, new SoftReference<ByteBuffer>(content)); 152 public synchronized ByteBuffer getContent(long offset, int length) [all...] |
/art/test/070-nio-buffer/src/ |
Main.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer buf = ByteBuffer.allocateDirect(16); 41 ByteBuffer directBuf = ByteBuffer.allocateDirect(64); 42 //ByteBuffer directBuf = ByteBuffer.allocateDirect(65); 90 ByteBuffer direct = ByteBuffer.allocateDirect(100); 109 ByteBuffer directBuf = ByteBuffer.allocateDirect(36) [all...] |
/dalvik/tests/070-nio-buffer/src/ |
Main.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer buf = ByteBuffer.allocateDirect(16); 41 ByteBuffer directBuf = ByteBuffer.allocateDirect(64); 42 //ByteBuffer directBuf = ByteBuffer.allocateDirect(65); 90 ByteBuffer direct = ByteBuffer.allocateDirect(100); 109 ByteBuffer directBuf = ByteBuffer.allocateDirect(36) [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
NioEndpoint.java | 39 import java.nio.ByteBuffer; 54 protected static final ByteBuffer CLOSE_MARKER = ByteBuffer.allocate(0); 59 private ConcurrentLinkedQueue<ByteBuffer> outbound = new ConcurrentLinkedQueue<ByteBuffer>(); 121 protected void send( ByteBuffer data, boolean copy, boolean wakeup ) 123 // We create a ByteBuffer per endpoint since we 126 ByteBuffer buffer; 131 buffer = ByteBuffer.allocate(data.remaining()); 147 protected ByteBuffer peekPending( [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
BitReaderBuffer.java | 3 import java.nio.ByteBuffer; 7 private ByteBuffer buffer; 11 public BitReaderBuffer(ByteBuffer buffer) {
|
BitWriterBuffer.java | 3 import java.nio.ByteBuffer; 7 private ByteBuffer buffer; 11 public BitWriterBuffer(ByteBuffer buffer) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
SampleGroupDescriptionBox.java | 23 import java.nio.ByteBuffer; 71 protected void getContent(ByteBuffer byteBuffer) { 72 writeVersionAndFlags(byteBuffer); 73 byteBuffer.put(groupingType.getBytes()); 75 IsoTypeWriter.writeUInt32(byteBuffer, defaultLength); 77 IsoTypeWriter.writeUInt32(byteBuffer, this.groupEntries.size()); 80 IsoTypeWriter.writeUInt32(byteBuffer, entry.get().limit()); 82 byteBuffer.put(entry.get()); 87 protected void _parseDetails(ByteBuffer content) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
UUIDConverter.java | 18 import java.nio.ByteBuffer; 44 ByteBuffer b = ByteBuffer.wrap(uuidBytes);
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
MetadataMarshalSize.java | 20 import java.nio.ByteBuffer; 27 public int marshal(Size value, ByteBuffer buffer, int nativeType, boolean sizeOnly) { 39 public Size unmarshal(ByteBuffer buffer, int nativeType) {
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
ByteBufferInputStream.java | 20 import java.nio.ByteBuffer; 24 private ByteBuffer mBuf; 26 public ByteBufferInputStream(ByteBuffer buf) {
|
OrderedDataOutputStream.java | 22 import java.nio.ByteBuffer; 26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
CharsetDecoderTest.java | 19 import java.nio.ByteBuffer; 35 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 }); 43 ByteBuffer inBuffer = ByteBuffer.wrap(arr, 0, arr.length).slice(); 59 ByteBuffer inBuffer = ByteBuffer.wrap(arr, offset, arr.length - offset).slice(); 75 CharBuffer outBuffer = decoder.decode(ByteBuffer.wrap(arr, offset, arr.length - offset)); 95 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false); 97 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x98 }), cb, false) [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLEnginePair.java | 20 import java.nio.ByteBuffer; 70 ByteBuffer clientToServer = ByteBuffer.allocate(packetBufferSize); 71 ByteBuffer serverToClient = ByteBuffer.allocate(packetBufferSize); 74 ByteBuffer scratch = ByteBuffer.allocate(applicationBufferSize); 117 private static final ByteBuffer EMPTY_BYTE_BUFFER = ByteBuffer.allocate(0); 120 ByteBuffer output [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
ByteBufferInputStream.java | 20 import java.nio.ByteBuffer; 24 private ByteBuffer mBuf; 26 public ByteBufferInputStream(ByteBuffer buf) {
|
OrderedDataOutputStream.java | 22 import java.nio.ByteBuffer; 26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ByteBufferInputStream.java | 20 import java.nio.ByteBuffer; 24 private ByteBuffer mBuf; 26 public ByteBufferInputStream(ByteBuffer buf) {
|
OrderedDataOutputStream.java | 22 import java.nio.ByteBuffer; 26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4);
|