/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 24 import com.google.common.collect.MapMakerInternalMap.Segment; 40 MapMakerInternalMap<K, V, ? extends InternalEntry<K, V, ?>, ? extends Segment<K, V, ?, ?>> 112 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity() 213 // Segment core tests 218 Segment<Object, Object, ?, ?> segment = map.segments[0]; in testNewEntry() local 223 InternalEntry<Object, Object, ?> entryOne = segment.newEntryForTesting(keyOne, hashOne, null); in testNewEntry() 225 segment.newWeakValueReferenceForTesting(entryOne, valueOne); in testNewEntry() 227 segment.setWeakValueReferenceForTesting(entryOne, valueRefOne); in testNewEntry() 232 assertSame(valueRefOne, segment.getWeakValueReferenceForTesting(entryOne)); in testNewEntry() 239 segment.newEntryForTesting(keyTwo, hashTwo, entryOne); in testNewEntry() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 24 import com.google.common.collect.MapMakerInternalMap.Segment; 40 MapMakerInternalMap<K, V, ? extends InternalEntry<K, V, ?>, ? extends Segment<K, V, ?, ?>> 112 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity() 213 // Segment core tests 218 Segment<Object, Object, ?, ?> segment = map.segments[0]; in testNewEntry() local 223 InternalEntry<Object, Object, ?> entryOne = segment.newEntryForTesting(keyOne, hashOne, null); in testNewEntry() 225 segment.newWeakValueReferenceForTesting(entryOne, valueOne); in testNewEntry() 227 segment.setWeakValueReferenceForTesting(entryOne, valueRefOne); in testNewEntry() 232 assertSame(valueRefOne, segment.getWeakValueReferenceForTesting(entryOne)); in testNewEntry() 239 segment.newEntryForTesting(keyTwo, hashTwo, entryOne); in testNewEntry() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/ |
D | StringSegmentTest.java | 23 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testOffset() local 24 assertEquals(0, segment.getOffset()); in testOffset() 25 segment.adjustOffsetByCodePoint(); in testOffset() 26 assertEquals(2, segment.getOffset()); in testOffset() 27 segment.adjustOffset(1); in testOffset() 28 assertEquals(3, segment.getOffset()); in testOffset() 29 segment.adjustOffset(2); in testOffset() 30 assertEquals(5, segment.getOffset()); in testOffset() 31 segment.setOffset(4); in testOffset() 32 assertEquals(4, segment.getOffset()); in testOffset() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/ |
D | StringSegmentTest.java | 20 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testOffset() local 21 assertEquals(0, segment.getOffset()); in testOffset() 22 segment.adjustOffsetByCodePoint(); in testOffset() 23 assertEquals(2, segment.getOffset()); in testOffset() 24 segment.adjustOffset(1); in testOffset() 25 assertEquals(3, segment.getOffset()); in testOffset() 26 segment.adjustOffset(2); in testOffset() 27 assertEquals(5, segment.getOffset()); in testOffset() 28 segment.setOffset(4); in testOffset() 29 assertEquals(4, segment.getOffset()); in testOffset() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | string_segment_test.cpp | 40 StringSegment segment(sampleString, false); in testOffset() local 41 assertEquals("Initial Offset", 0, segment.getOffset()); in testOffset() 42 segment.adjustOffset(3); in testOffset() 43 assertEquals("Adjust A", 3, segment.getOffset()); in testOffset() 44 segment.adjustOffset(2); in testOffset() 45 assertEquals("Adjust B", 5, segment.getOffset()); in testOffset() 46 segment.setOffset(4); in testOffset() 47 assertEquals("Set Offset", 4, segment.getOffset()); in testOffset() 53 StringSegment segment(sampleString, false); in testLength() local 54 assertEquals("Initial length", 11, segment.length()); in testLength() [all …]
|
/external/image_io/src/jpeg/ |
D | jpeg_info_builder.cc | 39 const JpegSegment& segment) { in Process() argument 42 JpegMarker marker = segment.GetMarker(); in Process() 49 DataRange(segment.GetBegin(), segment.GetBegin() + JpegMarker::kLength); in Process() 53 segment.GetBegin() + JpegMarker::kLength); in Process() 70 if (image_count_ > 0 && IsJfifSegment(segment)) { in Process() 71 const auto& data_range = segment.GetDataRange(); in Process() 73 MaybeCaptureSegmentBytes(kJfif, segment, segment_info.GetMutableBytes()); in Process() 78 // segment in the primary (first) image of the file, but note their presence in Process() 80 if (image_count_ > 0 && IsMpfSegment(segment)) { in Process() 82 const auto& data_range = segment.GetDataRange(); in Process() [all …]
|
/external/sonivox/jet_tools/JetCreator/ |
D | JetCreatorhlp.dat | 3 play = Plays the segment with associated event attributes. To trigger the event, click the event in… 4 midi file = Displays the MIDI file associated with the segment. This is pulled in from the segment … 5 …antize = Displays the quantization associated with the segment. This is pulled in from the segment… 8 …isplays the track mute assignments associated with the segment. This is pulled in from the segment… 18 repeat = Displays the repeat count of the segment. This is pulled in from the segment attributes. 21 transpose = Displays the transpose value of the segment. This is pulled in from the segment attribu… 23 segment = Displays the name of the segment. This is pulled in from the segment attributes. 25 segment name = Identifies the name of the segment. This is pulled in from the segment attributes. 28 ending m/b/t = Sets the ending measure, beat, and tick for the segment. 29 dls file = Displays the DLS file associated with the segment. This is pulled in from the segment at… [all …]
|
D | JetFile.py | 68 SEGMENT_SECTION = 'segment' 170 #BTH; Seems to fix chase controller bug when multiple clips within segment 307 # check for segment section 317 # get the segment parameters 428 for segment in self.segments: 429 logging.debug('Writing segment %d' % seg_num) 432 jet_segfile = JetSegmentFile(segment.filename, 'rb') 436 jet_segfile.AddJetEvents(segment.jetevents) 439 …jet_segfile.ExtractEvents(segment.start, segment.end, segment.length, segment.quantize, self.confi… 450 if segment.output is not None: [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 29 import com.google.common.cache.LocalCache.Segment; 101 * Forces the segment containing the given {@code key} to expand (see {@link Segment#expand()}. 108 Segment<K, V> segment = map.segmentFor(hash); in forceExpandSegment() local 109 segment.expand(); in forceExpandSegment() 135 for (Segment<?, ?> segment : map.segments) { in drainRecencyQueues() 136 drainRecencyQueue(segment); in drainRecencyQueues() 141 static void drainRecencyQueue(Segment<?, ?> segment) { in drainRecencyQueue() argument 142 segment.lock(); in drainRecencyQueue() 144 segment.cleanUp(); in drainRecencyQueue() 146 segment.unlock(); in drainRecencyQueue() [all …]
|
D | LocalCacheTest.java | 41 import com.google.common.cache.LocalCache.Segment; 351 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity() 566 Segment<Object, Object> segment = map.segments[0]; in testRecordReadOnCompute() local 574 ReferenceEntry<Object, Object> entry = segment.getEntry(key, hash); in testRecordReadOnCompute() 579 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute() 581 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute() 593 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute() 596 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute() 597 checkAndDrainRecencyQueue(map, segment, reads.subList(undrainedIndex, reads.size())); in testRecordReadOnCompute() 600 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 29 import com.google.common.cache.LocalCache.Segment; 101 * Forces the segment containing the given {@code key} to expand (see {@link Segment#expand()}. 108 Segment<K, V> segment = map.segmentFor(hash); in forceExpandSegment() local 109 segment.expand(); in forceExpandSegment() 135 for (Segment<?, ?> segment : map.segments) { in drainRecencyQueues() 136 drainRecencyQueue(segment); in drainRecencyQueues() 141 static void drainRecencyQueue(Segment<?, ?> segment) { in drainRecencyQueue() argument 142 segment.lock(); in drainRecencyQueue() 144 segment.cleanUp(); in drainRecencyQueue() 146 segment.unlock(); in drainRecencyQueue() [all …]
|
D | LocalCacheTest.java | 41 import com.google.common.cache.LocalCache.Segment; 348 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity() 563 Segment<Object, Object> segment = map.segments[0]; in testRecordReadOnCompute() local 571 ReferenceEntry<Object, Object> entry = segment.getEntry(key, hash); in testRecordReadOnCompute() 576 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute() 578 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute() 590 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute() 593 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute() 594 checkAndDrainRecencyQueue(map, segment, reads.subList(undrainedIndex, reads.size())); in testRecordReadOnCompute() 597 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute() [all …]
|
/external/image_io/includes/image_io/jpeg/ |
D | jpeg_info_builder.h | 31 /// By default the info builder does not capture the value of the segment in 32 /// the segment infos contained in the @c JpegInfo object. Call this function 33 /// to capture the bytes of the indicated segment types. 34 /// @param type The type of segment info to capture the value of. 37 /// @return True if the segment is a primary Xmp segment. 38 bool IsPrimaryXmpSegment(const JpegSegment& segment) const; 40 /// @return True if the segment is an extended Xmp segment. 41 bool IsExtendedXmpSegment(const JpegSegment& segment) const; 44 void Process(JpegScanner* scanner, const JpegSegment& segment) override; 54 /// @return True if the segment is an Mpf segment. [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | Segment.java | 19 * A segment of a buffer. 21 * <p>Each segment in a buffer is a circularly-linked list node referencing the following and 24 * <p>Each segment in the pool is a singly-linked list node referencing the rest of segments in the 28 * segment's byte array is shared the segment may not be recycled, nor may its byte data be changed. 29 * The lone exception is that the owner segment is allowed to append to the segment, writing data at 30 * {@code limit} and beyond. There is a single owning segment for each byte array. Positions, 33 final class Segment { class 39 /** The next byte of application data byte to read in this segment. */ 48 /** True if this segment owns the byte array and can append to it, extending {@code limit}. */ 51 /** Next segment in a linked or circularly-linked list. */ [all …]
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | Segment.java | 20 * A segment of a buffer. 22 * <p>Each segment in a buffer is a circularly-linked list node referencing the following and 25 * <p>Each segment in the pool is a singly-linked list node referencing the rest of segments in the 29 * segment's byte array is shared the segment may not be recycled, nor may its byte data be changed. 30 * The lone exception is that the owner segment is allowed to append to the segment, writing data at 31 * {@code limit} and beyond. There is a single owning segment for each byte array. Positions, 34 final class Segment { class 40 /** The next byte of application data byte to read in this segment. */ 49 /** True if this segment owns the byte array and can append to it, extending {@code limit}. */ 52 /** Next segment in a linked or circularly-linked list. */ [all …]
|
/external/okio/okio/src/commonMain/kotlin/okio/ |
D | Segment.kt | 21 * A segment of a buffer. 23 * Each segment in a buffer is a circularly-linked list node referencing the following and 26 * Each segment in the pool is a singly-linked list node referencing the rest of segments in the 30 * segment's byte array is shared the segment may not be recycled, nor may its byte data be changed. 31 * The lone exception is that the owner segment is allowed to append to the segment, writing data at 32 * `limit` and beyond. There is a single owning segment for each byte array. Positions, 35 internal class Segment { class 38 /** The next byte of application data byte to read in this segment. */ 44 * If the segment is free and linked in the segment pool, the field contains total 52 /** True if this segment owns the byte array and can append to it, extending `limit`. */ [all …]
|
/external/icu/icu4c/source/i18n/ |
D | numparse_scientific.cpp | 55 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument 68 int32_t initialOffset = segment.getOffset(); in match() 69 int32_t overlap = segment.getCommonPrefixLength(fExponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 80 // Note: call site is guarded by the segment.length() check above. in match() 82 fIgnorablesMatcher.match(segment, result, status); in match() 83 if (segment.length() == 0) { in match() 84 segment.setOffset(initialOffset); in match() 90 if (segment.startsWith(minusSignSet())) { in match() [all …]
|
/external/skia/src/pathops/ |
D | SkOpContour.h | 63 SkOpSegment* segment = &fHead; in calcAngles() local 65 segment->calcAngles(); in calcAngles() 66 } while ((segment = segment->next())); in calcAngles() 118 SkOpSegment* segment = &fHead; in debugShowActiveSpans() local 120 segment->debugShowActiveSpans(str); in debugShowActiveSpans() 121 } while ((segment = segment->next())); in debugShowActiveSpans() 135 const SkOpSegment* segment = &fHead; in debugValidate() local 138 segment->debugValidate(); in debugValidate() 139 SkASSERT(segment->prev() == prior); in debugValidate() 140 prior = segment; in debugValidate() [all …]
|
/external/skqp/src/pathops/ |
D | SkOpContour.h | 64 SkOpSegment* segment = &fHead; in calcAngles() local 66 segment->calcAngles(); in calcAngles() 67 } while ((segment = segment->next())); in calcAngles() 119 SkOpSegment* segment = &fHead; in debugShowActiveSpans() local 121 segment->debugShowActiveSpans(str); in debugShowActiveSpans() 122 } while ((segment = segment->next())); in debugShowActiveSpans() 136 const SkOpSegment* segment = &fHead; in debugValidate() local 139 segment->debugValidate(); in debugValidate() 140 SkASSERT(segment->prev() == prior); in debugValidate() 141 prior = segment; in debugValidate() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | ScientificMatcher.java | 53 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument 66 int initialOffset = segment.getOffset(); in match() 67 int overlap = segment.getCommonPrefixLength(exponentSeparatorString); in match() 72 if (segment.length() == overlap) { in match() 75 segment.adjustOffset(overlap); in match() 78 // Note: call site is guarded by the segment.length() check above. in match() 79 ignorablesMatcher.match(segment, null); in match() 80 if (segment.length() == 0) { in match() 81 segment.setOffset(initialOffset); in match() 87 if (segment.startsWith(minusSignSet())) { in match() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | ScientificMatcher.java | 55 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument 68 int initialOffset = segment.getOffset(); in match() 69 int overlap = segment.getCommonPrefixLength(exponentSeparatorString); in match() 74 if (segment.length() == overlap) { in match() 77 segment.adjustOffset(overlap); in match() 80 // Note: call site is guarded by the segment.length() check above. in match() 81 ignorablesMatcher.match(segment, null); in match() 82 if (segment.length() == 0) { in match() 83 segment.setOffset(initialOffset); in match() 89 if (segment.startsWith(minusSignSet())) { in match() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberSkeletonImpl.java | 562 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() local 568 while (offset < segment.length()) { in parseSkeleton() 569 int cp = segment.codePointAt(offset); in parseSkeleton() 585 // If the segment is nonempty, parse it and reset the segment. in parseSkeleton() 588 segment.setLength(offset); in parseSkeleton() 591 stem = parseStem(segment, stemTrie, macros); in parseSkeleton() 595 stem = parseOption(stem, segment, macros); in parseSkeleton() 597 segment.resetLength(); in parseSkeleton() 599 // Consume the segment: in parseSkeleton() 600 segment.adjustOffset(offset); in parseSkeleton() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 561 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() local 567 while (offset < segment.length()) { in parseSkeleton() 568 int cp = segment.codePointAt(offset); in parseSkeleton() 584 // If the segment is nonempty, parse it and reset the segment. in parseSkeleton() 587 segment.setLength(offset); in parseSkeleton() 590 stem = parseStem(segment, stemTrie, macros); in parseSkeleton() 594 stem = parseOption(stem, segment, macros); in parseSkeleton() 596 segment.resetLength(); in parseSkeleton() 598 // Consume the segment: in parseSkeleton() 599 segment.adjustOffset(offset); in parseSkeleton() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); in completeSegmentByteCountOnBufferWithFullSegments() 65 assertEquals(Segment.SIZE * 4, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithFullSegments() 70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 71 assertEquals(Segment.SIZE * 3, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 141 int size = (Segment.SIZE / 2) - 1; in moveBytesBetweenBuffersShareSegment() 147 int size = (Segment.SIZE / 2) + 1; in moveBytesBetweenBuffersReassignSegment() 153 int size = 3 * Segment.SIZE + 1; in moveBytesBetweenBuffersMultipleSegments() 155 assertEquals(asList(Segment.SIZE, Segment.SIZE, Segment.SIZE, 1, in moveBytesBetweenBuffersMultipleSegments() 156 Segment.SIZE, Segment.SIZE, Segment.SIZE, 1), segmentSizes); in moveBytesBetweenBuffersMultipleSegments() 173 /** The big part of source's first segment is being moved. */ [all …]
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | util.kt | 26 var segment = buffer.head ?: return emptyList() in segmentSizes() variable 28 val sizes = mutableListOf(segment.limit - segment.pos) in segmentSizes() 29 segment = segment.next!! in segmentSizes() 30 while (segment !== buffer.head) { in segmentSizes() 31 sizes.add(segment.limit - segment.pos) in segmentSizes() 32 segment = segment.next!! in segmentSizes() 56 byteCount = Segment.SIZE / 2 + dice.nextInt(Segment.SIZE / 2) in bufferWithRandomSegmentLayout() 58 val offset = dice.nextInt(Segment.SIZE - byteCount) in bufferWithRandomSegmentLayout() 60 val segment = Buffer() in bufferWithRandomSegmentLayout() constant 61 segment.write(ByteArray(offset)) in bufferWithRandomSegmentLayout() [all …]
|