Home
last modified time | relevance | path

Searched refs:MinikinFontForTest (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/tests/util/
DMinikinFontForTest.h26 class MinikinFontForTest : public MinikinFont {
28 MinikinFontForTest(const std::string& font_path, int index,
30 MinikinFontForTest(const std::string& font_path, int index) in MinikinFontForTest() function
31 : MinikinFontForTest(font_path, index, std::vector<FontVariation>()) {} in MinikinFontForTest()
32 MinikinFontForTest(const std::string& font_path) : MinikinFontForTest(font_path, 0) {} in MinikinFontForTest() function
33 virtual ~MinikinFontForTest();
49 MinikinFontForTest() = delete;
50 MinikinFontForTest(const MinikinFontForTest&) = delete;
51 MinikinFontForTest& operator=(MinikinFontForTest&) = delete;
DMinikinFontForTest.cpp37 MinikinFontForTest::MinikinFontForTest(const std::string& font_path, int index, in MinikinFontForTest() function in minikin::MinikinFontForTest
53 MinikinFontForTest::~MinikinFontForTest() { in ~MinikinFontForTest()
57 float MinikinFontForTest::GetHorizontalAdvance(uint32_t /* glyph_id */, in GetHorizontalAdvance()
63 void MinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t /* glyph_id */, in GetBounds()
72 std::shared_ptr<MinikinFont> MinikinFontForTest::createFontWithVariation( in createFontWithVariation()
74 return std::shared_ptr<MinikinFont>(new MinikinFontForTest(mFontPath, mFontIndex, variations)); in createFontWithVariation()
DFontTestUtils.cpp73 std::make_shared<MinikinFontForTest>(fontPath); in getFontFamilies()
77 std::make_shared<MinikinFontForTest>(fontPath, atoi((const char*)index)); in getFontFamilies()
DAndroid.bp6 "MinikinFontForTest.cpp",
/frameworks/minikin/tests/unittest/
DHbFontCacheTest.cpp42 std::shared_ptr<MinikinFontForTest> fontA( in TEST_F()
43 new MinikinFontForTest(kTestFontDir "Regular.ttf")); in TEST_F()
45 std::shared_ptr<MinikinFontForTest> fontB( in TEST_F()
46 new MinikinFontForTest(kTestFontDir "Bold.ttf")); in TEST_F()
48 std::shared_ptr<MinikinFontForTest> fontC( in TEST_F()
49 new MinikinFontForTest(kTestFontDir "BoldItalic.ttf")); in TEST_F()
70 std::shared_ptr<MinikinFontForTest> minikinFont( in TEST_F()
71 new MinikinFontForTest(kTestFontDir "Regular.ttf")); in TEST_F()
DFontCollectionTest.cpp60 std::shared_ptr<MinikinFont> font(new MinikinFontForTest(kVsTestFont)); in TEST()
132 std::shared_ptr<MinikinFont> multiAxisFont(new MinikinFontForTest(kMultiAxisFont)); in TEST()
138 std::shared_ptr<MinikinFont> noAxisFont(new MinikinFontForTest(kNoAxisFont)); in TEST()
DFontCollectionItemizeTest.cpp71 return ((MinikinFontForTest*)run.fakedFont.font)->fontPath(); in getFontPath()
719 std::shared_ptr<MinikinFont> font(new MinikinFontForTest(kLatinFont)); in TEST_F()
724 std::shared_ptr<MinikinFont> font2(new MinikinFontForTest(kVSTestFont)); in TEST_F()
927 new MinikinFontForTest(kNoGlyphFont)); in TEST_F()
939 std::shared_ptr<MinikinFont> minikin_font(new MinikinFontForTest(kJAFont)); in TEST_F()
1524 std::shared_ptr<MinikinFont> dummyFont(new MinikinFontForTest(kNoGlyphFont)); in TEST_F()
1525 std::shared_ptr<MinikinFont> fontA(new MinikinFontForTest(kZH_HansFont)); in TEST_F()
1526 std::shared_ptr<MinikinFont> fontB(new MinikinFontForTest(kZH_HansFont)); in TEST_F()
1557 std::shared_ptr<MinikinFont> dummyFont(new MinikinFontForTest(kNoGlyphFont)); in TEST_F()
1559 new MinikinFontForTest(kHasCmapFormat14Font)); in TEST_F()
[all …]
DFontFamilyTest.cpp49 std::shared_ptr<MinikinFont> font(new MinikinFontForTest(fontPath)); in makeFamily()
538 std::shared_ptr<MinikinFont> minikinFont(new MinikinFontForTest(kVsTestFont)); in TEST_F()
590 new MinikinFontForTest(testCase.fontPath)); in TEST_F()
/frameworks/minikin/tests/perftests/
DFontFamily.cpp24 std::shared_ptr<MinikinFontForTest> minikinFont = in BM_FontFamily_create()
25 std::make_shared<MinikinFontForTest>("/system/fonts/NotoSansCJK-Regular.ttc", 0); in BM_FontFamily_create()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp36 std::shared_ptr<MinikinFont> font(new MinikinFontForTest(fontPath, ttcIndex)); in TEST_P()