HomeSort by relevance Sort by last modified time
    Searched refs:widths (Results 1 - 25 of 39) sorted by null

1 2

  /dalvik/libdex/
InstrUtils.h 109 * Allocate and populate a 256-element array with instruction widths. A
118 DEX_INLINE int dexGetInstrWidth(const InstructionWidth* widths, OpCode opCode)
121 return widths[opCode];
127 DEX_INLINE int dexGetInstrWidthAbs(const InstructionWidth* widths,OpCode opCode)
131 int val = dexGetInstrWidth(widths, opCode);
143 int dexGetInstrOrTableWidthAbs(const InstructionWidth* widths, const u2* insns);
  /frameworks/base/awt/org/apache/harmony/awt/gl/font/
FontMetricsImpl.java 58 // array of char advance widths
59 private int[] widths = new int[256]; field in class:FontMetricsImpl
119 * Initialize the array of the first 256 chars' advance widths of the Font
124 this.widths = new int[256];
126 widths[chr] = (int) (getFontPeer().charWidth((char) chr) * scaleX);
167 return widths[ch];
185 return widths[ch];
229 * Returns the advance widths of the first 256 characters in the Font
234 return this.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 1011 * Return the advance widths for the characters in the string.
1016 * @param widths array to receive the advance widths of the characters.
1018 * @return the actual number of widths returned.
1022 float[] widths) {
1025 || count > widths.length) {
1037 widths[i] = info.mMetrics.charWidth(c);
1056 * Return the advance widths for the characters in the string.
1061 * @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
570 /* scale the standard widths */
573 AF_Width width = axis->widths + nn;
    [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 200 float[] widths = new float[str.length()]; local
201 paint.getTextWidths(str, widths);
202 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 448 // children with the widths computed in findLargestCells()
497 final int[] widths = row.getColumnsWidths(widthMeasureSpec); local
498 final int newLength = widths.length;
504 System.arraycopy(widths, 0, mMaxWidths, 0, newLength);
516 System.arraycopy(widths, oldMaxWidths.length,
527 maxWidths[j] = Math.max(maxWidths[j], widths[j]);
578 // 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 1035 int SkPaint::getTextWidths(const void* textData, size_t byteLength, SkScalar widths[],
1043 if (NULL == widths && NULL == bounds)
1068 // we adjust the widths returned here through auto-kerning
1075 if (widths) {
1080 *widths++ = SkScalarMul(w, scale);
1089 if (count > 0 && widths) {
1090 *widths = SkScalarMul(SkFixedToScalar(prevWidth), scale);
1095 if (widths) {
1099 *widths++ = SkFixedToScalar(prevWidth + adjust);
1108 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);

Completed in 1181 milliseconds

1 2