Home
last modified time | relevance | path

Searched full:segment (Results 1 – 25 of 2584) sorted by relevance

12345678910>>...104

/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/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/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()
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/
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 …]
DJetFile.py68 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 …]
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 …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java33 import com.google.common.collect.MapMakerInternalMap.Segment;
145 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity()
357 Segment<Object, Object> segment = map.segments[0]; in testRemovalListener_collected() local
369 ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash); in testRemovalListener_collected()
407 // Segment core tests
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()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java29 import com.google.common.cache.LocalCache.Segment;
102 * Forces the segment containing the given {@code key} to expand (see
103 * {@link Segment#expand()}.
110 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()
[all …]
DLocalCacheTest.java41 import com.google.common.cache.LocalCache.Segment;
241 // share capacity over each segment, then round up to nearest power of two in testSetInitialCapacity()
453 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()
[all …]
/external/image_io/includes/image_io/jpeg/
Djpeg_info_builder.h31 /// 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/
DSegment.java19 * 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/
DSegment.java20 * 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/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/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java64 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/image_io/includes/image_io/base/
Ddata_segment.h15 /// data segment knows (via its DataRange member) its location in the larger
16 /// array. The byte data of each data segment is accessed by its location
35 /// @param buffer The byte data of the data segment.
37 /// @return A shared pointer to the data segment.
46 /// @param buffer The byte data of the data segment; The DataSegment takes
48 /// @return A shared pointer to the data segment.
54 /// @return The DataRange of the data in the segment.
57 /// @return The begin location of the segment's data range.
60 /// @return The end location of the segment's data range.
63 /// @return The length of the segment's data range.
[all …]
/external/v8/src/zone/
Daccounting-allocator.cc41 // The sum of the bytes of one segment of each size. in ConfigureSegmentPool()
55 // full_size. If max_pool_size is no sum of segment sizes the actual pool in ConfigureSegmentPool()
58 // TODO(heimbuef): Determine better strategy generating a segment sizes in ConfigureSegmentPool()
74 Segment* AccountingAllocator::GetSegment(size_t bytes) { in GetSegment()
75 Segment* result = GetSegmentFromPool(bytes); in GetSegment()
86 Segment* AccountingAllocator::AllocateSegment(size_t bytes) { in AllocateSegment()
96 return reinterpret_cast<Segment*>(memory); in AllocateSegment()
99 void AccountingAllocator::ReturnSegment(Segment* segment) { in ReturnSegment() argument
100 segment->ZapContents(); in ReturnSegment()
103 FreeSegment(segment); in ReturnSegment()
[all …]
/external/libaom/libaom/common/
Dwebmenc.cc34 mkvmuxer::Segment *const segment = new mkvmuxer::Segment(); in write_webm_file_header() local
35 if (!writer || !segment) { in write_webm_file_header()
40 bool ok = segment->Init(writer); in write_webm_file_header()
46 segment->set_mode(mkvmuxer::Segment::kFile); in write_webm_file_header()
47 segment->OutputCues(true); in write_webm_file_header()
49 mkvmuxer::SegmentInfo *const info = segment->GetSegmentInfo(); in write_webm_file_header()
51 fprintf(stderr, "webmenc> Cannot retrieve Segment Info.\n"); in write_webm_file_header()
64 segment->AddVideoTrack(static_cast<int>(cfg->g_w), in write_webm_file_header()
67 segment->GetTrackByNumber(video_track_id)); in write_webm_file_header()
124 webm_ctx->segment = segment; in write_webm_file_header()
[all …]
/external/libvpx/libvpx/
Dwebmenc.cc28 mkvmuxer::Segment *const segment = new mkvmuxer::Segment(); in write_webm_file_header() local
29 segment->Init(writer); in write_webm_file_header()
30 segment->set_mode(mkvmuxer::Segment::kFile); in write_webm_file_header()
31 segment->OutputCues(true); in write_webm_file_header()
33 mkvmuxer::SegmentInfo *const info = segment->GetSegmentInfo(); in write_webm_file_header()
43 segment->AddVideoTrack(static_cast<int>(cfg->g_w), in write_webm_file_header()
46 segment->GetTrackByNumber(video_track_id)); in write_webm_file_header()
67 webm_ctx->segment = segment; in write_webm_file_header()
73 mkvmuxer::Segment *const segment = in write_webm_block() local
74 reinterpret_cast<mkvmuxer::Segment *>(webm_ctx->segment); in write_webm_block()
[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()
534 // If the segment is nonempty, parse it and reset the segment. 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()
548 // Consume the segment: in parseSkeleton()
549 segment.adjustOffset(offset); in parseSkeleton()
[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()
533 // If the segment is nonempty, parse it and reset the segment. 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()
547 // Consume the segment: in parseSkeleton()
548 segment.adjustOffset(offset); in parseSkeleton()
[all …]
/external/google-breakpad/src/common/mac/
Dmacho_reader.cc196 fprintf(stderr, "%s: the load command for segment '%s'" in SectionsMissing()
202 fprintf(stderr, "%s: the segment '%s' claims its contents lie beyond" in MisplacedSegmentData()
207 const string &segment) { in MisplacedSectionData() argument
208 fprintf(stderr, "%s: the section '%s' in segment '%s'" in MisplacedSectionData()
209 " claims its contents lie outside the segment's contents\n", in MisplacedSectionData()
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()
[all …]

12345678910>>...104