Home
last modified time | relevance | path

Searched refs:fontPtr (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp88 const void* fontPtr = env->GetDirectBufferAddress(buffer); in Font_Builder_build() local
89 if (fontPtr == nullptr) { 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()
123 static jlong Font_Builder_clone(JNIEnv* env, jobject clazz, jlong fontPtr, jlong builderPtr, in Font_Builder_clone() argument
125 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_Builder_clone()
193 static jlong Font_getMinikinFontPtr(CRITICAL_JNI_PARAMS_COMMA jlong fontPtr) { in Font_getMinikinFontPtr() argument
194 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_getMinikinFontPtr()
199 static jlong Font_cloneFont(CRITICAL_JNI_PARAMS_COMMA jlong fontPtr) { in Font_cloneFont() argument
200 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_cloneFont()
[all …]
DFontFamily.cpp54 static void FontFamily_Builder_addFont(CRITICAL_JNI_PARAMS_COMMA jlong builderPtr, jlong fontPtr) { in FontFamily_Builder_addFont() argument
55 toBuilder(builderPtr)->fonts.push_back(toFontWrapper(fontPtr)->font); in FontFamily_Builder_addFont()
DFont.h33 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize,
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp120 const void* fontPtr = data->data(); in addSkTypeface() local
135 std::make_shared<MinikinFontSkia>(std::move(face), fonts::getNewSourceId(), fontPtr, in addSkTypeface()
173 const void* fontPtr = env->GetDirectBufferAddress(bytebuf); in FontFamily_addFont() local
174 if (fontPtr == NULL) { in FontFamily_addFont()
186 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFont()
195 const void* fontPtr = env->GetDirectBufferAddress(font); in FontFamily_addFontWeightStyle() local
196 if (fontPtr == NULL) { in FontFamily_addFontWeightStyle()
208 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFontWeightStyle()
DTypeface.cpp245 const void* fontPtr = data->data(); 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/graphics/java/android/graphics/fonts/
DFont.java504 private static native long nClone(long fontPtr, long builderPtr, int weight, in nClone() argument
902 private static native String nGetFontPath(long fontPtr); in nGetFontPath() argument
908 private static native int nGetPackedStyle(long fontPtr); in nGetPackedStyle() argument
911 private static native int nGetIndex(long fontPtr); in nGetIndex() argument
914 private static native int nGetAxisCount(long fontPtr); in nGetAxisCount() argument
917 private static native long nGetAxisInfo(long fontPtr, int i); in nGetAxisInfo() argument
DFontFamily.java139 private static native void nAddFont(long builderPtr, long fontPtr); in nAddFont() argument
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java80 /*package*/ static void nAddFont(long builderPtr, long fontPtr) { in nAddFont() argument
82 … Font_Builder_Delegate fontBuilder = Font_Builder_Delegate.sBuilderManager.getDelegate(fontPtr); in nAddFont()