Searched refs:textView (Results 1 - 25 of 98) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewPopup.java47 final AutoCompleteTextView textView = theActivity.getTextView();
51 textView.requestFocus();
56 waitAssertListSelection(textView, ListView.INVALID_POSITION);
61 textView.setListSelection(0);
65 waitAssertListSelection("set selection to (0)", textView, 0);
69 waitAssertListSelection("move selection to (1)", textView, 1);
72 clearText(textView);
79 final AutoCompleteTextView textView = theActivity.getTextView();
83 textView.requestFocus();
88 waitAssertListSelection(textView, ListVie
224 waitAssertPopupShowState(String message, AutoCompleteTextView textView, boolean expected) argument
235 waitAssertListSelection(AutoCompleteTextView textView, int expected) argument
240 waitAssertListSelection(String message, AutoCompleteTextView textView, int expected) argument
253 clearText(final AutoCompleteTextView textView) argument
[all...]
H A DAutoCompleteTextViewCallbacks.java38 AutoCompleteTextView textView = theActivity.getTextView();
42 textView.requestFocus();
63 AutoCompleteTextView textView = theActivity.getTextView();
67 textView.requestFocus();
71 textView.post(new Runnable() {
89 textView.post(new Runnable() {
112 AutoCompleteTextView textView = theActivity.getTextView();
116 textView.requestFocus();
125 textView.post(new Runnable() {
/frameworks/support/v4/jellybean/android/support/v4/widget/
H A DTextViewCompatJb.java24 static int getMaxLines(TextView textView) { argument
25 return textView.getMaxLines();
28 static int getMinLines(TextView textView) { argument
29 return textView.getMinLines();
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DShadowOverlayContainerTest.java29 TextView textView = new TextView(getContext());
30 textView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
32 textView.setText("abc");
35 container.wrap(textView);
40 assertTrue(textView.getWidth() > 0);
41 assertTrue(textView.getWidth() < 500);
42 assertTrue(textView.getHeight() > 0);
43 assertTrue(textView.getHeight() < 500);
44 assertEquals(container.getWidth(), textView.getWidth());
45 assertEquals(container.getHeight(), textView
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DTextViewCompat.java38 void setCompoundDrawablesRelative(@NonNull TextView textView, argument
41 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
44 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
47 int getMaxLines(TextView textView); argument
48 int getMinLines(TextView textView); argument
49 void setTextAppearance(@NonNull TextView textView, @StyleRes int resId); argument
54 public void setCompoundDrawablesRelative(@NonNull TextView textView, argument
57 textView.setCompoundDrawables(start, top, end, bottom);
61 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
64 textView
68 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
75 getMaxLines(TextView textView) argument
80 getMinLines(TextView textView) argument
85 setTextAppearance(TextView textView, @StyleRes int resId) argument
92 getMaxLines(TextView textView) argument
97 getMinLines(TextView textView) argument
104 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
111 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
119 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
129 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
136 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
145 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
155 setTextAppearance(@onNull TextView textView, @StyleRes int resId) argument
192 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
212 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
236 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
246 getMaxLines(@onNull TextView textView) argument
254 getMinLines(@onNull TextView textView) argument
269 setTextAppearance(@onNull TextView textView, @StyleRes int resId) argument
[all...]
H A DTextViewCompatDonut.java39 static int getMaxLines(TextView textView) { argument
44 if (sMaxModeField != null && retrieveIntFromField(sMaxModeField, textView) == LINES) {
51 return retrieveIntFromField(sMaximumField, textView);
57 static int getMinLines(TextView textView) { argument
62 if (sMinModeField != null && retrieveIntFromField(sMinModeField, textView) == LINES) {
69 return retrieveIntFromField(sMinimumField, textView);
86 private static int retrieveIntFromField(Field field, TextView textView) { argument
88 return field.getInt(textView);
95 static void setTextAppearance(TextView textView, int resId) { argument
96 textView
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DFindMethodTest.java32 TextView textView = mBinder.textView6;
33 assertEquals("no arg", textView.getText().toString());
37 TextView textView = mBinder.textView0;
38 assertEquals("1", textView.getText().toString());
42 TextView textView = mBinder.textView1;
43 assertEquals("1.25", textView.getText().toString());
47 TextView textView = mBinder.textView2;
48 assertEquals("hello", textView.getText().toString());
52 TextView textView = mBinder.textView3;
53 assertEquals("1", textView
[all...]
H A DInnerCannotReadDependencyTest.java37 assertEquals("a ", mBinder.textView.getText().toString());
40 assertEquals("null ", mBinder.textView.getText().toString());
43 assertEquals("null b", mBinder.textView.getText().toString());
46 assertEquals("c b", mBinder.textView.getText().toString());
H A DNewApiTest.java43 assertEquals("foo", mBinder.textView.getText().toString());
44 assertEquals(3f, mBinder.textView.getElevation());
52 TextView textView = mBinder.textView;
53 float originalElevation = textView.getElevation();
57 assertEquals("foo2", textView.getText().toString());
58 assertEquals(originalElevation, textView.getElevation());
71 assertSame(mBinder.textView, views.get(0));
H A DBindToFinalObservableFieldTest.java34 final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view);
35 assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString());
40 textView.getText().toString());
H A DCustomBindingTest.java34 assertEquals("hello world", mBinder.textView.getText().toString());
40 assertEquals("goodbye world", subPackaged.textView.getText().toString());
46 assertEquals("hello android", newPackage.textView.getText().toString());
H A DObservableWithNotBindableFieldObjectTest.java36 assertEquals("", mBinder.textView.getText().toString());
39 assertEquals("100", mBinder.textView.getText().toString());
/frameworks/support/v4/jellybean-mr1/android/support/v4/widget/
H A DTextViewCompatJbMr1.java27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, argument
30 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
31 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom);
34 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
37 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
38 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end,
42 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
44 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
45 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end,
/frameworks/support/v4/api23/android/support/v4/widget/
H A DTextViewCompatApi23.java25 public static void setTextAppearance(@NonNull TextView textView, @StyleRes int resId) { argument
26 textView.setTextAppearance(resId);
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivity.java19 View textView = findViewById(R.id.textView);
20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY());
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DLinkSpanTest.java32 final TextView textView = new TextView(context);
35 linkSpan.onClick(textView);
43 final TextView textView = new TextView(context);
46 linkSpan.onClick(textView);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DAppCompatTextViewTest.java80 final AppCompatTextView textView =
83 assertEquals("Text view is not in all caps", text, textView.getLayout().getText());
88 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_hex);
89 assertEquals(Color.RED, textView.getCurrentTextColor());
94 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_csl);
97 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default),
98 textView.getCurrentTextColor());
101 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_disabled),
102 textView.getCurrentTextColor());
107 final TextView textView
[all...]
/frameworks/support/v4/jellybean-mr2/android/support/v4/widget/
H A DTextViewCompatJbMr2.java27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, argument
30 textView.setCompoundDrawablesRelative(start, top, end, bottom);
33 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
36 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
39 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument
42 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
/frameworks/support/v4/tests/java/android/support/v4/testutils/
H A DTextViewActions.java53 TextView textView = (TextView) view;
54 textView.setMaxLines(maxLines);
80 TextView textView = (TextView) view;
81 textView.setMinLines(minLines);
107 TextView textView = (TextView) view;
108 textView.setText(stringResId);
134 TextView textView = (TextView) view;
135 TextViewCompat.setTextAppearance(textView, styleResId);
163 TextView textView = (TextView) view;
164 TextViewCompat.setCompoundDrawablesRelative(textView, star
[all...]
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
H A DRichTextViewTest.java39 RichTextView textView = new RichTextView(getContext());
40 textView.setText(ssb);
42 final CharSequence text = textView.getText();
61 RichTextView textView = new RichTextView(getContext());
62 textView.setText(ssb);
64 final CharSequence text = textView.getText();
/frameworks/base/core/java/com/android/internal/widget/
H A DTextViewInputDisabler.java41 public TextViewInputDisabler(TextView textView) { argument
42 mTextView = textView;
/frameworks/data-binding/integration-tests/IndependentLibrary/app/src/androidTest/java/android/databinding/test/independentlibrary/
H A DLibraryActivityTest.java34 TextView textView = (TextView) activity.findViewById(R.id.fooTextView);
37 assertEquals(expected, textView.getText().toString());
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEnvReverbTest.java72 TextView textView;
78 textView = (TextView) findViewById(R.id.sessionText);
81 R.id.stop1, stop, textView,
85 R.id.stop1, stop, textView,
114 textView = (TextView)findViewById(R.id.rvbParam1Value);
115 mParameters[0] = new RoomLevelParam(mReverb, seekBar, textView);
120 textView = (TextView)findViewById(R.id.rvbParam2Value);
121 mParameters[1] = new RoomHFLevelParam(mReverb, seekBar, textView);
126 textView = (TextView)findViewById(R.id.rvbParam3Value);
127 mParameters[2] = new DecayTimeParam(mReverb, seekBar, textView);
274 EnvReverbParam(EnvironmentalReverb reverb, int min, int max, SeekBar seekBar, TextView textView, String unit) argument
297 RoomLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
319 RoomHFLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
341 DecayTimeParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
363 DecayHFRatioParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
385 ReflectionsLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
407 ReflectionsDelayParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
429 ReverbLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
451 ReverbDelayParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
473 DiffusionParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
495 DensityParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DRunQueue.java39 TextView textView = new TextView(this);
40 textView.setText("RunQueue");
41 textView.setId(R.id.simple_view);
43 setContentView(textView);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
H A DArraysCheckWidget.java36 TextView textView = new TextView(context);
37 textView.setText(string);
38 textView.setTextSize(30);
39 addView(textView);

Completed in 4751 milliseconds

1234