Home
last modified time | relevance | path

Searched refs:advances (Results 1 – 15 of 15) sorted by relevance

/frameworks/minikin/libs/minikin/
DMeasurement.cpp31 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, in getRunAdvance() argument
37 float charAdvance = advances[i - layoutStart]; in getRunAdvance()
44 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance()
50 if (advances[nextCluster - layoutStart] != 0.0f) break; in getRunAdvance()
70 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getRunAdvance() argument
72 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance()
83 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance() argument
92 float width = advances[i - start]; in getOffsetForAdvance()
107 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i) in getOffsetForAdvance()
DLayout.cpp599 const FontCollection* collection, float* advances) { in measureText() argument
608 float* advancesForRun = advances ? advances + (runInfo.mRunStart - start) : advances; in measureText()
619 Layout* layout, float* advances) { in doLayoutRunCached() argument
634 advances ? advances + (iter - start) : advances); in doLayoutRunCached()
649 advances ? advances + (bufStart - start) : advances); in doLayoutRunCached()
658 Layout* layout, float* advances) { in doLayoutWord() argument
668 if (advances) { in doLayoutWord()
669 layoutForWord.getAdvances(advances); in doLayoutWord()
677 if (advances) { in doLayoutWord()
678 layoutForWord->getAdvances(advances); in doLayoutWord()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java110 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
116 renderText(visualRun.getStart(), visualRun.getLimit(), isRtl, advances, in renderText() local
137 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
144 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
156 float[] advances, int advancesIndex, boolean draw) { in renderScript() argument
166 render(start, limit, preferredFont, flag, advances, advancesIndex, draw); in renderScript()
171 render(start, canDisplayUpTo, preferredFont, flag, advances, advancesIndex, draw); in renderScript()
186 render(start, start+charCount, font, flag, advances, advancesIndex, draw); in renderScript()
198 render(start, start + charCount, preferredFont, flag, advances, advancesIndex, in renderScript()
216 private void render(int start, int limit, Font font, int flag, float[] advances, in render() argument
[all …]
DPaint_Delegate.java967 int bidiFlags, float[] advances, int advancesIndex) { in nGetTextAdvances() argument
969 if (advances != null) in nGetTextAdvances()
971 advances[i]=0; in nGetTextAdvances()
983 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags); in nGetTextAdvances()
990 int bidiFlags, float[] advances, int advancesIndex) { in nGetTextAdvances() argument
997 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); in nGetTextAdvances()
1145 float[] advances = new float[count]; in nGetRunAdvance() local
1148 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); in nGetRunAdvance()
1152 sum += advances[i]; in nGetRunAdvance()
1162 float[] advances = new float[count]; in nGetOffsetForAdvance() local
[all …]
/frameworks/minikin/include/minikin/
DLayout.h98 const FontCollection* collection, float* advances);
118 void getAdvances(float* advances);
140 const FontCollection* collection, Layout* layout, float* advances);
145 Layout* layout, float* advances);
DMeasurement.h24 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count,
27 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count,
/frameworks/base/graphics/java/android/graphics/
DPaint.java2086 int contextIndex, int contextCount, boolean isRtl, float[] advances, in getTextRunAdvances() argument
2096 | (advances == null ? 0 : in getTextRunAdvances()
2097 (advances.length - (advancesIndex + count)))) < 0) { in getTextRunAdvances()
2106 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances()
2113 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances, in getTextRunAdvances()
2117 if (advances != null) { in getTextRunAdvances()
2119 advances[i] *= mInvCompatScaling; in getTextRunAdvances()
2133 int contextStart, int contextEnd, boolean isRtl, float[] advances, in getTextRunAdvances() argument
2141 | (advances == null ? 0 : in getTextRunAdvances()
2142 (advances.length - advancesIndex - (end - start)))) < 0) { in getTextRunAdvances()
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp64 const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) { in measureText() argument
69 font, advances); in measureText()
DMinikinUtils.h45 const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances);
/frameworks/base/core/java/android/text/
DGraphicsOperations.java58 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances() argument
DSpannableStringBuilder.java1453 float[] advances, int advancesPos, Paint p) { in getTextRunAdvances() argument
1462 isRtl, advances, advancesPos); in getTextRunAdvances()
1465 contextStart + mGapLength, contextLen, isRtl, advances, advancesPos); in getTextRunAdvances()
1470 0, contextLen, isRtl, advances, advancesPos); in getTextRunAdvances()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp479 jfloatArray advances, jint advancesIndex) { in doTextAdvances() argument
489 if (advances) { in doTextAdvances()
490 size_t advancesLength = env->GetArrayLength(advances); in doTextAdvances()
497 if (advances) { in doTextAdvances()
502 if (advances) { in doTextAdvances()
503 env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray.get()); in doTextAdvances()
511 jint bidiFlags, jfloatArray advances, jint advancesIndex) { in getTextAdvances___CIIIII_FI() argument
516 index - contextIndex, count, contextCount, bidiFlags, advances, advancesIndex); in getTextAdvances___CIIIII_FI()
524 jfloatArray advances, jint advancesIndex) { in getTextAdvances__StringIIIII_FI() argument
530 advances, advancesIndex); in getTextAdvances__StringIIIII_FI()
/frameworks/base/docs/html/wear/preview/features/
Dgestures.jd203 // Do something that advances a user View to the next item in an ordered list.
206 // Do something that advances a user View to the previous item in an ordered list.
/frameworks/base/core/java/android/widget/
DTextView.java10177 int contextEnd, boolean isRtl, float[] advances, int advancesIndex, in getTextRunAdvances() argument
10182 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances()
/frameworks/base/docs/html/guide/topics/appwidgets/
Dindex.jd824 <li>Without any user interaction, the app widget automatically advances