/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | TextViewTransformState.java | 33 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/app/smartspace/uitemplatedata/ |
D | Text.java | 38 private final CharSequence mText; field in Text 45 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in Text() 51 mText = text; in Text() 59 return mText; in getText() 96 return mTruncateAtType == that.mTruncateAtType && SmartspaceUtils.isEqual(mText, in equals() 97 that.mText) && mMaxLines == that.mMaxLines; in equals() 102 return Objects.hash(mText, mTruncateAtType, mMaxLines); in hashCode() 107 TextUtils.writeToParcel(mText, out, flags); in writeToParcel() 115 + "mText=" + mText in toString() 128 private final CharSequence mText; field in Text.Builder [all …]
|
/frameworks/base/core/java/android/view/translation/ |
D | TranslationRequestValue.java | 35 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()
|
D | TranslationResponseValue.java | 85 private final CharSequence mText; field in TranslationResponseValue 187 this.mText = text; in TranslationResponseValue() 212 return mText; in getText() 244 "text = " + mText + ", " + in toString() 264 && Objects.equals(mText, that.mText) in equals() 277 _hash = 31 * _hash + Objects.hashCode(mText); in hashCode() 290 if (mText != null) flg |= 0x2; in writeToParcel() 294 if (mText != null) dest.writeCharSequence(mText); in writeToParcel() 326 this.mText = text; in TranslationResponseValue() 357 private @Nullable CharSequence mText; field in TranslationResponseValue.Builder [all …]
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 55 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/ |
D | SpannableStringNoCopyTest.java | 103 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 …]
|
D | SpannedStringNoCopyTest.java | 103 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/text/ |
D | WordSegmentFinder.java | 37 private final CharSequence mText; field in WordSegmentFinder 49 mText = text; in WordSegmentFinder() 63 mText = text; in WordSegmentFinder() 75 } while (Character.isWhitespace(mText.charAt(boundary))); in previousStartBoundary() 87 } while (Character.isWhitespace(mText.charAt(boundary - 1))); in previousEndBoundary() 96 if (boundary == BreakIterator.DONE || boundary == mText.length()) { in nextStartBoundary() 99 } while (Character.isWhitespace(mText.charAt(boundary))); in nextStartBoundary() 111 } while (Character.isWhitespace(mText.charAt(boundary - 1))); in nextEndBoundary()
|
D | PrecomputedText.java | 379 private final @NonNull SpannableString mText; field in PrecomputedText 539 mText = new SpannableString(text, true /* ignoreNoCopySpan */); in PrecomputedText() 551 return mText; in getText() 651 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getWidth() 652 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getWidth() 681 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getBounds() 682 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getBounds() 712 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getFontMetricsInt() 713 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getFontMetricsInt() 740 Preconditions.checkArgument(0 <= offset && offset < mText.length(), "invalid offset"); in getCharWidthAt() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AccessibilityIterators.java | 46 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/ |
D | CompletionInfo.java | 54 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()
|
D | SurroundingText.java | 36 private final CharSequence mText; field in SurroundingText 78 mText = copyWithParcelableSpans(text); in SurroundingText() 89 return mText; in getText() 129 TextUtils.writeToParcel(mText, out, flags); in writeToParcel() 192 && TextUtils.equals(mText, that.mText); in isEqualTo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDualTileLabel.java | 54 private String mText; field in QSDualTileLabel 123 if (Objects.equals(newText, mText)) return; in setText() 124 mText = newText; in setText() 130 return mText; in getText() 158 if (TextUtils.isEmpty(mText)) { in updateText() 166 float width = mFirstLine.getPaint().measureText(mText); in updateText() 168 mFirstLine.setText(mText); in updateText() 173 final int n = mText.length(); in updateText() 178 width = mFirstLine.getPaint().measureText(mText.substring(0, i)); in updateText() 180 if (Character.isWhitespace(mText.charAt(i))) { in updateText() [all …]
|
/frameworks/base/core/java/android/app/ |
D | RemoteInputHistoryItem.java | 34 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/packages/SystemUI/shared/keyguard/src/com/android/keyguard/ |
D | BasePasswordTextView.java | 35 private String mText = ""; field in BasePasswordTextView 93 mText = mText + c; in append() 94 int newLength = mText.length(); in append() 113 int length = mText.length(); in deleteLastChar() 117 mText = mText.substring(0, length - 1); in deleteLastChar() 131 return mText; in getText() 136 return String.valueOf(DOT).repeat(mText.length()); in getTransformedText() 153 mText = ""; in reset()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextOnPathActivity.java | 73 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()
|
D | PosTextActivity.java | 37 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/view/contentcapture/ |
D | ViewNode.java | 92 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/core/java/android/speech/tts/ |
D | SynthesisRequest.java | 40 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/tests/coretests/src/android/widget/listview/ |
D | ListScrollListener.java | 35 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/base/core/java/android/hardware/biometrics/ |
D | PromptContentItemBulletedText.java | 31 private final String mText; field in PromptContentItemBulletedText 39 mText = text; in PromptContentItemBulletedText() 47 return mText; in getText() 63 dest.writeString(mText); in writeToParcel()
|
D | PromptContentItemPlainText.java | 31 private final String mText; field in PromptContentItemPlainText 39 mText = text; in PromptContentItemPlainText() 47 return mText; in getText() 63 dest.writeString(mText); in writeToParcel()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | TextData.java | 31 public String mText; field in TextData 37 this.mText = text; in TextData() 42 COMPANION.apply(buffer, mTextId, mText); in write() 48 + Utils.trimString(mText, 10) + "\""; in toString() 82 context.loadText(mTextId, mText); in apply()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassification.java | 125 @NonNull private final String mText; field in TextClassification 145 mText = text; in TextClassification() 161 return mText; in getText() 279 .setText(mText) in toBuilder() 293 mText, mEntityConfidence, mActions, mId, mExtras); in toString() 346 @Nullable private String mText; 359 mText = text; 504 return new TextClassification(mText, mLegacyIcon, mLegacyLabel, mLegacyIntent, 515 private final CharSequence mText; 530 mText = text; [all …]
|
/frameworks/minikin/libs/minikin/ |
D | WordBreaker.cpp | 122 MINIKIN_ASSERT(mText != nullptr, "setText must be called first"); in followingWithLocale() 140 mText = data; in setText() 207 while (!isValidBreak(mText, mTextSize, result)) { in iteratorNext() 238 uint16_t c = mText[i]; in detectEmailOrUrl() 272 uint16_t lastChar = mText[mLast]; in findNextBreakInEmailOrUrl() 279 if (lastChar == '/' && i >= mLast + 2 && mText[i - 2] == '/') { in findNextBreakInEmailOrUrl() 282 const uint16_t thisChar = mText[i]; in findNextBreakInEmailOrUrl() 290 !(i + 1 < mScanOffset && mText[i + 1] == '/')) { in findNextBreakInEmailOrUrl() 319 U16_NEXT(mText, ix, mCurrent, c); in wordStart() 339 U16_PREV(mText, mLast, ix, c); in wordEnd() [all …]
|