Home
last modified time | relevance | path

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

/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DSegmentedByteString.java61 int segmentCount = 0; in SegmentedByteString() local
67 segmentCount++; in SegmentedByteString()
71 this.segments = new byte[segmentCount][]; in SegmentedByteString()
72 this.directory = new int[segmentCount * 2]; in SegmentedByteString()
74 segmentCount = 0; in SegmentedByteString()
76 segments[segmentCount] = s.data; in SegmentedByteString()
78 directory[segmentCount] = offset; in SegmentedByteString()
79 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString()
81 segmentCount++; in SegmentedByteString()
147 for (int s = 0, segmentCount = segments.length; s < segmentCount; s++) { in toByteArray()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DSegmentedByteString.java60 int segmentCount = 0; in SegmentedByteString() local
66 segmentCount++; in SegmentedByteString()
70 this.segments = new byte[segmentCount][]; in SegmentedByteString()
71 this.directory = new int[segmentCount * 2]; in SegmentedByteString()
73 segmentCount = 0; in SegmentedByteString()
75 segments[segmentCount] = s.data; in SegmentedByteString()
77 directory[segmentCount] = offset; in SegmentedByteString()
78 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString()
80 segmentCount++; in SegmentedByteString()
146 for (int s = 0, segmentCount = segments.length; s < segmentCount; s++) { in toByteArray()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPacket.java35 private int segmentCount; field in OggPacket
79 segmentIndex += segmentCount; in populate()
86 int segmentIndex = currentSegmentIndex + segmentCount; in populate()
141 segmentCount = 0; in calculatePacketSize()
143 while (startSegmentIndex + segmentCount < pageHeader.pageSegmentCount) { in calculatePacketSize()
144 int segmentLength = pageHeader.laces[startSegmentIndex + segmentCount++]; in calculatePacketSize()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DSegmentBase.java151 final long segmentCount = getSegmentCount(periodDurationUs); in getSegmentNum() local
152 if (segmentCount == 0) { in getSegmentNum()
161 : segmentCount == DashSegmentIndex.INDEX_UNBOUNDED ? segmentNum in getSegmentNum()
162 : Math.min(segmentNum, firstSegmentNum + segmentCount - 1); in getSegmentNum()
166 long highIndex = firstSegmentNum + segmentCount - 1; in getSegmentNum()
188 int segmentCount = getSegmentCount(periodDurationUs); in getSegmentDurationUs() local
189 return segmentCount != DashSegmentIndex.INDEX_UNBOUNDED in getSegmentDurationUs()
190 && sequenceNumber == (getFirstSegmentNum() + segmentCount - 1) in getSegmentDurationUs()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/
DHlsMediaPlaylist.java306 int segmentCount = segments.size(); in isNewerThan() local
308 return segmentCount > otherSegmentCount in isNewerThan()
309 || (segmentCount == otherSegmentCount && hasEndTag && !other.hasEndTag); in isNewerThan()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/offline/
DDashDownloader.java152 int segmentCount = index.getSegmentCount(periodDurationUs); in addSegmentsForAdaptationSet() local
153 if (segmentCount == DashSegmentIndex.INDEX_UNBOUNDED) { in addSegmentsForAdaptationSet()
167 long lastSegmentNum = firstSegmentNum + segmentCount - 1; in addSegmentsForAdaptationSet()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDefaultDashChunkSource.java433 int segmentCount = representationHolder.getSegmentCount();
434 if (segmentCount != DashSegmentIndex.INDEX_UNBOUNDED && segmentCount != 0) {
435 long lastAvailableSegmentNum = representationHolder.getFirstSegmentNum() + segmentCount - 1;
527 int segmentCount = 1;
536 segmentCount++;
538 long endTimeUs = representationHolder.getSegmentEndTimeUs(firstSegmentNum + segmentCount - 1);
557 segmentCount,
DDashMediaSource.java1167 int segmentCount = index.getSegmentCount(durationUs); in createPeriodSeekInfo() local
1168 if (segmentCount == 0) { in createPeriodSeekInfo()
1176 if (segmentCount != DashSegmentIndex.INDEX_UNBOUNDED) { in createPeriodSeekInfo()
1177 long lastSegmentNum = firstSegmentNum + segmentCount - 1; in createPeriodSeekInfo()
/external/replicaisland/src/com/replica/replicaisland/
DCollisionSystem.java549 final int segmentCount = byteStream.read(); in loadCollisionTiles() local
551 if (mCollisionTiles[tileIndex] == null && segmentCount > 0) { in loadCollisionTiles()
552 mCollisionTiles[tileIndex] = new CollisionTile(segmentCount); in loadCollisionTiles()
555 for (int y = 0; y < segmentCount; y++) { in loadCollisionTiles()
/external/guava/guava/src/com/google/common/collect/
DMapMakerInternalMap.java172 int segmentCount = 1; in MapMakerInternalMap() local
173 while (segmentCount < concurrencyLevel) { in MapMakerInternalMap()
175 segmentCount <<= 1; in MapMakerInternalMap()
178 segmentMask = segmentCount - 1; in MapMakerInternalMap()
180 this.segments = newSegmentArray(segmentCount); in MapMakerInternalMap()
182 int segmentCapacity = initialCapacity / segmentCount; in MapMakerInternalMap()
183 if (segmentCapacity * segmentCount < initialCapacity) { in MapMakerInternalMap()
/external/guava/android/guava/src/com/google/common/collect/
DMapMakerInternalMap.java172 int segmentCount = 1; in MapMakerInternalMap() local
173 while (segmentCount < concurrencyLevel) { in MapMakerInternalMap()
175 segmentCount <<= 1; in MapMakerInternalMap()
178 segmentMask = segmentCount - 1; in MapMakerInternalMap()
180 this.segments = newSegmentArray(segmentCount); in MapMakerInternalMap()
182 int segmentCapacity = initialCapacity / segmentCount; in MapMakerInternalMap()
183 if (segmentCapacity * segmentCount < initialCapacity) { in MapMakerInternalMap()
/external/guava/android/guava/src/com/google/common/cache/
DLocalCache.java273 int segmentCount = 1; in LocalCache() local
274 while (segmentCount < concurrencyLevel && (!evictsBySize() || segmentCount * 20 <= maxWeight)) { in LocalCache()
276 segmentCount <<= 1; in LocalCache()
279 segmentMask = segmentCount - 1; in LocalCache()
281 this.segments = newSegmentArray(segmentCount); in LocalCache()
283 int segmentCapacity = initialCapacity / segmentCount; in LocalCache()
284 if (segmentCapacity * segmentCount < initialCapacity) { in LocalCache()
295 long maxSegmentWeight = maxWeight / segmentCount + 1; in LocalCache()
296 long remainder = maxWeight % segmentCount; in LocalCache()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java277 int segmentCount = 1; in LocalCache() local
278 while (segmentCount < concurrencyLevel && (!evictsBySize() || segmentCount * 20 <= maxWeight)) { in LocalCache()
280 segmentCount <<= 1; in LocalCache()
283 segmentMask = segmentCount - 1; in LocalCache()
285 this.segments = newSegmentArray(segmentCount); in LocalCache()
287 int segmentCapacity = initialCapacity / segmentCount; in LocalCache()
288 if (segmentCapacity * segmentCount < initialCapacity) { in LocalCache()
299 long maxSegmentWeight = maxWeight / segmentCount + 1; in LocalCache()
300 long remainder = maxWeight % segmentCount; in LocalCache()
/external/skia/src/core/
DSkPath.cpp288 int segmentCount = 0; in conservativelyContainsRect() local
296 SkASSERT(!segmentCount && !closeCount); in conservativelyContainsRect()
304 ++segmentCount; in conservativelyContainsRect()
311 ++segmentCount; in conservativelyContainsRect()
318 ++segmentCount; in conservativelyContainsRect()
351 if (segmentCount) { in conservativelyContainsRect()
/external/skqp/src/core/
DSkPath.cpp310 int segmentCount = 0; in conservativelyContainsRect() local
318 SkASSERT(!segmentCount && !closeCount); in conservativelyContainsRect()
325 ++segmentCount; in conservativelyContainsRect()
330 ++segmentCount; in conservativelyContainsRect()
335 ++segmentCount; in conservativelyContainsRect()
367 if (segmentCount) { in conservativelyContainsRect()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java105 private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) { in checkConcurrencyLevel() argument
108 assertThat(map.segments).hasLength(segmentCount); in checkConcurrencyLevel()
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java105 private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) { in checkConcurrencyLevel() argument
108 assertThat(map.segments).hasLength(segmentCount); in checkConcurrencyLevel()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java341 private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) { in checkConcurrencyLevel() argument
344 assertThat(map.segments).hasLength(segmentCount); in checkConcurrencyLevel()
/external/guava/android/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java344 private static void checkConcurrencyLevel(int concurrencyLevel, int segmentCount) { in checkConcurrencyLevel() argument
347 assertThat(map.segments).hasLength(segmentCount); in checkConcurrencyLevel()