Home
last modified time | relevance | path

Searched refs:textArray (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DPaint.cpp351 const jchar* textArray = env->GetCharArrayElements(text, NULL); in measureText_CII() local
354 TextLayout::getTextRunAdvances(paint, textArray, index, count, textLength, in measureText_CII()
358 SkScalar width = paint->measureText(textArray + index, count << 1); in measureText_CII()
361 env->ReleaseCharArrayElements(text, const_cast<jchar*>(textArray), JNI_ABORT); in measureText_CII()
379 const jchar* textArray = env->GetStringChars(text, NULL); in measureText_StringII() local
384 TextLayout::getTextRunAdvances(paint, textArray, start, count, textLength, in measureText_StringII()
388 width = SkScalarToFloat(paint->measureText(textArray + start, count << 1)); in measureText_StringII()
390 env->ReleaseStringChars(text, textArray); in measureText_StringII()
403 const jchar* textArray = env->GetStringChars(text, NULL); in measureText_String() local
408 TextLayout::getTextRunAdvances(paint, textArray, 0, textLength, textLength, in measureText_String()
[all …]
DCanvas.cpp734 jchar* textArray = env->GetCharArrayElements(text, NULL); in drawText___CIIFFIPaint() local
736 drawTextWithGlyphs(canvas, textArray + index, 0, count, x, y, flags, paint); in drawText___CIIFFIPaint()
738 TextLayout::drawText(paint, textArray + index, count, flags, x, y, canvas); in drawText___CIIFFIPaint()
740 env->ReleaseCharArrayElements(text, textArray, JNI_ABORT); in drawText___CIIFFIPaint()
747 const jchar* textArray = env->GetStringChars(text, NULL); in drawText__StringIIFFIPaint() local
749 drawTextWithGlyphs(canvas, textArray, start, end, x, y, flags, paint); in drawText__StringIIFFIPaint()
751 TextLayout::drawText(paint, textArray + start, end - start, flags, x, y, canvas); in drawText__StringIIFFIPaint()
753 env->ReleaseStringChars(text, textArray); in drawText__StringIIFFIPaint()
756 static void drawTextWithGlyphs(SkCanvas* canvas, const jchar* textArray, in drawTextWithGlyphs() argument
761 drawTextWithGlyphs(canvas, textArray + start, 0, count, count, x, y, flags, paint); in drawTextWithGlyphs()
[all …]
/frameworks/base/core/jni/
Dandroid_view_GLES20Canvas.cpp542 jchar* textArray = env->GetCharArrayElements(text, NULL); in android_view_GLES20Canvas_drawTextArray() local
543 renderText(renderer, textArray + index, count, x, y, flags, paint); in android_view_GLES20Canvas_drawTextArray()
544 env->ReleaseCharArrayElements(text, textArray, JNI_ABORT); in android_view_GLES20Canvas_drawTextArray()
550 const jchar* textArray = env->GetStringChars(text, NULL); in android_view_GLES20Canvas_drawText() local
551 renderText(renderer, textArray + start, end - start, x, y, flags, paint); in android_view_GLES20Canvas_drawText()
552 env->ReleaseStringChars(text, textArray); in android_view_GLES20Canvas_drawText()
559 jchar* textArray = env->GetCharArrayElements(text, NULL); in android_view_GLES20Canvas_drawTextRunArray() local
560 renderTextRun(renderer, textArray + contextIndex, index - contextIndex, in android_view_GLES20Canvas_drawTextRunArray()
562 env->ReleaseCharArrayElements(text, textArray, JNI_ABORT); in android_view_GLES20Canvas_drawTextRunArray()
569 const jchar* textArray = env->GetStringChars(text, NULL); in android_view_GLES20Canvas_drawTextRun() local
[all …]