/dalvik/libdex/ |
InstrUtils.h | 109 * Allocate and populate a 256-element array with instruction widths. A 119 DEX_INLINE int dexGetInstrWidth(const InstructionWidth* widths, OpCode opCode) 122 return widths[opCode]; 129 DEX_INLINE size_t dexGetInstrWidthAbs(const InstructionWidth* widths, 134 int val = widths[opCode]; 146 size_t dexGetInstrOrTableWidthAbs(const InstructionWidth* widths,
|
/frameworks/base/core/java/android/text/ |
GraphicsOperations.java | 24 * draw/measure/widths calculations from an internal array. 45 public int getTextWidths(int start, int end, float[] widths, Paint p);
|
StaticLayout.java | 143 float[] widths = mWidths; local 217 if ((end - start) * 2 > widths.length) { 218 widths = new float[ArrayUtils.idealIntArraySize((end - start) * 2)]; 219 mWidths = widths; 316 paint.getTextWidths(sub, i, next, widths); 317 System.arraycopy(widths, 0, widths, 326 widths, fm); 327 System.arraycopy(widths, 0, widths, [all...] |
Styled.java | 170 * Returns the advance widths for a uniform left-to-right run of text with 181 * @param widths array to receive the advance widths of the characters. Must 184 * @return the actual number of widths returned 189 float[] widths, Paint.FontMetricsInt fmi) { 208 workPaint.getTextWidths(text, start, end, widths); 213 widths[0] = wid; 215 widths[i - start] = 0;
|
/frameworks/base/graphics/java/android/graphics/ |
Paint.java | [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
MeasureText.java | 76 float[] widths = new float[text.length()]; local 78 int count = mPaint.getTextWidths(text, 0, text.length(), widths); 93 x += widths[i];
|
TextAlign.java | 57 float[] widths = new float[text.length()]; local 58 // initially get the widths for each char 59 int n = paint.getTextWidths(text, widths); 66 accumulatedX += widths[i];
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Paint.java | 1013 * Return the advance widths for the characters in the string. 1018 * @param widths array to receive the advance widths of the characters. 1020 * @return the actual number of widths returned. 1024 float[] widths) { 1027 || count > widths.length) { 1039 widths[i] = info.mMetrics.charWidth(c); 1058 * Return the advance widths for the characters in the string. 1063 * @param widths array to receive the advance widths of the characters [all...] |
/external/skia/bench/ |
TextBench.cpp | 37 SkScalar* widths = storage.get(); local 38 fCount = fPaint.getTextWidths(fText.c_str(), fText.size(), widths); 43 x += widths[i];
|
/external/webkit/WebCore/platform/graphics/android/ |
FontAndroid.cpp | 232 SkScalar* widths = storage.get(); local 236 count = paint.getTextWidths(run.characters(), count << 1, widths); 243 if (x < SkScalarRound(pos + SkScalarHalf(widths[i]))) 245 pos += widths[i];
|
/external/skia/src/images/ |
SkImageDecoder_libpvjpeg.cpp | 109 int32 widths[3], heights[3]; local 112 frame.iWidth = widths;
|
/external/freetype/src/autofit/ |
aflatin.h | 102 AF_WidthRec widths[AF_LATIN_MAX_WIDTHS]; member in struct:AF_LatinAxisRec_
|
aftypes.h | 101 AF_Width widths );
|
aflatin.c | 118 axis->widths[ num_widths++ ].org = dist; 122 af_sort_widths( num_widths, axis->widths ); 134 ? axis->widths[0].org 574 /* scale the standard widths */ 577 AF_Width width = axis->widths + nn; [all...] |
aflatin2.c | 125 axis->widths[ num_widths++ ].org = dist; 129 af_sort_widths( num_widths, axis->widths ); 141 ? axis->widths[0].org 571 /* scale the standard widths */ 574 AF_Width width = axis->widths + nn; [all...] |
afcjk.c | 675 /* current standard widths */ 678 af_cjk_snap_width( AF_Width widths, 694 w = widths[n].cur; 757 if ( FT_ABS( dist - axis->widths[0].cur ) < 40 ) 759 dist = axis->widths[0].cur; 793 dist = af_cjk_snap_width( axis->widths, axis->width_count, dist ); 809 /* monochrome horizontal hinting: snap widths to integer pixels */ [all...] |
/external/freetype/src/pshinter/ |
pshglob.h | 57 /* The maximum number of standard and snap widths in either the */ 73 /* standard and snap widths table */ 77 PSH_WidthRec widths[PS_GLOBALS_MAX_STD_WIDTHS]; member in struct:PSH_WidthsRec_
|
pshglob.c | 33 /***** STANDARD WIDTHS *****/ 39 /* scale the widths/heights table */ 47 PSH_Width width = stdw->widths; 100 w = dimension->stdw.widths[n].cur; 639 /* copy standard widths */ 642 PSH_Width write = dim->stdw.widths; 662 PSH_Width write = dim->stdw.widths;
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 214 float[] widths = new float[str.length()]; local 215 paint.getTextWidths(str, widths); 216 for (float f : widths) {
|
/external/webkit/WebCore/inspector/front-end/ |
DataGrid.js | 301 var widths = {}; 304 widths[columnIdentifier] = (columns[columnIdentifier].title || "").length; 310 if (text.length > widths[columnIdentifier]) 311 widths[columnIdentifier] = text.length; 317 totalColumnWidths += widths[columnIdentifier]; 321 var width = Math.round(100 * widths[columnIdentifier] / totalColumnWidths); 329 widths[columnIdentifier] = width; 334 if (widths[columnIdentifier] > minPercent) { 335 --widths[columnIdentifier]; 345 if (widths[columnIdentifier] < maxPercent) [all...] |
/external/webkit/WebKitTools/Scripts/ |
validate-committer-lists | 208 def _print_three_column_row(widths, values): 209 print "%s%s%s" % (values[0].ljust(widths[0]), values[1].ljust(widths[1]), values[2])
|
/frameworks/base/core/java/android/widget/ |
TableLayout.java | 451 // children with the widths computed in findLargestCells() 500 final int[] widths = row.getColumnsWidths(widthMeasureSpec); local 501 final int newLength = widths.length; 507 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); 519 System.arraycopy(widths, oldMaxWidths.length, 530 maxWidths[j] = Math.max(maxWidths[j], widths[j]); 581 // Column's widths are changed: force child table rows to re-measure.
|
/external/webkit/WebKit/android/plugins/ |
ANPPaintInterface.cpp | 151 If widths is not null, returns the array of advance widths for each 156 uint32_t byteLength, float widths[], ANPRectF bounds[]) { 157 return paint->getTextWidths(text, byteLength, widths,
|
/external/skia/src/core/ |
SkPaint.cpp | 1036 int SkPaint::getTextWidths(const void* textData, size_t byteLength, SkScalar widths[], 1044 if (NULL == widths && NULL == bounds) 1069 // we adjust the widths returned here through auto-kerning 1076 if (widths) { 1081 *widths++ = SkScalarMul(w, scale); 1090 if (count > 0 && widths) { 1091 *widths = SkScalarMul(SkFixedToScalar(prevWidth), scale); 1096 if (widths) { 1100 *widths++ = SkFixedToScalar(prevWidth + adjust); 1109 if (count > 0 && widths) { [all...] |
/frameworks/base/core/jni/android/graphics/ |
Paint.cpp | 372 static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) { 373 AutoJavaFloatArray autoWidths(env, widths, count); 384 static int getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) { 386 count = dotextwidths(env, paint, textArray + index, count, widths); 392 static int getTextWidths__StringII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jfloatArray widths) { 394 int count = dotextwidths(env, paint, textArray + start, end - start, widths);
|