/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | UpdatableFontDir.java | 92 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 …]
|
D | OtfFontFileParser.java | 53 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/ |
D | TextShaperTest.java | 42 String psName = FontFileUtil.getPostScriptName(font.getBuffer(), 0); in testFontWithPath() 43 String message = "psName = " + psName + ", file = " + font.getFile(); in testFontWithPath()
|
/frameworks/base/tools/fonts/ |
D | fontchain_linter.py | 220 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/ |
D | FontFileParserTest.cpp | 126 auto psName = parser.getPostScriptName(); in TEST() local 127 EXPECT_TRUE(psName.has_value()); in TEST() 128 EXPECT_EQ("SampleFont-Regular", psName.value()); in TEST()
|
D | FontCollectionItemizeTest.cpp | 1636 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/ |
D | FontFileParser.cpp | 146 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/ |
D | Typeface.cpp | 252 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/ |
D | FontFileParser.h | 43 static bool checkPSName(const std::string& psName);
|
D | Layout.h | 51 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/ |
D | FontUpdateRequest.java | 149 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/ |
D | Font.cpp | 371 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/ |
D | UpdatableSystemFontTest.java | 422 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/ |
D | FontListParser.java | 448 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/ |
D | TypefaceSystemFallbackTest.java | 184 final String psName = fileName.substring(0, periodIndex); in buildSystemFallback() local 185 updatableFontMap.put(psName, file); in buildSystemFallback()
|
D | FontListParserTest.java | 208 public void psName() throws Exception { in psName() method in FontListParserTest
|
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
D | UpdatableFontDirTest.java | 1613 String psName = name.substring(0, name.length() - 4); // drop suffix in newAddFontFamilyRequest() local 1615 psName, font.getStyle(), font.getTtcIndex(), font.getFontVariationSettings()); in newAddFontFamilyRequest()
|