Home
last modified time | relevance | path

Searched refs:segment (Results 1 – 25 of 742) sorted by relevance

12345678910>>...30

/external/icu/icu4c/source/test/intltest/
Dnumbertest_stringsegment.cpp27 StringSegment segment(SAMPLE_STRING, false); in testOffset() local
28 assertEquals("Initial Offset", 0, segment.getOffset()); in testOffset()
29 segment.adjustOffset(3); in testOffset()
30 assertEquals("Adjust A", 3, segment.getOffset()); in testOffset()
31 segment.adjustOffset(2); in testOffset()
32 assertEquals("Adjust B", 5, segment.getOffset()); in testOffset()
33 segment.setOffset(4); in testOffset()
34 assertEquals("Set Offset", 4, segment.getOffset()); in testOffset()
38 StringSegment segment(SAMPLE_STRING, false); in testLength() local
39 assertEquals("Initial length", 11, segment.length()); in testLength()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DStringSegmentTest.java20 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/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DStringSegmentTest.java23 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/image_io/src/jpeg/
Djpeg_info_builder.cc39 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()
80 if (image_count_ > 0 && IsMpfSegment(segment)) { in Process()
82 const auto& data_range = segment.GetDataRange(); in Process()
84 MaybeCaptureSegmentBytes(kMpf, segment, segment_info.GetMutableBytes()); in Process()
[all …]
/external/skia/src/pathops/
DSkOpContour.h64 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 …]
DSkOpSpan.cpp42 bool SkOpPtT::contains(const SkOpSegment* segment, const SkPoint& pt) const { in contains() argument
43 SkASSERT(this->segment() != segment); in contains()
47 if (ptT->fPt == pt && ptT->segment() == segment) { in contains()
54 bool SkOpPtT::contains(const SkOpSegment* segment, double t) const { in contains() argument
58 if (ptT->fT == t && ptT->segment() == segment) { in contains()
66 SkASSERT(this->segment() != check); in contains()
70 if (ptT->segment() == check && !ptT->deleted()) { in contains()
78 return segment()->contour(); in contour()
81 const SkOpPtT* SkOpPtT::find(const SkOpSegment* segment) const { in find()
85 if (ptT->segment() == segment && !ptT->deleted()) { in find()
[all …]
/external/skqp/src/pathops/
DSkOpContour.h64 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 …]
DSkOpSpan.cpp42 bool SkOpPtT::contains(const SkOpSegment* segment, const SkPoint& pt) const { in contains() argument
43 SkASSERT(this->segment() != segment); in contains()
47 if (ptT->fPt == pt && ptT->segment() == segment) { in contains()
54 bool SkOpPtT::contains(const SkOpSegment* segment, double t) const { in contains() argument
58 if (ptT->fT == t && ptT->segment() == segment) { in contains()
66 SkASSERT(this->segment() != check); in contains()
70 if (ptT->segment() == check && !ptT->deleted()) { in contains()
78 return segment()->contour(); in contour()
81 const SkOpPtT* SkOpPtT::find(const SkOpSegment* segment) const { in find()
85 if (ptT->segment() == segment && !ptT->deleted()) { in find()
[all …]
/external/sonivox/jet_tools/JetCreator/
DJetDebug.py44 for segment in segments:
45 DumpSegment(segment)
47 def DumpSegment(segment): argument
48 print("userID: %d" % segment.userID)
49 print("name: %s" % segment.name)
50 print("seg_num: %d" % segment.seg_num)
51 print("dls_num: %d" % segment.dls_num)
52 print("repeat: %d" % segment.repeat)
53 print("transpose: %d" % segment.transpose)
54 print("mute_flags: %d" % segment.mute_flags)
[all …]
DJetFile.py428 for segment in self.segments:
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:
451 jet_segfile.SaveAs(segment.output)
454 if segment.dump_file is not None:
455 with open(segment.dump_file, 'w') as f:
508 for segment in self.segments:
509 if segment.filename not in midiFiles:
[all …]
DJetCreatorhlp.dat3 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 …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java110 Segment<K, V> segment = map.segmentFor(hash); in forceExpandSegment() local
111 segment.expand(); in forceExpandSegment()
137 for (Segment<?, ?> segment : map.segments) { in drainRecencyQueues()
138 drainRecencyQueue(segment); in drainRecencyQueues()
143 static void drainRecencyQueue(Segment<?, ?> segment) { in drainRecencyQueue() argument
144 segment.lock(); in drainRecencyQueue()
146 segment.cleanUp(); in drainRecencyQueue()
148 segment.unlock(); in drainRecencyQueue()
159 for (LocalCache.Segment<?, ?> segment : cchm.segments) { in drainReferenceQueues()
160 drainReferenceQueue(segment); in drainReferenceQueues()
[all …]
DLocalCacheTest.java453 Segment<Object, Object> segment = map.segments[0]; in testRecordReadOnCompute() local
461 ReferenceEntry<Object, Object> entry = segment.getEntry(key, hash); in testRecordReadOnCompute()
466 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute()
468 assertTrue(segment.recencyQueue.isEmpty()); in testRecordReadOnCompute()
480 assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD); in testRecordReadOnCompute()
483 int undrainedIndex = reads.size() - segment.recencyQueue.size(); in testRecordReadOnCompute()
484 checkAndDrainRecencyQueue(map, segment, reads.subList(undrainedIndex, reads.size())); in testRecordReadOnCompute()
487 checkEvictionQueues(map, segment, readOrder, writeOrder); in testRecordReadOnCompute()
509 Segment<Object, Object> segment = map.segments[0]; in testComputePartiallyCollectedKey() local
510 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testComputePartiallyCollectedKey()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberSkeletonImpl.java511 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() local
517 while (offset < segment.length()) { in parseSkeleton()
518 int cp = segment.codePointAt(offset); in parseSkeleton()
537 segment.setLength(offset); in parseSkeleton()
540 stem = parseStem(segment, stemTrie, macros); in parseSkeleton()
544 stem = parseOption(stem, segment, macros); in parseSkeleton()
546 segment.resetLength(); in parseSkeleton()
549 segment.adjustOffset(offset); in parseSkeleton()
554 segment.setLength(Character.charCount(cp)); // for error message in parseSkeleton()
555 throw new SkeletonSyntaxException("Unexpected separator character", segment); in parseSkeleton()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java357 Segment<Object, Object> segment = map.segments[0]; in testRemovalListener_collected() local
369 ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash); in testRemovalListener_collected()
493 Segment<Object, Object> segment = map.segments[0]; in testSegmentGetAndContains() local
499 AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table; in testSegmentGetAndContains()
506 assertNull(segment.get(key, hash)); in testSegmentGetAndContains()
510 assertNull(segment.get(key, hash)); in testSegmentGetAndContains()
511 assertFalse(segment.containsKey(key, hash)); in testSegmentGetAndContains()
512 assertFalse(segment.containsValue(value)); in testSegmentGetAndContains()
515 segment.count++; in testSegmentGetAndContains()
516 assertSame(value, segment.get(key, hash)); in testSegmentGetAndContains()
[all …]
/external/icu/icu4c/source/i18n/
Dnumparse_scientific.cpp53 bool ScientificMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) con… in match() argument
66 int overlap1 = segment.getCommonPrefixLength(fExponentSeparatorString); in match()
71 if (segment.length() == overlap1) { in match()
74 segment.adjustOffset(overlap1); in match()
78 if (segment.startsWith(minusSignSet())) { in match()
80 segment.adjustOffsetByCodePoint(); in match()
81 } else if (segment.startsWith(plusSignSet())) { in match()
82 segment.adjustOffsetByCodePoint(); in match()
83 } else if (segment.startsWith(fCustomMinusSign)) { in match()
85 int32_t overlap2 = segment.getCommonPrefixLength(fCustomMinusSign); in match()
[all …]
Dnumparse_currency.cpp57 CombinedCurrencyMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) co… in match() argument
63 int32_t initialOffset = segment.getOffset(); in match()
66 int32_t overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
68 segment.adjustOffset(overlap); in match()
71 maybeMore = maybeMore || overlap == segment.length(); in match()
75 maybeMore = maybeMore || matchCurrency(segment, result, status); in match()
77 segment.setOffset(initialOffset); in match()
83 int32_t overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
85 segment.adjustOffset(overlap); in match()
88 maybeMore = maybeMore || overlap == segment.length(); in match()
[all …]
Dnumparse_symbols.cpp34 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match() argument
43 overlap = segment.getCommonPrefixLength(fString); in match()
45 segment.adjustOffset(fString.length()); in match()
46 accept(segment, result); in match()
51 int cp = segment.getCodePoint(); in match()
53 segment.adjustOffset(U16_LENGTH(cp)); in match()
54 accept(segment, result); in match()
58 return overlap == segment.length(); in match()
61 bool SymbolMatcher::smokeTest(const StringSegment& segment) const { in smokeTest()
62 return segment.startsWith(*fUniSet) || segment.startsWith(fString); in smokeTest()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberSkeletonImpl.java510 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() local
516 while (offset < segment.length()) { in parseSkeleton()
517 int cp = segment.codePointAt(offset); in parseSkeleton()
536 segment.setLength(offset); in parseSkeleton()
539 stem = parseStem(segment, stemTrie, macros); in parseSkeleton()
543 stem = parseOption(stem, segment, macros); in parseSkeleton()
545 segment.resetLength(); in parseSkeleton()
548 segment.adjustOffset(offset); in parseSkeleton()
553 segment.setLength(Character.charCount(cp)); // for error message in parseSkeleton()
554 throw new SkeletonSyntaxException("Unexpected separator character", segment); in parseSkeleton()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DScientificMatcher.java53 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument
66 int overlap1 = segment.getCommonPrefixLength(exponentSeparatorString); in match()
71 if (segment.length() == overlap1) { in match()
74 segment.adjustOffset(overlap1); in match()
78 if (segment.startsWith(minusSignSet())) { in match()
80 segment.adjustOffsetByCodePoint(); in match()
81 } else if (segment.startsWith(plusSignSet())) { in match()
82 segment.adjustOffsetByCodePoint(); in match()
83 } else if (segment.startsWith(customMinusSign)) { in match()
85 int overlap2 = segment.getCommonPrefixLength(customMinusSign); in match()
[all …]
DCombinedCurrencyMatcher.java94 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument
100 int initialOffset = segment.getOffset(); in match()
103 int overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
105 segment.adjustOffset(overlap); in match()
108 maybeMore = maybeMore || overlap == segment.length(); in match()
112 maybeMore = maybeMore || matchCurrency(segment, result); in match()
114 segment.setOffset(initialOffset); in match()
120 int overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
122 segment.adjustOffset(overlap); in match()
125 maybeMore = maybeMore || overlap == segment.length(); in match()
[all …]
/external/elfutils/libebl/
Deblsegmenttypename.c39 ebl_segment_type_name (Ebl *ebl, int segment, char *buf, size_t len) in ebl_segment_type_name() argument
43 res = ebl != NULL ? ebl->segment_type_name (segment, buf, len) : NULL; in ebl_segment_type_name()
60 if (segment >= PT_NULL && segment < PT_NUM) in ebl_segment_type_name()
61 res = ptypes[segment]; in ebl_segment_type_name()
62 else if (segment == PT_GNU_EH_FRAME) in ebl_segment_type_name()
64 else if (segment == PT_GNU_STACK) in ebl_segment_type_name()
66 else if (segment == PT_GNU_RELRO) in ebl_segment_type_name()
68 else if (segment == PT_SUNWBSS) in ebl_segment_type_name()
70 else if (segment == PT_SUNWSTACK) in ebl_segment_type_name()
74 if (segment >= PT_LOOS && segment <= PT_HIOS) in ebl_segment_type_name()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DScientificMatcher.java51 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument
64 int overlap1 = segment.getCommonPrefixLength(exponentSeparatorString); in match()
69 if (segment.length() == overlap1) { in match()
72 segment.adjustOffset(overlap1); in match()
76 if (segment.startsWith(minusSignSet())) { in match()
78 segment.adjustOffsetByCodePoint(); in match()
79 } else if (segment.startsWith(plusSignSet())) { in match()
80 segment.adjustOffsetByCodePoint(); in match()
81 } else if (segment.startsWith(customMinusSign)) { in match()
83 int overlap2 = segment.getCommonPrefixLength(customMinusSign); in match()
[all …]
DCombinedCurrencyMatcher.java92 public boolean match(StringSegment segment, ParsedNumber result) { in match() argument
98 int initialOffset = segment.getOffset(); in match()
101 int overlap = segment.getCommonPrefixLength(beforeSuffixInsert); in match()
103 segment.adjustOffset(overlap); in match()
106 maybeMore = maybeMore || overlap == segment.length(); in match()
110 maybeMore = maybeMore || matchCurrency(segment, result); in match()
112 segment.setOffset(initialOffset); in match()
118 int overlap = segment.getCommonPrefixLength(afterPrefixInsert); in match()
120 segment.adjustOffset(overlap); in match()
123 maybeMore = maybeMore || overlap == segment.length(); in match()
[all …]
/external/google-breakpad/src/common/mac/
Dmacho_reader.cc207 const string &segment) { in MisplacedSectionData() argument
210 filename_.c_str(), section.c_str(), segment.c_str()); in MisplacedSectionData()
337 Segment segment; in WalkLoadCommands() local
338 segment.bits_64 = (type == LC_SEGMENT_64); in WalkLoadCommands()
339 size_t word_size = segment.bits_64 ? 8 : 4; in WalkLoadCommands()
340 cursor.CString(&segment.name, 16); in WalkLoadCommands()
343 .Read(word_size, false, &segment.vmaddr) in WalkLoadCommands()
344 .Read(word_size, false, &segment.vmsize) in WalkLoadCommands()
347 cursor >> segment.maxprot in WalkLoadCommands()
348 >> segment.initprot in WalkLoadCommands()
[all …]

12345678910>>...30