Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java33 private TextView mText; field in TextViewTransformState
39 mText = (TextView) view; in initFrom()
50 if(TextUtils.equals(otherTvs.mText.getText(), mText.getText())) { in sameAs()
54 && mText.getLineCount() == otherTvs.mText.getLineCount() in sameAs()
62 boolean hasSpans = mText instanceof Spanned; in hasSameSpans()
63 boolean otherHasSpans = otherTvs.mText instanceof Spanned; in hasSameSpans()
70 Spanned ownSpanned = (Spanned) mText; in hasSameSpans()
72 Spanned otherSpanned = (Spanned) otherTvs.mText; in hasSameSpans()
97 int lineCount = mText.getLineCount(); in transformScale()
98 return lineCount == 1 && lineCount == otherTvs.mText.getLineCount() in transformScale()
[all …]
/frameworks/base/core/java/android/view/
DAccessibilityIterators.java48 protected String mText; field in AccessibilityIterators.AbstractTextSegmentIterator
53 mText = text; in initialize()
95 final int textLegth = mText.length(); in following()
121 final int textLegth = mText.length(); in preceding()
180 final int textLegth = mText.length(); in following()
184 if (offset >= mText.length()) { in following()
206 final int textLegth = mText.length(); in preceding()
237 && (index == mText.length() || !isLetterOrDigit(index)); in isEndBoundary()
241 if (index >= 0 && index < mText.length()) { in isLetterOrDigit()
242 final int codePoint = mText.codePointAt(index); in isLetterOrDigit()
[all …]
/frameworks/base/packages/Osu/src/com/android/anqp/
DI18Name.java20 private final String mText; field in I18Name
33 mText = Constants.getString(payload, nameLength - in I18Name()
42 mText = compoundString.substring(Constants.LANG_CODE_LENGTH); in I18Name()
55 return mText; in getText()
68 return mLanguage.equals(that.mLanguage) && mText.equals(that.mText); in equals()
74 result = 31 * result + mText.hashCode(); in hashCode()
80 return mText + ':' + mLocale.getLanguage(); in toString()
85 mText = in.readString(); in I18Name()
91 out.writeString(mText); in writeParcel()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/
DXMLNode.java36 private String mText; field in XMLNode
43 mText = null; in XMLNode()
70 mText = mTextBuilder.toString().trim(); in close()
83 return mText; in getText()
101 TextUtils.equals(mText, that.mText) && in equals()
107 return Objects.hash(mTag, mText, mChildren); in hashCode()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DSymbolExpr.java28 String mText; field in SymbolExpr
33 mText = text; in SymbolExpr()
38 return mText; in getText()
48 return mType.getSimpleName() + mText; in computeUniqueKey()
53 return "Symbol '" + mText + "' cannot be the target of a two-way binding expression"; in getInvertibleError()
63 return model.symbol(mText, mType); in cloneToModel()
86 return mText; in toString()
/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 …]
DSelectionActionModeHelper.java395 private String mText; field in SelectionActionModeHelper.SelectionMetricsLogger
411 if (mText == null || !mText.contentEquals(text)) { in logSelectionStarted()
412 mText = text.toString(); in logSelectionStarted()
414 mWordIterator.setText(mText); in logSelectionStarted()
426 Preconditions.checkArgumentInRange(start, 0, mText.length(), "start"); in logSelectionModified()
427 Preconditions.checkArgumentInRange(end, start, mText.length(), "end"); in logSelectionModified()
450 Preconditions.checkArgumentInRange(start, 0, mText.length(), "start"); in logSelectionAction()
451 Preconditions.checkArgumentInRange(end, start, mText.length(), "end"); in logSelectionAction()
530 return PATTERN_WHITESPACE.matcher(mText.substring(start, end)).matches(); in isWhitespace()
604 private String mText; field in SelectionActionModeHelper.TextClassificationHelper
[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/minikin/libs/minikin/
DWordBreaker.cpp38 if (mText != nullptr) { in setLocale()
45 mText = data; in setText()
118 || isBreakValid(mText, mTextSize, result))); in iteratorNext()
147 uint16_t c = mText[i]; in detectEmailOrUrl()
182 uint16_t lastChar = mText[mLast]; in findNextBreakInEmailOrUrl()
189 if (lastChar == '/' && i >= mLast + 2 && mText[i - 2] == '/') { in findNextBreakInEmailOrUrl()
192 const uint16_t thisChar = mText[i]; in findNextBreakInEmailOrUrl()
200 !(i + 1 < mScanOffset && mText[i + 1] == '/')) { in findNextBreakInEmailOrUrl()
229 U16_NEXT(mText, ix, mCurrent, c); in wordStart()
249 U16_PREV(mText, mLast, ix, c); in wordEnd()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DI18Name.java48 private final String mText; field in I18Name
54 mText = text; in I18Name()
94 return mText; in getText()
108 && TextUtils.equals(mText, that.mText); in equals()
114 result = 31 * result + mText.hashCode(); in hashCode()
120 return mText + ':' + mLocale.getLanguage(); in toString()
/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/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/support/v14/preference/src/android/support/v14/preference/
DEditTextPreferenceDialogFragment.java34 private CharSequence mText; field in EditTextPreferenceDialogFragment
49 mText = getEditTextPreference().getText(); in onCreate()
51 mText = savedInstanceState.getCharSequence(SAVE_STATE_TEXT); in onCreate()
58 outState.putCharSequence(SAVE_STATE_TEXT, mText); in onSaveInstanceState()
72 mEditText.setText(mText); in onBindDialogView()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DEditTextPreferenceDialogFragmentCompat.java33 private CharSequence mText; field in EditTextPreferenceDialogFragmentCompat
48 mText = getEditTextPreference().getText(); in onCreate()
50 mText = savedInstanceState.getCharSequence(SAVE_STATE_TEXT); in onCreate()
57 outState.putCharSequence(SAVE_STATE_TEXT, mText); in onSaveInstanceState()
71 mEditText.setText(mText); in onBindDialogView()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassification.java43 @NonNull private final String mText; field in TextClassification
62 mText = text; in TextClassification()
78 return mText; in getText()
164 mText, mEntityConfidence, mLabel, mIntent); in toString()
186 @NonNull private String mText; field in TextClassification.Builder
200 mText = text; in setText()
273 mText, mIcon, mLabel, mIntent, mOnClickListener, mEntityConfidence, in build()
/frameworks/base/core/java/android/content/
DUriMatcher.java134 mText = null; in UriMatcher()
142 mText = null; in UriMatcher()
186 if (token.equals(child.mText)) { in addURI()
201 child.mText = token; in addURI()
241 if (n.mText.equals(u)) {
277 private String mText;
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java418 CharSequence mText; field in AssistStructure.ViewNodeText
439 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in ViewNodeText()
454 TextUtils.writeToParcel(writeSensitive ? mText : "", out, 0); in writeToParcel()
675 ViewNodeText mText; field in AssistStructure.ViewNode
748 mText = new ViewNodeText(in, (flags&FLAGS_HAS_COMPLEX_TEXT) == 0); in ViewNode()
807 if (mText != null) { in writeSelfToParcel()
809 if (!mText.isSimple()) { in writeSelfToParcel()
905 mText.writeToParcel(out, (flags&FLAGS_HAS_COMPLEX_TEXT) == 0, writeSensitive); in writeSelfToParcel()
1054 if (mText == null) { in updateAutofillValue()
1055 mText = new ViewNodeText(); in updateAutofillValue()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DFastPrintWriter.java55 private final char[] mText; field in FastPrintWriter
125 mText = new char[bufferLen]; in FastPrintWriter()
194 mText = new char[bufferLen]; in FastPrintWriter()
237 mText = new char[bufferLen]; in FastPrintWriter()
303 mText[pos] = c; in appendLocked()
323 str.getChars(i, i + length, mText, pos); in appendLocked()
343 System.arraycopy(buf, i, mText, pos, length); in appendLocked()
362 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); in flushLocked()
380 mWriter.write(mText, 0, mPos); in flushLocked()
387 while (nonEolOff < len && mText[mPos-1-nonEolOff] in flushLocked()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/
DSortedListActivity.java85 int txtComp = t0.mText.compareTo(t1.mText); in SortedListAdapter()
100 return oldItem.mText.equals(newItem.mText); in SortedListAdapter()
162 mCheckBox.setText(item.mText);
170 String mText;
177 this.mText = text;
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DXMLNode.java23 private String mText; field in XMLNode
72 mText = text; in setText()
102 mText = filtered.toString(); in close()
105 if (MOTree.hasMgmtTreeTag(mText)) { in close()
109 mMO = omaParser.parse(mText, urn != null ? urn.getValue() : null); in close()
148 return mText; in getText()
185 if (mText != null && !mText.isEmpty()) { in toString()
186 sb.append('>').append(escapeCdata(mText)).append("</").append(mTag).append(">\n"); in toString()
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DButtonItem.java42 private CharSequence mText; field in ButtonItem
56 mText = a.getText(R.styleable.SuwButtonItem_android_text); in ButtonItem()
66 mText = text; in setText()
70 return mText; in getText()
142 mButton.setText(mText); in createButton()

1234