/external/skia/experimental/sktext/include/ |
D | Types.h | 50 Range() : fStart(0), fEnd(0) { } in Range() 51 Range(T start, T end) : fStart(start) , fEnd(end) { } in Range() 54 return fEnd >= fStart; in leftToRight() 59 std::swap(this->fStart, this->fEnd); in normalize() 65 return leftToRight() ? SkToInt(fEnd - fStart) : SkToInt(fStart - fEnd); in width() 69 fStart = 0; in clean() 74 return fEnd == fStart; in isEmpty() 82 SkASSERT(this->fEnd == tail.fStart || this->fStart == tail.fEnd); in merge() 83 this->fStart = std::min(this->fStart, tail.fStart); in merge() 87 std::swap(this->fStart, this->fEnd); in merge() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | sfwdchit.cpp | 31 fStart = new UChar[fLen]; 32 if(fStart == NULL) { 35 fEnd = fStart+fLen; 36 fCurrent = fStart; 38 s.extract(0, fLen, fStart); 51 fStart = new UChar[fLen]; in SimpleFwdCharIterator() 52 if(fStart == NULL) { in SimpleFwdCharIterator() 55 uprv_memcpy(fStart, s, fLen); in SimpleFwdCharIterator() 56 fEnd = fStart+fLen; in SimpleFwdCharIterator() 57 fCurrent = fStart; in SimpleFwdCharIterator() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | string_segment.cpp | 22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 26 return fStart; in getOffset() 30 fStart = start; in setOffset() 34 fStart += delta; in adjustOffset() 38 fStart += U16_LENGTH(getCodePoint()); in adjustOffsetByCodePoint() 42 fEnd = fStart + length; in setLength() 50 return fEnd - fStart; in length() 54 return fStr.charAt(index + fStart); in charAt() 58 return fStr.char32At(index + fStart); in codePointAt() 62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() [all …]
|
/external/skia/modules/skparagraph/src/ |
D | TextWrapper.h | 37 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch() 39 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch() 53 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster() 57 inline size_t startPos() const { return fStart.position(); } in startPos() 72 bool empty() { return fStart.cluster() == fEnd.cluster() && in empty() 73 fStart.position() == fEnd.position(); } in empty() 78 if (fStart.cluster() == nullptr) { in extend() 79 fStart = ClusterPos(cluster, cluster->startPos()); in extend() 99 fStart = ClusterPos(cluster, pos); in startFrom() 134 if (fEnd.cluster() > fStart.cluster()) { in trim() [all …]
|
/external/skia/experimental/sktext/src/ |
D | Processor.cpp | 61 …sk_careful_memcpy(blobBuffer.glyphs, run->fGlyphs.data() + glyphRange.fStart, glyphRange.width() *… in decorate() 62 …sk_careful_memcpy(blobBuffer.points(), run->fPositions.data() + glyphRange.fStart, glyphRange.widt… in decorate() 126 return a.fRange.fStart < b.fRange.fStart; in sortDecorBlocks() 135 this->adjustLeft(&block.fRange.fStart); in sortDecorBlocks() 137 SkASSERT(start <= block.fRange.fStart); in sortDecorBlocks() 138 if (start < block.fRange.fStart) { in sortDecorBlocks() 140 …k(defaultBlock.fForegroundColor, defaultBlock.fBackgroundColor, Range(start, block.fRange.fStart)); in sortDecorBlocks() 228 textRange.fStart = textIndex; in iterateByVisualOrder() 229 glyphRange.fStart = glyphIndex; in iterateByVisualOrder() 266 SkASSERT(currentBlock->fRange.fStart <= textRange.fStart); in iterateByVisualOrder() [all …]
|
D | Wrapper.cpp | 18 if (cluster < textRange.fStart) continue; in glyphRange() 21 if (glyphRange.fStart == EMPTY_INDEX) { in glyphRange() 22 glyphRange.fStart = i; in glyphRange() 33 if (i < glyphRange.fStart) continue; in textRange() 36 if (textRange.fStart == EMPTY_INDEX) { in textRange() 37 textRange.fStart = cluster; in textRange()
|
/external/skia/tests/ |
D | GrBlockAllocatorTest.cpp | 106 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart >= 0); in DEF_TEST() 107 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart <= align - 1); in DEF_TEST() 180 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, 16)); in DEF_TEST() 190 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, 48)); in DEF_TEST() 193 REPORTER_ASSERT(r, p.fBlock->release(pNext.fStart, pNext.fEnd)); in DEF_TEST() 195 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST() 202 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST() 205 int shrinkTo32 = p.fStart - p.fEnd + 32; in DEF_TEST() 206 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, shrinkTo32)); in DEF_TEST() 208 REPORTER_ASSERT(r, p.fEnd - p.fStart == 32); in DEF_TEST() [all …]
|
/external/skqp/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 68 SkGlyphID fStart; member 115 write_glyph(cmap, multiByte, bfrange[i + j].fStart); in append_bfrange_section() 179 i >> 8 == currentRangeEntry.fStart >> 8 && in SkPDFAppendCmapSections() 182 currentRangeEntry.fUnicode + i - currentRangeEntry.fStart; in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 187 bfcharEntries.push_back({currentRangeEntry.fStart, currentRangeEntry.fUnicode}); in SkPDFAppendCmapSections() 195 currentRangeEntry.fStart = i; in SkPDFAppendCmapSections()
|
/external/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 68 SkGlyphID fStart; member 115 write_glyph(cmap, multiByte, bfrange[i + j].fStart); in append_bfrange_section() 179 i >> 8 == currentRangeEntry.fStart >> 8 && in SkPDFAppendCmapSections() 182 currentRangeEntry.fUnicode + i - currentRangeEntry.fStart; in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 187 bfcharEntries.push_back({currentRangeEntry.fStart, currentRangeEntry.fUnicode}); in SkPDFAppendCmapSections() 195 currentRangeEntry.fStart = i; in SkPDFAppendCmapSections()
|
/external/skqp/src/pathops/ |
D | SkOpAngle.cpp | 77 lh->fStart->t(), lh->fEnd->t(), in after() 78 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 80 rh->fStart->t(), rh->fEnd->t()); in after() 97 lh->fStart->t(), lh->fEnd->t(), in after() 98 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 100 rh->fStart->t(), rh->fEnd->t()); in after() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 420 if (checkEnd == fEnd || computedEnd == fEnd || computedEnd == fStart) { in computeSector() 424 if (stepUp != (fStart->t() < computedEnd->t())) { in computeSector() 524 double tStart = index ? rh->fStart->t() : this->fStart->t(); in endsIntersect() [all …]
|
/external/skia/src/pathops/ |
D | SkOpAngle.cpp | 77 lh->fStart->t(), lh->fEnd->t(), in after() 78 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 80 rh->fStart->t(), rh->fEnd->t()); in after() 97 lh->fStart->t(), lh->fEnd->t(), in after() 98 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 100 rh->fStart->t(), rh->fEnd->t()); in after() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 420 if (checkEnd == fEnd || computedEnd == fEnd || computedEnd == fStart) { in computeSector() 424 if (stepUp != (fStart->t() < computedEnd->t())) { in computeSector() 524 double tStart = index ? rh->fStart->t() : this->fStart->t(); in endsIntersect() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | ConstrainedFieldPosition.java | 71 private int fStart; field in ConstrainedFieldPosition 99 fStart = 0; in reset() 224 return fStart; in getStart() 304 fStart = start; in setState() 346 sb.append(fStart); in toString()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | ConstrainedFieldPosition.java | 71 private int fStart; field in ConstrainedFieldPosition 95 fStart = 0; in reset() 216 return fStart; in getStart() 291 fStart = start; in setState() 331 sb.append(fStart); in toString()
|
/external/skqp/src/gpu/ |
D | GrShape.h | 59 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, style.hasPathEffect(), in GrShape() 72 fRRectData.fStart = start; in GrShape() 74 fRRectData.fStart = (fRRectData.fStart + 1) & 0b110; in GrShape() 76 fRRectData.fStart &= 0b110; in GrShape() 79 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, false, &fRRectData.fDir); in GrShape() 88 fRRectData.fStart = DefaultRectDirAndStartIndex(rect, style.hasPathEffect(), in GrShape() 102 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, fStyle.hasPathEffect(), in GrShape() 111 fRRectData.fStart = DefaultRectDirAndStartIndex(rect, fStyle.hasPathEffect(), in GrShape() 174 *start = fRRectData.fStart; in asRRect() 212 out->addRRect(fRRectData.fRRect, fRRectData.fDir, fRRectData.fStart); in asPath() [all …]
|
D | GrResourceAllocator.h | 112 , fStart(start) in Interval() 129 fStart = start; in resetTo() 145 unsigned int start() const { return fStart; } in start() 175 unsigned int fStart; variable
|
/external/skqp/tools/bookmaker/ |
D | textParser.h | 27 , fStart(start) in TextParser() 103 if (start <= fStart) { in back() 116 if (start <= fStart) { in backup() 126 while (fChar > fStart && isalpha(fChar[-1])) { in backupWord() 146 if ((result > fStart && isalnum(result[-1])) || (result + len < fEnd in containsWord() 243 while (check > fStart) { in sentenceEnd() 585 while (fEnd > fStart && ' ' >= fEnd[-1]) { in trimEnd() 603 const char* fStart; variable 615 fSave.fStart = parser->fStart; in TextParserSave() 624 fParser->fStart = fSave.fStart; in restore() [all …]
|
D | includeWriter.cpp | 59 this->firstBlockTrim((int) (bodyEnd - fStart), fStart); // may write nothing in constOut() 102 commentLen = (int) (prop->fStart - commentStart); in descriptionOut() 155 commentLen = prop->fStart - commentStart; in descriptionOut() 161 if (commentLen > 1 && '\n' == prop->fStart[-1]) { in descriptionOut() 190 commentLen = (int) (prop->fStart - commentStart); in descriptionOut() 205 commentLen = prop->fStart - commentStart; in descriptionOut() 236 commentLen = prop->fStart - commentStart; in descriptionOut() 253 Phrase defIsPhrase = '\n' == prop->fStart[0] && '\n' == prop->fStart[-1] ? in descriptionOut() 266 int localLength = child->fStart - start; in descriptionOut() 278 localLength = child->fContentEnd - child->fStart; in descriptionOut() [all …]
|
D | hackParser.cpp | 41 fStart = root->fStart; in hackFiles() 42 fChar = fStart; in hackFiles() 90 next = gran->fStart; in replaceWithPop()
|
/external/skqp/src/gpu/gradients/ |
D | GrSingleIntervalGradientColorizer.cpp | 71 if (fStart != that.fStart) return false; in onIsEqual() 78 , fStart(src.fStart) in GrSingleIntervalGradientColorizer()
|
D | GrSingleIntervalGradientColorizer.h | 18 const SkPMColor4f& start() const { return fStart; } in start() 31 , fStart(start) in GrSingleIntervalGradientColorizer() 37 SkPMColor4f fStart; variable
|
/external/skqp/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 32 , fStart(pts[0]) in SkLinearGradient() 51 buffer.writePoint(fStart); in flatten() 84 SkPoint pts[2] = { fStart, fEnd }; in onMakeColorSpace() 92 info->fPoint[0] = fStart; in asAGradient()
|
/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 70 header->fStart = alloc.fStart; in allocate() 112 GrBlockAllocator::Block* block = fAllocator.owningBlock<kAlignment>(header, header->fStart); in release() 130 block->release(header->fStart, header->fEnd); in release()
|
/external/skia/src/core/ |
D | SkStream.cpp | 158 , fStart(std::min(start, fEnd)) in SkFILEStream() 159 , fCurrent(SkTPin(current, fStart, fEnd)) in SkFILEStream() 161 SkASSERT(fStart == start); in SkFILEStream() 194 fStart = 0; in close() 221 fCurrent = fStart; in rewind() 226 return new SkFILEStream(fFILE, fEnd, fStart, fStart); in onDuplicate() 230 SkASSERT(fCurrent >= fStart); in getPosition() 231 return fCurrent - fStart; in getPosition() 235 fCurrent = std::min(SkSafeMath::Add(position, fStart), fEnd); in seek() 245 fCurrent = fStart; in move() [all …]
|
/external/skia/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 31 , fStart(pts[0]) in SkLinearGradient() 50 buffer.writePoint(fStart); in flatten() 87 info->fPoint[0] = fStart; in asAGradient()
|
/external/skia/modules/skottie/src/layers/shapelayer/ |
D | TrimPaths.cpp | 29 this->bind(abuilder, jtrim["s"], &fStart); in TrimEffectAdapter() 37 const auto start = fStart / 100, in onSync() 64 ScalarValue fStart = 0, member in skottie::internal::__anonbb7e65a90111::TrimEffectAdapter
|