/frameworks/base/core/java/android/net/dhcp/ |
DhcpOfferPacket.java | 21 import java.nio.ByteBuffer; 61 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 62 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 75 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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/ |
TrackFragmentHeaderBox.java | 23 import java.nio.ByteBuffer; 74 protected void getContent(ByteBuffer byteBuffer) { 75 writeVersionAndFlags(byteBuffer); 76 IsoTypeWriter.writeUInt32(byteBuffer, trackId); 79 IsoTypeWriter.writeUInt64(byteBuffer, getBaseDataOffset()); 82 IsoTypeWriter.writeUInt32(byteBuffer, getSampleDescriptionIndex()); 85 IsoTypeWriter.writeUInt32(byteBuffer, getDefaultSampleDuration()); 88 IsoTypeWriter.writeUInt32(byteBuffer, getDefaultSampleSize()); 91 defaultSampleFlags.getContent(byteBuffer); [all...] |
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));
|
/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/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;
|
/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 {
|
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);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
FileTypeBox.java | 25 import java.nio.ByteBuffer; 60 public void _parseDetails(ByteBuffer content) { 71 protected void getContent(ByteBuffer byteBuffer) { 72 byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand)); 73 IsoTypeWriter.writeUInt32(byteBuffer, minorVersion); 75 byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand));
|
SampleDescriptionBox.java | 23 import java.nio.ByteBuffer; 60 public void _parseDetails(ByteBuffer content) { 67 protected void getContent(ByteBuffer byteBuffer) { 68 writeVersionAndFlags(byteBuffer); 69 IsoTypeWriter.writeUInt32(byteBuffer, boxes.size()); 70 writeChildBoxes(byteBuffer);
|
/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/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...] |
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
CharsetEncoderTest.java | 18 import java.nio.ByteBuffer; 278 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); 280 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); 286 ByteBuffer out = ByteBuffer.allocate(5); 314 ByteBuffer out = ByteBuffer.allocate(5); 351 ByteBuffer.allocate(30), true); 358 ByteBuffer.allocate(30), false); 365 ByteBuffer.allocate(30), true) [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
CharsetEncoder.java | 21 import java.nio.ByteBuffer; 29 * output byte sequence is a {@link java.nio.ByteBuffer ByteBuffer}. 32 * new {@code ByteBuffer}, or {@link #encode(CharBuffer, ByteBuffer, boolean)} for more 36 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} with the {@code endOfInput} 39 * <p>The {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method will 46 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} for the last time with 48 * <li>Invoke {@link #flush(ByteBuffer)} to flush remaining output.</li> 69 * {@link #encodeLoop(CharBuffer, ByteBuffer) encodeLoop} method for basi [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/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) {
|