Home
last modified time | relevance | path

Searched refs:widths (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/jni/
Dandroid_text_StaticLayout.cpp46 jfieldID widths; member
76 const jfloat* widths, const jint* flags) { in recycleCopy() argument
84 env->SetObjectField(recycle, gLineBreaks_fieldID.widths, recycleWidths); in recycleCopy()
89 env->SetFloatArrayRegion(recycleWidths, 0, nBreaks, widths); in recycleCopy()
168 jint start, jint end, jfloatArray widths) { in nAddMeasuredRun() argument
170 env->GetFloatArrayRegion(widths, start, end - start, b->charWidths() + start); in nAddMeasuredRun()
180 static void nGetWidths(JNIEnv* env, jclass, jlong nativePtr, jfloatArray widths) { in nGetWidths() argument
182 env->SetFloatArrayRegion(widths, 0, b->size(), b->charWidths()); in nGetWidths()
208 gLineBreaks_fieldID.widths = GetFieldIDOrDie(env, gLineBreaks_class, "widths", "[F"); in register_android_text_StaticLayout()
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DStaticLayout_Delegate.java102 … /*package*/ static void nAddMeasuredRun(long nativeBuilder, int start, int end, float[] widths) { in nAddMeasuredRun() argument
105 System.arraycopy(widths, start, builder.mWidths, start, end - start); in nAddMeasuredRun()
176 private static List<Primitive> computePrimitives(@NonNull char[] text, @NonNull float[] widths, in computePrimitives() argument
186 primitives.add(PrimitiveType.GLUE.getNewPrimitive(i, widths[i])); in computePrimitives()
194 if (widths[i] != 0) { in computePrimitives()
203 primitives.add(PrimitiveType.BOX.getNewPrimitive(i, widths[i])); in computePrimitives()
213 float[] widths, int bidiFlags) { in measureText() argument
216 .renderText(index, index + count, bidiFlags, widths, 0, false); in measureText()
DOptimizingLineBreaker.java52 breakInfo.widths = new float[]{p.width}; in computeBreaks()
130 breakInfo.widths[count] = opt[idx].mWidth; in computeBreaks()
141 float[] widths = new float[size]; in resize() local
146 System.arraycopy(lineBreaks.widths, 0, widths, 0, toCopy); in resize()
150 lineBreaks.widths = widths; in resize()
DGreedyLineBreaker.java167 lineBreaks.widths = new float[mWidthsList.size()];
178 lineBreaks.widths[i] = b;
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java87 float[] widths = new float[testCase.mText.length()]; in testHintingWidth() local
90 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local
92 testCase.mWidthWithoutHinting, widths); in testHintingWidth()
95 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local
97 testCase.mWidthWithHinting, widths); in testHintingWidth()
/frameworks/base/core/java/android/text/
DMeasuredText.java173 float[] widths = null; in addStyleRun() local
175 widths = mWidths; in addStyleRun()
180 if (widths != null) { in addStyleRun()
181 width = paint.getTextRunAdvances(mChars, p, len, p, len, isRtl, widths, p); in addStyleRun()
183 mBuilder.addMeasuredRun(p, p + len, widths); in addStyleRun()
196 if (widths != null) { in addStyleRun()
198 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, isRtl, widths, q); in addStyleRun()
200 mBuilder.addMeasuredRun(q, i, widths); in addStyleRun()
DStaticLayout.java356 /* package */ void addMeasuredRun(int start, int end, float[] widths) {
357 nAddMeasuredRun(mNativePtr, start, end, widths);
657 float[] widths = measured.mWidths;
742 nGetWidths(b.mNativePtr, widths);
744 lineBreaks.widths, lineBreaks.flags, lineBreaks.breaks.length);
747 float[] lineWidths = lineBreaks.widths;
765 width += widths[j];
823 chs, widths, paraStart, ellipsize, ellipsizedWidth,
878 float[] widths, int widthStart, TextUtils.TruncateAt ellipsize,
995 calculateEllipsis(start, end, widths, widthStart,
[all …]
DGraphicsOperations.java51 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
DSpannableStringBuilder.java1428 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument
1434 ret = p.getTextWidths(mText, start, end - start, widths); in getTextWidths()
1436 ret = p.getTextWidths(mText, start + mGapLength, end - start, widths); in getTextWidths()
1441 ret = p.getTextWidths(buf, 0, end - start, widths); in getTextWidths()
DTextUtils.java1242 float[] widths = mt.mWidths; in commaEllipsize() local
1246 w += widths[i]; in commaEllipsize()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1952 float[] widths) { in getTextWidths() argument
1957 || count > widths.length) { in getTextWidths()
1966 mBidiFlags, widths, 0); in getTextWidths()
1973 mBidiFlags, widths, 0); in getTextWidths()
1976 widths[i] *= mInvCompatScaling; in getTextWidths()
1992 float[] widths) { in getTextWidths() argument
1999 if (end - start > widths.length) { in getTextWidths()
2007 return getTextWidths((String) text, start, end, widths); in getTextWidths()
2011 return getTextWidths(text.toString(), start, end, widths); in getTextWidths()
2015 widths, this); in getTextWidths()
[all …]
/frameworks/base/core/java/android/widget/
DTableLayout.java505 final int[] widths = row.getColumnsWidths(widthMeasureSpec, heightMeasureSpec); in findLargestCells() local
506 final int newLength = widths.length; in findLargestCells()
512 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells()
524 System.arraycopy(widths, oldMaxWidths.length, in findLargestCells()
535 maxWidths[j] = Math.max(maxWidths[j], widths[j]); in findLargestCells()
DEditor.java3943 final float[] widths = new float[offsetEnd - offsetStart]; in updatePosition() local
3944 layout.getPaint().getTextWidths(text, offsetStart, offsetEnd, widths); in updatePosition()
3948 final float charWidth = widths[offset - offsetStart]; in updatePosition()
DTextView.java10171 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument
10172 return p.getTextWidths(mChars, start + mStart, end - start, widths); in getTextWidths()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DPaintTest.java85 final float[] widths = new float[count]; in assertGetTextRunAdvances() local
86 p.getTextWidths(str, start, end, widths); in assertGetTextRunAdvances()
88 assertEquals(advanceArrays[0][i], widths[i], 1.0f); in assertGetTextRunAdvances()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java1730 Range<Integer> counts = null, widths = null, heights = null; in parseFromInfo() local
1744 widths = sizeRanges.first; in parseFromInfo()
1752 if (widths != null) { in parseFromInfo()
1754 Math.min(widths.getUpper(), heights.getUpper()); in parseFromInfo()
1755 widths = heights = widths.extend(heights); in parseFromInfo()
1808 if (widths != null) { in parseFromInfo()
1809 mWidthRange = SIZE_RANGE.intersect(widths); in parseFromInfo()
1846 if (widths != null) { in parseFromInfo()
1847 mWidthRange = mWidthRange.intersect(widths); in parseFromInfo()
/frameworks/base/docs/html/design/style/
Ddevices-displays.jd19 <p>Stretch and compress your layouts to accommodate various heights and widths.</p>
/frameworks/base/docs/html/training/design-navigation/
Dmultiple-sizes.jd70 …uch as <code>large</code>/<code>xlarge</code>) or varying minimum screen widths (such as <code>sw6…
85 …content in each pane in the portrait orientation. Panes could have fixed widths or take a certain …
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java802 float[] widths = new float[1]; in createChipBitmap() local
803 paint.getTextWidths(" ", widths); in createChipBitmap()
805 calculateAvailableWidth() - iconWidth - widths[0] - backgroundPadding.left in createChipBitmap()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd176 some text margins. Your minimum width should be the minimum usable widths of the
/frameworks/base/docs/html/distribute/essentials/quality/
Dtablets.jd157 <li>Use padding to manage the widths of onscreen elements or switch to a
218 <code>large</code>/<code>xlarge</code>) or minimum screen widths (such as
/frameworks/base/docs/html/training/basics/firstapp/
Dbuilding-ui.jd310 android.widget.Button} widgets have their widths set to
/frameworks/native/vulkan/api/
Dvulkan.api2395 … lineWidthRange /// range (min,max) of supported line widths
2397 … lineWidthGranularity /// granularity of supported line widths
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd839 numbers for typical screen widths:</p>