Home
last modified time | relevance | path

Searched refs:psName (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DUpdatableFontDir.java92 FontFileInfo(File file, String psName, long revision) { in FontFileInfo() argument
94 mPsName = psName; in FontFileInfo()
488 private FontFileInfo lookupFontFileInfo(String psName) { in lookupFontFileInfo() argument
489 return mFontFileInfoMap.get(psName); in lookupFontFileInfo()
527 private FontConfig.Font getFontByPostScriptName(String psName, FontConfig fontConfig) { in getFontByPostScriptName() argument
533 if (font.getPostScriptName().equals(psName)) { in getFontByPostScriptName()
545 if (font.getPostScriptName().equals(psName)) { in getFontByPostScriptName()
556 String psName = info.getPostScriptName(); in getPreinstalledFontRevision() local
557 FontConfig.Font targetFont = getFontByPostScriptName(psName, fontConfig); in getPreinstalledFontRevision()
588 final String psName; in validateFontFile() local
[all …]
DOtfFontFileParser.java53 String psName = FontFileUtil.getPostScriptName(buffer, 0); in buildFontFileName() local
57 if (TextUtils.isEmpty(psName) || isType1Font == -1 || isCollection == -1) { in buildFontFileName()
67 return psName + extension; in buildFontFileName()
/frameworks/base/core/tests/coretests/src/android/text/
DTextShaperTest.java42 String psName = FontFileUtil.getPostScriptName(font.getBuffer(), 0); in testFontWithPath()
43 String message = "psName = " + psName + ", file = " + font.getFile(); in testFontWithPath()
/frameworks/base/tools/fonts/
Dfontchain_linter.py220 def __init__(self, name, psName, scripts, variant, weight, style, fallback_for, font): argument
222 self.psName = psName
765 psName = getPostScriptName(record.font)
766 if record.psName:
769 assert psName == record.psName, ('postScriptName attribute %s should match with %s' % (
770 record.psName, psName))
774 assert psName == file_name[:-4], ('file name %s should match with %s' % (
775 file_name, psName))
/frameworks/minikin/tests/unittest/
DFontFileParserTest.cpp126 auto psName = parser.getPostScriptName(); in TEST() local
127 EXPECT_TRUE(psName.has_value()); in TEST()
128 EXPECT_EQ("SampleFont-Regular", psName.value()); in TEST()
DFontCollectionItemizeTest.cpp1636 std::string psName; member
1652 auto psName = FontFileParser(run.fakedFont.hbFont()).getPostScriptName().value(); in itemizeEmojiAndFontPostScriptNames() local
1653 out.push_back({run.start, run.end, psName}); in itemizeEmojiAndFontPostScriptNames()
1661 return results[0].psName; in itemizeEmojiAndFontPostScriptName()
1692 EXPECT_EQ("EmojiBaseFont", results[0].psName); in TEST()
1696 EXPECT_EQ("OverrideEmojiFont", results[1].psName); in TEST()
1701 EXPECT_EQ("OverrideEmojiFont", results[0].psName); in TEST()
1705 EXPECT_EQ("EmojiBaseFont", results[1].psName); in TEST()
1712 EXPECT_EQ("EmojiBaseFont", results[0].psName); in TEST()
1716 EXPECT_EQ("OverrideEmojiFont", results[1].psName); in TEST()
[all …]
/frameworks/minikin/libs/minikin/
DFontFileParser.cpp146 bool FontFileParser::checkPSName(const std::string& psName) { in checkPSName() argument
147 if (psName.size() > 63) return false; in checkPSName()
149 for (auto c : psName) { in checkPSName()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp252 std::optional<std::string> psName = parser.getPostScriptName(); in create() local
253 if (!psName.has_value() || psName.value() != expectedPostScriptName) { in create()
287 std::optional<std::string> psName = parser.getPostScriptName(); in write() local
288 LOG_ALWAYS_FATAL_IF(!psName.has_value()); in write()
289 writer->writeString(psName.value()); in write()
/frameworks/minikin/include/minikin/
DFontFileParser.h43 static bool checkPSName(const std::string& psName);
DLayout.h51 std::optional<std::string> psName = FontFileParser(g.font.hbFont()).getPostScriptName();
52 return os << "{ font:" << psName.value_or("{UNKNOWN}") << ", gid:" << g.glyph_id
/frameworks/base/core/java/android/graphics/fonts/
DFontUpdateRequest.java149 String psName = parser.getAttributeValue(null, ATTR_POSTSCRIPT_NAME); in readFromXml() local
150 if (psName == null) { in readFromXml()
160 return new Font(psName, new FontStyle(weight, slant), index, varSettings); in readFromXml()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp371 std::optional<std::string> psName = parser.getPostScriptName(); in FontFileUtil_getFontPostScriptName() local
372 if (!psName.has_value()) { in FontFileUtil_getFontPostScriptName()
375 return env->NewStringUTF(psName->c_str()); in FontFileUtil_getFontPostScriptName()
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java422 private String getFontPath(String psName) {
432 return psName.equals(font.getPostScriptName());
437 .orElseThrow(() -> new AssertionError("Font not found: " + psName))
/frameworks/base/graphics/java/android/graphics/
DFontListParser.java448 private static String findUpdatedFontFile(String psName, in findUpdatedFontFile() argument
451 File updatedFile = updatableFontMap.get(psName); in findUpdatedFontFile()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java184 final String psName = fileName.substring(0, periodIndex); in buildSystemFallback() local
185 updatableFontMap.put(psName, file); in buildSystemFallback()
DFontListParserTest.java208 public void psName() throws Exception { in psName() method in FontListParserTest
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java1613 String psName = name.substring(0, name.length() - 4); // drop suffix in newAddFontFamilyRequest() local
1615 psName, font.getStyle(), font.getTtcIndex(), font.getFontVariationSettings()); in newAddFontFamilyRequest()