/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 20 import java.nio.ByteBuffer; 94 ByteBuffer bbN = null; in testWrap01() 95 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap01() 101 ByteBuffer roBb = bb.asReadOnlyBuffer(); in testWrap01() 122 ByteBuffer[] bbNA = null; in testWrap02() 123 ByteBuffer[] bbA = { null, ByteBuffer.allocate(10), null }; in testWrap02() 125 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap02() 126 ByteBuffer bbN = null; in testWrap02() 137 ByteBuffer roBb = bb.asReadOnlyBuffer(); in testWrap02() 138 bbA[0] = ByteBuffer.allocate(100); in testWrap02() [all …]
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | Internal.java | 35 import java.nio.ByteBuffer; 128 public static ByteBuffer byteBufferDefaultValue(String bytes) { in byteBufferDefaultValue() 129 return ByteBuffer.wrap(byteArrayDefaultValue(bytes)); in byteBufferDefaultValue() 138 public static ByteBuffer copyByteBuffer(ByteBuffer source) { in copyByteBuffer() 141 ByteBuffer temp = source.duplicate(); in copyByteBuffer() 145 ByteBuffer result = ByteBuffer.allocate(temp.capacity()); in copyByteBuffer() 311 public static boolean equalsByteBuffer(ByteBuffer a, ByteBuffer b) { in equalsByteBuffer() 325 List<ByteBuffer> a, List<ByteBuffer> b) { in equalsByteBuffer() 341 public static int hashCodeByteBuffer(List<ByteBuffer> list) { in hashCodeByteBuffer() 343 for (ByteBuffer bytes : list) { in hashCodeByteBuffer() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
D | IsoTypeReader.java | 19 import java.nio.ByteBuffer; 24 public static long readUInt32BE(ByteBuffer bb) { in readUInt32BE() 34 public static long readUInt32(ByteBuffer bb) { in readUInt32() 42 public static int readUInt24(ByteBuffer bb) { in readUInt24() 50 public static int readUInt16(ByteBuffer bb) { in readUInt16() 57 public static int readUInt16BE(ByteBuffer bb) { in readUInt16BE() 64 public static int readUInt8(ByteBuffer bb) { in readUInt8() 80 public static String readString(ByteBuffer byteBuffer) { in readString() 90 public static String readString(ByteBuffer byteBuffer, int length) { in readString() 97 public static long readUInt64(ByteBuffer byteBuffer) { in readUInt64() [all …]
|
D | IsoTypeWriter.java | 18 import java.nio.ByteBuffer; 22 public static void writeUInt64(ByteBuffer bb, long u) { in writeUInt64() 26 public static void writeUInt32(ByteBuffer bb, long u) { in writeUInt32() 31 public static void writeUInt32BE(ByteBuffer bb, long u) { in writeUInt32BE() 39 public static void writeUInt24(ByteBuffer bb, int i) { in writeUInt24() 47 public static void writeUInt16(ByteBuffer bb, int i) { in writeUInt16() 53 public static void writeUInt16BE(ByteBuffer bb, int i) { in writeUInt16BE() 59 public static void writeUInt8(ByteBuffer bb, int i) { in writeUInt8() 65 public static void writeFixedPont1616(ByteBuffer bb, double v) { in writeFixedPont1616() 73 public static void writeFixedPont88(ByteBuffer bb, double v) { in writeFixedPont88() [all …]
|
D | ChannelHelper.java | 20 import java.nio.ByteBuffer; 30 …public static ByteBuffer readFully(final ReadableByteChannel channel, long size) throws IOExceptio… in readFully() 33 …ByteBuffer bb = ((FileChannel) channel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) channel)… in readFully() 37 ByteBuffer buf = ByteBuffer.allocate(l2i(size)); in readFully() 48 public static void readFully(final ReadableByteChannel channel, final ByteBuffer buf) in readFully() 53 …public static int readFully(final ReadableByteChannel channel, final ByteBuffer buf, final int len… in readFully() 69 public static void writeFully(final WritableByteChannel channel, final ByteBuffer buf) in writeFully()
|
D | AbstractBoxParser.java | 23 import java.nio.ByteBuffer; 50 ByteBuffer header = ChannelHelper.readFully(byteChannel, 8); in parseBox() 65 ByteBuffer bb = ByteBuffer.allocate(8); in parseBox() 81 ByteBuffer bb = ByteBuffer.allocate(16); in parseBox() 98 header = ByteBuffer.allocate(16); in parseBox() 103 header = ByteBuffer.allocate(24); in parseBox() 108 header = ByteBuffer.allocate(32); in parseBox()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/ |
D | PlayReadyHeader.java | 12 import java.nio.ByteBuffer; 48 public void parse(ByteBuffer byteBuffer) { in parse() 65 public ByteBuffer getData() { in getData() 72 ByteBuffer byteBuffer = ByteBuffer.allocate(size); in getData() 79 ByteBuffer tmp4debug = record.getValue(); in getData() 113 public static List<PlayReadyRecord> createFor(ByteBuffer byteBuffer, int recordCount) { in createFor() 133 record.parse((ByteBuffer) byteBuffer.slice().limit(length)); in createFor() 141 public abstract void parse(ByteBuffer bytes); in parse() 154 public abstract ByteBuffer getValue(); in getValue() 164 public void parse(ByteBuffer bytes) { in parse() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUBinary.java | 16 import java.nio.ByteBuffer; 51 static boolean validate(ByteBuffer bytes) { in validate() 74 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName() 90 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData() 93 ByteBuffer data = bytes.duplicate(); in getData() 102 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder() 117 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch() 142 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset() 150 private static int getDataOffset(ByteBuffer bytes, int index) { 164 static boolean addBaseName(ByteBuffer bytes, int index, [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
D | 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()); in checkStillOk() 138 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse() 148 cache.put(0l, new SoftReference<ByteBuffer>(content)); in parse() 152 public synchronized ByteBuffer getContent(long offset, int length) { in getContent() 156 ByteBuffer cacheEntry = cache.get(chacheEntryOffset).get(); in getContent() 160 ByteBuffer cachedSample = cacheEntry.slice(); in getContent() [all …]
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
D | 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 ) in send() 126 ByteBuffer buffer; in send() 131 buffer = ByteBuffer.allocate(data.remaining()); in send() 147 protected ByteBuffer peekPending() in peekPending() 156 protected ByteBuffer removePending() in removePending() 166 public void send( ByteBuffer data ) in send()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
D | ByteBufferHelper.java | 18 import java.nio.ByteBuffer; 27 public static List<ByteBuffer> mergeAdjacentBuffers(List<ByteBuffer> samples) { in mergeAdjacentBuffers() 28 ArrayList<ByteBuffer> nuSamples = new ArrayList<ByteBuffer>(samples.size()); in mergeAdjacentBuffers() 29 for (ByteBuffer buffer : samples) { in mergeAdjacentBuffers() 33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers() 34 …ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffe… in mergeAdjacentBuffers() 41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
|
D | DefaultMp4Builder.java | 48 import java.nio.ByteBuffer; 75 HashMap<Track, List<ByteBuffer>> track2Sample = new HashMap<Track, List<ByteBuffer>>(); 90 List<ByteBuffer> samples = track.getSamples(); in build() 135 protected List<ByteBuffer> putSamples(Track track, List<ByteBuffer> samples) { in putSamples() 377 List<ByteBuffer> samples = new ArrayList<ByteBuffer>(); 390 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse() 412 ByteBuffer s = DefaultMp4Builder.this.track2Sample.get(track).get(j); in InterleaveChunkMdat() 414 samples.add((ByteBuffer) s.rewind()); in InterleaveChunkMdat() 453 ByteBuffer bb = ByteBuffer.allocate(16); in getBox() 469 List<ByteBuffer> nuSamples = unifyAdjacentBuffers(samples); in getBox() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
D | UnknownEntry.java | 21 import java.nio.ByteBuffer; 27 private ByteBuffer content; 32 public ByteBuffer getContent() { in getContent() 36 public void setContent(ByteBuffer content) { in setContent() 37 this.content = (ByteBuffer) content.duplicate().rewind(); in setContent() 41 public void parse(ByteBuffer byteBuffer) { in parse() 42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind(); in parse() 46 public ByteBuffer get() { in get() 52 ByteBuffer bb = content.duplicate(); in toString()
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | SSLEngineImplTest.java | 20 import java.nio.ByteBuffer; 379 engine.wrap(ByteBuffer.allocate(0), ByteBuffer.allocate( in testSetGetUseClientMode() 454 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseOutbound() 455 ByteBuffer.allocate(20000)); in testCloseOutbound() 476 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseInbound() 477 ByteBuffer.allocate(20000)); in testCloseInbound() 505 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testCloseInbound2() 506 ByteBuffer app_data_buffer = ByteBuffer.allocate(applicationBufferSize); in testCloseInbound2() 538 print(result = server.wrap(ByteBuffer.allocate(0), buffer)); in testCloseInbound2() 598 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testErrorProcessing() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | ItemDataBox.java | 5 import java.nio.ByteBuffer; 11 ByteBuffer data = ByteBuffer.allocate(0); 19 public ByteBuffer getData() { in getData() 23 public void setData(ByteBuffer data) { in setData() 34 public void _parseDetails(ByteBuffer content) { in _parseDetails() 40 protected void getContent(ByteBuffer byteBuffer) { in getContent()
|
D | UnknownBox.java | 22 import java.nio.ByteBuffer; 29 ByteBuffer data; 41 public void _parseDetails(ByteBuffer content) { in _parseDetails() 47 protected void getContent(ByteBuffer byteBuffer) { in getContent() 52 public ByteBuffer getData() { in getData() 56 public void setData(ByteBuffer data) { in setData()
|
/external/google-breakpad/src/common/ |
D | byte_cursor_unittest.cc | 43 using google_breakpad::ByteBuffer; 48 ByteBuffer buffer(data, 0); in TEST() 54 ByteBuffer buffer(data, sizeof(data)); in TEST() 60 ByteBuffer buffer(data, 0); in TEST() 67 ByteBuffer buffer(data, 0); in TEST() 74 ByteBuffer buffer(data, 0); in TEST() 81 ByteBuffer buffer(data, sizeof(data)); in TEST() 88 ByteBuffer buffer(data, sizeof(data)); in TEST() 96 ByteBuffer buffer(data, sizeof(data)); in TEST() 109 ByteBuffer buffer(data, sizeof(data)); in TEST() [all …]
|
/external/apache-harmony/crypto/src/test/impl/java.injected/org/apache/harmony/crypto/internal/ |
D | NullCipherSpiTest.java | 24 import java.nio.ByteBuffer; 111 ByteBuffer inbuf = ByteBuffer.wrap(b, 0, b.length); in testEngineUpdateByteBufferByteBuffer() 112 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineUpdateByteBufferByteBuffer() 136 inbuf = ByteBuffer.wrap(b, 0, b.length); in testEngineUpdateByteBufferByteBuffer() 137 outbuf = ByteBuffer.allocate(5); in testEngineUpdateByteBufferByteBuffer() 156 ByteBuffer inbuf = ByteBuffer.wrap(b, 0, b.length); in testEngineDoFinalByteBufferByteBuffer() 157 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineDoFinalByteBufferByteBuffer() 181 inbuf = ByteBuffer.wrap(b, 0, b.length); in testEngineDoFinalByteBufferByteBuffer() 182 outbuf = ByteBuffer.allocate(5); in testEngineDoFinalByteBufferByteBuffer()
|
/external/jmonkeyengine/engine/src/core/com/jme3/texture/ |
D | Image.java | 39 import java.nio.ByteBuffer; 316 protected ArrayList<ByteBuffer> data; 344 clone.data = data != null ? new ArrayList<ByteBuffer>(data) : null; in clone() 355 data = new ArrayList<ByteBuffer>(1); in Image() 377 public Image(Format format, int width, int height, int depth, ArrayList<ByteBuffer> data, in Image() 409 public Image(Format format, int width, int height, ByteBuffer data, in Image() 422 this.data = new ArrayList<ByteBuffer>(1); in Image() 441 public Image(Format format, int width, int height, int depth, ArrayList<ByteBuffer> data) { in Image() 458 public Image(Format format, int width, int height, ByteBuffer data) { in Image() 495 public void setData(ArrayList<ByteBuffer> data) { in setData() [all …]
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/base/ |
D | MessageProtocol.java | 38 import java.nio.ByteBuffer; 58 private ByteBuffer current; 67 public static ByteBuffer messageToBuffer( Message message, ByteBuffer target ) in messageToBuffer() 70 ByteBuffer buffer = target == null ? ByteBuffer.allocate( 32767 + 2 ) : target; in messageToBuffer() 106 public int addBuffer( ByteBuffer buffer ) in addBuffer() 142 current = ByteBuffer.allocate(size); in addBuffer() 178 protected void createMessage( ByteBuffer buffer ) in createMessage()
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/rmi/ |
D | RmiSerializer.java | 39 import java.nio.ByteBuffer; 56 private void writeString(ByteBuffer buffer, String string) throws IOException{ in writeString() 70 private String readString(ByteBuffer buffer){ in readString() 78 private void writeType(ByteBuffer buffer, Class<?> clazz) throws IOException{ in writeType() 91 private Class<?> readType(ByteBuffer buffer) throws IOException{ in readType() 106 private void writeMethod(ByteBuffer buffer, Method method) throws IOException{ in writeMethod() 118 private MethodDef readMethod(ByteBuffer buffer) throws IOException{ in readMethod() 135 private void writeObjectDef(ByteBuffer buffer, ObjectDef def) throws IOException{ in writeObjectDef() 145 private ObjectDef readObjectDef(ByteBuffer buffer) throws IOException{ in readObjectDef() 160 … private void writeObjectDefs(ByteBuffer buffer, RemoteObjectDefMessage defMsg) throws IOException{ in writeObjectDefs() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
D | AbstractBox.java | 30 import java.nio.ByteBuffer; 56 private ByteBuffer content; 57 private ByteBuffer deadBytes = null; 85 protected abstract void getContent(ByteBuffer byteBuffer); in getContent() 92 protected abstract void _parseDetails(ByteBuffer content); in _parseDetails() 103 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse() 122 ByteBuffer bb = ByteBuffer.allocate(l2i(getSize())); 147 ByteBuffer content = this.content; in parseDetails() 164 protected void setDeadBytes(ByteBuffer newDeadBytes) { in setDeadBytes() 224 private boolean verify(ByteBuffer content) { in verify() [all …]
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
D | CipherSpiTest.java | 31 import java.nio.ByteBuffer; 131 ByteBuffer bbNull = null; in testCipherSpi05() 132 ByteBuffer bb1 = ByteBuffer.allocate(len); in testCipherSpi05() 145 ByteBuffer bb2 = ByteBuffer.allocate(bb.length); in testCipherSpi05() 185 ByteBuffer bb1 = ByteBuffer.wrap(bbuf); in testCipherSpi06() 186 ByteBuffer bbNull = null; in testCipherSpi06() 197 ByteBuffer bb2 = ByteBuffer.allocate(len); in testCipherSpi06() 318 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() 323 protected int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal()
|
/external/google-breakpad/src/common/mac/ |
D | macho_reader.h | 145 ByteBuffer buffer_; 161 ByteBuffer section_list; // This segment's section list. 162 ByteBuffer contents; // This segment's contents. 196 ByteBuffer contents; 339 const ByteBuffer &contents) { in UnknownCommand() 351 virtual bool SymtabCommand(const ByteBuffer &entries, in SymtabCommand() 352 const ByteBuffer &names) { in SymtabCommand() 373 bool Read(const ByteBuffer &buffer, in Read() 431 ByteBuffer buffer_; 447 ByteBuffer load_commands_;
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/ |
D | ReplaceSampleTrack.java | 23 import java.nio.ByteBuffer; 35 private ByteBuffer sampleContent; 36 private List<ByteBuffer> samples; 38 public ReplaceSampleTrack(Track origTrack, long sampleNumber, ByteBuffer content) { in ReplaceSampleTrack() 46 public List<ByteBuffer> getSamples() { in getSamples() 88 private class ReplaceASingleEntryList extends AbstractList<ByteBuffer> { 90 public ByteBuffer get(int index) { in get()
|