Home
last modified time | relevance | path

Searched refs:mText (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java33 private TextView mText; field in TextViewTransformState
38 mText = (TextView) view; in initFrom()
48 if(TextUtils.equals(otherTvs.mText.getText(), mText.getText())) { in sameAs()
52 && mText.getLineCount() == otherTvs.mText.getLineCount() in sameAs()
60 boolean hasSpans = mText instanceof Spanned; in hasSameSpans()
61 boolean otherHasSpans = otherTvs.mText instanceof Spanned; in hasSameSpans()
68 Spanned ownSpanned = (Spanned) mText; in hasSameSpans()
70 Spanned otherSpanned = (Spanned) otherTvs.mText; in hasSameSpans()
95 if (!TextUtils.equals(mText.getText(), otherTvs.mText.getText())) { in transformScale()
98 int lineCount = mText.getLineCount(); in transformScale()
[all …]
/frameworks/base/core/java/android/view/translation/
DTranslationRequestValue.java35 private final CharSequence mText; field in TranslationRequestValue
54 return mText; in getText()
80 this.mText = text; in TranslationRequestValue()
92 "text = " + mText + in toString()
109 && Objects.equals(mText, that.mText); in equals()
119 _hash = 31 * _hash + Objects.hashCode(mText); in hashCode()
130 if (mText != null) flg |= 0x1; in writeToParcel()
132 if (mText != null) dest.writeCharSequence(mText); in writeToParcel()
149 this.mText = text; in TranslationRequestValue()
DTranslationResponseValue.java85 private final CharSequence mText; field in TranslationResponseValue
185 this.mText = text; in TranslationResponseValue()
210 return mText; in getText()
241 "text = " + mText + ", " + in toString()
261 && Objects.equals(mText, that.mText) in equals()
274 _hash = 31 * _hash + Objects.hashCode(mText); in hashCode()
287 if (mText != null) flg |= 0x2; in writeToParcel()
291 if (mText != null) dest.writeCharSequence(mText); in writeToParcel()
323 this.mText = text; in TranslationResponseValue()
354 private @Nullable CharSequence mText; field in TranslationResponseValue.Builder
[all …]
/frameworks/base/core/java/android/view/
DAccessibilityIterators.java55 protected String mText; field in AccessibilityIterators.AbstractTextSegmentIterator
60 mText = text; in initialize()
102 final int textLegth = mText.length(); in following()
128 final int textLegth = mText.length(); in preceding()
190 final int textLegth = mText.length(); in following()
194 if (offset >= mText.length()) { in following()
216 final int textLegth = mText.length(); in preceding()
247 && (index == mText.length() || !isLetterOrDigit(index)); in isEndBoundary()
251 if (index >= 0 && index < mText.length()) { in isLetterOrDigit()
252 final int codePoint = mText.codePointAt(index); in isLetterOrDigit()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannableStringNoCopyTest.java103 private final @NonNull Spannable mText; field in SpannableStringNoCopyTest.CustomSpannable
106 mText = text; in CustomSpannable()
111 mText.setSpan(what, start, end, flags); in setSpan()
116 mText.removeSpan(what); in removeSpan()
121 return mText.getSpans(start, end, type); in getSpans()
126 return mText.getSpanStart(tag); in getSpanStart()
131 return mText.getSpanEnd(tag); in getSpanEnd()
136 return mText.getSpanFlags(tag); in getSpanFlags()
141 return mText.nextSpanTransition(start, limit, type); in nextSpanTransition()
146 return mText.length(); in length()
[all …]
DSpannedStringNoCopyTest.java103 private final @NonNull Spanned mText; field in SpannedStringNoCopyTest.CustomSpanned
106 mText = text; in CustomSpanned()
111 return mText.getSpans(start, end, type); in getSpans()
116 return mText.getSpanStart(tag); in getSpanStart()
121 return mText.getSpanEnd(tag); in getSpanEnd()
126 return mText.getSpanFlags(tag); in getSpanFlags()
131 return mText.nextSpanTransition(start, limit, type); in nextSpanTransition()
136 return mText.length(); in length()
141 return mText.charAt(index); in charAt()
146 return mText.subSequence(start, end); in subSequence()
[all …]
/frameworks/base/core/java/android/widget/
DAccessibilityIterators.java46 mText = text.toString(); in initialize()
52 final int textLegth = mText.length(); in following()
56 if (offset >= mText.length()) { in following()
80 final int textLegth = mText.length(); in preceding()
88 if (offset > mText.length()) { in preceding()
89 previousLine = mLayout.getLineForOffset(mText.length()); in preceding()
137 final int textLength = mText.length(); in following()
141 if (offset >= mText.length()) { in following()
166 final int textLength = mText.length(); in preceding()
177 final int end = Math.min(mText.length(), offset); in preceding()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DCompletionInfo.java54 private final CharSequence mText; field in CompletionInfo
69 mText = text; in CompletionInfo()
90 mText = text; in CompletionInfo()
97 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CompletionInfo()
122 return mText; in getText()
136 return "CompletionInfo{#" + mPosition + " \"" + mText in toString()
149 TextUtils.writeToParcel(mText, dest, flags); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java51 private String mText; field in QSDualTileLabel
120 if (Objects.equals(newText, mText)) return; in setText()
121 mText = newText; in setText()
126 return mText; in getText()
154 if (TextUtils.isEmpty(mText)) { in updateText()
162 float width = mFirstLine.getPaint().measureText(mText); in updateText()
164 mFirstLine.setText(mText); in updateText()
169 final int n = mText.length(); in updateText()
174 width = mFirstLine.getPaint().measureText(mText.substring(0, i)); in updateText()
176 if (Character.isWhitespace(mText.charAt(i))) { in updateText()
[all …]
/frameworks/base/core/java/android/app/
DRemoteInputHistoryItem.java34 private CharSequence mText; field in RemoteInputHistoryItem
41 this.mText = Notification.safeCharSequence(backupText); in RemoteInputHistoryItem()
45 this.mText = Notification.safeCharSequence(text); in RemoteInputHistoryItem()
49 mText = in.readCharSequence(); in RemoteInputHistoryItem()
68 return mText; in getText()
86 dest.writeCharSequence(mText); in writeToParcel()
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java92 private ViewNodeText mText; field in ViewNode
133 mText = new ViewNodeText(parcel, (nodeFlags & FLAGS_HAS_COMPLEX_TEXT) == 0); in ViewNode()
227 return mText != null ? mText.mText : null; in getText()
369 return mText != null ? mText.mHint : null; in getHint()
380 return mText != null ? mText.mTextSelectionStart : -1; in getTextSelectionStart()
385 return mText != null ? mText.mTextSelectionEnd : -1; in getTextSelectionEnd()
390 return mText != null ? mText.mTextColor : TEXT_COLOR_UNDEFINED; in getTextColor()
395 return mText != null ? mText.mTextBackgroundColor : TEXT_COLOR_UNDEFINED; in getTextBackgroundColor()
400 return mText != null ? mText.mTextSize : 0; in getTextSize()
405 return mText != null ? mText.mTextStyle : 0; in getTextStyle()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextOnPathActivity.java73 private final String mText; field in TextOnPathActivity.TextOnPathView
96 mText = builder.toString(); in TextOnPathView()
115 canvas.drawTextOnPath(mText + mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
128 canvas.drawTextOnPath(mText + mText, mStraightPath, 0.0f, 0.0f, mPaint); in onDraw()
135 canvas.drawTextOnPath(mText, mPath, 0.0f, 10.0f, mPaint); in onDraw()
143 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
148 canvas.drawTextOnPath(mText, mPath, 0.0f, 0.0f, mPaint); in onDraw()
DPosTextActivity.java37 private final String mText; field in PosTextActivity.CustomTextView
43 mText = c.getResources().getString(R.string.complex_string); in CustomTextView()
44 mPos = new float[mText.length() * 2]; in CustomTextView()
66 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
70 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
74 canvas.drawPosText(mText, mPos, mLargePaint); in onDraw()
/frameworks/base/core/java/android/speech/tts/
DSynthesisRequest.java40 private final CharSequence mText; field in SynthesisRequest
51 mText = text; in SynthesisRequest()
57 mText = text; in SynthesisRequest()
68 return mText.toString(); in getText()
75 return mText; in getCharSequenceText()
/frameworks/base/core/java/android/text/
DPrecomputedText.java336 private final @NonNull SpannableString mText; field in PrecomputedText
448 mText = new SpannableString(text, true /* ignoreNoCopySpan */); in PrecomputedText()
460 return mText; in getText()
560 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getWidth()
561 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getWidth()
590 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getBounds()
591 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getBounds()
617 Preconditions.checkArgument(0 <= offset && offset < mText.length(), "invalid offset"); in getCharWidthAt()
652 mText.setSpan(what, start, end, flags); in setSpan()
664 mText.removeSpan(what); in removeSpan()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListener.java35 TextView mText; field in ListScrollListener
49 mText = findViewById(R.id.text); in onCreate()
58 mText.setText("Position " + position); in onItemSelected()
62 mText.setText("Nothing"); in onNothingSelected()
67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount); in onScroll()
/frameworks/minikin/libs/minikin/
DWordBreaker.cpp81 MINIKIN_ASSERT(mText != nullptr, "setText must be called first"); in followingWithLocale()
99 mText = data; in setText()
166 while (!isValidBreak(mText, mTextSize, result)) { in iteratorNext()
197 uint16_t c = mText[i]; in detectEmailOrUrl()
231 uint16_t lastChar = mText[mLast]; in findNextBreakInEmailOrUrl()
238 if (lastChar == '/' && i >= mLast + 2 && mText[i - 2] == '/') { in findNextBreakInEmailOrUrl()
241 const uint16_t thisChar = mText[i]; in findNextBreakInEmailOrUrl()
249 !(i + 1 < mScanOffset && mText[i + 1] == '/')) { in findNextBreakInEmailOrUrl()
278 U16_NEXT(mText, ix, mCurrent, c); in wordStart()
298 U16_PREV(mText, mLast, ix, c); in wordEnd()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DEmptyShadeView.java34 private @StringRes int mText = R.string.empty_shade_text; field in EmptyShadeView
43 mEmptyText.setText(mText); in onConfigurationChanged()
61 mText = text; in setText()
62 mEmptyText.setText(mText); in setText()
66 return mText; in getTextResource()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassification.java124 @NonNull private final String mText; field in TextClassification
144 mText = text; in TextClassification()
160 return mText; in getText()
278 .setText(mText) in toBuilder()
292 mText, mEntityConfidence, mActions, mId, mExtras); in toString()
344 @Nullable private String mText;
357 mText = text;
502 return new TextClassification(mText, mLegacyIcon, mLegacyLabel, mLegacyIntent,
513 private final CharSequence mText;
528 mText = text;
[all …]
DTextLanguage.java226 private final CharSequence mText; field in TextLanguage.Request
231 mText = text; in Request()
240 return mText; in getText()
290 dest.writeCharSequence(mText); in writeToParcel()
310 private final CharSequence mText; field in TextLanguage.Request.Builder
319 mText = Preconditions.checkNotNull(text); in Builder()
338 return new Request(mText.toString(), mBundle == null ? Bundle.EMPTY : mBundle); in build()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java179 private final @NonNull char[] mText; field in MeasuredText.Builder
195 mText = text; in Builder()
209 mText = text.mChars; in Builder()
237 Preconditions.checkArgument(end <= mText.length, "Style exceeds the text length"); in appendStyleRun()
262 Preconditions.checkArgument(end <= mText.length, "Replacement exceeds the text length"); in appendReplacementRun()
312 if (mCurrentOffset != mText.length) { in build()
321 long ptr = nBuildMeasuredText(mNativePtr, hintPtr, mText, mComputeHyphenation, in build()
323 final MeasuredText res = new MeasuredText(ptr, mText, mComputeHyphenation, in build()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DPaintMeasureTextTest.java61 private final String mText; field in PaintMeasureTextTest
65 mText = text; in PaintMeasureTextTest()
78 paint.measureText(mText); in testMeasureTextPerf()
90 paint.measureText(mText); in testMeasureTextPerf()
/frameworks/opt/chips/src/com/android/ex/chips/
DCopyDialog.java21 private String mText; field in CopyDialog
34 mText = args.getString(ARG_TEXT); in onCreateDialog()
37 .setMessage(mText) in onCreateDialog()
48 clipboard.setPrimaryClip(ClipData.newPlainText(null, mText)); in onClick()
/frameworks/base/core/java/com/android/internal/util/
DFastPrintWriter.java56 private final char[] mText; field in FastPrintWriter
127 mText = new char[bufferLen]; in FastPrintWriter()
196 mText = new char[bufferLen]; in FastPrintWriter()
239 mText = new char[bufferLen]; in FastPrintWriter()
305 mText[pos] = c; in appendLocked()
325 str.getChars(i, i + length, mText, pos); in appendLocked()
345 System.arraycopy(buf, i, mText, pos, length); in appendLocked()
364 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); in flushLocked()
382 mWriter.write(mText, 0, mPos); in flushLocked()
389 while (nonEolOff < len && mText[mPos-1-nonEolOff] in flushLocked()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java65 private char[] mText; field in BidiRenderer
81 mText = text; in BidiRenderer()
106 mBidi.setPara(Arrays.copyOfRange(mText, start, limit), (byte)getIcuFlags(bidiFlags), null); in renderText()
107 mText = mBidi.getText(); in renderText()
136 for (ScriptRun run : getScriptRuns(mText, start, limit, mPaint.getFonts())) { in renderText()
157 int canDisplayUpTo = preferredFont.canDisplayUpTo(mText, start, limit); in renderScript()
189 canDisplayUpTo = font.canDisplayUpTo(mText, start, limit); in renderScript()
208 int charCount = Character.isHighSurrogate(mText[start]) ? 2 : 1; in renderScript()
272 GlyphVector gv = font.layoutGlyphVector(frc, mText, start, limit, flag); in render()
277 if (mText[ci[i]] == '\uFEFF') { in render()

1234