Home
last modified time | relevance | path

Searched refs:builderPtr (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp77 static jlong FontFamily_create(jlong builderPtr) { in FontFamily_create() argument
78 if (builderPtr == 0) { in FontFamily_create()
81 NativeFamilyBuilder* builder = toNativeBuilder(builderPtr); in FontFamily_create()
94 static void releaseBuilder(jlong builderPtr) { in releaseBuilder() argument
95 delete toNativeBuilder(builderPtr); in releaseBuilder()
171 static jboolean FontFamily_addFont(JNIEnv* env, jobject clazz, jlong builderPtr, jobject bytebuf, in FontFamily_addFont() argument
174 NativeFamilyBuilder* builder = reinterpret_cast<NativeFamilyBuilder*>(builderPtr); in FontFamily_addFont()
193 static jboolean FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong builderPtr, in FontFamily_addFontWeightStyle() argument
196 NativeFamilyBuilder* builder = toNativeBuilder(builderPtr); in FontFamily_addFontWeightStyle()
219 static jboolean FontFamily_addFontFromAssetManager(JNIEnv* env, jobject, jlong builderPtr, in FontFamily_addFontFromAssetManager() argument
[all …]
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp68 static void nAddStyleRun(JNIEnv* /* unused */, jclass /* unused */, jlong builderPtr, in nAddStyleRun() argument
73 toBuilder(builderPtr)->addStyleRun(start, end, std::move(minikinPaint), isRtl); in nAddStyleRun()
77 static void nAddReplacementRun(JNIEnv* /* unused */, jclass /* unused */, jlong builderPtr, in nAddReplacementRun() argument
79 toBuilder(builderPtr)->addReplacementRun(start, end, width, in nAddReplacementRun()
84 static jlong nBuildMeasuredText(JNIEnv* env, jclass /* unused */, jlong builderPtr, in nBuildMeasuredText() argument
91 return toJLong(toBuilder(builderPtr)->build(textBuffer, computeHyphenation, computeLayout, in nBuildMeasuredText()
96 static void nFreeBuilder(JNIEnv* env, jclass /* unused */, jlong builderPtr) { in nFreeBuilder() argument
97 delete toBuilder(builderPtr); in nFreeBuilder()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFamily.java117 final long builderPtr = nInitBuilder(); in build() local
119 nAddFont(builderPtr, mFonts.get(i).getNativePtr()); in build()
121 final long ptr = nBuild(builderPtr, langTags, variant, isCustomFallback); in build()
133 private static native void nAddFont(long builderPtr, long fontPtr); in nAddFont() argument
134 private static native long nBuild(long builderPtr, String langTags, int variant, in nBuild() argument
DFont.java382 final long builderPtr = nInitBuilder(); in build() local
385 nAddAxis(builderPtr, axis.getOpenTypeTagValue(), axis.getStyleValue()); in build()
390 final long ptr = nBuild(builderPtr, readonlyBuffer, filePath, mWeight, italic, in build()
412 private static native void nAddAxis(long builderPtr, int tag, float value); in nAddAxis() argument
414 long builderPtr, @NonNull ByteBuffer buffer, @NonNull String filePath, int weight, in nBuild() argument
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java201 private static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex) { in nAddFont() argument
202 return nAddFont(builderPtr, font, ttcIndex, -1, -1); in nAddFont()
217 private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, in nAddFont() argument
219 private static native boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font, in nAddFontWeightStyle() argument
221 private static native boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, in nAddFontFromAssetManager() argument
226 private static native void nAddAxisValue(long builderPtr, int tag, float value); in nAddAxisValue() argument
/frameworks/base/core/jni/android/graphics/fonts/
DFontFamily.cpp54 static void FontFamily_Builder_addFont(jlong builderPtr, jlong fontPtr) { in FontFamily_Builder_addFont() argument
55 toBuilder(builderPtr)->fonts.push_back(toFontWrapper(fontPtr)->font); in FontFamily_Builder_addFont()
59 static jlong FontFamily_Builder_build(JNIEnv* env, jobject clazz, jlong builderPtr, in FontFamily_Builder_build() argument
61 std::unique_ptr<NativeFamilyBuilder> builder(toBuilder(builderPtr)); in FontFamily_Builder_build()
DFont.cpp131 static void Font_Builder_addAxis(jlong builderPtr, jint tag, jfloat value) { in Font_Builder_addAxis() argument
132 toBuilder(builderPtr)->axes.emplace_back(static_cast<minikin::AxisTag>(tag), value); in Font_Builder_addAxis()
136 static jlong Font_Builder_build(JNIEnv* env, jobject clazz, jlong builderPtr, jobject buffer, in Font_Builder_build() argument
139 std::unique_ptr<NativeFontBuilder> builder(toBuilder(builderPtr)); in Font_Builder_build()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java79 /*package*/ static void nAddFont(long builderPtr, long fontPtr) { in nAddFont() argument
80 FontFamily_Builder_Delegate builder = sBuilderManager.getDelegate(builderPtr); in nAddFont()
88 /*package*/ static long nBuild(long builderPtr, String langTags, int variant, in nBuild() argument
90 FontFamily_Builder_Delegate builder = sBuilderManager.getDelegate(builderPtr); in nBuild()
96 return builderPtr; in nBuild()
DFont_Builder_Delegate.java99 /*package*/ static void nAddAxis(long builderPtr, int tag, float value) { in nAddAxis() argument
105 /*package*/ static long nBuild(long builderPtr, ByteBuffer buffer, String filePath, int weight, in nBuild() argument
107 Font_Builder_Delegate font = sBuilderManager.getDelegate(builderPtr); in nBuild()
115 return builderPtr; in nBuild()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java325 /*package*/ static long nCreateFamily(long builderPtr) {
326 return builderPtr;
341 /*package*/ static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex,
348 /*package*/ static boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font,
355 /*package*/ static void nAddAxisValue(long builderPtr, int tag, float value) {
359 static boolean addFont(long builderPtr, final String path, final int weight,
361 final FontFamily_Delegate delegate = getDelegate(builderPtr);
374 …/*package*/ static boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path,
376 FontFamily_Delegate ffd = sManager.getDelegate(builderPtr);