/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/ |
SegmentTypeBox.java | 25 import java.nio.ByteBuffer; 59 public void _parseDetails(ByteBuffer content) { 70 protected void getContent(ByteBuffer byteBuffer) { 71 byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand)); 72 IsoTypeWriter.writeUInt32(byteBuffer, minorVersion); 74 byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand));
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
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);
|
SampleToGroupBox.java | 23 import java.nio.ByteBuffer; 62 protected void getContent(ByteBuffer byteBuffer) { 63 writeVersionAndFlags(byteBuffer); 64 byteBuffer.put(groupingType.getBytes()); 66 byteBuffer.put(groupingTypeParameter.getBytes()); 68 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 70 IsoTypeWriter.writeUInt32(byteBuffer, entry.getSampleCount()); 71 IsoTypeWriter.writeUInt32(byteBuffer, entry.getGroupDescriptionIndex()); 77 protected void _parseDetails(ByteBuffer content) [all...] |
/frameworks/base/tests/SerialChat/src/com/android/serialchat/ |
SerialChat.java | 34 import java.nio.ByteBuffer; 43 private ByteBuffer mInputBuffer; 44 private ByteBuffer mOutputBuffer; 62 mInputBuffer = ByteBuffer.allocateDirect(1024); 63 mOutputBuffer = ByteBuffer.allocateDirect(1024); 65 mInputBuffer = ByteBuffer.allocate(1024); 66 mOutputBuffer = ByteBuffer.allocate(1024);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
AbstractSampleEncryptionBox.java | 15 import java.nio.ByteBuffer; 41 public void _parseDetails(ByteBuffer content) { 144 protected void getContent(ByteBuffer byteBuffer) { 145 writeVersionAndFlags(byteBuffer); 147 IsoTypeWriter.writeUInt24(byteBuffer, algorithmId); 148 IsoTypeWriter.writeUInt8(byteBuffer, ivSize); 149 byteBuffer.put(kid); 151 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 156 byteBuffer.put(ivFull) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherSpiTest.java | 37 import java.nio.ByteBuffer; 207 * Test for <code>engineUpdate(ByteBuffer, ByteBuffer)</code> method 218 ByteBuffer bbNull = null; 219 ByteBuffer bb1 = ByteBuffer.allocate(len); 232 ByteBuffer bb2 = ByteBuffer.allocate(bb.length); 259 * Test for <code>engineDoFinal(ByteBuffer, ByteBuffer)</code> metho [all...] |
/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...] |
MessageDigestSpiTest.java | 24 import java.nio.ByteBuffer; 89 * java.security.MessageDigestSpi#engineUpdate(ByteBuffer) 95 ByteBuffer buf = ByteBuffer.wrap(b, 0, b.length); 102 buf = ByteBuffer.wrap(b, 0, b.length); 157 protected void engineUpdate(ByteBuffer input) {
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
bytebuffer.h | 38 class ByteBuffer { 47 ByteBuffer(); 48 explicit ByteBuffer(ByteOrder byte_order); 49 ByteBuffer(const char* bytes, size_t len); 50 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order); 53 explicit ByteBuffer(const char* bytes); 55 ~ByteBuffer(); 87 // ByteBuffer. 105 friend class ByteBuffer; 131 DISALLOW_COPY_AND_ASSIGN(ByteBuffer); [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/base/ |
MessageProtocol.java | 38 import java.nio.ByteBuffer; 58 private ByteBuffer current; 63 * Converts a message to a ByteBuffer using the Serializer 67 public static ByteBuffer messageToBuffer( Message message, ByteBuffer target ) 70 ByteBuffer buffer = target == null ? ByteBuffer.allocate( 32767 + 2 ) : target; 106 public int addBuffer( ByteBuffer buffer ) 142 current = ByteBuffer.allocate(size); 178 protected void createMessage( ByteBuffer buffer [all...] |
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/ |
CharsetEncoderTest.java | 18 import java.nio.ByteBuffer; 275 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); 277 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); 283 ByteBuffer out = ByteBuffer.allocate(5); 313 ByteBuffer out = ByteBuffer.allocate(5); 350 ByteBuffer.allocate(30), true); 357 ByteBuffer.allocate(30), false); 364 ByteBuffer.allocate(30), true) [all...] |
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
stun.h | 38 #include "talk/base/bytebuffer.h" 141 bool Read(talk_base::ByteBuffer* buf); 145 void Write(talk_base::ByteBuffer* buf) const; 168 virtual bool Read(talk_base::ByteBuffer* buf) = 0; 172 virtual void Write(talk_base::ByteBuffer* buf) const = 0; 214 bool Read(talk_base::ByteBuffer* buf); 215 void Write(talk_base::ByteBuffer* buf) const; 241 bool Read(talk_base::ByteBuffer* buf); 242 void Write(talk_base::ByteBuffer* buf) const; 264 bool Read(talk_base::ByteBuffer* buf) [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldSocketChannelTest.java | 28 import java.nio.ByteBuffer; 111 java.nio.ByteBuffer[] buf = new java.nio.ByteBuffer[1]; 112 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); 244 ByteBuffer writeContent = ByteBuffer.allocate(CAPACITY_HUGE); 258 // use SocketChannel.write(ByteBuffer) to try to write CAPACITY_HUGE bytes 292 ByteBuffer buf = ByteBuffer.allocate(10); 307 ByteBuffer buf = ByteBuffer.allocate(data.length) [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexBuffer.java | 23 import java.nio.ByteBuffer; 28 private ByteBuffer b; 45 initialize(ByteBuffer.wrap(bytes)); 54 initialize(ByteBuffer.wrap(bytes)); 57 private DexBuffer(ByteBuffer slice) { 61 private void initialize(ByteBuffer buffer) {
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
GZIPSerializer.java | 41 import java.nio.ByteBuffer; 53 public <T> T readObject(ByteBuffer data, Class<T> c) throws IOException { 72 result.setMessage((Message)Serializer.readClassAndObject(ByteBuffer.wrap(out.toByteArray()))); 81 public void writeObject(ByteBuffer buffer, Object object) throws IOException { 85 ByteBuffer tempBuffer = ByteBuffer.allocate(512000);
|
ZIPSerializer.java | 41 import java.nio.ByteBuffer; 54 public <T> T readObject(ByteBuffer data, Class<T> c) throws IOException { 78 result.setMessage((Message)Serializer.readClassAndObject(ByteBuffer.wrap(out.toByteArray()))); 87 public void writeObject(ByteBuffer buffer, Object object) throws IOException { 92 ByteBuffer tempBuffer = ByteBuffer.allocate(512000);
|
BooleanSerializer.java | 37 import java.nio.ByteBuffer; 47 public Boolean readObject(ByteBuffer data, Class c) throws IOException { 51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
ByteSerializer.java | 37 import java.nio.ByteBuffer; 47 public Byte readObject(ByteBuffer data, Class c) throws IOException { 51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
CharSerializer.java | 37 import java.nio.ByteBuffer; 47 public Character readObject(ByteBuffer data, Class c) throws IOException { 51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
SampleEntry.java | 29 import java.nio.ByteBuffer; 109 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException { 116 public void _parseReservedAndDataReferenceIndex(ByteBuffer content) { 121 public void _parseChildBoxes(ByteBuffer content) { 133 public void _writeReservedAndDataReferenceIndex(ByteBuffer bb) { 138 public void _writeChildBoxes(ByteBuffer bb) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/ |
QuicktimeTextTrackImpl.java | 31 import java.nio.ByteBuffer; 64 public List<ByteBuffer> getSamples() { 65 List<ByteBuffer> samples = new LinkedList<ByteBuffer>(); 70 samples.add(ByteBuffer.wrap(new byte[]{0, 0})); 83 samples.add(ByteBuffer.wrap(baos.toByteArray()));
|
TextTrackImpl.java | 27 import java.nio.ByteBuffer; 67 public List<ByteBuffer> getSamples() { 68 List<ByteBuffer> samples = new LinkedList<ByteBuffer>(); 73 samples.add(ByteBuffer.wrap(new byte[]{0, 0})); 86 samples.add(ByteBuffer.wrap(baos.toByteArray()));
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
SimpleFrame.java | 28 import java.nio.ByteBuffer; 112 public void setData(ByteBuffer buffer, int offset, int length) { 114 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length)); 118 public ByteBuffer getData() { 119 return (mObject instanceof ByteBuffer) ? (ByteBuffer)mObject : null;
|
/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferBenchmark.java | 47 public static ByteBuffer newBuffer(MyByteOrder byteOrder, boolean aligned, MyBufferType bufferType) throws IOException { 49 ByteBuffer result = null; 52 result = ByteBuffer.allocateDirect(size); 55 result = ByteBuffer.allocate(size); 81 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 91 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 102 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 112 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 133 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 143 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType) [all...] |
/libcore/luni/src/main/java/java/nio/ |
PipeImpl.java | 78 public int read(ByteBuffer buffer) throws IOException { 82 public long read(ByteBuffer[] buffers) throws IOException { 86 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { 113 public int write(ByteBuffer buffer) throws IOException { 117 public long write(ByteBuffer[] buffers) throws IOException { 121 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException {
|