Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/inputmethod/
DCompletionInfo.java32 final CharSequence mText; field in CompletionInfo
41 mText = text; in CompletionInfo()
51 mText = text; in CompletionInfo()
58 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); in CompletionInfo()
83 return mText; in getText()
97 return "CompletionInfo{#" + mPosition + " \"" + mText in toString()
110 TextUtils.writeToParcel(mText, dest, flags); in writeToParcel()
/frameworks/base/core/java/android/widget/
DNumberPicker.java92 private final EditText mText; field in NumberPicker
146 validateInput(mText); in NumberPicker()
147 if (!mText.hasFocus()) mText.requestFocus(); in NumberPicker()
179 mText.clearFocus(); in NumberPicker()
204 mText = (EditText) findViewById(R.id.timepicker_input); in NumberPicker()
205 mText.setOnFocusChangeListener(focusListener); in NumberPicker()
206 mText.setFilters(new InputFilter[] {inputFilter}); in NumberPicker()
207 mText.setRawInputType(InputType.TYPE_CLASS_NUMBER); in NumberPicker()
225 mText.setEnabled(enabled); in setEnabled()
274 mText.setRawInputType(InputType.TYPE_CLASS_TEXT | in setRange()
[all …]
DTextView.java351 mText = ""; in TextView()
1040 return mText; in getText()
1047 return mText.length(); in length()
1057 return (mText instanceof Editable) ? (Editable)mText : null; in getEditableText()
1137 if (mInput != null && !(mText instanceof Editable)) in setKeyListenerOnly()
1138 setText(mText); in setKeyListenerOnly()
1140 setFilters((Editable) mText, mFilters); in setKeyListenerOnly()
1165 if (mMovement != null && !(mText instanceof Spannable)) in setMovementMethod()
1166 setText(mText); in setMovementMethod()
1209 if (mText instanceof Spannable) { in setTransformationMethod()
[all …]
/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()
DListThrasher.java41 TextView mText; field in ListThrasher
115 mText = (TextView) findViewById(R.id.text); in onCreate()
125 mText.setText("Position " + position); in onItemSelected()
129 mText.setText("Nothing"); in onNothingSelected()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java55 mText = new char[len]; in SpannableStringBuilder()
59 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
117 return mText[where + mGapLength]; in charAt()
119 return mText[where]; in charAt()
126 return mText.length - mGapLength; in length()
133 int after = mText.length - (mGapStart + mGapLength); in resizeFor()
135 System.arraycopy(mText, 0, newtext, 0, mGapStart); in resizeFor()
136 System.arraycopy(mText, mText.length - after, in resizeFor()
141 mSpanStarts[i] += newlen - mText.length; in resizeFor()
143 mSpanEnds[i] += newlen - mText.length; in resizeFor()
[all …]
DLayout.java119 mText = text; in Layout()
139 mText = text; in replaceWith()
196 CharSequence buf = mText; in draw()
381 return mText; in getText()
560 if (tab && mText instanceof Spanned) { in getHorizontal()
561 tabs = ((Spanned) mText).getSpans(start, end, TabStopSpan.class); in getHorizontal()
564 float wid = measureText(mPaint, mWorkPaint, mText, start, offset, end, in getHorizontal()
570 mText, end, offset, null, tab, tabs); in getHorizontal()
573 mText, end, offset, null, tab, tabs); in getHorizontal()
685 if (tabs == null && tab && mText instanceof Spanned) { in getLineMax()
[all …]
DSpannableStringInternal.java28 mText = source.toString(); in SpannableStringInternal()
30 mText = source.toString().substring(start, end); in SpannableStringInternal()
56 return mText.length(); in length()
60 return mText.charAt(i); in charAt()
64 return mText; in toString()
70 mText.getChars(start, end, dest, off); in getChars()
361 private String mText; field in SpannableStringInternal
DAutoText.java72 private String mText; field in AutoText
143 int len = mText.charAt(off); in lookup()
145 return mText.substring(off + 1, off + 1 + len); in lookup()
209 mText = right.toString(); in init()
/frameworks/base/core/java/android/content/
DUriMatcher.java130 mText = null; in UriMatcher()
138 mText = null; in UriMatcher()
169 if (token.equals(child.mText)) { in addURI()
184 child.mText = token; in addURI()
226 if (n.mText.equals(u)) {
262 private String mText;
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java91 mText = text; in setText()
140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
185 canvas.drawText(mText, mPaddingLeft, mPaddingTop - mAscent, mTextPaint); in onDraw()
189 private String mText; field in LabelView
/frameworks/base/core/java/android/text/method/
DCharacterPickerDialog.java43 private Editable mText; field in CharacterPickerDialog
60 mText = text; in CharacterPickerDialog()
94 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
96 mText.insert(selEnd, replace); in replaceCharacterAndClose()
98 mText.replace(selEnd - 1, selEnd, replace); in replaceCharacterAndClose()
DPasswordTransformationMethod.java241 mText = sp; in Visible()
247 mText.removeSpan(this); in run()
250 private Spannable mText; field in PasswordTransformationMethod.Visible
DQwertyKeyListener.java296 String old = new String(repl[0].mText); in onKeyDown()
488 mText = text; in Replaced()
491 private char[] mText; field in QwertyKeyListener.Replaced
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridThrasher.java43 TextView mText; field in GridThrasher
118 mText = (TextView) findViewById(R.id.text); in onCreate()
129 mText.setText("Position " + position); in onItemSelected()
133 mText.setText("Nothing"); in onNothingSelected()
DGridScrollListener.java34 TextView mText; field in GridScrollListener
49 mText = (TextView) findViewById(R.id.text); in onCreate()
63 mText.setText("Showing " + firstVisibleItem + "-" + lastItem + "/" + totalItemCount); in onScroll()
DGridInHorizontal.java33 TextView mText; field in GridInHorizontal
48 mText = (TextView) findViewById(R.id.text); in onCreate()
DGridInVertical.java33 TextView mText; field in GridInVertical
48 mText = (TextView) findViewById(R.id.text); in onCreate()
/frameworks/base/core/java/android/preference/
DEditTextPreference.java51 private String mText; field in EditTextPreference
86 mText = text; in setText()
102 return mText; in getText()
154 setText(restoreValue ? getPersistedString(mText) : (String) defaultValue); in onSetInitialValue()
159 return TextUtils.isEmpty(mText) || super.shouldDisableDependents(); in shouldDisableDependents()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java92 private final FasterStringBuilder mText = new FasterStringBuilder(); field in PointerLocationView
192 canvas.drawText(mText.clear() in onDraw()
200 canvas.drawText(mText.clear() in onDraw()
204 canvas.drawText(mText.clear() in onDraw()
213 canvas.drawText(mText.clear() in onDraw()
219 canvas.drawText(mText.clear() in onDraw()
225 canvas.drawText(mText.clear() in onDraw()
230 canvas.drawText(mText.clear() in onDraw()
237 canvas.drawText(mText.clear() in onDraw()
244 canvas.drawText(mText.clear() in onDraw()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java246 private final List<CharSequence> mText = new ArrayList<CharSequence>(); field in AccessibilityEvent
498 return mText; in getText()
626 mText.clear(); in clear()
672 parcel.readList(mText, null); in initFromParcel()
689 parcel.writeList(mText); in writeToParcel()
704 builder.append("; Text: " + mText); in toString()
/frameworks/base/core/java/com/android/internal/util/
DFastXmlSerializer.java53 private final char[] mText = new char[BUFFER_LEN]; field in FastXmlSerializer
70 mText[pos] = c; in append()
89 str.getChars(i, i+length, mText, pos); in append()
108 System.arraycopy(buf, i, mText, pos, length); in append()
221 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); in flush()
236 mWriter.write(mText, 0, mPos); in flush()
/frameworks/base/media/java/android/media/
DMetadata.java151 private String mText; field in Metadata.TimedText
156 mText = text; in TimedText()
162 .append(":").append(mText); in toString()
/frameworks/base/packages/TtsService/src/android/tts/
DTtsService.java65 public String mText = ""; field in TtsService.SpeechItem
73 mText = text; in SpeechItem()
88 mText = text; in SpeechItem()
847 sNativeSynth.speak(speechItem.mText, streamType); in speakInternalOnly()
947 sNativeSynth.synthesizeToFile(speechItem.mText, speechItem.mFilename); in synthToFileInternalOnly()
977 String text = speechItem.mText; in getSoundResource()
1013 if (currentSpeechItem.mText.length() < MAX_SPEECH_ITEM_CHAR_LENGTH){ in splitCurrentTextIfNeeded()
1022 while (end < currentSpeechItem.mText.length()){ in splitCurrentTextIfNeeded()
1023 splitText = currentSpeechItem.mText.substring(start, end); in splitCurrentTextIfNeeded()
1029 splitText = currentSpeechItem.mText.substring(start); in splitCurrentTextIfNeeded()
[all …]
/frameworks/base/services/java/com/android/server/
DWindowManagerService.java10052 final String mText; field in WindowManagerService.WindowState.Watermark
10093 mText = builder.toString(); in Watermark()
10095 Log.i(TAG, "Final text: " + mText); in Watermark()
10106 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
10177 c.drawText(mText, x, y, mTextPaint); in drawIfNeeded()