Home
last modified time | relevance | path

Searched refs:fontSize (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/libs/hwui/jni/
DFontFamily.cpp119 const size_t fontSize = data->size(); in addSkTypeface() local
136 fontSize, "", ttcIndex, builder->axes); in addSkTypeface()
179 jlong fontSize = env->GetDirectBufferCapacity(bytebuf); in FontFamily_addFont() local
180 if (fontSize < 0) { in FontFamily_addFont()
186 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFont()
201 jlong fontSize = env->GetDirectBufferCapacity(font); in FontFamily_addFontWeightStyle() local
202 if (fontSize < 0) { in FontFamily_addFontWeightStyle()
208 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFontWeightStyle()
DTypeface.cpp246 size_t fontSize = data->size(); in loadMinikinFontSkia() local
249 minikin::FontFileParser parser(fontPtr, fontSize, fontIndex); in loadMinikinFontSkia()
263 std::move(data), fontPath, fontPtr, fontSize, fontIndex, axes); in loadMinikinFontSkia()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp93 jlong fontSize = env->GetDirectBufferCapacity(buffer); in Font_Builder_build() local
94 if (fontSize <= 0) { in Font_Builder_build()
102 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in Font_Builder_build()
106 fontPtr, fontSize, ttcIndex, builder->axes); in Font_Builder_build()
340 jlong fontSize = env->GetDirectBufferCapacity(buffer); in FontFileUtil_getFontRevision() local
341 if (fontSize <= 0) { in FontFileUtil_getFontRevision()
346 minikin::FontFileParser parser(fontPtr, fontSize, index); in FontFileUtil_getFontRevision()
362 jlong fontSize = env->GetDirectBufferCapacity(buffer); in FontFileUtil_getFontPostScriptName() local
363 if (fontSize <= 0) { in FontFileUtil_getFontPostScriptName()
368 minikin::FontFileParser parser(fontPtr, fontSize, index); in FontFileUtil_getFontPostScriptName()
[all …]
DFont.h33 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize,
/frameworks/base/media/java/android/media/
DTimedText.java209 public final int fontSize; field in TimedText.Style
230 int fontSize, int colorRGBA) { in Style() argument
237 this.fontSize = fontSize; in Style()
552 int fontSize = -1; in readStyle() local
579 fontSize = parcel.readInt(); in readStyle()
597 isItalic, isUnderlined, fontSize, colorRGBA); in readStyle()
DWebVttRenderer.java1225 final float fontSize = mManager.getFontScale() * getHeight() * LINE_HEIGHT_RATIO; in manageChangeListener() local
1226 setCaptionStyle(captionStyle, fontSize); in manageChangeListener()
1236 final float fontSize = mFontSize; in setActiveCues() local
1248 regionBox = new RegionLayout(context, region, captionStyle, fontSize); in setActiveCues()
1256 cueBox = new CueLayout(context, cue, captionStyle, fontSize); in setActiveCues()
1277 private void setCaptionStyle(CaptionStyle captionStyle, float fontSize) { in setCaptionStyle() argument
1280 mFontSize = fontSize; in setCaptionStyle()
1285 cueBox.setCaptionStyle(captionStyle, fontSize); in setCaptionStyle()
1291 regionBox.setCaptionStyle(captionStyle, fontSize); in setCaptionStyle()
1512 final float fontSize = fontScale * getHeight() * LINE_HEIGHT_RATIO;
[all …]
DClosedCaptionRenderer.java1310 float fontSize = MeasureSpec.getSize(heightMeasureSpec) * FONT_PADDING_RATIO; in onMeasure() local
1311 setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in onMeasure()
1313 mOutlineWidth = EDGE_OUTLINE_RATIO * fontSize + 1.0f; in onMeasure()
1314 mShadowRadius = EDGE_SHADOW_RATIO * fontSize + 1.0f;; in onMeasure()
/frameworks/rs/
Drsg.spec59 param float fontSize
66 param float fontSize
DrsFont.cpp40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init() argument
60 mFontSize = fontSize; in init()
63 error = FT_Set_Char_Size(mFace, (FT_F26Dot6)(fontSize * 64.0f), 0, dpi, 0); in init()
295 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, in create() argument
302 if (ithFont->mFontName == name && ithFont->mFontSize == fontSize && ithFont->mDpi == dpi) { in create()
308 bool isInitialized = newFont->init(name, fontSize, dpi, data, dataLen); in create()
859 float fontSize, uint32_t dpi) { in rsi_FontCreateFromFile() argument
860 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile()
869 float fontSize, uint32_t dpi, in rsi_FontCreateFromMemory() argument
871 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length); in rsi_FontCreateFromMemory()
DrsFont.h75 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
120 …bool init(const char *name, float fontSize, uint32_t dpi, const void *data = nullptr, uint32_t dat…
DrsApiStubs.cpp829 float fontSize, uint32_t dpi) in rsFontCreateFromFile() argument
831 return RS_DISPATCH(ctxWrapper, FontCreateFromFile, name, name_length, fontSize, dpi); in rsFontCreateFromFile()
835 float fontSize, uint32_t dpi, in rsFontCreateFromMemory() argument
838 …return RS_DISPATCH(ctxWrapper, FontCreateFromMemory, name, name_length, fontSize, dpi, data, data_… in rsFontCreateFromMemory()
DrsApiStubs.h280 float fontSize, uint32_t dpi) __DEPRECATED_IN(31);
282 float fontSize, uint32_t dpi, const void* data,
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextUnitTest.cpp78 int32_t fontSize = -1; member
214 fontInfo.fontSize = *(tmpData + 7); in TEST_P()
215 ALOGI("Size of the font: %d", fontInfo.fontSize); in TEST_P()
327 ASSERT_EQ(parcel.readInt32(), fontInfo.fontSize) << "Parcel has invalid value of font size"; in TEST_P()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java146 long fontSize = fileChannel.size(); in addFont() local
147 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in addFont()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java83 int fontSize = WindowManagerService.getPropertyInt(tokens, 1, in Watermark() local
87 mTextPaint.setTextSize(fontSize); in Watermark()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp34 size_t fontSize, std::string_view filePath, int ttcIndex, in MinikinFontSkia() argument
39 , mFontSize(fontSize) in MinikinFontSkia()
DMinikinSkia.h33 MinikinFontSkia(sk_sp<SkTypeface> typeface, int sourceId, const void* fontData, size_t fontSize,
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflowContainerView.java213 final float fontSize = mContext.getResources() in updateFontSize() local
215 mEmptyStateTitle.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in updateFontSize()
216 mEmptyStateSubtitle.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in updateFontSize()
DBubbleFlyoutView.java224 final float fontSize = mContext.getResources() in updateFontSize() local
226 mMessageText.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in updateFontSize()
227 mSenderText.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in updateFontSize()
DBubbleExpandedView.java383 final float fontSize = mContext.getResources() in updateFontSize() local
386 mManageButton.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); in updateFontSize()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java87 final long fontSize = fileChannel.size(); in mmap() local
88 return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); in mmap()
/frameworks/rs/cpp/
DrsDispatch.h117 …romFileFnPtr) (RsContext rsc, const char * name, size_t name_length, float fontSize, uint32_t dpi);
118 …moryFnPtr) (RsContext rsc, const char * name, size_t name_length, float fontSize, uint32_t dpi, co…
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1727 jstring fileName, jfloat fontSize, jint dpi) in nFontCreateFromFile() argument
1732 fontSize, dpi); in nFontCreateFromFile()
1739 jstring name, jfloat fontSize, jint dpi, jlong native_asset) in nFontCreateFromAssetStream() argument
1746 fontSize, dpi, in nFontCreateFromAssetStream()
1753 jfloat fontSize, jint dpi) in nFontCreateFromAsset() argument
1772 fontSize, dpi, in nFontCreateFromAsset()
/frameworks/native/opengl/libs/GLES2/
Dgl2ext_api.in1273 …yGlyphIndexArrayNV)(GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *font…
1274 …CALL_GL_API_RETURN(glPathMemoryGlyphIndexArrayNV, firstPathName, fontTarget, fontSize, fontData, f…
/frameworks/native/opengl/include/GLES2/
Dgl2ext.h3134 …HINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *font…
3211 …yGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *font…

12