/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | UConverterDataReader.java | 436 byteBuffer = bytes; in UConverterDataReader() 437 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, IS_ACCEPTABLE); in UConverterDataReader() 446 sd.structSize = byteBuffer.getInt(); in readStaticData() 448 byteBuffer.get(name); in readStaticData() 450 sd.codepage = byteBuffer.getInt(); in readStaticData() 451 sd.platform = byteBuffer.get(); in readStaticData() 452 sd.conversionType = byteBuffer.get(); in readStaticData() 453 sd.minBytesPerChar = byteBuffer.get(); in readStaticData() 454 sd.maxBytesPerChar = byteBuffer.get(); in readStaticData() 455 byteBuffer.get(sd.subChar); in readStaticData() [all …]
|
/external/flatbuffers/swift/Sources/FlatBuffers/ |
D | Root.swift | 34 byteBuffer: inout ByteBuffer, 38 byteBuffer.skipPrefix() 40 byteBuffer: &byteBuffer, 56 byteBuffer: inout ByteBuffer, 60 let prefix = byteBuffer.skipPrefix() 61 if prefix != byteBuffer.size { 65 byteBuffer: &byteBuffer, 77 public func getPrefixedSizeRoot<T: FlatBufferObject>(byteBuffer: inout ByteBuffer) in getPrefixedSizeRoot<T: FlatBufferObject>() 80 byteBuffer.skipPrefix() in getPrefixedSizeRoot<T: FlatBufferObject>() 81 return getRoot(byteBuffer: &byteBuffer) in getPrefixedSizeRoot<T: FlatBufferObject>() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UnicodeCompressor.java | 362 byte [] byteBuffer, in compress() argument 391 if(byteBuffer.length < 4 || (byteBufferLimit - byteBufferStart) < 4) in compress() 427 byteBuffer[bytePos++] = (byte) SQUOTE0; in compress() 430 byteBuffer[bytePos++] = (byte) loByte; in compress() 437 byteBuffer[bytePos++] = (byte) in compress() 454 byteBuffer[bytePos++] = (byte) SQUOTEU; in compress() 455 byteBuffer[bytePos++] = (byte) (curUC >>> 8); in compress() 456 byteBuffer[bytePos++] = (byte) (curUC & 0xFF); in compress() 465 byteBuffer[bytePos++] = (byte) SCHANGEU; in compress() 472 byteBuffer[bytePos++] = (byte) UQUOTEU; in compress() [all …]
|
D | UnicodeDecompressor.java | 167 public int decompress(byte [] byteBuffer, in decompress() argument 203 System.arraycopy(byteBuffer, byteBufferStart, in decompress() 228 aByte = byteBuffer[bytePos++] & 0xFF; in decompress() 277 System.arraycopy(byteBuffer, bytePos, in decompress() 329 System.arraycopy(byteBuffer, bytePos, in decompress() 337 aByte = byteBuffer[bytePos++]; in decompress() 339 (aByte << 8 | (byteBuffer[bytePos++] & 0xFF)); in decompress() 355 System.arraycopy(byteBuffer, bytePos, in decompress() 365 int dByte = byteBuffer[bytePos++] & 0xFF; in decompress() 386 System.arraycopy(byteBuffer, bytePos, in decompress() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | UnicodeCompressor.java | 359 byte [] byteBuffer, in compress() argument 388 if(byteBuffer.length < 4 || (byteBufferLimit - byteBufferStart) < 4) in compress() 424 byteBuffer[bytePos++] = (byte) SQUOTE0; in compress() 427 byteBuffer[bytePos++] = (byte) loByte; in compress() 434 byteBuffer[bytePos++] = (byte) in compress() 451 byteBuffer[bytePos++] = (byte) SQUOTEU; in compress() 452 byteBuffer[bytePos++] = (byte) (curUC >>> 8); in compress() 453 byteBuffer[bytePos++] = (byte) (curUC & 0xFF); in compress() 462 byteBuffer[bytePos++] = (byte) SCHANGEU; in compress() 469 byteBuffer[bytePos++] = (byte) UQUOTEU; in compress() [all …]
|
D | UnicodeDecompressor.java | 164 public int decompress(byte [] byteBuffer, in decompress() argument 200 System.arraycopy(byteBuffer, byteBufferStart, in decompress() 225 aByte = byteBuffer[bytePos++] & 0xFF; in decompress() 274 System.arraycopy(byteBuffer, bytePos, in decompress() 326 System.arraycopy(byteBuffer, bytePos, in decompress() 334 aByte = byteBuffer[bytePos++]; in decompress() 336 (aByte << 8 | (byteBuffer[bytePos++] & 0xFF)); in decompress() 352 System.arraycopy(byteBuffer, bytePos, in decompress() 362 int dByte = byteBuffer[bytePos++] & 0xFF; in decompress() 383 System.arraycopy(byteBuffer, bytePos, in decompress() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | MovieHeaderBox.java | 163 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 164 writeVersionAndFlags(byteBuffer); in getContent() 166 IsoTypeWriter.writeUInt64(byteBuffer, creationTime); in getContent() 167 IsoTypeWriter.writeUInt64(byteBuffer, modificationTime); in getContent() 168 IsoTypeWriter.writeUInt32(byteBuffer, timescale); in getContent() 169 IsoTypeWriter.writeUInt64(byteBuffer, duration); in getContent() 171 IsoTypeWriter.writeUInt32(byteBuffer, creationTime); in getContent() 172 IsoTypeWriter.writeUInt32(byteBuffer, modificationTime); in getContent() 173 IsoTypeWriter.writeUInt32(byteBuffer, timescale); in getContent() 174 IsoTypeWriter.writeUInt32(byteBuffer, duration); in getContent() [all …]
|
D | TrackHeaderBox.java | 137 public void getContent(ByteBuffer byteBuffer) { in getContent() argument 138 writeVersionAndFlags(byteBuffer); in getContent() 140 IsoTypeWriter.writeUInt64(byteBuffer, creationTime); in getContent() 141 IsoTypeWriter.writeUInt64(byteBuffer, modificationTime); in getContent() 142 IsoTypeWriter.writeUInt32(byteBuffer, trackId); in getContent() 143 IsoTypeWriter.writeUInt32(byteBuffer, 0); in getContent() 144 IsoTypeWriter.writeUInt64(byteBuffer, duration); in getContent() 146 IsoTypeWriter.writeUInt32(byteBuffer, creationTime); in getContent() 147 IsoTypeWriter.writeUInt32(byteBuffer, modificationTime); in getContent() 148 IsoTypeWriter.writeUInt32(byteBuffer, trackId); in getContent() [all …]
|
D | MediaHeaderBox.java | 131 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 132 writeVersionAndFlags(byteBuffer); in getContent() 134 IsoTypeWriter.writeUInt64(byteBuffer, creationTime); in getContent() 135 IsoTypeWriter.writeUInt64(byteBuffer, modificationTime); in getContent() 136 IsoTypeWriter.writeUInt32(byteBuffer, timescale); in getContent() 137 IsoTypeWriter.writeUInt64(byteBuffer, duration); in getContent() 139 IsoTypeWriter.writeUInt32(byteBuffer, creationTime); in getContent() 140 IsoTypeWriter.writeUInt32(byteBuffer, modificationTime); in getContent() 141 IsoTypeWriter.writeUInt32(byteBuffer, timescale); in getContent() 142 IsoTypeWriter.writeUInt32(byteBuffer, duration); in getContent() [all …]
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/input/ |
D | BufferedFileChannelInputStream.java | 43 private final ByteBuffer byteBuffer; field in BufferedFileChannelInputStream 88 byteBuffer = ByteBuffer.allocateDirect(bufferSizeInBytes); in BufferedFileChannelInputStream() 89 byteBuffer.flip(); in BufferedFileChannelInputStream() 94 return byteBuffer.remaining(); in available() 131 clean(byteBuffer); in close() 140 return byteBuffer.get() & 0xFF; in read() 151 len = Math.min(len, byteBuffer.remaining()); in read() 152 byteBuffer.get(b, offset, len); in read() 163 if (!byteBuffer.hasRemaining()) { in refill() 164 byteBuffer.clear(); in refill() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
D | VisualSampleEntry.java | 182 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 183 _writeReservedAndDataReferenceIndex(byteBuffer); in getContent() 184 IsoTypeWriter.writeUInt16(byteBuffer, 0); in getContent() 185 IsoTypeWriter.writeUInt16(byteBuffer, 0); in getContent() 186 IsoTypeWriter.writeUInt32(byteBuffer, predefined[0]); in getContent() 187 IsoTypeWriter.writeUInt32(byteBuffer, predefined[1]); in getContent() 188 IsoTypeWriter.writeUInt32(byteBuffer, predefined[2]); in getContent() 190 IsoTypeWriter.writeUInt16(byteBuffer, getWidth()); in getContent() 191 IsoTypeWriter.writeUInt16(byteBuffer, getHeight()); in getContent() 193 IsoTypeWriter.writeFixedPont1616(byteBuffer, getHorizresolution()); in getContent() [all …]
|
D | AudioSampleEntry.java | 250 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 251 _writeReservedAndDataReferenceIndex(byteBuffer); in getContent() 252 IsoTypeWriter.writeUInt16(byteBuffer, soundVersion); in getContent() 253 IsoTypeWriter.writeUInt16(byteBuffer, reserved1); in getContent() 254 IsoTypeWriter.writeUInt32(byteBuffer, reserved2); in getContent() 255 IsoTypeWriter.writeUInt16(byteBuffer, channelCount); in getContent() 256 IsoTypeWriter.writeUInt16(byteBuffer, sampleSize); in getContent() 257 IsoTypeWriter.writeUInt16(byteBuffer, compressionId); in getContent() 258 IsoTypeWriter.writeUInt16(byteBuffer, packetSize); in getContent() 261 IsoTypeWriter.writeUInt32(byteBuffer, getSampleRate()); in getContent() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/cronet/src/test/java/com/google/android/exoplayer2/ext/cronet/ |
D | ByteArrayUploadDataProviderTest.java | 40 private ByteBuffer byteBuffer; field in ByteArrayUploadDataProviderTest 46 byteBuffer = ByteBuffer.allocate(TEST_DATA.length); in setUp() 57 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readFullBuffer() 58 assertThat(byteBuffer.array()).isEqualTo(TEST_DATA); in readFullBuffer() 65 byteBuffer = ByteBuffer.allocate(TEST_DATA.length / 2); in readPartialBuffer() 67 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readPartialBuffer() 68 assertThat(byteBuffer.array()).isEqualTo(firstHalf); in readPartialBuffer() 71 byteBuffer.rewind(); in readPartialBuffer() 72 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readPartialBuffer() 73 assertThat(byteBuffer.array()).isEqualTo(secondHalf); in readPartialBuffer() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/cronet/src/test/java/com/google/android/exoplayer2/ext/cronet/ |
D | ByteArrayUploadDataProviderTest.java | 40 private ByteBuffer byteBuffer; field in ByteArrayUploadDataProviderTest 46 byteBuffer = ByteBuffer.allocate(TEST_DATA.length); in setUp() 57 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readFullBuffer() 58 assertThat(byteBuffer.array()).isEqualTo(TEST_DATA); in readFullBuffer() 65 byteBuffer = ByteBuffer.allocate(TEST_DATA.length / 2); in readPartialBuffer() 67 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readPartialBuffer() 68 assertThat(byteBuffer.array()).isEqualTo(firstHalf); in readPartialBuffer() 71 byteBuffer.rewind(); in readPartialBuffer() 72 byteArrayUploadDataProvider.read(mockUploadDataSink, byteBuffer); in readPartialBuffer() 73 assertThat(byteBuffer.array()).isEqualTo(secondHalf); in readPartialBuffer() [all …]
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | Relay.java | 54 private ByteBuffer byteBuffer; field in Relay 95 byteBuffer = ByteBuffer.allocate(BUFFER_SIZE); in run() 108 byteArray = byteBuffer.array(); in run() 114 byteBuffer.limit(0); in run() 122 bytesToRead = byteBuffer.capacity() - byteBuffer.limit(); in run() 123 offset = byteBuffer.arrayOffset() + byteBuffer.limit(); in run() 127 byteBuffer.limit(byteBuffer.limit() + bytesRead); in run() 130 result = decoder.decode(byteBuffer, charBuffer, false); in run() 133 if (result.isUnderflow() && byteBuffer.limit() == byteBuffer.capacity()) { in run() 134 byteBuffer.compact(); in run() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/apple/ |
D | QuicktimeTextSampleEntry.java | 212 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 213 _writeReservedAndDataReferenceIndex(byteBuffer); in getContent() 214 byteBuffer.putInt(displayFlags); in getContent() 215 byteBuffer.putInt(textJustification); in getContent() 216 IsoTypeWriter.writeUInt16(byteBuffer, backgroundR); in getContent() 217 IsoTypeWriter.writeUInt16(byteBuffer, backgroundG); in getContent() 218 IsoTypeWriter.writeUInt16(byteBuffer, backgroundB); in getContent() 219 IsoTypeWriter.writeUInt64(byteBuffer, defaultTextBox); in getContent() 220 IsoTypeWriter.writeUInt64(byteBuffer, reserved1); in getContent() 221 byteBuffer.putShort(fontNumber); in getContent() [all …]
|
D | GenericMediaHeaderTextAtom.java | 34 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 35 byteBuffer.putInt(unknown_1); in getContent() 36 byteBuffer.putInt(unknown_2); in getContent() 37 byteBuffer.putInt(unknown_3); in getContent() 38 byteBuffer.putInt(unknown_4); in getContent() 39 byteBuffer.putInt(unknown_5); in getContent() 40 byteBuffer.putInt(unknown_6); in getContent() 41 byteBuffer.putInt(unknown_7); in getContent() 42 byteBuffer.putInt(unknown_8); in getContent() 43 byteBuffer.putInt(unknown_9); in getContent()
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | NioTest.java | 107 ByteBuffer byteBuffer = ByteBuffer.allocate(1024); in testWritableByteChannel() local 108 byteBuffer.put("abcdefghijklmnopqrstuvwxyz".getBytes(Charsets.UTF_8)); in testWritableByteChannel() 109 byteBuffer.flip(); in testWritableByteChannel() 110 byteBuffer.position(3); in testWritableByteChannel() 111 byteBuffer.limit(23); in testWritableByteChannel() 113 int byteCount = channel.write(byteBuffer); in testWritableByteChannel() 115 assertEquals(23, byteBuffer.position()); in testWritableByteChannel() 116 assertEquals(23, byteBuffer.limit()); in testWritableByteChannel() 129 ByteBuffer byteBuffer = ByteBuffer.allocate(1024); in testReadableByteChannel() local 130 byteBuffer.position(3); in testReadableByteChannel() [all …]
|
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
D | Encoder.java | 39 public ByteBuffer byteBuffer; field in Encoder.EncoderState 60 byteBuffer = ByteBuffer.allocateDirect( in EncoderState() 62 byteBuffer.order(ByteOrder.LITTLE_ENDIAN); in EncoderState() 78 if (byteBuffer.capacity() >= dataEnd) { in growIfNeeded() 81 int targetSize = byteBuffer.capacity() * 2; in growIfNeeded() 87 byteBuffer.position(0); in growIfNeeded() 88 byteBuffer.limit(byteBuffer.capacity()); in growIfNeeded() 89 newBuffer.put(byteBuffer); in growIfNeeded() 90 byteBuffer = newBuffer; in growIfNeeded() 113 mEncoderState.byteBuffer.position(0); in getMessage() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/threegpp26244/ |
D | LocationInformationBox.java | 112 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 113 writeVersionAndFlags(byteBuffer); in getContent() 114 IsoTypeWriter.writeIso639(byteBuffer, language); in getContent() 115 byteBuffer.put(Utf8.convert(name)); in getContent() 116 byteBuffer.put((byte) 0); in getContent() 117 IsoTypeWriter.writeUInt8(byteBuffer, role); in getContent() 118 IsoTypeWriter.writeFixedPont1616(byteBuffer, longitude); in getContent() 119 IsoTypeWriter.writeFixedPont1616(byteBuffer, latitude); in getContent() 120 IsoTypeWriter.writeFixedPont1616(byteBuffer, altitude); in getContent() 121 byteBuffer.put(Utf8.convert(astronomicalBody)); in getContent() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
D | AppleLosslessSpecificBox.java | 140 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument 141 writeVersionAndFlags(byteBuffer); in getContent() 142 IsoTypeWriter.writeUInt32(byteBuffer, maxSamplePerFrame); in getContent() 143 IsoTypeWriter.writeUInt8(byteBuffer, unknown1); in getContent() 144 IsoTypeWriter.writeUInt8(byteBuffer, sampleSize); in getContent() 145 IsoTypeWriter.writeUInt8(byteBuffer, historyMult); in getContent() 146 IsoTypeWriter.writeUInt8(byteBuffer, initialHistory); in getContent() 147 IsoTypeWriter.writeUInt8(byteBuffer, kModifier); in getContent() 148 IsoTypeWriter.writeUInt8(byteBuffer, channels); in getContent() 149 IsoTypeWriter.writeUInt16(byteBuffer, unknown2); in getContent() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/ |
D | PlayReadyHeader.java | 48 public void parse(ByteBuffer byteBuffer) { in parse() argument 58 length = IsoTypeReader.readUInt32BE(byteBuffer); in parse() 59 int recordCount = IsoTypeReader.readUInt16BE(byteBuffer); in parse() 61 records = PlayReadyRecord.createFor(byteBuffer, recordCount); in parse() 72 ByteBuffer byteBuffer = ByteBuffer.allocate(size); in getData() local 74 IsoTypeWriter.writeUInt32BE(byteBuffer, size); in getData() 75 IsoTypeWriter.writeUInt16BE(byteBuffer, records.size()); in getData() 77 IsoTypeWriter.writeUInt16BE(byteBuffer, record.type); in getData() 78 IsoTypeWriter.writeUInt16BE(byteBuffer, record.getValue().limit()); in getData() 80 byteBuffer.put(tmp4debug); in getData() [all …]
|
/external/brotli/csharp/org/brotli/dec/ |
D | IntReader.cs | 11 private byte[] byteBuffer; field in Org.Brotli.Dec.IntReader 15 internal static void Init(Org.Brotli.Dec.IntReader ir, byte[] byteBuffer, int[] intBuffer) in Init() argument 17 ir.byteBuffer = byteBuffer; in Init() 31 …byteBuffer[i * 4] & unchecked((int)(0xFF)))) | ((ir.byteBuffer[(i * 4) + 1] & unchecked((int)(0xFF… in Convert()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
D | CencSampleEncryptionInformationGroupEntry.java | 42 public void parse(ByteBuffer byteBuffer) { in parse() argument 43 isEncrypted = IsoTypeReader.readUInt24(byteBuffer); in parse() 44 ivSize = (byte) IsoTypeReader.readUInt8(byteBuffer); in parse() 46 byteBuffer.get(kid); in parse() 52 ByteBuffer byteBuffer = ByteBuffer.allocate(20); in get() local 53 IsoTypeWriter.writeUInt24(byteBuffer, isEncrypted); in get() 54 IsoTypeWriter.writeUInt8(byteBuffer, ivSize); in get() 55 byteBuffer.put(kid); in get() 56 byteBuffer.rewind(); in get() 57 return byteBuffer; in get()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
D | ExhaustiveTest.java | 96 byte[] byteBuffer = new byte [byteBufferSize]; in myMultipassTest() 128 len, unicharsRead, byteBuffer, 0, byteBufferSize); in myMultipassTest() 131 System.arraycopy(byteBuffer, 0, compressed, in myMultipassTest() 386 private void printBytes(byte[] byteBuffer, int len) { in printBytes() argument 392 if(len > byteBuffer.length) { in printBytes() 394 byteBufferLimit = byteBuffer.length; in printBytes() 402 aByte = (byteBuffer[curByteIndex++]) & 0xFF; in printBytes() 411 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes() 414 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes() 429 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes() [all …]
|