Home
last modified time | relevance | path

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

123456

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DUConverterDataReader.java434 byteBuffer = bytes; in UConverterDataReader()
435 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, IS_ACCEPTABLE); in UConverterDataReader()
444 sd.structSize = byteBuffer.getInt(); in readStaticData()
446 byteBuffer.get(name); in readStaticData()
448 sd.codepage = byteBuffer.getInt(); in readStaticData()
449 sd.platform = byteBuffer.get(); in readStaticData()
450 sd.conversionType = byteBuffer.get(); in readStaticData()
451 sd.minBytesPerChar = byteBuffer.get(); in readStaticData()
452 sd.maxBytesPerChar = byteBuffer.get(); in readStaticData()
453 byteBuffer.get(sd.subChar); in readStaticData()
[all …]
DUConverterAliasDataReader.java137 byteBuffer = bytes; in UConverterAliasDataReader()
138 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, this); in UConverterAliasDataReader()
150 toc[i] = byteBuffer.getInt() & UNSIGNED_INT_MASK; in readToc()
161 convList[i] = byteBuffer.getChar(); in read()
164 tagList[i] = byteBuffer.getChar(); in read()
167 aliasList[i] = byteBuffer.getChar(); in read()
170 untaggedConvArray[i] = byteBuffer.getChar(); in read()
173 taggedAliasArray[i] = byteBuffer.getChar(); in read()
176 taggedAliasLists[i] = byteBuffer.getChar(); in read()
179 optionTable[i] = byteBuffer.getChar(); in read()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeCompressor.java360 byte [] byteBuffer, in compress() argument
389 if(byteBuffer.length < 4 || (byteBufferLimit - byteBufferStart) < 4) in compress()
425 byteBuffer[bytePos++] = (byte) SQUOTE0; in compress()
428 byteBuffer[bytePos++] = (byte) loByte; in compress()
435 byteBuffer[bytePos++] = (byte) in compress()
452 byteBuffer[bytePos++] = (byte) SQUOTEU; in compress()
453 byteBuffer[bytePos++] = (byte) (curUC >>> 8); in compress()
454 byteBuffer[bytePos++] = (byte) (curUC & 0xFF); in compress()
463 byteBuffer[bytePos++] = (byte) SCHANGEU; in compress()
470 byteBuffer[bytePos++] = (byte) UQUOTEU; in compress()
[all …]
DUnicodeDecompressor.java165 public int decompress(byte [] byteBuffer, in decompress() argument
201 System.arraycopy(byteBuffer, byteBufferStart, in decompress()
226 aByte = byteBuffer[bytePos++] & 0xFF; in decompress()
275 System.arraycopy(byteBuffer, bytePos, in decompress()
327 System.arraycopy(byteBuffer, bytePos, in decompress()
335 aByte = byteBuffer[bytePos++]; in decompress()
337 (aByte << 8 | (byteBuffer[bytePos++] & 0xFF)); in decompress()
353 System.arraycopy(byteBuffer, bytePos, in decompress()
363 int dByte = byteBuffer[bytePos++] & 0xFF; in decompress()
384 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 …]
DHintMediaHeaderBox.java73 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
74 writeVersionAndFlags(byteBuffer); in getContent()
75 IsoTypeWriter.writeUInt16(byteBuffer, maxPduSize); in getContent()
76 IsoTypeWriter.writeUInt16(byteBuffer, avgPduSize); in getContent()
77 IsoTypeWriter.writeUInt32(byteBuffer, maxBitrate); in getContent()
78 IsoTypeWriter.writeUInt32(byteBuffer, avgBitrate); in getContent()
79 IsoTypeWriter.writeUInt32(byteBuffer, 0); in getContent()
DCompositionShiftLeastGreatestAtom.java52 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
53 writeVersionAndFlags(byteBuffer); in getContent()
54 byteBuffer.putInt(compositionOffsetToDisplayOffsetShift); in getContent()
55 byteBuffer.putInt(leastDisplayOffset); in getContent()
56 byteBuffer.putInt(greatestDisplayOffset); in getContent()
57 byteBuffer.putInt(displayStartTime); in getContent()
58 byteBuffer.putInt(displayEndTime); in getContent()
DHandlerBox.java133 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
134 writeVersionAndFlags(byteBuffer); in getContent()
135 IsoTypeWriter.writeUInt32(byteBuffer, shouldBeZeroButAppleWritesHereSomeValue); in getContent()
136 byteBuffer.put(IsoFile.fourCCtoBytes(handlerType)); in getContent()
137 IsoTypeWriter.writeUInt32(byteBuffer, a); in getContent()
138 IsoTypeWriter.writeUInt32(byteBuffer, b); in getContent()
139 IsoTypeWriter.writeUInt32(byteBuffer, c); in getContent()
141 byteBuffer.put(Utf8.convert(name)); in getContent()
144 byteBuffer.put((byte) 0); in getContent()
DSubSampleInformationBox.java92 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
93 writeVersionAndFlags(byteBuffer); in getContent()
94 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); in getContent()
96 IsoTypeWriter.writeUInt32(byteBuffer, sampleEntry.getSampleDelta()); in getContent()
97 IsoTypeWriter.writeUInt16(byteBuffer, sampleEntry.getSubsampleCount()); in getContent()
101 IsoTypeWriter.writeUInt32(byteBuffer, subsampleEntry.getSubsampleSize()); in getContent()
103 IsoTypeWriter.writeUInt16(byteBuffer, l2i(subsampleEntry.getSubsampleSize())); in getContent()
105 IsoTypeWriter.writeUInt8(byteBuffer, subsampleEntry.getSubsamplePriority()); in getContent()
106 IsoTypeWriter.writeUInt8(byteBuffer, subsampleEntry.getDiscardable()); in getContent()
107 IsoTypeWriter.writeUInt32(byteBuffer, subsampleEntry.getReserved()); in getContent()
DSampleAuxiliaryInformationSizesBox.java56 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
57 writeVersionAndFlags(byteBuffer); in getContent()
59 byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoType)); in getContent()
60 byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoTypeParameter)); in getContent()
63 IsoTypeWriter.writeUInt8(byteBuffer, defaultSampleInfoSize); in getContent()
66 IsoTypeWriter.writeUInt32(byteBuffer, sampleInfoSizes.size()); in getContent()
68 IsoTypeWriter.writeUInt8(byteBuffer, sampleInfoSize); in getContent()
71 IsoTypeWriter.writeUInt32(byteBuffer, sampleCount); in getContent()
/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 …]
DTextSampleEntry.java92 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
93 _writeReservedAndDataReferenceIndex(byteBuffer); in getContent()
94 IsoTypeWriter.writeUInt32(byteBuffer, displayFlags); in getContent()
95 IsoTypeWriter.writeUInt8(byteBuffer, horizontalJustification); in getContent()
96 IsoTypeWriter.writeUInt8(byteBuffer, verticalJustification); in getContent()
97 IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[0]); in getContent()
98 IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[1]); in getContent()
99 IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[2]); in getContent()
100 IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[3]); in getContent()
101 boxRecord.getContent(byteBuffer); in getContent()
[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/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/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.java90 byte[] byteBuffer = new byte [byteBufferSize]; in myMultipassTest()
122 len, unicharsRead, byteBuffer, 0, byteBufferSize); in myMultipassTest()
125 System.arraycopy(byteBuffer, 0, compressed, in myMultipassTest()
380 private void printBytes(byte[] byteBuffer, int len) { in printBytes() argument
386 if(len > byteBuffer.length) { in printBytes()
388 byteBufferLimit = byteBuffer.length; in printBytes()
396 aByte = ((int)byteBuffer[curByteIndex++]) & 0xFF; in printBytes()
405 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
408 … log(Integer.toHexString(((int) byteBuffer[curByteIndex++]) & 0xFF) + " "); in printBytes()
423 … 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()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/threegpp26244/
DSegmentIndexBox.java72 protected void getContent(ByteBuffer byteBuffer) { in getContent() argument
73 writeVersionAndFlags(byteBuffer); in getContent()
74 IsoTypeWriter.writeUInt32(byteBuffer, referenceId); in getContent()
75 IsoTypeWriter.writeUInt32(byteBuffer, timeScale); in getContent()
77 IsoTypeWriter.writeUInt32(byteBuffer, earliestPresentationTime); in getContent()
78 IsoTypeWriter.writeUInt32(byteBuffer, firstOffset); in getContent()
80 IsoTypeWriter.writeUInt64(byteBuffer, earliestPresentationTime); in getContent()
81 IsoTypeWriter.writeUInt64(byteBuffer, firstOffset); in getContent()
83 IsoTypeWriter.writeUInt16(byteBuffer, reserved); in getContent()
84 IsoTypeWriter.writeUInt16(byteBuffer, entries.size()); in getContent()
[all …]

123456