Searched defs:advances (Results 1 - 14 of 14) sorted by relevance

/frameworks/minikin/tests/unittest/
H A DMeasurementTests.cpp23 float getAdvance(const float* advances, const char* src) { argument
29 return getRunAdvance(advances, buf, 0, size, offset);
H A DGraphemeBreakTests.cpp32 bool IsBreakWithAdvances(const float* advances, const char* src) { argument
38 return GraphemeBreak::isGraphemeBreak(advances, buf, 0, size, offset);
188 // Repetition of above tests, but with a given advances array that implies everything
200 // Repetition of above tests, but with a given advances array that the virama did not
H A DLayoutTest.cpp32 static void expectAdvances(std::vector<float> expected, float* advances, size_t length) { argument
35 EXPECT_EQ(expected[i], advances[i])
37 << ", Actual: " << advances[i]; local
39 EXPECT_EQ(UNTOUCHED_MARKER, advances[expected.size()]);
42 static void resetAdvances(float* advances, size_t length) { argument
44 advances[i] = UNTOUCHED_MARKER;
70 float advances[kMaxAdvanceLength]; local
88 resetAdvances(advances, kMaxAdvanceLength);
89 layout.getAdvances(advances);
94 expectAdvances(expectedValues, advances, kMaxAdvanceLengt
159 float advances[kMaxAdvanceLength]; local
258 float advances[kMaxAdvanceLength]; local
[all...]
/frameworks/base/core/java/android/text/
H A DGraphicsOperations.java56 boolean isRtl, float[] advances, int advancesIndex, Paint paint);
55 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, Paint paint) argument
H A DSpannableStringBuilder.java1499 float[] advances, int advancesPos, Paint p) {
1508 isRtl, advances, advancesPos);
1511 contextStart + mGapLength, contextLen, isRtl, advances, advancesPos);
1516 0, contextLen, isRtl, advances, advancesPos);
1498 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesPos, Paint p) argument
/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp68 const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) {
73 minikinPaint, resolvedTypeface->fFontCollection, advances);
67 measureText(const Paint* paint, int bidiFlags, Typeface* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) argument
/frameworks/minikin/libs/minikin/
H A DGraphemeBreak.cpp59 bool GraphemeBreak::isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start, argument
113 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0);
172 if (advances != nullptr) {
173 // We have advances information. But if we are here, we already know c2 has no advance.
194 // disallow grapheme breaks (if we are here, we don't know about advances, or we already know
205 size_t GraphemeBreak::getTextRunCursor(const float* advances, const uint16_t* buf, size_t start, argument
214 while (!isGraphemeBreak(advances, buf, start, count, offset)) {
224 while (!isGraphemeBreak(advances, buf, start, count, offset)) {
229 if (!isGraphemeBreak(advances, bu
[all...]
H A DMeasurement.cpp32 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, argument
38 float charAdvance = advances[i - layoutStart];
45 if (offset < start + count && advances[offset - layoutStart] == 0.0f) {
51 if (advances[nextCluster - layoutStart] != 0.0f) break;
58 advances + (start - layoutStart), buf, start, count, i)) {
72 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
74 return getRunAdvance(advances, buf, start, start, count, offset);
85 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
90 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) {
94 float width = advances[
[all...]
H A DLayout.cpp266 // bitmap at the same time. We ignore modified advances of hinted outline glyphs in that
577 const std::shared_ptr<FontCollection>& collection, float* advances) {
586 float* advancesForRun = advances ? advances + (runInfo.mRunStart - start) : advances;
597 const std::shared_ptr<FontCollection>& collection, Layout* layout, float* advances) {
619 advances ? advances + (iter - start) : advances);
641 advances
575 measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const std::shared_ptr<FontCollection>& collection, float* advances) argument
595 doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, const std::shared_ptr<FontCollection>& collection, Layout* layout, float* advances) argument
648 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t bufStart, const std::shared_ptr<FontCollection>& collection, Layout* layout, float* advances) argument
1096 getAdvances(float* advances) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java112 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, argument
118 renderText(visualRun.getStart(), visualRun.getLimit(), isRtl, advances,
132 * @param advances If not null, then advances for each character to be rendered are returned
134 * @param advancesIndex index into advances from where the advances need to be filled.
139 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, argument
146 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw);
158 float[] advances, int advancesIndex, boolean draw) {
168 render(start, limit, preferredFont, flag, advances, advancesInde
157 renderScript(int start, int limit, Font preferredFont, int flag, float[] advances, int advancesIndex, boolean draw) argument
218 render(int start, int limit, Font font, int flag, float[] advances, int advancesIndex, boolean draw) argument
[all...]
H A DPaint_Delegate.java933 int bidiFlags, float[] advances, int advancesIndex) {
935 if (advances != null)
937 advances[i]=0;
949 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags);
956 int bidiFlags, float[] advances, int advancesIndex) {
963 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex);
1130 float[] advances = new float[count];
1133 contextStart, contextEnd - contextStart, bidiFlags, advances, 0);
1137 sum += advances[i];
1147 float[] advances
931 nGetTextAdvances(long native_object, long native_typeface, char[] text, int index, int count, int contextIndex, int contextCount, int bidiFlags, float[] advances, int advancesIndex) argument
954 nGetTextAdvances(long native_object, long native_typeface, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument
1282 measureText(char[] text, int index, int count, float[] advances, int advancesIndex, int bidiFlags) argument
1288 measureText(char[] text, int index, int count, float[] advances, int advancesIndex, boolean isRtl) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp186 jfloatArray advances, jint advancesIndex) {
196 if (advances) {
197 size_t advancesLength = env->GetArrayLength(advances);
204 if (advances) {
209 if (advances) {
210 env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray.get());
218 jint bidiFlags, jfloatArray advances, jint advancesIndex) {
223 index - contextIndex, count, contextCount, bidiFlags, advances, advancesIndex);
231 jfloatArray advances, jint advancesIndex) {
237 advances, advancesInde
184 doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, const jchar *text, jint start, jint count, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument
215 getTextAdvances___CIIIII_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument
228 getTextAdvances__StringIIIII_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java193 * <p>Enabling this flag causes glyph advances to be computed with subpixel
2172 int contextIndex, int contextCount, boolean isRtl, float[] advances,
2182 | (advances == null ? 0 :
2183 (advances.length - (advancesIndex + count)))) < 0) {
2192 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances,
2199 contextIndex, contextCount, isRtl ? BIDI_FORCE_RTL : BIDI_FORCE_LTR, advances,
2203 if (advances != null) {
2205 advances[i] *= mInvCompatScaling;
2219 int contextStart, int contextEnd, boolean isRtl, float[] advances,
2227 | (advances
2171 getTextRunAdvances(char[] chars, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex) argument
2218 getTextRunAdvances(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument
2300 getTextRunAdvances(String text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument
2760 nGetTextAdvances(long paintPtr, long typefacePtr, char[] text, int index, int count, int contextIndex, int contextCount, int bidiFlags, float[] advances, int advancesIndex) argument
2763 nGetTextAdvances(long paintPtr, long typefacePtr, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java7144 * Returns true if pressing ENTER in this field advances focus instead
7172 * Returns true if pressing TAB in this field advances focus instead
11711 int contextEnd, boolean isRtl, float[] advances, int advancesIndex,
11716 contextStart + mStart, contextCount, isRtl, advances,
11710 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, Paint p) argument

Completed in 1422 milliseconds