Home
last modified time | relevance | path

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

1234567

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DUConverterDataReader.java437 byteBuffer = bytes; in UConverterDataReader()
438 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, IS_ACCEPTABLE); in UConverterDataReader()
447 sd.structSize = byteBuffer.getInt(); in readStaticData()
449 byteBuffer.get(name); in readStaticData()
451 sd.codepage = byteBuffer.getInt(); in readStaticData()
452 sd.platform = byteBuffer.get(); in readStaticData()
453 sd.conversionType = byteBuffer.get(); in readStaticData()
454 sd.minBytesPerChar = byteBuffer.get(); in readStaticData()
455 sd.maxBytesPerChar = byteBuffer.get(); in readStaticData()
456 byteBuffer.get(sd.subChar); in readStaticData()
[all …]
/external/r8/src/main/java/com/android/tools/r8/dex/
DDexOutputBuffer.java21 private ByteBuffer byteBuffer; field in DexOutputBuffer
24 byteBuffer = allocate(DEFAULT_BUFFER_SIZE); in DexOutputBuffer()
28 if (byteBuffer.remaining() < bytes) { in ensureSpaceFor()
29 int newSize = byteBuffer.capacity() + Math.max(byteBuffer.capacity(), bytes * 2); in ensureSpaceFor()
31 System.arraycopy(byteBuffer.array(), 0, newBuffer.array(), 0, byteBuffer.position()); in ensureSpaceFor()
32 newBuffer.position(byteBuffer.position()); in ensureSpaceFor()
33 byteBuffer = newBuffer; in ensureSpaceFor()
65 assert byteBuffer.position() % 2 == 0; in putInstructions()
66 ShortBuffer shortBuffer = byteBuffer.asShortBuffer(); in putInstructions()
70 byteBuffer.position(byteBuffer.position() + shortBuffer.position() * Short.BYTES); in putInstructions()
[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/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/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()
DBaseMediaInfoAtom.java29 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
30 writeVersionAndFlags(byteBuffer); in getContent()
31 byteBuffer.putShort(graphicsMode); in getContent()
32 IsoTypeWriter.writeUInt16(byteBuffer, opColorR); in getContent()
33 IsoTypeWriter.writeUInt16(byteBuffer,opColorG ); in getContent()
34 IsoTypeWriter.writeUInt16(byteBuffer,opColorB ); in getContent()
35 byteBuffer.putShort(balance); in getContent()
36 byteBuffer.putShort(reserved); 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/libmojo/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/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioTrack.java44 private ByteBuffer byteBuffer; field in WebRtcAudioTrack
81 final int sizeInBytes = byteBuffer.capacity(); in run()
91 assertTrue(sizeInBytes <= byteBuffer.remaining()); in run()
94 bytesWritten = writeOnLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
96 bytesWritten = writePreLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
107 byteBuffer.rewind(); in run()
124 private int writeOnLollipop(AudioTrack audioTrack, ByteBuffer byteBuffer, int sizeInBytes) { in writeOnLollipop() argument
125 return audioTrack.write(byteBuffer, sizeInBytes, AudioTrack.WRITE_BLOCKING); in writeOnLollipop()
128 private int writePreLollipop(AudioTrack audioTrack, ByteBuffer byteBuffer, int sizeInBytes) { in writePreLollipop() argument
129 return audioTrack.write(byteBuffer.array(), byteBuffer.arrayOffset(), sizeInBytes); in writePreLollipop()
[all …]
/external/brotli/java/org/brotli/dec/
DIntReader.java14 private byte[] byteBuffer; field in IntReader
17 static void init(IntReader ir, byte[] byteBuffer, int[] intBuffer) { in init() argument
18 ir.byteBuffer = byteBuffer; in init()
30 ir.intBuffer[i] = ((ir.byteBuffer[i * 4] & 0xFF)) in convert()
31 | ((ir.byteBuffer[(i * 4) + 1] & 0xFF) << 8) in convert()
32 | ((ir.byteBuffer[(i * 4) + 2] & 0xFF) << 16) in convert()
33 | ((ir.byteBuffer[(i * 4) + 3] & 0xFF) << 24); 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.java93 byte[] byteBuffer = new byte [byteBufferSize]; in myMultipassTest()
125 len, unicharsRead, byteBuffer, 0, byteBufferSize); in myMultipassTest()
128 System.arraycopy(byteBuffer, 0, compressed, in myMultipassTest()
383 private void printBytes(byte[] byteBuffer, int len) { in printBytes() argument
389 if(len > byteBuffer.length) { in printBytes()
391 byteBufferLimit = byteBuffer.length; in printBytes()
399 aByte = ((int)byteBuffer[curByteIndex++]) & 0xFF; in printBytes()
408 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
411 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
426 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DExhaustiveTest.java94 byte[] byteBuffer = new byte [byteBufferSize]; in myMultipassTest()
126 len, unicharsRead, byteBuffer, 0, byteBufferSize); in myMultipassTest()
129 System.arraycopy(byteBuffer, 0, compressed, in myMultipassTest()
384 private void printBytes(byte[] byteBuffer, int len) { in printBytes() argument
390 if(len > byteBuffer.length) { in printBytes()
392 byteBufferLimit = byteBuffer.length; in printBytes()
400 aByte = ((int)byteBuffer[curByteIndex++]) & 0xFF; in printBytes()
409 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
412 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
427 … log(Integer.toHexString(((int) 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()

1234567