Home
last modified time | relevance | path

Searched refs:newText (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/
DActionButtonsPreference.java242 final String newText = getContext().getString(textResId); in setButton1Text() local
243 if (!TextUtils.equals(newText, mButton1Info.mText)) { in setButton1Text()
244 mButton1Info.mText = newText; in setButton1Text()
307 final String newText = getContext().getString(textResId); in setButton2Text() local
308 if (!TextUtils.equals(newText, mButton2Info.mText)) { in setButton2Text()
309 mButton2Info.mText = newText; in setButton2Text()
372 final String newText = getContext().getString(textResId); in setButton3Text() local
373 if (!TextUtils.equals(newText, mButton3Info.mText)) { in setButton3Text()
374 mButton3Info.mText = newText; in setButton3Text()
437 final String newText = getContext().getString(textResId); in setButton4Text() local
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java85 CharSequence newText = mTextView.getText(); in testArray() local
87 assertTrue(newText == oldText); in testArray()
89 assertEquals(5, newText.length()); in testArray()
90 assertEquals('o', newText.charAt(0)); in testArray()
91 assertEquals("o Wor", newText.toString()); in testArray()
93 assertEquals(" Wo", newText.subSequence(1, 4)); in testArray()
96 ((GetChars) newText).getChars(1, 4, c2, 2); in testArray()
DTextViewProcessTextTest.java87 CharSequence newText = "Text is replaced."; in testProcessTextActivityResultCancel() local
88 triggerOnActivityResult(Activity.RESULT_CANCELED, newText); in testProcessTextActivityResultCancel()
/frameworks/base/core/java/android/view/inputmethod/
DCorrectionInfo.java37 public CorrectionInfo(int offset, CharSequence oldText, CharSequence newText) { in CorrectionInfo() argument
40 mNewText = newText; in CorrectionInfo()
DEditorInfo.java873 CharSequence newText = ((flags & InputConnection.GET_TEXT_WITH_STYLES) != 0) in getInitialSurroundingText() local
877 return new SurroundingText(newText, before, newSelEnd, in getInitialSurroundingText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java122 final String newText = text == null ? null : text.toString().trim(); in setText() local
123 if (Objects.equals(newText, mText)) return; in setText()
124 mText = newText; in setText()
/frameworks/base/core/java/android/content/
DClipData.java481 CharSequence newText = Html.fromHtml(htmlText); in coerceToStyledText() local
482 if (newText != null) { in coerceToStyledText()
483 return newText; in coerceToStyledText()
592 CharSequence newText = Html.fromHtml(text); in coerceToHtmlOrStyledText() local
593 return newText != null ? newText : text; in coerceToHtmlOrStyledText()
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java306 public boolean onQueryTextChange(String newText) { in onQueryTextChange() argument
308 mAdapter.getFilter().filter(newText); in onQueryTextChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlViewHolder.kt287 val newText = nextStatusText in applyRenderInfo() constant
291 if (newText == status.text) { in applyRenderInfo()
295 updateStatusRow(enabled, newText, ri.icon, fg, control) in applyRenderInfo()
/frameworks/base/core/java/android/widget/
DSearchView.java229 boolean onQueryTextChange(String newText); in onQueryTextChange() argument
1291 private void onTextChanged(CharSequence newText) { in onTextChanged() argument
1299 if (mOnQueryChangeListener != null && !TextUtils.equals(newText, mOldQueryText)) { in onTextChanged()
1300 mOnQueryChangeListener.onQueryTextChange(newText.toString()); in onTextChanged()
1302 mOldQueryText = newText.toString(); in onTextChanged()
DSwitch.java1601 StringBuilder newText = new StringBuilder(); in onProvideStructure() local
1602 newText.append(oldText).append(' ').append(switchText); in onProvideStructure()
1603 structure.setText(newText); in onProvideStructure()
DEditor.java7331 String newText = TextUtils.substring(source, start, end); in handleEdit() local
7333 EditOperation edit = new EditOperation(mEditor, oldText, dstart, newText, in handleEdit()
7453 public EditOperation(Editor editor, String oldText, int dstart, String newText, in EditOperation() argument
7457 mNewText = newText; in EditOperation()
7668 CharSequence newText, int newTextInsertAt, int newCursorPos) { in modifyText() argument
7675 if (newText.length() != 0) { in modifyText()
7676 text.insert(newTextInsertAt, newText); in modifyText()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java147 char[] newText = ArrayUtils.newUnpaddedCharArray(GrowingArrayUtils.growSize(size)); in resizeFor() local
148 System.arraycopy(mText, 0, newText, 0, mGapStart); in resizeFor()
149 final int newLength = newText.length; in resizeFor()
152 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
153 mText = newText; in resizeFor()
/frameworks/base/core/java/android/app/
DSearchDialog.java698 public boolean onQueryTextChange(String newText) {
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java7768 final String newText = String.valueOf(newN.extras.get(Notification.EXTRA_TEXT));
7769 if (!Objects.equals(oldText, newText)) {
7776 newText, newText.getClass(), newText.hashCode()));