Home
last modified time | relevance | path

Searched refs:segmentSize (Results 1 – 25 of 29) sorted by relevance

12

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DVbriSeeker.java72 int segmentSize; in create() local
75 segmentSize = frame.readUnsignedByte(); in create()
78 segmentSize = frame.readUnsignedShort(); in create()
81 segmentSize = frame.readUnsignedInt24(); in create()
84 segmentSize = frame.readUnsignedIntToInt(); in create()
89 position += segmentSize * scale; in create()
/external/okhttp/okio/okio/src/main/java/okio/
DSegmentedByteString.java190 int segmentSize = directory[s] - segmentOffset; in rangeEquals() local
191 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals()
207 int segmentSize = directory[s] - segmentOffset; in rangeEquals() local
208 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals()
242 int segmentSize = nextSegmentOffset - segmentOffset; in hashCode() local
243 for (int i = segmentPos, limit = segmentPos + segmentSize; i < limit; i++) { in hashCode()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DSegmentedByteString.java191 int segmentSize = directory[s] - segmentOffset; in rangeEquals() local
192 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals()
208 int segmentSize = directory[s] - segmentOffset; in rangeEquals() local
209 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset); in rangeEquals()
243 int segmentSize = nextSegmentOffset - segmentOffset; in hashCode() local
244 for (int i = segmentPos, limit = segmentPos + segmentSize; i < limit; i++) { in hashCode()
/external/okio/okio/src/jvmMain/kotlin/okio/
DAsyncTimeout.kt89 val segmentSize = s.limit - s.pos in sink() constant
90 toWrite += segmentSize.toLong() in sink()
/external/zstd/lib/compress/
Dhuf_compress.c660 size_t const segmentSize = (srcSize+3)/4; /* first 3 segments */ in HUF_compress4X_usingCTable_internal() local
672 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
679 ip += segmentSize; in HUF_compress4X_usingCTable_internal()
681 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
688 ip += segmentSize; in HUF_compress4X_usingCTable_internal()
690 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
697 ip += segmentSize; in HUF_compress4X_usingCTable_internal()
/external/zstd/lib/dictBuilder/
Dfastcover.c414 size_t segmentSize; in FASTCOVER_buildDictionary() local
431 segmentSize = MIN(segment.end - segment.begin + parameters.d - 1, tail); in FASTCOVER_buildDictionary()
432 if (segmentSize < parameters.d) { in FASTCOVER_buildDictionary()
439 tail -= segmentSize; in FASTCOVER_buildDictionary()
440 memcpy(dict + tail, ctx->samples + segment.begin, segmentSize); in FASTCOVER_buildDictionary()
Dcover.c695 size_t segmentSize; in COVER_buildDictionary() local
710 segmentSize = MIN(segment.end - segment.begin + parameters.d - 1, tail); in COVER_buildDictionary()
711 if (segmentSize < parameters.d) { in COVER_buildDictionary()
717 tail -= segmentSize; in COVER_buildDictionary()
718 memcpy(dict + tail, ctx->samples + segment.begin, segmentSize); in COVER_buildDictionary()
/external/okio/okio/src/commonMain/kotlin/okio/internal/
DSegmentedByteString.kt85 val segmentSize = directory[s] - segmentOffset in forEachSegment() constant
88 val byteCount = minOf(endIndex, segmentOffset + segmentSize) - pos in forEachSegment()
/external/gptfdisk/
Dgpt.cc2282 uint64_t start, firstBlock, lastBlock, segmentSize, selectedSize = 0, selectedSegment = 0; in FindFirstInLargest() local
2289 segmentSize = lastBlock - firstBlock + UINT32_C(1); in FindFirstInLargest()
2290 if (segmentSize > selectedSize) { in FindFirstInLargest()
2291 selectedSize = segmentSize; in FindFirstInLargest()
2351 uint64_t segmentSize; // size of segment in blocks in FindFreeBlocks() local
2360 segmentSize = lastBlock - firstBlock + UINT64_C(1); in FindFreeBlocks()
2361 if (segmentSize > *largestSegment) { in FindFreeBlocks()
2362 *largestSegment = segmentSize; in FindFreeBlocks()
2364 totalFound += segmentSize; in FindFreeBlocks()
Dbasicmbr.cc1094 uint64_t segmentSize; // size of segment in blocks in MakeBiggestPart() local
1104 segmentSize = lastBlock - firstBlock + UINT64_C(1); in MakeBiggestPart()
1105 if (segmentSize > selectedSize) { in MakeBiggestPart()
1106 selectedSize = segmentSize; in MakeBiggestPart()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheTesting.java311 static int segmentSize(Segment<?, ?> segment) {
431 assertEquals("Segments must be empty by now", 0, segmentSize(segment));
471 assertEquals(0, segmentSize(segment));
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java311 static int segmentSize(Segment<?, ?> segment) {
431 assertEquals("Segments must be empty by now", 0, segmentSize(segment));
471 assertEquals(0, segmentSize(segment));
/external/zstd/lib/decompress/
Dhuf_decompress.c378 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X1_usingDTable_internal_body() local
379 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X1_usingDTable_internal_body()
380 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X1_usingDTable_internal_body()
381 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X1_usingDTable_internal_body()
830 size_t const segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable_internal_body() local
831 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable_internal_body()
832 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X2_usingDTable_internal_body()
833 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X2_usingDTable_internal_body()
/external/zstd/lib/legacy/
Dzstd_v02.c1751 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable() local
1752 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable()
1753 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X2_usingDTable()
1754 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X2_usingDTable()
2113 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X4_usingDTable() local
2114 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable()
2115 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X4_usingDTable()
2116 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X4_usingDTable()
2470 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X6_usingDTable() local
2471 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X6_usingDTable()
[all …]
Dzstd_v03.c1748 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable() local
1749 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable()
1750 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X2_usingDTable()
1751 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X2_usingDTable()
2110 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X4_usingDTable() local
2111 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable()
2112 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X4_usingDTable()
2113 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X4_usingDTable()
Dzstd_v04.c1899 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X2_usingDTable() local
1900 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable()
1901 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X2_usingDTable()
1902 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X2_usingDTable()
2257 const size_t segmentSize = (dstSize+3) / 4; in HUF_decompress4X4_usingDTable() local
2258 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable()
2259 BYTE* const opStart3 = opStart2 + segmentSize; in HUF_decompress4X4_usingDTable()
2260 BYTE* const opStart4 = opStart3 + segmentSize; in HUF_decompress4X4_usingDTable()
Dzstd_v05.c2029 const size_t segmentSize = (dstSize+3) / 4; in HUFv05_decompress4X2_usingDTable() local
2030 BYTE* const opStart2 = ostart + segmentSize; in HUFv05_decompress4X2_usingDTable()
2031 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv05_decompress4X2_usingDTable()
2032 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv05_decompress4X2_usingDTable()
2411 const size_t segmentSize = (dstSize+3) / 4; in HUFv05_decompress4X4_usingDTable() local
2412 BYTE* const opStart2 = ostart + segmentSize; in HUFv05_decompress4X4_usingDTable()
2413 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv05_decompress4X4_usingDTable()
2414 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv05_decompress4X4_usingDTable()
Dzstd_v06.c2163 const size_t segmentSize = (dstSize+3) / 4; in HUFv06_decompress4X2_usingDTable() local
2164 BYTE* const opStart2 = ostart + segmentSize; in HUFv06_decompress4X2_usingDTable()
2165 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv06_decompress4X2_usingDTable()
2166 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv06_decompress4X2_usingDTable()
2538 const size_t segmentSize = (dstSize+3) / 4; in HUFv06_decompress4X4_usingDTable() local
2539 BYTE* const opStart2 = ostart + segmentSize; in HUFv06_decompress4X4_usingDTable()
2540 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv06_decompress4X4_usingDTable()
2541 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv06_decompress4X4_usingDTable()
Dzstd_v07.c1951 const size_t segmentSize = (dstSize+3) / 4; in HUFv07_decompress4X2_usingDTable_internal() local
1952 BYTE* const opStart2 = ostart + segmentSize; in HUFv07_decompress4X2_usingDTable_internal()
1953 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv07_decompress4X2_usingDTable_internal()
1954 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv07_decompress4X2_usingDTable_internal()
2361 size_t const segmentSize = (dstSize+3) / 4; in HUFv07_decompress4X4_usingDTable_internal() local
2362 BYTE* const opStart2 = ostart + segmentSize; in HUFv07_decompress4X4_usingDTable_internal()
2363 BYTE* const opStart3 = opStart2 + segmentSize; in HUFv07_decompress4X4_usingDTable_internal()
2364 BYTE* const opStart4 = opStart3 + segmentSize; in HUFv07_decompress4X4_usingDTable_internal()
/external/zstd/tests/
Dfuzzer.c3542 size_t const segmentSize = FUZ_randomLength(&lseed, maxSampleLog); in fuzzerTests() local
3543 size_t const segmentStart = FUZ_rand(&lseed) % (srcBufferSize - segmentSize); in fuzzerTests()
3545 …if (cBufferSize-cSize < ZSTD_compressBound(segmentSize)) break; /* avoid invalid dstBufferTooSma… in fuzzerTests()
3546 if (totalTestSize+segmentSize > maxTestSize) break; in fuzzerTests()
3548 … ZSTD_compressContinue(ctx, cBuffer+cSize, cBufferSize-cSize, srcBuffer+segmentStart, segmentSize); in fuzzerTests()
3552 XXH64_update(&xxhState, srcBuffer+segmentStart, segmentSize); in fuzzerTests()
3553 memcpy(mirrorBuffer + totalTestSize, srcBuffer+segmentStart, segmentSize); in fuzzerTests()
3554 totalTestSize += segmentSize; in fuzzerTests()
/external/kotlinx.coroutines/kotlinx-coroutines-core/
Dbuild.gradle204 systemProperty 'kotlinx.coroutines.semaphore.segmentSize', '2'
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java186 int segmentSize = 1; in MapMakerInternalMap() local
187 while (segmentSize < segmentCapacity) { in MapMakerInternalMap()
188 segmentSize <<= 1; in MapMakerInternalMap()
192 this.segments[i] = createSegment(segmentSize, MapMaker.UNSET_INT); in MapMakerInternalMap()
/external/guava/android/guava/src/com/google/common/collect/
DMapMakerInternalMap.java186 int segmentSize = 1; in MapMakerInternalMap() local
187 while (segmentSize < segmentCapacity) { in MapMakerInternalMap()
188 segmentSize <<= 1; in MapMakerInternalMap()
192 this.segments[i] = createSegment(segmentSize, MapMaker.UNSET_INT); in MapMakerInternalMap()
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java146 int concurrencyLevel, int initialCapacity, int segmentSize) { in checkInitialCapacity() argument
151 assertEquals(segmentSize, map.segments[i].table.length()); in checkInitialCapacity()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java146 int concurrencyLevel, int initialCapacity, int segmentSize) { in checkInitialCapacity() argument
151 assertEquals(segmentSize, map.segments[i].table.length()); in checkInitialCapacity()

12