Home
last modified time | relevance | path

Searched refs:extent (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
DScrollBarUtils.java25 public static int getThumbLength(int size, int thickness, int extent, int range) { in getThumbLength() argument
28 int length = Math.round((float) size * extent / range); in getThumbLength()
35 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument
37 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
/frameworks/base/tests/FsVerityTest/block_device_writer/
Dblock_device_writer.cpp124 struct fiemap_extent* extent = &fiemap->fm_extents[0]; in get_physical_offset() local
128 extent->fe_logical, extent->fe_physical, extent->fe_length, in get_physical_offset()
129 extent->fe_flags); in get_physical_offset()
130 if (extent->fe_flags & (FIEMAP_EXTENT_UNKNOWN | in get_physical_offset()
136 return extent->fe_physical + (byte_offset - extent->fe_logical); in get_physical_offset()
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java111 public void setParameters(int range, int offset, int extent, boolean vertical) { in setParameters() argument
118 if (mRange != range || mOffset != offset || mExtent != extent) { in setParameters()
121 mExtent = extent; in setParameters()
130 final int extent = mExtent; in draw() local
135 if (extent <= 0 || range <= extent) { in draw()
153 ScrollBarUtils.getThumbLength(scrollBarLength, thickness, extent, range); in draw()
155 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range, in draw()
/frameworks/minikin/libs/minikin/
DGreedyLineBreaker.cpp521 MinikinExtent extent = mMeasuredText.getExtent(mTextBuf, range); in getResult() local
522 out.ascents.push_back(extent.ascent); in getResult()
523 out.descents.push_back(extent.descent); in getResult()
524 out.bounds.emplace_back(0, extent.ascent, breakPoint.lineWidth, extent.descent); in getResult()
527 out.ascents.push_back(metrics.extent.ascent); in getResult()
528 out.descents.push_back(metrics.extent.descent); in getResult()
532 MinikinExtent extent = in getResult() local
534 out.ascents.push_back(extent.ascent); in getResult()
535 out.descents.push_back(extent.descent); in getResult()
538 out.bounds.emplace_back(0, extent.ascent, breakPoint.lineWidth, extent.descent); in getResult()
DOptimalLineBreaker.cpp386 MinikinExtent extent = measured.getExtent(textBuf, range); in finishBreaksOptimal() local
387 result.ascents.push_back(extent.ascent); in finishBreaksOptimal()
388 result.descents.push_back(extent.descent); in finishBreaksOptimal()
389 result.bounds.emplace_back(0, extent.ascent, cand.postBreak - prev.preBreak, in finishBreaksOptimal()
390 extent.descent); in finishBreaksOptimal()
393 result.ascents.push_back(metrics.extent.ascent); in finishBreaksOptimal()
394 result.descents.push_back(metrics.extent.descent); in finishBreaksOptimal()
398 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal() local
399 result.ascents.push_back(extent.ascent); in finishBreaksOptimal()
400 result.descents.push_back(extent.descent); in finishBreaksOptimal()
[all …]
DDebug.cpp77 std::string toString(const MinikinExtent& extent) { in toString() argument
79 ss << extent; in toString()
97 ss << "{advance=" << layout.advance() << ", extent=" << toString(layout.extent()) in toString()
DMeasurement.cpp234 extent.extendBy(layoutPiece.extent()); in operator ()()
237 MinikinExtent extent; member
251 return composer.extent; in getFontExtent()
DMeasuredText.cpp300 mExtent.extendBy(layoutPiece.extent()); in operator ()()
303 const MinikinExtent& extent() const { return mExtent; } in extent() function in minikin::ExtentCompositor
321 return compositor.extent(); in getExtent()
330 mMetrics.append(layoutPiece.extent(), bounds, layoutPiece.advance()); in operator ()()
392 MinikinExtent extent; in getExtent() local
398 extent.extendBy( in getExtent()
401 return extent; in getExtent()
DFontCollection.cpp656 MinikinExtent extent(0, 0); in getReferenceExtentForLocale() local
658 font.typeface()->GetFontExtent(&extent, paint, font.fakery); in getReferenceExtentForLocale()
659 result.extendBy(extent); in getReferenceExtentForLocale()
683 MinikinExtent extent(0, 0); in getReferenceExtentForLocale() local
685 font.typeface()->GetFontExtent(&extent, paint, font.fakery); in getReferenceExtentForLocale()
686 result.extendBy(extent); in getReferenceExtentForLocale()
694 MinikinExtent extent(0, 0); in getReferenceExtentForLocale() local
696 font.typeface()->GetFontExtent(&extent, paint, font.fakery); in getReferenceExtentForLocale()
697 result.extendBy(extent); in getReferenceExtentForLocale()
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp96 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
110 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
127 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
155 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST()
172 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST()
195 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
209 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
223 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
237 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
253 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST()
[all …]
/frameworks/minikin/include/minikin/
DMeasuredText.h37 LineMetrics(const MinikinExtent& extent, const MinikinRect& bounds, float advance) in LineMetrics()
38 : extent(extent), bounds(bounds), advance(advance) {} in LineMetrics()
41 append(metrics.extent, metrics.bounds, metrics.advance); in append()
45 extent.extendBy(nextExtent); in append()
50 MinikinExtent extent; member
DDebug.h42 std::string toString(const MinikinExtent& extent);
DMinikinFont.h54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
DLayoutCore.h51 const MinikinExtent& extent() const { return mExtent; } in extent() function
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp109 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent() argument
112 extent->ascent = -static_cast<float>(mFtFace->ascender) * paint.size / upem; in GetFontExtent()
113 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
DFreeTypeMinikinFontForTest.h49 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp61 minikin::MinikinExtent extent = {}; in shapeTextRun() local
62 layout.typeface(i)->GetFontExtent(&extent, minikinPaint, layout.getFakery(i)); in shapeTextRun()
63 overallAscent = std::min(overallAscent, extent.ascent); in shapeTextRun()
64 overallDescent = std::max(overallDescent, extent.descent); in shapeTextRun()
DMeasuredText.cpp143 minikin::MinikinExtent extent = toMeasuredParagraph(ptr)->getExtent(textBuffer, range); in nGetExtent() local
145 int32_t ascent = SkScalarRoundToInt(extent.ascent); in nGetExtent()
146 int32_t descent = SkScalarRoundToInt(extent.descent); in nGetExtent()
/frameworks/av/media/codec2/sfplugin/
DReflectedParamUpdater.cpp139 if (reflector == nullptr || it->extent() != 1) { in addParamStructDesc()
163 if (it->extent() != 1) { in addParamStructDesc()
183 it->type(), it->extent(), it->name(), in addParamStructDesc()
348 if (!desc.fieldDesc /* whole param */ || desc.fieldDesc->extent() == 0) { in updateParamsFromMessage()
367 if (desc.fieldDesc->extent() > size) { in updateParamsFromMessage()
369 desc.fieldDesc->extent() - size); in updateParamsFromMessage()
409 size_t fieldExtent = desc.fieldDesc->extent(); in parseMessageAndDoWork()
534 size_t length = desc.fieldDesc->extent(); in getParams()
549 size_t length = desc.fieldDesc->extent(); in getParams()
/frameworks/base/libs/hwui/pipeline/skia/
DVkFunctorDrawable.cpp94 vulkan_info.fDrawBounds->extent.width = mClip.fRight - mClip.fLeft; in draw()
95 vulkan_info.fDrawBounds->extent.height = mClip.fBottom - mClip.fTop; in draw()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp95 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent() argument
102 extent->ascent = metrics.fAscent; in GetFontExtent()
103 extent->descent = metrics.fDescent; in GetFontExtent()
DMinikinSkia.h49 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
/frameworks/av/media/codec2/tests/
DC2SampleComponent_test.cpp51 if (fd.extent() > 1) { in PrintTo()
52 *os << "[" << fd.extent() << "]"; in PrintTo()
53 } else if (fd.extent() == 0) { in PrintTo()
56 *os << " (" << fd._mFieldId << "*" << fd.extent() << ")"; in PrintTo()
DC2Param_test.cpp49 if (fd.extent() > 1) { in PrintTo()
50 *os << "[" << fd.extent() << "]"; in PrintTo()
51 } else if (fd.extent() == 0) { in PrintTo()
56 *os << "*" << fd.extent() << ")"; in PrintTo()
107 && a.extent() == b.extent()
151 EXPECT_EQ(1u, fields[0].extent()); in TEST_P()
653 static_assert(std::extent<T>::value == 0, "should be an array of 0 extent"); in FLX()
2284 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F()
2295 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F()
2306 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F()
[all …]
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/
Dbroadcast_ring.h422 std::extent<decltype(RecordStorage::data)>() ==
514 for (size_t i = 0; i < std::extent<decltype(data)>(); ++i) { in PutRecordInternal()
526 for (size_t i = 0; i < std::extent<decltype(data)>(); ++i) { in GetRecordInternal()

12