Searched refs:newText (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewTest.java62 CharSequence newText = mTextView.getText();
64 assertTrue(newText == oldText);
66 assertEquals(5, newText.length());
67 assertEquals('o', newText.charAt(0));
68 assertEquals("o Wor", newText.toString());
70 assertEquals(" Wo", newText.subSequence(1, 4));
73 ((GetChars) newText).getChars(1, 4, c2, 2);
100 CharSequence newText = "Text is replaced.";
102 data.putExtra(Intent.EXTRA_PROCESS_TEXT, newText);
127 CharSequence newText
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarUsage.java97 public boolean onQueryTextChange(String newText) {
98 newText = TextUtils.isEmpty(newText) ? "" : "Query so far: " + newText;
99 mSearchText.setText(newText);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarUsage.java97 public boolean onQueryTextChange(String newText) {
98 newText = TextUtils.isEmpty(newText) ? "" : "Query so far: " + newText;
99 mSearchText.setText(newText);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DSearchViewBindingAdapter.java53 public boolean onQueryTextChange(String newText) {
55 return change.onQueryTextChange(newText);
103 boolean onQueryTextChange(String newText); argument
/frameworks/base/core/java/android/view/inputmethod/
H A DCorrectionInfo.java35 * @param newText The replacement text.
37 public CorrectionInfo(int offset, CharSequence oldText, CharSequence newText) { argument
40 mNewText = newText;
/frameworks/support/compat/java/android/support/v4/widget/
H A DSearchViewCompat.java143 public boolean onQueryTextChange(String newText) {
144 return listener.onQueryTextChange(newText);
160 public boolean onQueryTextChange(String newText) { argument
187 * @param newText the new content of the query text field.
192 boolean onQueryTextChange(String newText); argument
/frameworks/support/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/
H A DCursorFragment.java85 public boolean onQueryTextChange(String newText) { argument
89 mCurFilter = !TextUtils.isEmpty(newText) ? newText : null;
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderCursorSupport.java103 public boolean onQueryTextChange(String newText) {
107 String newFilter = !TextUtils.isEmpty(newText) ? newText : null;
H A DLoaderRetainedSupport.java106 public boolean onQueryTextChange(String newText) {
110 String newFilter = !TextUtils.isEmpty(newText) ? newText : null;
H A DLoaderCustomSupport.java443 public boolean onQueryTextChange(String newText) {
446 mCurFilter = !TextUtils.isEmpty(newText) ? newText : null;
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/
H A DCursorFragment.java85 public boolean onQueryTextChange(String newText) { argument
89 mCurFilter = !TextUtils.isEmpty(newText) ? newText : null;
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderCursorSupport.java103 public boolean onQueryTextChange(String newText) {
107 String newFilter = !TextUtils.isEmpty(newText) ? newText : null;
H A DLoaderRetainedSupport.java106 public boolean onQueryTextChange(String newText) {
110 String newFilter = !TextUtils.isEmpty(newText) ? newText : null;
H A DLoaderCustomSupport.java443 public boolean onQueryTextChange(String newText) {
446 mCurFilter = !TextUtils.isEmpty(newText) ? newText : null;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDualTileLabel.java119 final String newText = text == null ? null : text.toString().trim();
120 if (Objects.equals(newText, mText)) return;
121 mText = newText;
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePickerWithRegion.java264 public boolean onQueryTextChange(String newText) { argument
266 mAdapter.getFilter().filter(newText);
/frameworks/base/core/java/android/content/
H A DClipData.java419 CharSequence newText = Html.fromHtml(htmlText);
420 if (newText != null) {
421 return newText;
530 CharSequence newText = Html.fromHtml(text);
531 return newText != null ? newText : text;
/frameworks/base/core/java/android/widget/
H A DSwitch.java1426 StringBuilder newText = new StringBuilder();
1427 newText.append(oldText).append(' ').append(switchText);
1428 structure.setText(newText);
1446 StringBuilder newText = new StringBuilder();
1447 newText.append(oldText).append(' ').append(switchText);
1448 info.setText(newText);
H A DSearchView.java204 * @param newText the new content of the query text field.
209 boolean onQueryTextChange(String newText); argument
1241 private void onTextChanged(CharSequence newText) { argument
1249 if (mOnQueryChangeListener != null && !TextUtils.equals(newText, mOldQueryText)) {
1250 mOnQueryChangeListener.onQueryTextChange(newText.toString());
1252 mOldQueryText = newText.toString();
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DListenerBindingObject.java126 public boolean onQueryTextChange(String newText) { argument
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
H A DXmlEditor.java272 private static String replaceRange(String line, int start, int end, String newText) { argument
273 return line.substring(0, start) + newText + line.substring(end);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java1406 StringBuilder newText = new StringBuilder();
1407 newText.append(oldText).append(' ').append(switchText);
1408 info.setText(newText);
H A DSearchView.java219 * @param newText the new content of the query text field.
224 boolean onQueryTextChange(String newText); argument
1171 void onTextChanged(CharSequence newText) { argument
1179 if (mOnQueryChangeListener != null && !TextUtils.equals(newText, mOldQueryText)) {
1180 mOnQueryChangeListener.onQueryTextChange(newText.toString());
1182 mOldQueryText = newText.toString();
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java145 char[] newText = ArrayUtils.newUnpaddedCharArray(GrowingArrayUtils.growSize(size));
146 System.arraycopy(mText, 0, newText, 0, mGapStart);
147 final int newLength = newText.length;
150 System.arraycopy(mText, oldLength - after, newText, newLength - after, after);
151 mText = newText;
/frameworks/base/core/java/android/app/
H A DSearchDialog.java679 public boolean onQueryTextChange(String newText) {

Completed in 504 milliseconds

12