Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java49 protected String mText; field in AccessibilityIterators.AbstractTextSegmentIterator
54 mText = text; in initialize()
96 final int textLegth = mText.length(); in following()
122 final int textLegth = mText.length(); in preceding()
186 final int textLegth = mText.length(); in following()
190 if (offset >= mText.length()) { in following()
212 final int textLegth = mText.length(); in preceding()
243 && (index == mText.length() || !isLetterOrDigit(index)); in isEndBoundary()
247 if (index >= 0 && index < mText.length()) { in isLetterOrDigit()
248 final int codePoint = mText.codePointAt(index); in isLetterOrDigit()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java32 private TextView mText; field in TextViewTransformState
38 mText = (TextView) view; in initFrom()
46 if(TextUtils.equals(otherTvs.mText.getText(), mText.getText())) { in sameAs()
50 && getInnerHeight(mText) == getInnerHeight(otherTvs.mText); in sameAs()
61 Layout l = mText.getLayout(); in getEllipsisCount()
89 mText = null; in reset()
/frameworks/base/packages/Osu/src/com/android/anqp/
DI18Name.java18 private final String mText; field in I18Name
31 mText = Constants.getString(payload, nameLength - in I18Name()
40 mText = compoundString.substring(Constants.LANG_CODE_LENGTH); in I18Name()
53 return mText; in getText()
66 return mLanguage.equals(that.mLanguage) && mText.equals(that.mText); in equals()
72 result = 31 * result + mText.hashCode(); in hashCode()
78 return mText + ':' + mLocale.getLanguage(); 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 …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DI18Name.java18 private final String mText; field in I18Name
31 mText = Constants.getString(payload, nameLength - in I18Name()
40 mText = compoundString.substring(Constants.LANG_CODE_LENGTH); in I18Name()
53 return mText; in getText()
66 return mLanguage.equals(that.mLanguage) && mText.equals(that.mText); in equals()
72 result = 31 * result + mText.hashCode(); in hashCode()
78 return mText + ':' + mLocale.getLanguage(); in toString()
DGenericStringElement.java11 private final String mText; field in GenericStringElement
15 mText = Constants.getString(payload, payload.remaining(), StandardCharsets.UTF_8); in GenericStringElement()
19 return mText; in getM_text()
24 return "Element ID " + getID() + ": '" + mText + "'"; in toString()
/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.cpp35 if (mText != nullptr) { in setLocale()
42 mText = data; in setText()
139 uint16_t c = mText[i]; in next()
170 uint16_t lastChar = mText[mLast]; in next()
177 if (lastChar == '/' && i >= mLast + 2 && mText[i - 2] == '/') { in next()
180 uint16_t thisChar = mText[i]; in next()
188 !(i + 1 < mScanOffset && mText[i + 1] == '/')) { in next()
207 && !isBreakValid(mText, mTextSize, result)); in next()
220 U16_NEXT(mText, ix, mCurrent, c); in wordStart()
240 U16_PREV(mText, mLast, ix, c); in wordEnd()
[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/core/java/android/app/assist/
DAssistStructure.java340 CharSequence mText; field in AssistStructure.ViewNodeText
361 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); in ViewNodeText()
376 TextUtils.writeToParcel(mText, out, 0); in writeToParcel()
560 ViewNodeText mText; field in AssistStructure.ViewNode
617 mText = new ViewNodeText(in, (flags&FLAGS_HAS_COMPLEX_TEXT) == 0); in ViewNode()
659 if (mText != null) { in writeSelfToParcel()
661 if (!mText.isSimple()) { in writeSelfToParcel()
711 mText.writeToParcel(out, (flags&FLAGS_HAS_COMPLEX_TEXT) == 0); in writeSelfToParcel()
940 return mText != null ? mText.mText : null; in getText()
947 return mText != null ? mText.mTextSelectionStart : -1; in getTextSelectionStart()
[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/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DSymbolExpr.java27 String mText; field in SymbolExpr
32 mText = text; in SymbolExpr()
37 return mText; in getText()
47 return mType.getSimpleName() + mText; in computeUniqueKey()
52 return "Symbol '" + mText + "' cannot be the target of a two-way binding expression"; in getInvertibleError()
/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/support/v7/preference/src/android/support/v7/preference/
DEditTextPreferenceDialogFragmentCompat.java30 private CharSequence mText; field in EditTextPreferenceDialogFragmentCompat
45 mText = getEditTextPreference().getText(); in onCreate()
47 mText = savedInstanceState.getCharSequence(SAVE_STATE_TEXT); in onCreate()
54 outState.putCharSequence(SAVE_STATE_TEXT, mText); in onSaveInstanceState()
68 mEditText.setText(mText); in onBindDialogView()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DEditTextPreferenceDialogFragment.java31 private CharSequence mText; field in EditTextPreferenceDialogFragment
46 mText = getEditTextPreference().getText(); in onCreate()
48 mText = savedInstanceState.getCharSequence(SAVE_STATE_TEXT); in onCreate()
55 outState.putCharSequence(SAVE_STATE_TEXT, mText); in onSaveInstanceState()
69 mEditText.setText(mText); in onBindDialogView()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListener.java35 TextView mText; field in ListScrollListener
49 mText = (TextView) 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/tests/coretests/src/android/graphics/
DPaintTest.java46 public final String mText; field in PaintTest.HintingTestCase
53 mText = text; in HintingTestCase()
87 float[] widths = new float[testCase.mText.length()]; in testHintingWidth()
90 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth()
91 assertEquals("Text width of '" + testCase.mText + "' without hinting is not expected.", in testHintingWidth()
95 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth()
96 assertEquals("Text width of '" + testCase.mText + "' with hinting is not expected.", in testHintingWidth()
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DButtonItem.java40 private CharSequence mText; field in ButtonItem
54 mText = a.getText(R.styleable.SuwButtonItem_android_text); in ButtonItem()
64 mText = text; in setText()
68 return mText; in getText()
127 mButton.setText(mText); in createButton()
/frameworks/base/core/java/com/android/internal/util/
DFastPrintWriter.java39 private final char[] mText; field in FastPrintWriter
109 mText = new char[bufferLen]; in FastPrintWriter()
178 mText = new char[bufferLen]; in FastPrintWriter()
221 mText = new char[bufferLen]; in FastPrintWriter()
287 mText[pos] = c; in appendLocked()
307 str.getChars(i, i + length, mText, pos); in appendLocked()
327 System.arraycopy(buf, i, mText, pos, length); in appendLocked()
346 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); in flushLocked()
364 mWriter.write(mText, 0, mPos); in flushLocked()
371 while (nonEolOff < len && mText[mPos-1-nonEolOff] in flushLocked()
[all …]
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java133 private String mText; field in ShortcutInfo
181 mText = b.mText; in ShortcutInfo()
233 mText = source.mText; in ShortcutInfo()
281 if (source.mText != null) { in copyNonNullFieldsFrom()
282 mText = source.mText; in copyNonNullFieldsFrom()
340 private String mText; field in ShortcutInfo.Builder
421 mText = Preconditions.checkStringNotEmpty(text, "text"); in setText()
536 return mText; in getText()
740 mText = source.readString(); in ShortcutInfo()
769 dest.writeString(mText); in writeToParcel()
[all …]
/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/base/core/java/android/preference/
DEditTextPreference.java51 private String mText; field in EditTextPreference
90 final boolean changed = !TextUtils.equals(mText, text); in setText()
92 mText = text; in setText()
108 return mText; in getText()
160 setText(restoreValue ? getPersistedString(mText) : (String) defaultValue); in onSetInitialValue()
165 return TextUtils.isEmpty(mText) || super.shouldDisableDependents(); in shouldDisableDependents()

1234