Home
last modified time | relevance | path

Searched refs:paragraph (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/external/skia/modules/canvaskit/tests/
Dparagraph.spec.js88 const paragraph = builder.build();
90 paragraph.layout(wrapTo);
92 expect(paragraph.didExceedMaxLines()).toBeTruthy();
93 expect(paragraph.getAlphabeticBaseline()).toBeCloseTo(21.377, 3);
94 expect(paragraph.getHeight()).toEqual(240);
95 expect(paragraph.getIdeographicBaseline()).toBeCloseTo(27.236, 3);
96 expect(paragraph.getLongestLine()).toBeCloseTo(193.820, 3);
97 expect(paragraph.getMaxIntrinsicWidth()).toBeCloseTo(1444.250, 3);
98 expect(paragraph.getMaxWidth()).toEqual(200);
99 expect(paragraph.getMinIntrinsicWidth()).toBeCloseTo(172.360, 3);
[all …]
/external/skia/modules/skparagraph/src/
DParagraphCache.cpp28 ParagraphCacheKey(const ParagraphImpl* paragraph) in ParagraphCacheKey() argument
29 : fText(paragraph->fText.c_str(), paragraph->fText.size()) in ParagraphCacheKey()
30 , fPlaceholders(paragraph->fPlaceholders) in ParagraphCacheKey()
31 , fTextStyles(paragraph->fTextStyles) in ParagraphCacheKey()
32 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey()
42 ParagraphCacheValue(const ParagraphImpl* paragraph) in ParagraphCacheValue() argument
43 : fKey(ParagraphCacheKey(paragraph)) in ParagraphCacheValue()
44 , fRuns(paragraph->fRuns) in ParagraphCacheValue()
45 , fCodeUnitProperties(paragraph->fCodeUnitProperties) in ParagraphCacheValue()
46 , fWords(paragraph->fWords) in ParagraphCacheValue()
[all …]
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp202 auto paragraph = builder.Build(); in DEF_TEST() local
203 paragraph->layout(TestCanvasWidth); in DEF_TEST()
204 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in DEF_TEST()
206 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in DEF_TEST()
278 auto paragraph = builder.Build(); in DEF_TEST() local
279 paragraph->layout(TestCanvasWidth); in DEF_TEST()
280 paragraph->paint(canvas.get(), 0, 0); in DEF_TEST()
285 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in DEF_TEST()
289 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in DEF_TEST()
293 boxes = paragraph->getRectsForPlaceholders(); in DEF_TEST()
[all …]
/external/skia/modules/skparagraph/samples/
DSampleParagraph.cpp158 auto paragraph = builder.Build(); in drawTest() local
159 paragraph->layout(w - margin * 2); in drawTest()
160 paragraph->paint(canvas, margin, margin); in drawTest()
162 canvas->translate(0, paragraph->getHeight()); in drawTest()
236 auto paragraph = builder.Build(); in drawCode() local
237 paragraph->layout(w - 20); in drawCode()
239 paragraph->paint(canvas, 20, 20); in drawCode()
303 auto paragraph = builder.Build(); in drawText() local
304 paragraph->layout(w - margin * 2); in drawText()
305 paragraph->paint(canvas, margin, margin); in drawText()
[all …]
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/SystemEvents/
DText_Suite.py66 class paragraph(aetools.ComponentItem): class
74 paragraphs = paragraph
101 'paragraph' : paragraph,
115 'paragraph' : paragraph,
128 'paragraph' : paragraph,
131 paragraph._superclassnames = ['item']
132 paragraph._privpropdict = {
138 paragraph._privelemdict = {
141 'paragraph' : paragraph,
154 'paragraph' : paragraph,
[all …]
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/Terminal/
DText_Suite.py66 class paragraph(aetools.ComponentItem): class
74 paragraphs = paragraph
101 'paragraph' : paragraph,
115 'paragraph' : paragraph,
128 'paragraph' : paragraph,
131 paragraph._superclassnames = ['item']
132 paragraph._privpropdict = {
138 paragraph._privelemdict = {
141 'paragraph' : paragraph,
154 'paragraph' : paragraph,
[all …]
/external/icu/icu4c/source/layoutex/
Dplayout.cpp46 pl_close(pl_paragraph *paragraph) in pl_close() argument
48 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_close()
61 pl_getParagraphLevel(pl_paragraph *paragraph) in pl_getParagraphLevel() argument
63 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getParagraphLevel()
73 pl_getTextDirection(pl_paragraph *paragraph) in pl_getTextDirection() argument
75 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getTextDirection()
85 pl_getAscent(const pl_paragraph *paragraph) in pl_getAscent() argument
87 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getAscent()
97 pl_getDescent(const pl_paragraph *paragraph) in pl_getDescent() argument
99 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getDescent()
[all …]
/external/icu/icu4c/source/samples/layout/
Dlayout.cpp38 Paragraph *paragraph; member
60 if (context->paragraph != NULL) { in InitParagraph()
64 context->paragraph->breakLines(context->width, context->height); in InitParagraph()
70 si.nMax = context->paragraph->getLineCount() - 1; in InitParagraph()
71 si.nPage = context->height / context->paragraph->getLineHeight(); in InitParagraph()
154 context->paragraph = Paragraph::paragraphFactory("Sample.txt", font, guiSupport); in WndProc()
225 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc()
226 … ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL); in WndProc()
250 if (context->paragraph != NULL) { in WndProc()
256 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1); in WndProc()
[all …]
Dclayout.c37 pf_flow *paragraph; member
61 if (context->paragraph != NULL) { in InitParagraph()
65 pf_breakLines(context->paragraph, context->width, context->height); in InitParagraph()
71 si.nMax = pf_getLineCount(context->paragraph) - 1; in InitParagraph()
72 si.nPage = context->height / pf_getLineHeight(context->paragraph); in InitParagraph()
156 context->paragraph = pf_factory("Sample.txt", font, guiSupport); in WndProc()
227 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc()
228 … ScrollWindow(hwnd, 0, pf_getLineHeight(context->paragraph) * (vertPos - si.nPos), NULL, NULL); in WndProc()
252 if (context->paragraph != NULL) { in WndProc()
258 … lastLine = min (si.nPos + (le_int32) si.nPage, pf_getLineCount(context->paragraph) - 1); in WndProc()
[all …]
Dgnomelayout.cpp43 Paragraph *paragraph; member
106 if (context->paragraph != NULL) { in openOK()
107 delete context->paragraph; in openOK()
110 context->paragraph = newPara; in openOK()
114 context->paragraph->breakLines(context->width, context->height); in openOK()
211 if (context->paragraph != NULL) { in eventConfigure()
216 context->paragraph->breakLines(context->width, context->height); in eventConfigure()
225 if (context->paragraph != NULL) { in eventExpose()
226 gint maxLines = context->paragraph->getLineCount() - 1; in eventExpose()
227 gint firstLine = 0, lastLine = context->height / context->paragraph->getLineHeight(); in eventExpose()
[all …]
Dcgnomelayout.c31 pf_flow *paragraph; member
98 if (context->paragraph != NULL) { in openOK()
99 pf_close(context->paragraph); in openOK()
102 context->paragraph = newPara; in openOK()
106 pf_breakLines(context->paragraph, context->width, context->height); in openOK()
203 if (context->paragraph != NULL) { in eventConfigure()
208 pf_breakLines(context->paragraph, context->width, context->height); in eventConfigure()
217 if (context->paragraph != NULL) { in eventExpose()
218 gint maxLines = pf_getLineCount(context->paragraph) - 1; in eventExpose()
219 gint firstLine = 0, lastLine = context->height / pf_getLineHeight(context->paragraph); in eventExpose()
[all …]
/external/icu/icu4c/source/layoutex/layout/
Dplayout.h119 pl_close(pl_paragraph *paragraph);
150 pl_getParagraphLevel(pl_paragraph *paragraph);
164 pl_getTextDirection(pl_paragraph *paragraph);
182 pl_getAscent(const pl_paragraph *paragraph);
195 pl_getDescent(const pl_paragraph *paragraph);
208 pl_getLeading(const pl_paragraph *paragraph);
218 pl_reflow(pl_paragraph *paragraph);
239 pl_nextLine(pl_paragraph *paragraph, float width);
/external/clang/utils/
DFindSpecRefs687 paragraph = int(tail[1:])
689 paragraph = None
693 paragraph = None
696 paragraph = int(p)
698 return SpecIndex(indices, paragraph)
700 def __init__(self, indices, paragraph=None): argument
703 self.paragraph = paragraph
707 if self.paragraph is not None:
708 s += '.p%d'%(self.paragraph,)
712 return 'SpecIndex(%s, %s)'%(self.indices, self.paragraph)
[all …]
/external/llvm-project/clang/utils/
DFindSpecRefs687 paragraph = int(tail[1:])
689 paragraph = None
693 paragraph = None
696 paragraph = int(p)
698 return SpecIndex(indices, paragraph)
700 def __init__(self, indices, paragraph=None): argument
703 self.paragraph = paragraph
707 if self.paragraph is not None:
708 s += '.p%d'%(self.paragraph,)
712 return 'SpecIndex(%s, %s)'%(self.indices, self.paragraph)
[all …]
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/StdSuites/
DText_Suite.py46 class paragraph(aetools.ComponentItem): class
50 paragraphs = paragraph
128 paragraph._superclassnames = ['text']
129 paragraph._privpropdict = {
132 paragraph._privelemdict = {
147 'paragraph' : paragraph,
197 'cpar' : paragraph,
/external/skia/modules/skparagraph/bench/
DParagraphBench.cpp43 auto paragraph = builder.Build(); in onDraw() local
48 paragraph->layout(fWidth); in onDraw()
49 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in onDraw()
50 paragraph->paint(canvas, 0, 0); in onDraw()
51 paragraph->markDirty(); in onDraw()
/external/skia/modules/skparagraph/include/
DParagraphCache.h37 bool updateParagraph(ParagraphImpl* paragraph);
38 bool findParagraph(ParagraphImpl* paragraph);
48 bool isPossiblyTextEditing(ParagraphImpl* paragraph);
53 void updateFrom(const ParagraphImpl* paragraph, Entry* entry);
54 void updateTo(ParagraphImpl* paragraph, const Entry* entry);
/external/llvm-project/clang/test/Index/
Dcomment-misc-tags.m79 * \par User defined paragraph:
80 * Contents of the paragraph.
83 * New paragraph under the same heading.
87 * This is the first paragraph.
90 * And this is the second paragraph.
99 // CHECK-NEXT: (CXComment_Text Text=[ User defined paragraph:] HasTrailingNewline)
100 // CHECK-NEXT: (CXComment_Text Text=[ Contents of the paragraph.])))
103 // CHECK-NEXT: (CXComment_Text Text=[ New paragraph under the same heading.])))
107 // CHECK-NEXT: (CXComment_Text Text=[ This is the first paragraph.])))
110 // CHECK-NEXT: (CXComment_Text Text=[ And this is the second paragraph.])))
/external/clang/test/Index/
Dcomment-misc-tags.m79 * \par User defined paragraph:
80 * Contents of the paragraph.
83 * New paragraph under the same heading.
87 * This is the first paragraph.
90 * And this is the second paragraph.
99 // CHECK-NEXT: (CXComment_Text Text=[ User defined paragraph:] HasTrailingNewline)
100 // CHECK-NEXT: (CXComment_Text Text=[ Contents of the paragraph.])))
103 // CHECK-NEXT: (CXComment_Text Text=[ New paragraph under the same heading.])))
107 // CHECK-NEXT: (CXComment_Text Text=[ This is the first paragraph.])))
110 // CHECK-NEXT: (CXComment_Text Text=[ And this is the second paragraph.])))
/external/clang/test/Sema/
Dwarn-documentation.m5 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
8 // expected-warning@+2 {{empty paragraph passed to '\brief' command}}
22 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
26 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
31 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
36 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
50 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
55 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
58 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
63 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
[all …]
/external/python/cpython3/Doc/tools/extensions/
Dpyspecific.py95 pnode.append(nodes.paragraph('', '', *(n + m)))
97 if pnode.children and isinstance(pnode[0], nodes.paragraph):
102 pnode[0].replace_self(nodes.paragraph('', '', content,
107 pnode.insert(0, nodes.paragraph('', '', add_text))
122 pnode = nodes.paragraph(availability_ref + self.arguments[0],
193 pnode = nodes.paragraph(text, classes=["audit-hook"], ids=ids)
342 para = nodes.paragraph(self.arguments[2], '', *inodes, translatable=False)
349 if isinstance(node[0], nodes.paragraph) and node[0].rawsource:
354 node[0].replace_self(nodes.paragraph('', '', content, translatable=False))
358 para = nodes.paragraph('', '',
[all …]
/external/markdown/tests/misc/
Dmulti-paragraph-block-quote.txt1 > This is line one of paragraph one
2 > This is line two of paragraph one
4 > This is line one of paragraph two
/external/llvm-project/clang/test/Sema/
Dwarn-documentation.m6 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
9 // expected-warning@+2 {{empty paragraph passed to '\brief' command}}
23 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
27 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
32 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
37 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
51 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
56 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
59 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
64 // expected-warning@+1 {{empty paragraph passed to '\brief' command}}
[all …]
/external/google-styleguide/include/
Djsguide.js18 find('p', function(paragraph) { argument
19 var match = /^([a-z]+):/i.exec(paragraph.textContent);
21 paragraph.classList.add(match[1].toLowerCase());
/external/tensorflow/tensorflow/lite/g3doc/models/text_classification/
Doverview.md3 Use a pre-trained model to category a paragraph into predefined groups.
34 Text classification categorizes a paragraph into predefined groups based on its
37 This pretrained model predicts if a paragraph's sentiment is positive or
43 Here are the steps to classify a paragraph with the model:
45 1. Tokenize the paragraph and convert it to a list of word ids using a
48 1. Get the probability of the paragraph being positive or negative from the

12345678910>>...17