/frameworks/support/compat/tests/java/android/support/v4/provider/ |
H A D | MockFontProvider.java | 63 static class Font { class in class:MockFontProvider 64 Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, method in class:MockFontProvider.Font 118 private static final Map<String, Font[]> QUERY_MAP; 120 HashMap<String, Font[]> map = new HashMap<>(); 123 map.put(SINGLE_FONT_FAMILY_QUERY, new Font[] { 124 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, "'wght' 100", 400, 0, 128 map.put(SINGLE_FONT_FAMILY2_QUERY, new Font[] { 129 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, "'wght' 100", 700, 1, 133 map.put(NOT_FOUND_QUERY, new Font[] { 134 new Font( [all...] |
/frameworks/minikin/tests/perftests/ |
H A D | FontFamily.cpp | 29 std::vector<Font>({Font(minikinFont, FontStyle())}));
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 39 // Font 50 class Font { class in namespace:android::uirenderer 84 ~Font(); 92 const Font::FontDescription& getDescription() const { 99 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix); 104 Font(FontRenderer* state, const Font::FontDescription& desc); 106 typedef void (Font::*RenderGlyph)(CachedGlyphInfo*, int, int, uint8_t*, 157 inline int strictly_order_type(const Font::FontDescription& lhs, 158 const Font [all...] |
H A D | Font.cpp | 28 #include "Font.h" 38 // Font 41 Font::Font(FontRenderer* state, const Font::FontDescription& desc) : function in class:android::uirenderer::Font 44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) 50 mFlags |= Font::kFakeBold; 63 Font::~Font() { 69 hash_t Font [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Font.java | 43 * <p>Font color and transparency are not part of the font object and you can freely modify 44 * them in the script to suit the user's rendering needs. Font colors work as a state machine. 47 public class Font extends BaseObj { class in inherits:BaseObj 151 Font(long id, RenderScript rs) { method in class:Font 160 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { 168 Font rsFont = new Font(fontId, rs); 176 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { 183 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { 192 Font rsFon [all...] |
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 105 struct Font { struct in namespace:minikin 106 Font(const std::shared_ptr<MinikinFont>& typeface, FontStyle style); 107 Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style); 108 Font(Font&& o); 109 Font(const Font& o); 125 explicit FontFamily(std::vector<Font>&& fonts); 126 FontFamily(int variant, std::vector<Font>&& fonts); 127 FontFamily(uint32_t langId, int variant, std::vector<Font> [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 68 Font::Font(const std::shared_ptr<MinikinFont>& typeface, FontStyle style) function in class:minikin::Font 72 Font::Font(std::shared_ptr<MinikinFont>&& typeface, FontStyle style) function in class:minikin::Font 76 std::unordered_set<AxisTag> Font::getSupportedAxesLocked() const { 88 Font::Font(Font&& o) { function in class:minikin::Font 94 Font::Font(cons function in class:minikin::Font [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | MockFontProvider.java | 100 static class Font { class in class:MockFontProvider 101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, method in class:MockFontProvider.Font 152 private static Map<String, Font[]> QUERY_MAP; 154 HashMap<String, Font[]> map = new HashMap<>(); 157 map.put("singleFontFamily", new Font[] { 158 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK), 161 map.put("singleFontFamily2", new Font[] { 162 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK), 165 map.put(BLOCKING_QUERY, new Font[] { 166 new Font(i [all...] |
/frameworks/rs/ |
H A D | rsFont.h | 44 class Font : public ObjectBase { class in namespace:android::renderscript 65 ~Font(); 75 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 119 explicit Font(Context *rsc); 146 ObjectBaseRef<Font> mDefault; 150 Font::RenderMode mode = Font::FRAMEBUFFER, 151 Font::Rect *bounds = nullptr, 154 void measureText(const char *text, uint32_t len, Font::Rect *bounds); 164 friend class Font; [all...] |
H A D | rsFont.cpp | 34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { function in class:android::renderscript::Font 40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) { 76 void Font::preDestroy() const { 86 void Font::invalidateTextureCache() { 92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { 112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, 138 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { 160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, 168 if (mode == Font [all...] |
H A D | rsContext.h | 105 ObjectBaseRef<Font> mFont; 134 void setFont(Font *); 142 Font * getFont() {return mFont.get();} 179 Font* getDefaultFont() const { 327 ObjectBaseRef<Font> mFont;
|
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 31 * Font configuration descriptions for System fonts. 58 * Class that holds information about a Font. 60 public static final class Font { class in class:FontConfig 71 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, method in class:FontConfig.Font 131 * Class that holds information about a Font alias. 167 * Class that holds information about a Font family. 171 private final @NonNull Font[] mFonts; 206 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String language, 224 public @Nullable Font[] getFonts() {
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 29 import java.awt.Font; 64 /** @see Font#getStyle() */ 89 public List<Font> getFonts(FontVariant variant) { 94 ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA); 100 final boolean isItalic = (mStyle & Font.ITALIC) != 0; 101 List<Font> fonts = new ArrayList<Font>(mFontFamilies.length); 105 Font font = ffd.getFont(weight, isItalic); 119 Font font2 = ffd2.getFont(weight, isItalic); 273 for (FontConfig.Font fon [all...] |
H A D | BidiRenderer.java | 29 import java.awt.Font; 50 private final Font font; 52 private ScriptRun(int start, int limit, @NonNull Font font) { 131 int flag = Font.LAYOUT_NO_LIMIT_CONTEXT | Font.LAYOUT_NO_START_CONTEXT; 132 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT; 144 private void renderScript(int start, int limit, Font preferredFont, int flag, 171 Font font = fontInfos.get(i).mFont; 208 private void render(int start, int limit, Font fon [all...] |
H A D | FontFamily_Delegate.java | 32 import java.awt.Font; 93 * A class associating {@link Font} with its metadata. 97 Font mFont; 117 * The variant of the Font Family - compact or elegant. 178 public Font getFont(int desiredWeight, boolean isItalic) { 219 private static Font loadFont(String path) { 225 return Font.createFont(Font.TRUETYPE_FONT, f); 365 Font font = Font [all...] |
/frameworks/minikin/tests/stresstest/ |
H A D | FontFamilyTest.cpp | 38 std::make_shared<FontFamily>(std::vector<Font>({Font(font, FontStyle())}));
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 48 struct Font { struct in class:android::BootAnimation 93 Font clockFont; 146 status_t initFont(Font* font, const char* fallback); 149 void drawText(const char* str, const Font& font, bool bold, int* x, int* y); 150 void drawClock(const Font& font, const int xPos, const int yPos);
|
/frameworks/minikin/tests/util/ |
H A D | FontTestUtils.cpp | 51 std::vector<Font> fonts; 74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); 78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
|
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionTest.cpp | 62 std::vector<Font>({ Font(font, FontStyle()) }))); 134 std::vector<Font>({ Font(multiAxisFont, FontStyle()) }))); 140 std::vector<Font>({ Font(noAxisFont, FontStyle()) })));
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontListParser.java | 80 List<FontConfig.Font> fonts = new ArrayList<FontConfig.Font>(); 98 return new FontConfig.Family(name, fonts.toArray(new FontConfig.Font[fonts.size()]), lang, 106 private static FontConfig.Font readFont(XmlPullParser parser) 128 return new FontConfig.Font(sanitizedName, index,
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/base/media/java/android/media/ |
H A D | TimedText.java | 62 private static final int KEY_STRUCT_FONT_LIST = 9; // List<Font> 101 private List<Font> mFontList = null; 244 public static final class Font { class in class:TimedText 260 public Font(int id, String name) { method in class:TimedText.Font 592 * To parse and store the Font list 604 Font font = new Font(id, name); 607 mFontList = new ArrayList<Font>(); 724 * List of CharPos, Karaoke, Font, Style, and HyperText, or 3) an instance of
|
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.h | 22 #include "font/Font.h" 130 friend class Font; 182 Font* mCurrentFont; 183 LruCache<Font::FontDescription, Font*> mActiveFonts;
|