/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollBarUtils.java | 24 public static int getThumbLength(int size, int thickness, int extent, int range) { in getThumbLength() argument 27 int length = Math.round((float) size * extent / range); in getThumbLength() 34 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument 36 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
|
/frameworks/base/tests/ApkVerityTest/block_device_writer/ |
D | block_device_writer.cpp | 124 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/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 78 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 91 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 107 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 134 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST() 150 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), layout.extent()); in TEST() 172 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 185 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 198 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 211 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() 226 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), layout.extent()); in TEST() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 111 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()
|
D | GridView.java | 2318 int extent = rowCount * 100; in computeVerticalScrollExtent() local 2324 extent += (top * 100) / height; in computeVerticalScrollExtent() 2331 extent -= ((bottom - getHeight()) * 100) / height; in computeVerticalScrollExtent() 2334 return extent; in computeVerticalScrollExtent()
|
/frameworks/minikin/tests/util/ |
D | FreeTypeMinikinFontForTest.cpp | 110 void FreeTypeMinikinFontForTest::GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint, in GetFontExtent() argument 113 extent->ascent = -static_cast<float>(mFtFace->ascender) * paint.size / upem; in GetFontExtent() 114 extent->descent = -static_cast<float>(mFtFace->descender) * paint.size / upem; in GetFontExtent()
|
D | FreeTypeMinikinFontForTest.h | 43 void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
/frameworks/av/media/codec2/sfplugin/ |
D | ReflectedParamUpdater.cpp | 139 if (reflector == nullptr || it->extent() != 1) { in addParamStructDesc() 163 if (it->extent() != 1) { in addParamStructDesc() 183 it->type(), it->extent(), it->name(), in addParamStructDesc() 334 if (!desc.fieldDesc /* whole param */ || desc.fieldDesc->extent() == 0) { in updateParamsFromMessage() 353 if (desc.fieldDesc->extent() > size) { in updateParamsFromMessage() 355 desc.fieldDesc->extent() - size); in updateParamsFromMessage() 395 size_t fieldExtent = desc.fieldDesc->extent(); in parseMessageAndDoWork() 520 size_t length = desc.fieldDesc->extent(); in getParams() 535 size_t length = desc.fieldDesc->extent(); in getParams()
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 252 mExtent.extendBy(layoutPiece.extent()); in operator ()() 255 const MinikinExtent& extent() const { return mExtent; } in extent() function in minikin::ExtentCompositor 273 return compositor.extent(); in getExtent() 315 MinikinExtent extent; in getExtent() local 323 extent.extendBy(runExtent); in getExtent() 325 return extent; in getExtent()
|
D | GreedyLineBreaker.cpp | 373 MinikinExtent extent = in getResult() local 377 out.ascents.push_back(extent.ascent); in getResult() 378 out.descents.push_back(extent.descent); in getResult()
|
D | OptimalLineBreaker.cpp | 308 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal() local 309 result.ascents.push_back(extent.ascent); in finishBreaksOptimal() 310 result.descents.push_back(extent.descent); in finishBreaksOptimal()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | VkFunctorDrawable.cpp | 87 vulkan_info.fDrawBounds->extent.width = mClip.fRight - mClip.fLeft; in draw() 88 vulkan_info.fDrawBounds->extent.height = mClip.fBottom - mClip.fTop; in draw()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.cpp | 91 void MinikinFontSkia::GetFontExtent(minikin::MinikinExtent* extent, in GetFontExtent() argument 98 extent->ascent = metrics.fAscent; in GetFontExtent() 99 extent->descent = metrics.fDescent; in GetFontExtent()
|
D | MinikinSkia.h | 49 void GetFontExtent(minikin::MinikinExtent* extent, const minikin::MinikinPaint& paint,
|
/frameworks/av/media/codec2/tests/ |
D | C2SampleComponent_test.cpp | 51 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()
|
D | C2Param_test.cpp | 49 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() 149 EXPECT_EQ(1u, fields[0].extent()); in TEST_P() 645 static_assert(std::extent<T>::value == 0, "should be an array of 0 extent"); in FLX() 2276 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F() 2287 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F() 2298 EXPECT_EQ(1u, fields.cbegin()->extent()); in TEST_F() [all …]
|
/frameworks/minikin/include/minikin/ |
D | MinikinFont.h | 54 virtual void GetFontExtent(MinikinExtent* extent, const MinikinPaint& paint,
|
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/ |
D | broadcast_ring.h | 422 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarEdgePanel.java | 573 float extent = MathUtils.lerp(1.0f, 0.75f, mDisappearAmount); in calculatePath() local 574 x = x * extent; in calculatePath() 575 y = y * extent; in calculatePath()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Param.h | 1016 …inline C2FieldDescriptor(uint32_t type, uint32_t extent, C2String name, size_t offset, size_t size) in C2FieldDescriptor() 1017 : _mType((type_t)type), _mExtent(extent), _mName(name), _mFieldId(offset, size) { } in C2FieldDescriptor() 1024 _mExtent(std::is_array<T>::value ? std::extent<T>::value : 1), in C2FieldDescriptor() 1033 _mExtent(std::is_array<T>::value ? std::extent<T>::value : 1), in C2FieldDescriptor() 1041 inline size_t extent() const { return _mExtent; } in extent() function
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2InterfaceUtils.cpp | 761 return extent() * size(); in arraySize() 772 size_t C2FieldUtils::Info::extent() const { in extent() function in C2FieldUtils::Info 798 return _mImpl->field.extent() == 0; in isFlexible() 931 uint32_t usedExtent = field.extent() ? : in makeLeaf() 1016 mHead->usedExtent = mHead->field.extent() ? : in increment()
|
D | C2Debug.cpp | 130 << StringPrintf("[%zu]", i.extent()); in operator <<()
|
D | C2InterfaceHelper.cpp | 553 size_t fieldExtent = field.extent(); in GetBaseOffset() 561 if (field.extent() == 0 || offset < fieldOffset + fieldSize * fieldExtent) { in GetBaseOffset()
|
/frameworks/native/vulkan/libvulkan/ |
D | swapchain.cpp | 976 pRects[0].extent = VkExtent2D{static_cast<uint32_t>(width), in GetPhysicalDevicePresentRectanglesKHR() 1315 .extent = {0, 0, 1}, in CreateSwapchainKHR() 1346 image_create.extent = in CreateSwapchainKHR() 1666 region->pRectangles[r].extent.width); in QueuePresentKHR() 1668 region->pRectangles[r].extent.height); in QueuePresentKHR()
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | types.cpp | 600 dField.extent = static_cast<uint32_t>(sField.extent()); in objcpy() 623 sField.extent, in objcpy()
|