Home
last modified time | relevance | path

Searched refs:glyph (Results 1 – 9 of 9) sorted by relevance

/frameworks/rs/
DrsFont.cpp92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph() argument
95 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
96 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; in drawCachedGlyph()
98 float u1 = glyph->mBitmapMinU; in drawCachedGlyph()
99 float u2 = glyph->mBitmapMaxU; in drawCachedGlyph()
100 float v1 = glyph->mBitmapMinV; in drawCachedGlyph()
101 float v2 = glyph->mBitmapMaxV; in drawCachedGlyph()
103 int32_t width = (int32_t) glyph->mBitmapWidth; in drawCachedGlyph()
104 int32_t height = (int32_t) glyph->mBitmapHeight; in drawCachedGlyph()
112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph() argument
[all …]
DrsFont.h130 CachedGlyphInfo *cacheGlyph(uint32_t glyph);
131 void updateGlyphCache(CachedGlyphInfo *glyph);
132 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds);
133 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y);
134 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y,
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayoutPreviewDrawable.java145 mKeyDrawables.add(new UnsureTypingKey(row[j].glyph(), keyRect, in onBoundsChange()
151 mKeyDrawables.add(new TypingKey(row[j].glyph(), keyRect, keyRadius, in onBoundsChange()
248 for (GlyphDrawable glyph : mGlyphDrawables) { in measureGlyphs()
251 if ((glyph.gravity & GRAVITY_LEFT) != 0) { in measureGlyphs()
255 if ((glyph.gravity & GRAVITY_RIGHT) != 0) { in measureGlyphs()
259 if ((glyph.gravity & GRAVITY_TOP) != 0) { in measureGlyphs()
263 if ((glyph.gravity & GRAVITY_BOTTOM) != 0) { in measureGlyphs()
268 glyph.paint.getTextBounds(glyph.text, 0, glyph.text.length(), textBounds); in measureGlyphs()
271 glyph.rect.set(centerX - textWidth / 2, centerY - textHeight / 2 - textBounds.top, in measureGlyphs()
279 for (GlyphDrawable glyph : mGlyphDrawables) { in draw()
[all …]
DPhysicalKeyLayout.java394 public record LayoutKey(int keyCode, int scanCode, float keyWeight, KeyGlyph glyph) {} in LayoutKey() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DTextInterpolatorTest.kt211 glyphFilter = { glyph, progress -> in testGlyphCallback_Empty() method
233 glyphFilter = { glyph, progress -> in testGlyphCallback_Xcoordinate() method
234 glyph.x += 30f in testGlyphCallback_Xcoordinate()
258 glyphFilter = { glyph, progress -> in testGlyphCallback_Ycoordinate() method
259 glyph.y += 30f in testGlyphCallback_Ycoordinate()
283 glyphFilter = { glyph, progress -> in testGlyphCallback_TextSize() method
284 glyph.textSize += 10f in testGlyphCallback_TextSize()
308 glyphFilter = { glyph, progress -> in testGlyphCallback_Color() method
309 glyph.color = Color.RED in testGlyphCallback_Color()
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp66 hb_codepoint_t glyph, void* /* userData */) { in harfbuzzGetGlyphHorizontalAdvance() argument
68 float advance = args->font->GetHorizontalAdvance(glyph, *args->paint, args->fakery); in harfbuzzGetGlyphHorizontalAdvance()
81 const hb_codepoint_t* glyph = first_glyph; in harfbuzzGetGlyphHorizontalAdvances() local
83 glyphVec[i] = *glyph; in harfbuzzGetGlyphHorizontalAdvances()
84 glyph = reinterpret_cast<const hb_codepoint_t*>(reinterpret_cast<const uint8_t*>(glyph) + in harfbuzzGetGlyphHorizontalAdvances()
145 hb_codepoint_t glyph; in determineHyphenChar() local
149 if (hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { in determineHyphenChar()
161 if (!hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { in determineHyphenChar()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp56 LOG_ALWAYS_FATAL_IF(face->glyph->format != FT_GLYPH_FORMAT_OUTLINE, in loadGlyphOrDie()
92 return FTPosToFloat(mFtFace->glyph->advance.x); in GetHorizontalAdvance()
101 FT_Outline_Get_CBox(&mFtFace->glyph->outline, &bbox); in GetBounds()
/frameworks/base/tools/fonts/
Dfontchain_linter.py133 reverse_cmap = {glyph: code for code, glyph in emoji_map.items() if not contains_pua(code) }
139 for base, glyph in vs_cmap.uvsDict[vs]:
140 if glyph is None:
143 emoji_map[(base, vs)] = glyph
157 sequence = [reverse_cmap[glyph] for glyph in sequence]
429 for glyph in set(coverage.values()):
431 seq for seq in coverage if coverage[seq] == glyph and not contains_pua(seq) ]
444 glyph))
/frameworks/base/cmds/bootanimation/
DFORMAT.md83 * For a NxM image each character glyph will be N/16 pixels wide and M/(12*2) pixels high