OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:measureText
(Results
1 - 25
of
116
) sorted by null
1
2
3
4
5
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTextPaint.java
10
public float
measureText
(String text) {
/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/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
TextPaintTest.java
17
assertEquals(4f, paint.
measureText
("1234"));
/external/skia/tests/
TLSTest.cpp
26
paint.
measureText
(text, len);
28
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);
/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());
/packages/apps/Gallery2/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/tools/
skhello.cpp
48
SkScalar width = paint.
measureText
(text.c_str(), text.size());
/packages/apps/Camera/src/com/android/camera/drawable/
TextDrawable.java
48
mIntrinsicWidth = (int) (mPaint.
measureText
(mText, 0, mText.length()) + .5);
/packages/apps/Dialer/src/com/android/dialer/dialpad/
SmartDialTextView.java
62
float ratio = width / paint.
measureText
(getText().toString());
/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);
BalloonHint.java
385
mSuspensionPointsWidth = mPaintLabel.
measureText
(SUSPENSION_POINTS);
406
measuredWidth += (int) (mPaintLabel.
measureText
(mLabel));
441
float labelMeasuredWidth = mPaintLabel.
measureText
(mLabel);
464
float width = mPaintLabel.
measureText
(rawLabel, 0, subLen);
CandidateView.java
296
mCandidatesPaint.
measureText
(SUSPENSION_POINTS);
386
mCandidatesPaint.
measureText
(SUSPENSION_POINTS);
440
float itemWidth = mCandidatesPaint.
measureText
(itemStr);
510
footnoteSize = mFootnotePaint.
measureText
(footnote);
514
float candidateWidth = mCandidatesPaint.
measureText
(cand);
576
float width = mCandidatesPaint.
measureText
(rawCandidate, 0, subLen);
/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/skia/bench/
PicturePlaybackBench.cpp
82
const SkScalar textWidth = paint.
measureText
(text, len);
107
const SkScalar textWidth = paint.
measureText
(text, len);
/external/skia/gm/
bitmapcopy.cpp
86
SkScalar textWidth = paint.
measureText
(name, strlen(name));
99
SkScalar textWidth = paint.
measureText
(name, strlen(name));
verttext.cpp
48
SkScalar total = paint.
measureText
(gText, gLen);
shadertext2.cpp
114
SkScalar w = fillPaint.
measureText
(kText, kTextLen);
141
SkScalar labelW = labelPaint.
measureText
(matrices[lm].fLabel,
199
SkScalar fillX = -outlinePaint.
measureText
(kFillLabel, strlen(kFillLabel)) - kPadX;
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
PlayheadView.java
141
int x = (int) ((getWidth() - mTextPaint.
measureText
(timeText)) / 2);
177
final int x = (int) (i - mTextPaint.
measureText
(timeText) / 2);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
CandidateTextView.java
120
int width = (int)paint.
measureText
(word.candidate, 0, word.candidate.length());
131
width = (int)paint.
measureText
(word.candidate, 0, word.candidate.length());
/external/skia/legacy/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(),
/frameworks/base/core/tests/coretests/src/android/widget/
LabelView.java
140
result = (int) mTextPaint.
measureText
(mText) + mPaddingLeft
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
StringTexture.java
75
int width = (int) FloatMath.ceil(paint.
measureText
(text));
/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());
Completed in 1241 milliseconds
1
2
3
4
5