/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 193 float[] widths = new float[str.length()]; local 194 paint.getTextWidths(str, widths); 195 for (float f : widths) {
|
/external/pdfium/core/src/fpdftext/ |
fpdf_text.cpp | 237 int* widths = FX_Alloc(int, m_BaseLines.GetSize()); local 239 widths[i] = 0; 247 widths[i] = (int)((MaxRightX - MinLeftX) / charwidth); 249 if (widths[i] > 1000) { 250 widths[i] = 1000; 252 if (widths[i] < minchars) { 253 widths[i] = minchars; 258 if (widths[i]) { 259 AvgWidth += widths[i]; 265 if (MaxWidth < widths[i]) [all...] |
/external/skia/gm/ |
blurrect.cpp | 177 const int widths[] = {25, 5, 5, 100, 150, 25}; local 189 for (size_t i = 0 ; i < SK_ARRAY_COUNT(widths) ; i++) { 190 int width = widths[i];
|
dftext.cpp | 124 SkAutoTArray<SkScalar> widths(SkToInt(textLen)); 127 paint.getTextWidths(text, textLen, &widths[0]); 133 x += widths[i];
|
glyph_pos.cpp | 119 SkScalar widths[sizeof(kText) - 1]; local 120 paint.getTextWidths(kText, sizeof(kText) - 1, widths, nullptr); 130 w += widths[i];
|
/external/skia/tests/ |
SwizzlerTest.cpp | 75 // Test on an invalid width and representative widths 76 const uint32_t widths[] = { 0, 10, 50 }; local 86 for (uint32_t width : widths) {
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
EllipsizeLayout.java | 20 * <p>The purpose of this horizontal-linear-layout is to ensure that when the sum of widths of the 52 * <li>Sums the children's widths.</li> 53 * <li>Whenever the sum of the children's widths is greater than this parent was allocated,
|
/frameworks/base/core/java/android/text/ |
StaticLayout.java | 337 * After measurement, nGetWidths() is valid if the widths are needed (eg for ellipsis). 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]; [all...] |
/external/autotest/client/cros/chameleon/ |
chameleon.py | 396 def fire_mixed_hpd_pulses(self, widths): 397 """Fires one or more HPD pulses, starting at low, of mixed widths. 399 One must specify a list of segment widths in the widths argument where 400 widths[0] is the width of the first low segment, widths[1] is that of 401 the first high segment, widths[2] is that of the second low segment... 402 etc. The HPD line stops at low if even number of segment widths are 405 @param widths: list of pulse segment widths in usec [all...] |
/external/freetype/src/pshinter/ |
pshglob.c | 33 /***** STANDARD WIDTHS *****/ 39 /* scale the widths/heights table */ 47 PSH_Width width = stdw->widths; 100 w = dimension->stdw.widths[n].cur; 661 /* copy standard widths */ 664 PSH_Width write = dim->stdw.widths; 684 PSH_Width write = dim->stdw.widths;
|
/external/pdfium/third_party/freetype/src/pshinter/ |
pshglob.c | 33 /***** STANDARD WIDTHS *****/ 39 /* scale the widths/heights table */ 47 PSH_Width width = stdw->widths; 100 w = dimension->stdw.widths[n].cur; 661 /* copy standard widths */ 664 PSH_Width write = dim->stdw.widths; 684 PSH_Width write = dim->stdw.widths;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapRegionDecoderTest.java | 67 private static int WIDTHS[] = new int[] { 114 assertEquals(WIDTHS[i], decoder.getWidth()); 117 assertEquals(WIDTHS[i], -1); 133 assertEquals(WIDTHS[i], decoder.getWidth()); 136 assertEquals(WIDTHS[i], -1); 150 assertEquals(WIDTHS[i], decoder1.getWidth()); 155 assertEquals(WIDTHS[i], decoder2.getWidth()); 158 assertEquals(WIDTHS[i], -1); 298 Rect rect = new Rect(0, 0, WIDTHS[0], HEIGHTS[0]); 478 assertEquals("mismatching widths", expected.getWidth() [all...] |
/external/llvm/lib/Target/X86/Utils/ |
X86ShuffleDecode.h | 62 /// widths. 67 /// different datatypes and vector widths. 72 /// different datatypes and vector widths.
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
PaintTest.java | 85 final float[] widths = new float[count]; local 86 p.getTextWidths(str, start, end, widths); 88 assertEquals(advanceArrays[0][i], widths[i], 1.0f);
|
/packages/apps/Terminal/src/com/android/terminal/ |
TerminalView.java | 101 final float[] widths = new float[1]; local 102 textPaint.getTextWidths("X", widths); 103 charWidth = (int) Math.ceil(widths[0]);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
CursorAnchorInfoUtils.java | 176 final float[] widths = new float[offsetEnd - offsetStart]; local 177 layout.getPaint().getTextWidths(text, offsetStart, offsetEnd, widths); 181 final float charWidth = widths[offset - offsetStart];
|
/dalvik/dexgen/src/com/android/dexgen/rop/type/ |
TypeList.java | 53 * all the elements of this list. This is a sum of the widths (categories)
|
/dalvik/dx/src/com/android/dx/rop/type/ |
TypeList.java | 53 * all the elements of this list. This is a sum of the widths (categories)
|
/external/dexmaker/src/dx/java/com/android/dx/rop/type/ |
TypeList.java | 53 * all the elements of this list. This is a sum of the widths (categories)
|
/external/google-breakpad/src/google_breakpad/common/ |
breakpad_types.h | 35 * 64. Types of precise widths are crucial to the task of writing data
|
/external/iproute2/ |
README.lnstat | 62 You can specify individual field widths
|
/external/libvncserver/examples/ |
pnmshow24.c | 53 /* vncviewers have problems with widths which are no multiple of 4. */
|
/external/v8/src/arm64/ |
utils-arm64.cc | 52 // TODO(jbramley): Would it be useful to allow other widths? The
|
/frameworks/base/docs/html/design/style/ |
devices-displays.jd | 19 <p>Stretch and compress your layouts to accommodate various heights and widths.</p>
|
/external/freetype/src/autofit/ |
afcjk.c | 78 "cjk standard widths computation (style `%s')\n" 203 axis->widths[num_widths++].org = dist; 207 /* this also replaces multiple almost identical stem widths */ 209 af_sort_and_quantize_widths( &num_widths, axis->widths, 221 stdw = ( axis->width_count > 0 ) ? axis->widths[0].org 234 FT_TRACE5(( "%s widths:\n", 240 FT_TRACE5(( " %d", axis->widths[i].org )); 580 /* Adjust scaling value, then scale and shift widths */ [all...] |