/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextPaint.java | 10 public float measureText(String text) {
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TextPaintTest.java | 17 assertEquals(4f, paint.measureText("1234"));
|
/packages/apps/Calculator/src/com/android/calculator2/ |
ColorButton.java | 52 measureText(); 55 private void measureText() { 57 mTextX = (getWidth() - paint.measureText(getText().toString())) / 2; 63 measureText();
|
/external/chromium_org/ppapi/thunk/ |
ppb_browser_font_trusted_thunk.cc | 61 int32_t MeasureText(PP_Resource font_id, 66 return enter.object()->MeasureText(text); 93 &MeasureText,
|
ppb_browser_font_trusted_api.h | 27 virtual int32_t MeasureText(const PP_BrowserFont_Trusted_TextRun* text) = 0;
|
/external/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/ |
bouncing_balls_draw_ball_as_text.js | 8 var metrics = canvasContext.measureText("Chrome");
|
/external/skia/tests/ |
TLSTest.cpp | 27 paint.measureText(text, len); 29 paint.measureText(text, len);
|
/frameworks/base/core/java/android/text/ |
GraphicsOperations.java | 44 * Just like {@link Paint#measureText}. 46 float measureText(int start, int end, Paint p);
|
/packages/apps/Camera2/src/com/android/camera/drawable/ |
TextDrawable.java | 52 mIntrinsicWidth = (int) (mPaint.measureText(mText, 0, mText.length()) + .5); 77 mIntrinsicWidth = (int) (mPaint.measureText(mText, 0, mText.length()) + .5);
|
/external/skia/gm/ |
bigtext.cpp | 36 (void)paint.measureText("/", 1, &r);
|
bitmapcopy.cpp | 89 SkScalar textWidth = paint.measureText(name, strlen(name)); 102 SkScalar textWidth = paint.measureText(name, strlen(name));
|
complexclip.cpp | 87 } gOps[] = { //extra spaces in names for measureText 141 txtX += paint.measureText(aTxt, strlen(aTxt)); 145 txtX += paint.measureText(gOps[op].fName, strlen(gOps[op].fName));
|
/external/chromium_org/third_party/skia/src/animator/ |
SkDrawPaint.cpp | 19 SK_FUNCTION(measureText) 46 SK_MEMBER_FUNCTION(measureText, Float), 157 case SK_FUNCTION(measureText): { 164 scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), 166 // SkDebugf("measureText: %s = %g\n", parameters[0].fOperand.fString->c_str(),
|
/external/skia/src/animator/ |
SkDrawPaint.cpp | 19 SK_FUNCTION(measureText) 46 SK_MEMBER_FUNCTION(measureText, Float), 157 case SK_FUNCTION(measureText): { 164 scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), 166 // SkDebugf("measureText: %s = %g\n", parameters[0].fOperand.fString->c_str(),
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
MeasureText.java | 24 public class MeasureText extends GraphicsActivity { 75 float w = mPaint.measureText(text, 0, text.length());
|
/external/chromium/chrome/common/ |
badge_util.cc | 69 SkScalar text_width = paint->measureText(badge_text.c_str(), 75 text_width = paint->measureText(badge_text.c_str(), badge_text.size());
|
/external/skia/bench/ |
PicturePlaybackBench.cpp | 81 const SkScalar textWidth = paint.measureText(text, len); 106 const SkScalar textWidth = paint.measureText(text, len);
|
/external/chromium_org/content/child/ |
browser_font_resource_trusted.h | 54 virtual int32_t MeasureText(
|
/external/chromium_org/ppapi/cpp/trusted/ |
browser_font_trusted.cc | 215 int32_t BrowserFont_Trusted::MeasureText(const BrowserFontTextRun& text) const { 217 return get_interface<PPB_BrowserFont_Trusted_1_0>()->MeasureText( 221 return get_interface<PPB_Font_Dev_0_6>()->MeasureText( 275 return MeasureText(BrowserFontTextRun(text));
|
/packages/apps/Camera/src/com/android/camera/drawable/ |
TextDrawable.java | 48 mIntrinsicWidth = (int) (mPaint.measureText(mText, 0, mText.length()) + .5);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
ComposingView.java | 208 width += mPaint.measureText(str, 0, str.length()); 253 x += mPaint.measureText(cmpsStr, 0, cmpsPos); 261 x += mPaint.measureText(cmpsStr, cmpsPos, activeCmpsLen); 269 x += mPaint.measureText(cmpsStr, oriPos, cursorPos);
|
/external/chromium_org/ppapi/cpp/dev/ |
font_dev.cc | 163 int32_t Font_Dev::MeasureText(const TextRun_Dev& text) const { 166 return get_interface<PPB_Font_Dev>()->MeasureText(pp_resource(), 197 return MeasureText(TextRun_Dev(text));
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
ImageUtils.java | 321 canvas.drawText(title, (width - (2 * INSET) - p.measureText(title)) / 2, 328 canvas.drawText(subTitle, (width - (2 * INSET) - p.measureText(subTitle)) / 2, 363 canvas.drawText(title, (width - (2 * INSET) - p.measureText(title)) / 2, 370 canvas.drawText(subTitle, (width - (2 * INSET) - p.measureText(subTitle)) / 2, 442 canvas.drawText(title, (width - (2 * INSET) - p.measureText(title)) / 2, 449 canvas.drawText(subTitle, (width - (2 * INSET) - p.measureText(subTitle)) / 2,
|
/external/chromium_org/chrome/common/ |
badge_util.cc | 109 SkScalar text_width = paint->measureText(badge_text.c_str(), 115 text_width = paint->measureText(badge_text.c_str(), badge_text.size()); 167 SkScalar sk_text_width = text_paint->measureText(text.c_str(), text.size());
|
/external/chromium_org/ppapi/tests/ |
test_browser_font.cc | 53 int32_t length1 = font.MeasureText(pp::BrowserFontTextRun("WWW")); 55 int32_t length2 = font.MeasureText(pp::BrowserFontTextRun("WWWWWWWW")); 134 int pixel_width = font.MeasureText(pp::BrowserFontTextRun(mixed));
|