Home
last modified time | relevance | path

Searched refs:fontPath (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java159 String fontPath = getFontPath(NOTO_COLOR_EMOJI_POSTSCRIPT_NAME); in updateFont() local
160 assertThat(fontPath).startsWith(DATA_FONTS_DIR); in updateFont()
168 expectCommandToSucceed("dd status=none if=" + fontPath + " of=/dev/null"); in updateFont()
169 expectCommandToFail("dd status=none if=" + CERT_PATH + " of=" + fontPath); in updateFont()
177 String fontPath = getFontPath(NOTO_COLOR_EMOJI_POSTSCRIPT_NAME); in updateFont_twice() local
183 assertThat(fontPath2).isNotEqualTo(fontPath); in updateFont_twice()
187 expectCommandToSucceed("dd status=none if=" + fontPath + " of=/dev/null"); in updateFont_twice()
196 String fontPath = getFontPath(NOTO_COLOR_EMOJI_POSTSCRIPT_NAME); in updateFont_allowSameVersion() local
206 assertThat(fontPath).startsWith(DATA_FONTS_DIR); in updateFont_allowSameVersion()
207 assertThat(fontPath2).isNotEqualTo(fontPath); in updateFont_allowSameVersion()
[all …]
/frameworks/minikin/tests/util/
DFontTestUtils.cpp83 const std::string fontPath = xmlTrim(fontDir + std::string((const char*)fontFileName)); in getFontFamilies() local
88 if (access(fontPath.c_str(), R_OK) != 0) { in getFontFamilies()
89 ALOGW("%s is not found.", fontPath.c_str()); in getFontFamilies()
96 std::make_shared<FreeTypeMinikinFontForTest>(fontPath); in getFontFamilies()
100 std::make_shared<FreeTypeMinikinFontForTest>(fontPath, in getFontFamilies()
DFreeTypeMinikinFontForTest.cpp131 std::string fontPath(reader.readString()); in create() local
132 return std::make_shared<FreeTypeMinikinFontForTest>(fontPath); in create()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp35 const std::string& fontPath = GetParam().first; in TEST_P() local
38 auto font = std::make_shared<FreeTypeMinikinFontForTest>(fontPath); in TEST_P()
61 << "Inconsistent Result: " << fontPath << "#" << ttcIndex << ": U+" << std::hex in TEST_P()
/frameworks/base/rs/java/android/renderscript/
DFont.java245 String fontPath = Environment.getRootDirectory().getAbsolutePath(); in create() local
246 fontPath += "/fonts/" + fileName; in create()
247 return createFromFile(rs, res, fontPath, pointSize); in create()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp100 ScopedUtfChars fontPath(env, filePath); in Font_Builder_build() local
106 std::move(data), std::string_view(fontPath.c_str(), fontPath.size()), in Font_Builder_build()
111 fontPath.c_str()); in Font_Builder_build()
450 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize, in createMinikinFontSkia() argument
469 fontPath, ttcIndex, axes); in createMinikinFontSkia()
DFont.h33 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize,
/frameworks/base/libs/hwui/jni/
DTypeface.cpp220 std::string_view fontPath = reader.readString(); in create() local
221 std::string path(fontPath.data(), fontPath.size()); in create()
260 std::move(data), fontPath, fontPtr, fontSize, fontIndex, axes); in create()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerService.java189 public boolean isFromTrustedProvider(String fontPath, byte[] pkcs7Signature) { in isFromTrustedProvider() argument
190 final byte[] digest = VerityUtils.getFsverityDigest(fontPath); in isFromTrustedProvider()
192 Log.w(TAG, "Failed to get fs-verity digest for " + fontPath); in isFromTrustedProvider()
DFontManagerShellCommand.java364 String fontPath = shell.getNextArg(); in update() local
365 if (fontPath == null) { in update()
377 try (ParcelFileDescriptor fontFd = shell.openFileForSystem(fontPath, "r"); in update()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp617 const std::string fontPath; in TEST_F() member
625 SCOPED_TRACE(testCase.hasVSTable ? "Font " + testCase.fontPath + in TEST_F()
627 : "Font " + testCase.fontPath + in TEST_F()
630 std::shared_ptr<FontFamily> family = buildFontFamily(testCase.fontPath); in TEST_F()
DLayoutCoreTest.cpp71 for (const auto& fontPath : fonts) { in makeFontCollection() local
72 families.push_back(buildFontFamily(fontPath)); in makeFontCollection()