Home
last modified time | relevance | path

Searched refs:textSize (Results 1 – 25 of 90) sorted by relevance

1234

/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DBorderedText.java34 private final float textSize; field in BorderedText
42 public BorderedText(final float textSize) { in BorderedText() argument
43 this(Color.WHITE, Color.BLACK, textSize); in BorderedText()
54 public BorderedText(final int interiorColor, final int exteriorColor, final float textSize) { in BorderedText() argument
56 interiorPaint.setTextSize(textSize); in BorderedText()
63 exteriorPaint.setTextSize(textSize); in BorderedText()
66 exteriorPaint.setStrokeWidth(textSize / 8); in BorderedText()
70 this.textSize = textSize; in BorderedText()
100 return textSize; in getTextSize()
/external/skia/src/gpu/text/
DGrSDFTControl.cpp77 SkScalar scaled_text_size(const SkScalar textSize, const SkMatrix& viewMatrix) { in scaled_text_size() argument
78 SkScalar scaledTextSize = textSize; in scaled_text_size()
100 SkScalar textSize = font.getSize(); in getSDFFont() local
101 SkScalar scaledTextSize = scaled_text_size(textSize, viewMatrix); in getSDFFont()
106 *textRatio = textSize / kSmallDFFontSize; in getSDFFont()
109 *textRatio = textSize / kMediumDFFontSize; in getSDFFont()
113 *textRatio = textSize / kLargeDFFontSize; in getSDFFont()
116 *textRatio = textSize / kExtraLargeDFFontSize; in getSDFFont()
121 *textRatio = textSize / kLargeDFFontSize;
136 SkScalar textSize, const SkMatrix& viewMatrix) const { in computeSDFMinMaxScale() argument
[all …]
/external/skqp/gm/
Ddownsamplebitmap.cpp78 const SkScalar textSize = 72; in make_text() local
81 bm.allocPixels(info.makeWH(int(textSize * 8), int(textSize * 6))); in make_text()
88 font.setSize(textSize); in make_text()
91 canvas.drawString("Hamburgefons", textSize/2, 1.2f*textSize, font, paint); in make_text()
93 canvas.drawString("Hamburgefons", textSize/2, 2.4f*textSize, font, paint); in make_text()
95 canvas.drawString("Hamburgefons", textSize/2, 3.6f*textSize, font, paint); in make_text()
97 canvas.drawString("Hamburgefons", textSize/2, 4.8f*textSize, font, paint); in make_text()
Dimageblur2.cpp32 constexpr SkScalar textSize = 12; in DEF_SIMPLE_GM() local
34 SkFont font(sk_tool_utils::create_portable_typeface(), textSize); in DEF_SIMPLE_GM()
52 SkIntToScalar(y * dy + textSize * i + textSize), in DEF_SIMPLE_GM()
Dtexteffects.cpp22 SkScalar uPos, SkScalar uWidth, SkScalar textSize) { in create_underline() argument
28 if (start > last && last + textSize / 12 < start) { in create_underline()
108 for (SkScalar textSize = 100; textSize > 10; textSize -= 20) { variable
110 sk_tool_utils::create_portable_typeface(fam[font], SkFontStyle()), textSize);
111 const SkScalar uWidth = textSize / 15;
129 SkPath underline = create_underline(intercepts, start, end, uPos, uWidth, textSize);
134 canvas->translate(0, textSize * 1.3f);
Dscaledemoji.cpp70 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw()
71 font.setSize(textSize); in onDraw()
121 for (SkScalar textSize : { 70, 180, 270, 340 }) { in onDraw()
122 font.setSize(textSize); in onDraw()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitleViewUtils.java25 if (cue.textSizeType == Cue.TYPE_UNSET || cue.textSize == Cue.DIMEN_UNSET) { in resolveCueTextSize()
29 resolveTextSize(cue.textSizeType, cue.textSize, rawViewHeight, viewHeightMinusPadding); in resolveCueTextSize()
35 float textSize, in resolveTextSize() argument
40 return textSize; in resolveTextSize()
42 return textSize * viewHeightMinusPadding; in resolveTextSize()
44 return textSize * rawViewHeight; in resolveTextSize()
DSubtitleTextView.java42 private float textSize; field in SubtitleTextView
57 textSize = DEFAULT_TEXT_SIZE_FRACTION; in SubtitleTextView()
79 public void setTextSize(@Cue.TextSizeType int textSizeType, float textSize) { in setTextSize() argument
80 if (this.textSizeType == textSizeType && this.textSize == textSize) { in setTextSize()
84 this.textSize = textSize; in setTextSize()
148 textSizeType, textSize, rawViewHeight, viewHeightMinusPadding); in dispatchDraw()
DSubtitleWebView.java54 private float textSize; field in SubtitleWebView
68 textSize = DEFAULT_TEXT_SIZE_FRACTION; in SubtitleWebView()
101 public void setTextSize(@Cue.TextSizeType int textSizeType, float textSize) { in setTextSize() argument
102 if (this.textSizeType == textSizeType && this.textSize == textSize) { in setTextSize()
106 this.textSize = textSize; in setTextSize()
/external/skia/docs/examples/
DPaint_setAutohinted.cpp15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) {
16 paint.setTextSize(textSize);
17 canvas->translate(0, textSize);
DPaint_isLinearText.cpp15 for (SkScalar textSize = 8; textSize < 30; textSize *= 1.22f) {
16 paint.setTextSize(textSize);
17 canvas->translate(0, textSize);
DPaint_getFontSpacing.cpp9 for (SkScalar textSize : { 12, 18, 24, 32 } ) {
10 paint.setTextSize(textSize);
11 SkDebugf("textSize: %g fontSpacing: %g\n", textSize, paint.getFontSpacing());
DPaint_setLinearText.cpp11 for (int textSize : { 12, 24 } ) {
12 paint.setTextSize(textSize);
17 canvas->translate(0, textSize + 4);
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DCue.java270 public final float textSize; field in Cue
360 float textSize) { in Cue() argument
371 textSize, in Cue()
434 float textSize, in Cue() argument
459 this.textSize = textSize; in Cue()
474 private float textSize; field in Cue.Builder
491 textSize = DIMEN_UNSET; in Builder()
708 public Builder setTextSize(float textSize, @TextSizeType int textSizeType) { in setTextSize() argument
709 this.textSize = textSize; in setTextSize()
730 return textSize; in getTextSize()
[all …]
/external/skia/src/core/
DSkTextBlobPriv.h66 …RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkFont& font, GlyphPosi… in RunRecord() argument
74 if (textSize > 0) { in RunRecord()
76 *this->textSizePtr() = textSize; in RunRecord()
121 uint32_t textSize() const { return isExtended() ? *this->textSizePtr() : 0; } in textSize() function
136 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize,
233 uint32_t textSize() const { in textSize() function
235 return fCurrentRun->textSize(); in textSize()
DSkTextBlob.cpp39 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument
52 if (textSize) { // Extended run. in StorageSize()
55 size = safe->add(size, textSize); in StorageSize()
89 SkASSERT(textSize() > 0); in validate()
92 SkASSERT(textBuffer() + textSize() <= (char*)NextUnchecked(this)); in validate()
102 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked()
428 if (run->textSize() != 0) { in mergeRun()
478 int count, int textSize, SkPoint offset, in allocInternal() argument
480 if (count <= 0 || textSize < 0) { in allocInternal()
485 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) { in allocInternal()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlRegion.java33 public final float textSize; field in TtmlRegion
57 float textSize) { in TtmlRegion() argument
66 this.textSize = textSize; in TtmlRegion()
/external/skia/gm/
Dimageblur2.cpp39 constexpr SkScalar textSize = 12; in DEF_SIMPLE_GM() local
41 SkFont font(ToolUtils::create_portable_typeface(), textSize); in DEF_SIMPLE_GM()
59 SkIntToScalar(y * dy + textSize * i + textSize), in DEF_SIMPLE_GM()
Dtexteffects.cpp31 SkScalar uPos, SkScalar uWidth, SkScalar textSize) { in create_underline() argument
37 if (start > last && last + textSize / 12 < start) { in create_underline()
117 for (SkScalar textSize = 100; textSize > 10; textSize -= 20) { variable
118 SkFont skFont(ToolUtils::create_portable_typeface(fam[font], SkFontStyle()), textSize);
119 const SkScalar uWidth = textSize / 15;
137 SkPath underline = create_underline(intercepts, start, end, uPos, uWidth, textSize);
142 canvas->translate(0, textSize * 1.3f);
/external/skqp/src/core/
DSkTextBlobPriv.h86 …RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkFont& font, GlyphPosi… in RunRecord() argument
94 if (textSize > 0) { in RunRecord()
96 *this->textSizePtr() = textSize; in RunRecord()
141 uint32_t textSize() const { return isExtended() ? *this->textSizePtr() : 0; } in textSize() function
154 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize,
250 uint32_t textSize() const { in textSize() function
252 return fCurrentRun->textSize(); in textSize()
DSkTextBlob.cpp38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize, in StorageSize() argument
51 if (textSize) { // Extended run. in StorageSize()
54 size = safe->add(size, textSize); in StorageSize()
88 SkASSERT(textSize() > 0); in validate()
91 SkASSERT(textBuffer() + textSize() <= (char*)NextUnchecked(this)); in validate()
101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked()
416 if (run->textSize() != 0) { in mergeRun()
466 int count, int textSize, SkPoint offset, in allocInternal() argument
468 if (count <= 0 || textSize < 0) { in allocInternal()
473 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) { in allocInternal()
[all …]
/external/icu/icu4c/source/test/perf/ubrkperf/
Dubrkperfold.cpp169 int32_t textSize = 0; variable
294 brkit->setText(UnicodeString(text, textSize)); in doForwardTest()
321 UniCharCount startOffset = 0, breakOffset = 0, numUniChars = textSize; in doForwardTest()
361 int32_t timePerCU = (int)(float(1000) * ((float)loopTime/(float)textSize)); in doForwardTest()
364 printf("number of code units %d average time per code unit %d\n", textSize, timePerCU); in doForwardTest()
367 printf("time=%d\nevents=%d\nsize=%d\n", elapsedTime, noBreaks, textSize); in doForwardTest()
379 brkit->setText(UnicodeString(text, textSize)); in doIsBoundTest()
381 for(j = 0; j < textSize; j++) { in doIsBoundTest()
395 for(j = 0; j < textSize; j++) { in doIsBoundTest()
405 int32_t timePerCU = (int)(float(1000) * ((float)loopTime/(float)textSize)); in doIsBoundTest()
[all …]
/external/skia/samplecode/
DSampleLCD.cpp29 SkScalar textSize = SkIntToScalar(6); in onDrawContent() local
39 font.setSize(textSize); in onDrawContent()
40 textSize += delta; in onDrawContent()
/external/skqp/samplecode/
DSampleLCD.cpp35 SkScalar textSize = SkIntToScalar(6); in onDrawContent() local
45 font.setSize(textSize); in onDrawContent()
46 textSize += delta; in onDrawContent()
/external/skqp/src/gpu/text/
DGrTextContext.cpp132 void GrTextContext::InitDistanceFieldPaint(const SkScalar textSize, in InitDistanceFieldPaint() argument
140 SkScalar scaledTextSize = textSize; in InitDistanceFieldPaint()
163 *textRatio = textSize / kSmallDFFontSize; in InitDistanceFieldPaint()
168 *textRatio = textSize / kMediumDFFontSize; in InitDistanceFieldPaint()
173 *textRatio = textSize / kLargeDFFontSize; in InitDistanceFieldPaint()

1234