Home
last modified time | relevance | path

Searched refs:segmentLength (Results 1 – 19 of 19) sorted by relevance

/external/openthread/src/lib/spinel/
Dspinel_buffer.cpp279 uint16_t segmentLength; in InFrameEndSegment() local
282 segmentLength = GetDistance(mWriteSegmentHead, mWriteSegmentTail, mWriteDirection); in InFrameEndSegment()
284 if (segmentLength >= kSegmentHeaderSize) in InFrameEndSegment()
287 segmentLength -= kSegmentHeaderSize; in InFrameEndSegment()
291 header |= (segmentLength & kSegmentHeaderLengthMask); in InFrameEndSegment()
436 uint16_t segmentLength; in InFrameOverwrite() local
444 segmentLength = GetDistance(mWriteSegmentHead, mWriteSegmentTail, mWriteDirection); in InFrameOverwrite()
446 VerifyOrExit(distance + aDataBufferLength <= segmentLength, error = OT_ERROR_INVALID_ARGS); in InFrameOverwrite()
466 uint16_t segmentLength; in InFrameGetDistance() local
472 segmentLength = GetDistance(mWriteSegmentHead, mWriteSegmentTail, mWriteDirection); in InFrameGetDistance()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DImageHeaderParser.java149 int segmentLength; in getExifSegment() local
172 segmentLength = streamReader.getUInt16() - 2; in getExifSegment()
175 if (segmentLength != streamReader.skip(segmentLength)) { in getExifSegment()
182 byte[] segmentData = new byte[segmentLength]; in getExifSegment()
184 if (segmentLength != streamReader.read(segmentData)) { in getExifSegment()
186 … Log.d(TAG, "Unable to read segment data for type=" + segmentType + " length=" + segmentLength); in getExifSegment()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/jpeg/
DJpegExtractor.java84 private int segmentLength; field in JpegExtractor
191 int segmentLength = scratch.readUnsignedShort() - 2; in advancePeekPositionToNextSegment() local
192 input.advancePeekPosition(segmentLength); in advancePeekPositionToNextSegment()
213 segmentLength = scratch.readUnsignedShort() - 2; in readSegmentLength()
219 ParsableByteArray payload = new ParsableByteArray(segmentLength); in readSegment()
220 input.readFully(payload.getData(), /* offset= */ 0, /* length= */ segmentLength); in readSegment() local
232 input.skipFully(segmentLength); in readSegment()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/jpeg/
DJpegExtractor.java87 private int segmentLength; field in JpegExtractor
194 int segmentLength = scratch.readUnsignedShort() - 2; in advancePeekPositionToNextSegment() local
195 input.advancePeekPosition(segmentLength); in advancePeekPositionToNextSegment()
216 segmentLength = scratch.readUnsignedShort() - 2; in readSegmentLength()
222 ParsableByteArray payload = new ParsableByteArray(segmentLength); in readSegment()
223 input.readFully(payload.getData(), /* offset= */ 0, /* length= */ segmentLength); in readSegment() local
235 input.skipFully(segmentLength); in readSegment()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimpleFormatterImpl.java304 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getTextWithNoArguments() local
305 if (segmentLength > 0) { in getTextWithNoArguments()
306 int limit = i + segmentLength; in getTextWithNoArguments()
323 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getLength() local
324 if (segmentLength > 0) { in getLength()
325 int limit = i + segmentLength; in getLength()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java302 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getTextWithNoArguments() local
303 if (segmentLength > 0) { in getTextWithNoArguments()
304 int limit = i + segmentLength; in getTextWithNoArguments()
321 int segmentLength = compiledPattern.charAt(i++) - ARG_NUM_LIMIT; in getLength() local
322 if (segmentLength > 0) { in getLength()
323 int limit = i + segmentLength; in getLength()
/external/okio/okio/src/jvmMain/kotlin/okio/
DGzipSink.kt131 val segmentLength = minOf(remaining, head.limit - head.pos).toInt() in updateCrc() constant
132 crc.update(head.data, head.pos, segmentLength) in updateCrc()
133 remaining -= segmentLength in updateCrc()
/external/okhttp/okio/okio/src/main/java/okio/
DGzipSink.java132 int segmentLength = (int) Math.min(byteCount, head.limit - head.pos); in updateCrc() local
133 crc.update(head.data, head.pos, segmentLength); in updateCrc()
134 byteCount -= segmentLength; in updateCrc()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DGzipSink.java134 int segmentLength = (int) Math.min(byteCount, head.limit - head.pos); in updateCrc() local
135 crc.update(head.data, head.pos, segmentLength); in updateCrc()
136 byteCount -= segmentLength; in updateCrc()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPacket.java144 int segmentLength = pageHeader.laces[startSegmentIndex + segmentCount++]; in calculatePacketSize() local
145 size += segmentLength; in calculatePacketSize()
146 if (segmentLength != 255) { in calculatePacketSize()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPacket.java144 int segmentLength = pageHeader.laces[startSegmentIndex + segmentCount++]; in calculatePacketSize() local
145 size += segmentLength; in calculatePacketSize()
146 if (segmentLength != 255) { in calculatePacketSize()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/offline/
DSegmentDownloader.java155 long segmentLength = dataSpec.length; in download() local
156 if (segmentLength == C.LENGTH_UNSET) { in download()
160 segmentLength = resourceLength - dataSpec.position; in download()
164 cache.getCachedBytes(cacheKey, dataSpec.position, segmentLength); in download()
166 if (segmentLength != C.LENGTH_UNSET) { in download()
167 if (segmentLength == segmentBytesDownloaded) { in download()
173 contentLength += segmentLength; in download()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/offline/
DSegmentDownloader.java155 long segmentLength = dataSpec.length; in download() local
156 if (segmentLength == C.LENGTH_UNSET) { in download()
160 segmentLength = resourceLength - dataSpec.position; in download()
164 cache.getCachedBytes(cacheKey, dataSpec.position, segmentLength); in download()
166 if (segmentLength != C.LENGTH_UNSET) { in download()
167 if (segmentLength == segmentBytesDownloaded) { in download()
173 contentLength += segmentLength; in download()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DCachedPathIteratorFactory.java393 float segmentLength = mSegmentsLength[mNextIndex]; in jumpToSegment() local
394 if (accLength + segmentLength >= length && mTypes[mNextIndex] != SEG_MOVETO) { in jumpToSegment()
401 (length - accLength) / segmentLength, in jumpToSegment()
417 accLength += segmentLength; in jumpToSegment()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DCachedPathIteratorFactory.java393 float segmentLength = mSegmentsLength[mNextIndex]; in jumpToSegment() local
394 if (accLength + segmentLength >= length && mTypes[mNextIndex] != SEG_MOVETO) { in jumpToSegment()
401 (length - accLength) / segmentLength, in jumpToSegment()
417 accLength += segmentLength; in jumpToSegment()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationIterator.java1013 int segmentLength = digits.length() - pos;
1014 if(segmentLength > 254) { segmentLength = 254; }
1015 appendNumericSegmentCEs(digits.subSequence(pos, pos + segmentLength));
1016 pos += segmentLength;
/external/cronet/third_party/icu/source/i18n/
Dcollationiterator.cpp737 int32_t segmentLength = digits.length() - pos; in appendNumericCEs() local
738 if(segmentLength > 254) { segmentLength = 254; } in appendNumericCEs()
739 appendNumericSegmentCEs(digits.data() + pos, segmentLength, errorCode); in appendNumericCEs()
740 pos += segmentLength; in appendNumericCEs()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationIterator.java1015 int segmentLength = digits.length() - pos;
1016 if(segmentLength > 254) { segmentLength = 254; }
1017 appendNumericSegmentCEs(digits.subSequence(pos, pos + segmentLength));
1018 pos += segmentLength;
/external/icu/icu4c/source/i18n/
Dcollationiterator.cpp737 int32_t segmentLength = digits.length() - pos; in appendNumericCEs() local
738 if(segmentLength > 254) { segmentLength = 254; } in appendNumericCEs()
739 appendNumericSegmentCEs(digits.data() + pos, segmentLength, errorCode); in appendNumericCEs()
740 pos += segmentLength; in appendNumericCEs()