Home
last modified time | relevance | path

Searched refs:byteBuffer (Results 1 – 25 of 219) sorted by relevance

123456789

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DUConverterDataReader.java436 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/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeCompressor.java359 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 …]
DUnicodeDecompressor.java164 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/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeCompressor.java362 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 …]
DUnicodeDecompressor.java167 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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DMovieHeaderBox.java163 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 …]
DTrackHeaderBox.java137 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 …]
DMediaHeaderBox.java131 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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DVisualSampleEntry.java182 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 …]
DAudioSampleEntry.java250 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/extensions/cronet/src/test/java/com/google/android/exoplayer2/ext/cronet/
DByteArrayUploadDataProviderTest.java40 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/
DRelay.java54 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/okio/okio/src/jvmTest/java/okio/
DNioTest.java107 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/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/apple/
DQuicktimeTextSampleEntry.java212 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 …]
DGenericMediaHeaderTextAtom.java34 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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/threegpp26244/
DLocationInformationBox.java112 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/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DEncoder.java39 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/apple/
DAppleLosslessSpecificBox.java140 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/
DPlayReadyHeader.java48 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/
DIntReader.cs11 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()
31byteBuffer[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/
DCencSampleEncryptionInformationGroupEntry.java42 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/
DExhaustiveTest.java96 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 …]
/external/ukey2/src/main/cpp/src/securegcm/
Dd2d_connection_context_v1.cc178 ByteBuffer byteBuffer = ByteBuffer(&kProtocolVersion, static_cast<size_t>(1)); in SaveSession() local
184 byteBuffer.Append(static_cast<size_t>(1), encode_sequence_number_bytes[i]); in SaveSession()
191 byteBuffer.Append(static_cast<size_t>(1), decode_sequence_number_bytes[i]); in SaveSession()
195 byteBuffer = ByteBuffer::Concat(byteBuffer, encode_key_.data()); in SaveSession()
198 byteBuffer = ByteBuffer::Concat(byteBuffer, decode_key_.data()); in SaveSession()
200 return std::unique_ptr<std::string>(new std::string(byteBuffer.String())); in SaveSession()
206 ByteBuffer byteBuffer = ByteBuffer(savedSessionInfo); in FromSavedSession() local
208 if (byteBuffer.size() != kSavedSessionLength) { in FromSavedSession()
213 byteBuffer.SubArray(kEncodeSequenceStart, kEncodeSequenceEnd)->Vector()); in FromSavedSession()
215 byteBuffer.SubArray(kDecodeSequenceStart, kDecodeSequenceEnd)->Vector()); in FromSavedSession()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DExhaustiveTest.java99 byte[] byteBuffer = new byte [byteBufferSize]; in myMultipassTest()
131 len, unicharsRead, byteBuffer, 0, byteBufferSize); in myMultipassTest()
134 System.arraycopy(byteBuffer, 0, compressed, in myMultipassTest()
389 private void printBytes(byte[] byteBuffer, int len) { in printBytes() argument
395 if(len > byteBuffer.length) { in printBytes()
397 byteBufferLimit = byteBuffer.length; in printBytes()
405 aByte = (byteBuffer[curByteIndex++]) & 0xFF; in printBytes()
414 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
417 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
432 log(Integer.toHexString((byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
DByteBufferByteChannel.java27 ByteBuffer byteBuffer; field in ByteBufferByteChannel
29 public ByteBufferByteChannel(ByteBuffer byteBuffer) { in ByteBufferByteChannel() argument
30 this.byteBuffer = byteBuffer; in ByteBufferByteChannel()
36 if (byteBuffer.remaining() >= r) { in read()
37 byteBuffer.get(b, dst.position(), r); in read()
53 byteBuffer.put(src); in write()

123456789