Home
last modified time | relevance | path

Searched refs:lineWidth (Results 1 – 21 of 21) sorted by relevance

/frameworks/minikin/tests/unittest/
DAndroidLineBreakerHelperTest.cpp28 AndroidLineWidth lineWidth(-10 /* first width */, 1 /* first count */, 0 /* rest width */, in TEST() local
31 EXPECT_LE(0.0f, lineWidth.getMin()); in TEST()
33 EXPECT_LE(0.0f, lineWidth.getAt(i)); in TEST()
37 AndroidLineWidth lineWidth(0 /* first width */, 0 /* first count */, -10 /* rest width */, in TEST() local
40 EXPECT_LE(0.0f, lineWidth.getMin()); in TEST()
42 EXPECT_LE(0.0f, lineWidth.getAt(i)); in TEST()
47 AndroidLineWidth lineWidth(0 /* first width */, 0 /* first count */, 0 /* rest width */, in TEST() local
50 EXPECT_LE(0.0f, lineWidth.getMin()); in TEST()
52 EXPECT_LE(0.0f, lineWidth.getAt(i)); in TEST()
DOptimalLineBreakerTest.cpp68 HyphenationFrequency frequency, float lineWidth) { in doLineBreak() argument
69 return doLineBreak(textBuffer, strategy, frequency, "en-US", lineWidth); in doLineBreak()
74 float lineWidth) { in doLineBreak() argument
87 return doLineBreak(textBuffer, *measuredText, strategy, frequency, lineWidth); in doLineBreak()
92 float lineWidth) { in doLineBreak() argument
93 RectangleLineWidth rectangleLineWidth(lineWidth); in doLineBreak()
DGreedyLineBreakerTest.cpp68 float lineWidth) { in doLineBreak() argument
69 return doLineBreak(textBuffer, doHyphenation, "en-US", lineWidth); in doLineBreak()
73 const std::string& lang, float lineWidth) { in doLineBreak() argument
86 RectangleLineWidth rectangleLineWidth(lineWidth); in doLineBreak()
/frameworks/minikin/libs/minikin/
DLineBreaker.cpp26 const MeasuredText& measuredText, const LineWidth& lineWidth, in breakIntoLines() argument
29 return breakLineGreedy(textBuffer, measuredText, lineWidth, tabStops, in breakIntoLines()
32 return breakLineOptimal(textBuffer, measuredText, lineWidth, strategy, frequency, in breakIntoLines()
DOptimalLineBreaker.cpp129 std::pair<float, float> computePenalties(const Run& run, const LineWidth& lineWidth, in computePenalties() argument
134 float hyphenPenalty = 0.5 * paint->size * paint->scaleX * lineWidth.getAt(0); in computePenalties()
208 const LineWidth& lineWidth, HyphenationFrequency frequency, in populateCandidates() argument
210 const ParaWidth minLineWidth = lineWidth.getMin(); in populateCandidates()
225 auto penalties = computePenalties(*run, lineWidth, frequency, isJustified); in populateCandidates()
275 const MeasuredText& measuredText, const LineWidth& lineWidth,
320 const LineWidth& lineWidth, in computeBreaks() argument
338 float width = lineWidth.getAt(lineNumberLast); in computeBreaks()
347 const float widthNew = lineWidth.getAt(lineNumber); in computeBreaks()
405 const LineWidth& lineWidth, BreakStrategy strategy, in breakLineOptimal() argument
[all …]
DGreedyLineBreaker.cpp57 BreakPoint(uint32_t offset, float lineWidth, StartHyphenEdit startHyphen, in BreakPoint()
60 lineWidth(lineWidth), in BreakPoint()
64 float lineWidth; member
73 void breakLineAt(uint32_t offset, float lineWidth, float remainingNextLineWidth,
131 void GreedyLineBreaker::breakLineAt(uint32_t offset, float lineWidth, float remainingNextLineWidth, in breakLineAt() argument
136 mBreakPoints.emplace_back(offset, lineWidth, mStartHyphenEdit, thisLineEndHyphen); in breakLineAt()
376 out.widths.push_back(breakPoint.lineWidth); in getResult()
/frameworks/av/cmds/screenrecord/
DOverlay.cpp344 const int lineWidth = 4; in doDrawInfoPage() local
347 glScissor(0, 0, width, lineWidth); in doDrawInfoPage()
349 glScissor(0, height - lineWidth, width, lineWidth); in doDrawInfoPage()
351 glScissor(0, 0, lineWidth, height); in doDrawInfoPage()
353 glScissor(width - lineWidth, 0, lineWidth, height); in doDrawInfoPage()
/frameworks/layoutlib/bridge/src/android/graphics/text/
DBaseLineBreaker.java37 public BaseLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in BaseLineBreaker() argument
40 mLineWidth = lineWidth; in BaseLineBreaker()
DGreedyLineBreaker.java30 public GreedyLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in GreedyLineBreaker() argument
32 super(primitives, lineWidth, tabStops); in GreedyLineBreaker()
DOptimizingLineBreaker.java38 public OptimizingLineBreaker(@NonNull List<Primitive> primitives, @NonNull LineWidth lineWidth, in OptimizingLineBreaker() argument
40 super(primitives, lineWidth, tabStops); in OptimizingLineBreaker()
/frameworks/base/libs/hwui/
DFrameInfoVisualizer.cpp154 float lineWidth = baseLineWidth; in initializeRects() local
168 lineWidth *= 2; in initializeRects()
171 rect[ri + 0] = right - lineWidth; in initializeRects()
175 right -= lineWidth; in initializeRects()
/frameworks/minikin/include/minikin/
DAndroidLineBreakerHelper.h90 AndroidLineWidth lineWidth(firstWidth, firstWidthLineCount, restWidth, mIndents, in computeBreaks()
92 return breakIntoLines(textBuf, mStrategy, mFrequency, mIsJustified, measuredText, lineWidth, in computeBreaks()
DLineBreaker.h117 const MeasuredText& measuredText, const LineWidth& lineWidth,
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java497 int color, float lineWidth) { in draw() argument
498 prepareDraw(offset, color, lineWidth); in draw()
502 private void prepareDraw(int offset, int color, float lineWidth) { in prepareDraw() argument
505 if (lineWidth > 0) { in prepareDraw()
506 GLES20.glLineWidth(lineWidth); in prepareDraw()
/frameworks/base/core/java/android/view/
DViewGroup.java3993 int lineLength, int lineWidth) { in drawRectCorners() argument
3994 drawCorner(canvas, paint, x1, y1, lineLength, lineLength, lineWidth); in drawRectCorners()
3995 drawCorner(canvas, paint, x1, y2, lineLength, -lineLength, lineWidth); in drawRectCorners()
3996 drawCorner(canvas, paint, x2, y1, -lineLength, lineLength, lineWidth); in drawRectCorners()
3997 drawCorner(canvas, paint, x2, y2, -lineLength, -lineLength, lineWidth); in drawRectCorners()
4064 int lineWidth = dipsToPixels(1); in onDebugDraw() local
4069 paint, lineLength, lineWidth); in onDebugDraw()
/frameworks/native/vulkan/nulldrv/
Dnull_driver_gen.h127 VKAPI_ATTR void CmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth);
Dnull_driver.cpp1355 void CmdSetLineWidth(VkCommandBuffer cmdBuffer, float lineWidth) { in CmdSetLineWidth() argument
/frameworks/native/vulkan/libvulkan/
Dapi_gen.cpp441 VKAPI_ATTR void CmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth);
1152 VKAPI_ATTR void CmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth) { in CmdSetLineWidth() argument
1153 GetData(commandBuffer).dispatch.CmdSetLineWidth(commandBuffer, lineWidth); in CmdSetLineWidth()
1983 VKAPI_ATTR void vkCmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth) { in vkCmdSetLineWidth() argument
1984 vulkan::api::CmdSetLineWidth(commandBuffer, lineWidth); in vkCmdSetLineWidth()
/frameworks/base/core/java/android/widget/
DTextView.java13310 final float lineWidth = textView.mLayout.getLineWidth(0); in start() local
13312 mGhostStart = lineWidth - textWidth + gap; in start()
13314 mGhostOffset = lineWidth + gap; in start()
13315 mFadeStop = lineWidth + textWidth / 6.0f; in start()
13316 mMaxFadeScroll = mGhostStart + lineWidth + lineWidth; in start()
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/
Dcube.c2087 rs.lineWidth = 1.0f; in demo_prepare_pipeline()
/frameworks/native/vulkan/api/
Dvulkan.api4200 f32 lineWidth
9326 f32 lineWidth) {