/frameworks/base/core/jni/ |
D | android_text_StaticLayout.cpp | 46 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/ |
D | StaticLayout_Delegate.java | 102 … /*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()
|
D | OptimizingLineBreaker.java | 52 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()
|
D | GreedyLineBreaker.java | 167 lineBreaks.widths = new float[mWidthsList.size()]; 178 lineBreaks.widths[i] = b;
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 87 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/ |
D | MeasuredText.java | 173 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()
|
D | StaticLayout.java | 356 /* 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 …]
|
D | GraphicsOperations.java | 51 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
|
D | SpannableStringBuilder.java | 1428 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()
|
D | TextUtils.java | 1242 float[] widths = mt.mWidths; in commaEllipsize() local 1246 w += widths[i]; in commaEllipsize()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 1952 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/ |
D | TableLayout.java | 505 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()
|
D | Editor.java | 3943 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()
|
D | TextView.java | 10171 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/ |
D | PaintTest.java | 85 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/ |
D | MediaCodecInfo.java | 1730 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/ |
D | devices-displays.jd | 19 <p>Stretch and compress your layouts to accommodate various heights and widths.</p>
|
/frameworks/base/docs/html/training/design-navigation/ |
D | multiple-sizes.jd | 70 …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/ |
D | RecipientEditTextView.java | 802 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/ |
D | widget_design.jd | 176 some text margins. Your minimum width should be the minimum usable widths of the
|
/frameworks/base/docs/html/distribute/essentials/quality/ |
D | tablets.jd | 157 <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/ |
D | building-ui.jd | 310 android.widget.Button} widgets have their widths set to
|
/frameworks/native/vulkan/api/ |
D | vulkan.api | 2395 … lineWidthRange /// range (min,max) of supported line widths 2397 … lineWidthGranularity /// granularity of supported line widths
|
/frameworks/base/docs/html/guide/practices/ |
D | screens_support.jd | 839 numbers for typical screen widths:</p>
|