OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:textWidth
(Results
1 - 13
of
13
) sorted by null
/external/ImageMagick/Magick++/lib/
TypeMetric.cpp
62
double Magick::TypeMetric::
textWidth
(void) const
/external/skia/gm/
bitmapcopy.cpp
100
SkScalar
textWidth
= font.measureText(name, strlen(name), kUTF8_SkTextEncoding);
101
if (
textWidth
> width) {
102
width =
textWidth
;
113
SkScalar
textWidth
= font.measureText(name, strlen(name), kUTF8_SkTextEncoding);
114
SkScalar x = (width -
textWidth
) / SkScalar(2);
/external/skqp/gm/
bitmapcopy.cpp
99
SkScalar
textWidth
= font.measureText(name, strlen(name), kUTF8_SkTextEncoding);
100
if (
textWidth
> width) {
101
width =
textWidth
;
112
SkScalar
textWidth
= font.measureText(name, strlen(name), kUTF8_SkTextEncoding);
113
SkScalar x = (width -
textWidth
) / SkScalar(2);
/cts/tests/tests/text/src/android/text/cts/
StaticLayoutGetLineLeftRightTest.java
149
final float
textWidth
= mPaint.measureText(mText, start, end);
154
expectedLeft = mWidth -
textWidth
- mLeadingMargin;
157
expectedLeft = (float) Math.floor((mWidth - mLeadingMargin -
textWidth
) / 2);
160
+ (mWidth - mLeadingMargin -
textWidth
) / 2);
173
final float
textWidth
= mPaint.measureText(mText, start, end);
176
expectedRight = mLeadingMargin +
textWidth
;
182
- (mWidth - mLeadingMargin -
textWidth
) / 2);
185
- (mWidth - mLeadingMargin -
textWidth
) / 2);
TextUtilsTest.java
213
float
textWidth
= p.measureText("long, 3 plus");
218
TextUtils.commaEllipsize(text, p,
textWidth
- 1.4f, "plus 1", "%d plus").toString());
221
TextUtils.commaEllipsize(text, p,
textWidth
, "plus 1", "%d plus").toString());
224
textWidth
= p.measureText("long, string, 2 more");
226
TextUtils.commaEllipsize(text, p,
textWidth
, "more 1", "%d more").toString());
229
textWidth
= p.measureText("long, string, to, truncate");
231
TextUtils.commaEllipsize(text, p,
textWidth
, "more 1", "%d more").toString());
235
text + "-extended", p,
textWidth
, "more 1", "%d more").toString());
244
text + "-extended", p,
textWidth
, null, "%d more").toString());
247
TextUtils.commaEllipsize(null, p,
textWidth
, "plus 1", "%d plus")
[
all
...]
/cts/tests/tests/text/src/android/text/style/cts/
StrikethroughSpanTest.java
98
private float
textWidth
(CharSequence text) {
111
final float origLineWidth =
textWidth
(text);
114
final float strokethroughLineWidth =
textWidth
(text);
UnderlineSpanTest.java
95
private float
textWidth
(CharSequence text) {
109
final float origLineWidth =
textWidth
(text);
112
final float underlinedLineWidth =
textWidth
(text);
117
final float origLineWidth =
textWidth
(text);
120
final float underlinedLineWidth =
textWidth
(text);
125
final float origLineWidth =
textWidth
(text);
128
final float underlinedLineWidth =
textWidth
(text);
133
final float origLineWidth =
textWidth
(text);
137
final float underlinedLineWidth =
textWidth
(text);
152
final float origLineWidth =
textWidth
(text)
[
all
...]
SuggestionSpanTest.java
215
private float
textWidth
(CharSequence text) {
228
final float origLineWidth =
textWidth
(text);
235
final float underlinedLineWidth =
textWidth
(text);
/cts/tests/tests/text/src/android/text/method/cts/
TouchTest.java
121
int
textWidth
= Math.round(paint.measureText(text));
122
while (
textWidth
< screenWidth) {
124
textWidth
= Math.round(paint.measureText(text));
128
int dragAmount = Math.min(screenWidth,
textWidth
- screenWidth);
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
CandidateView.java
183
float
textWidth
= paint.measureText(suggestion);
184
final int wordWidth = (int)
textWidth
+ X_GAP * 2;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
LabelMaker.java
197
int
textWidth
= Math.min(mStrikeWidth,measuredTextWidth);
202
int width = Math.max(minWidth,
textWidth
+ padWidth);
207
int centerOffsetWidth = (effectiveTextWidth -
textWidth
) / 2;
/bootable/recovery/tools/image_generator/
ImageGenerator.java
504
int
textWidth
= 0;
506
textWidth
= Math.max(
textWidth
, lineInfo.mLineWidth);
510
if (
textWidth
> mImageWidth) {
513
+
textWidth
520
return
textWidth
;
611
int
textWidth
= 0;
618
textWidth
= Math.max(
textWidth
, measureTextWidth(localizedTextMap.get(locale), locale));
622
resize(
textWidth
, mImageHeight)
[
all
...]
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
ComplicationSimpleWatchFaceService.java
601
double
textWidth
=
610
complicationsX = (int) ((mWidth / 2) -
textWidth
) / 2;
613
int offset = (int) ((mWidth / 2) -
textWidth
) / 2;
Completed in 2119 milliseconds