Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java47 final AutoCompleteTextView textView = theActivity.getTextView(); in testPopupSetListSelection() local
51 textView.requestFocus(); in testPopupSetListSelection()
56 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupSetListSelection()
61 textView.setListSelection(0); in testPopupSetListSelection()
65 waitAssertListSelection("set selection to (0)", textView, 0); in testPopupSetListSelection()
69 waitAssertListSelection("move selection to (1)", textView, 1); in testPopupSetListSelection()
72 clearText(textView); in testPopupSetListSelection()
79 final AutoCompleteTextView textView = theActivity.getTextView(); in testPopupGetListSelection() local
83 textView.requestFocus(); in testPopupGetListSelection()
88 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupGetListSelection()
[all …]
DTextViewActivityTest.java246 final TextView textView = (TextView) getActivity().findViewById(R.id.textview); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint() local
247 textView.post(new Runnable() { in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
250 textView.setTextDirection(TextView.TEXT_DIRECTION_FIRST_STRONG_LTR); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
251 textView.setInputType(InputType.TYPE_CLASS_TEXT); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
252 textView.setSingleLine(true); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
253 textView.setHint("الروبوت"); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
305 final TextView textView = (TextView) getActivity().findViewById(R.id.textview); in testToolbarAndSelectionHandle() local
307 .perform(dragHandle(textView, Handle.SELECTION_START, text.indexOf('a'))); in testToolbarAndSelectionHandle()
312 .perform(dragHandle(textView, Handle.SELECTION_END, text.length())); in testToolbarAndSelectionHandle()
333 final TextView textView = (TextView) getActivity().findViewById(R.id.textview); in testInsertionHandle() local
[all …]
DAutoCompleteTextViewCallbacks.java38 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupNoSelection() local
42 textView.requestFocus(); in testPopupNoSelection()
63 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupEnterSelection() local
67 textView.requestFocus(); in testPopupEnterSelection()
71 textView.post(new Runnable() { in testPopupEnterSelection()
89 textView.post(new Runnable() { in testPopupEnterSelection()
112 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupLeaveSelection() local
116 textView.requestFocus(); in testPopupLeaveSelection()
125 textView.post(new Runnable() { in testPopupLeaveSelection()
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DShadowOverlayContainerTest.java29 TextView textView = new TextView(getContext()); in testWrapContent() local
30 textView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, in testWrapContent()
32 textView.setText("abc"); in testWrapContent()
35 container.wrap(textView); in testWrapContent()
40 assertTrue(textView.getWidth() > 0); in testWrapContent()
41 assertTrue(textView.getWidth() < 500); in testWrapContent()
42 assertTrue(textView.getHeight() > 0); in testWrapContent()
43 assertTrue(textView.getHeight() < 500); in testWrapContent()
44 assertEquals(container.getWidth(), textView.getWidth()); in testWrapContent()
45 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DTextViewCompat.java38 void setCompoundDrawablesRelative(@NonNull TextView textView, in setCompoundDrawablesRelative() argument
41 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
44 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
47 int getMaxLines(TextView textView); in getMaxLines() argument
48 int getMinLines(TextView textView); in getMinLines() argument
49 void setTextAppearance(@NonNull TextView textView, @StyleRes int resId); in setTextAppearance() argument
54 public void setCompoundDrawablesRelative(@NonNull TextView textView, in setCompoundDrawablesRelative() argument
57 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative()
61 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
64 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
[all …]
DTextViewCompatDonut.java39 static int getMaxLines(TextView textView) { in getMaxLines() argument
44 if (sMaxModeField != null && retrieveIntFromField(sMaxModeField, textView) == LINES) { in getMaxLines()
51 return retrieveIntFromField(sMaximumField, textView); in getMaxLines()
57 static int getMinLines(TextView textView) { in getMinLines() argument
62 if (sMinModeField != null && retrieveIntFromField(sMinModeField, textView) == LINES) { in getMinLines()
69 return retrieveIntFromField(sMinimumField, textView); in getMinLines()
86 private static int retrieveIntFromField(Field field, TextView textView) { in retrieveIntFromField() argument
88 return field.getInt(textView); in retrieveIntFromField()
95 static void setTextAppearance(TextView textView, int resId) { in setTextAppearance() argument
96 textView.setTextAppearance(textView.getContext(), resId); in setTextAppearance()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DFindMethodTest.java32 TextView textView = mBinder.textView6; in testNoArg() local
33 assertEquals("no arg", textView.getText().toString()); in testNoArg()
37 TextView textView = mBinder.textView0; in testIntArg() local
38 assertEquals("1", textView.getText().toString()); in testIntArg()
42 TextView textView = mBinder.textView1; in testFloatArg() local
43 assertEquals("1.25", textView.getText().toString()); in testFloatArg()
47 TextView textView = mBinder.textView2; in testStringArg() local
48 assertEquals("hello", textView.getText().toString()); in testStringArg()
52 TextView textView = mBinder.textView3; in testBoxedArg() local
53 assertEquals("1", textView.getText().toString()); in testBoxedArg()
[all …]
DNewApiTest.java43 assertEquals("foo", mBinder.textView.getText().toString()); in testSetElevation()
44 assertEquals(3f, mBinder.textView.getElevation()); in testSetElevation()
52 TextView textView = mBinder.textView; in testSetElevationOlderAPI() local
53 float originalElevation = textView.getElevation(); in testSetElevationOlderAPI()
57 assertEquals("foo2", textView.getText().toString()); in testSetElevationOlderAPI()
58 assertEquals(originalElevation, textView.getElevation()); in testSetElevationOlderAPI()
71 assertSame(mBinder.textView, views.get(0)); in testGeneric()
DInnerCannotReadDependencyTest.java37 assertEquals("a ", mBinder.textView.getText().toString()); in testBinding()
40 assertEquals("null ", mBinder.textView.getText().toString()); in testBinding()
43 assertEquals("null b", mBinder.textView.getText().toString()); in testBinding()
46 assertEquals("c b", mBinder.textView.getText().toString()); in testBinding()
DTextViewBindingAdapterTest.java111 TextView view = mBinder.textView; in testSimpleProperties()
274 private static String getDigits(TextView textView) { in getDigits() argument
275 KeyListener keyListener = textView.getKeyListener(); in getDigits()
287 TextView textView = mBinder.textPhoneNumber; in testPhoneNumber() local
288 assertEquals(mBindingObject.isPhoneNumber(), isPhoneNumber(textView)); in testPhoneNumber()
290 assertEquals(mBindingObject.isPhoneNumber(), isPhoneNumber(textView)); in testPhoneNumber()
299 TextView textView = mBinder.textInputMethod; in testInputMethod() local
300 assertTrue(TextViewBindingObject.KeyListener1.class.isInstance(textView.getKeyListener())); in testInputMethod()
302 assertTrue(TextViewBindingObject.KeyListener2.class.isInstance(textView.getKeyListener())); in testInputMethod()
307 TextView textView = mBinder.textWithTheme; in testTextWithTheme() local
[all …]
DBasicBindingTest.java98 assertEquals("XY", mBinder.textView.getText().toString()); in testStopBinding()
116 assertEquals("QR", mBinder.textView.getText().toString()); in testStopBinding()
137 assertNotNull(binding.textView); in testJustIds()
152 assertNotNull(binding.textView); in testInflation()
153 assertNotSame(binding.textView, mBinder.textView); in testInflation()
172 assertEquals(text, mBinder.textView.getText().toString()); in rebindAndAssert()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEnvReverbTest.java72 TextView textView; in onCreate() local
78 textView = (TextView) findViewById(R.id.sessionText); in onCreate()
81 R.id.stop1, stop, textView, in onCreate()
85 R.id.stop1, stop, textView, in onCreate()
114 textView = (TextView)findViewById(R.id.rvbParam1Value); in onCreate()
115 mParameters[0] = new RoomLevelParam(mReverb, seekBar, textView); in onCreate()
120 textView = (TextView)findViewById(R.id.rvbParam2Value); in onCreate()
121 mParameters[1] = new RoomHFLevelParam(mReverb, seekBar, textView); in onCreate()
126 textView = (TextView)findViewById(R.id.rvbParam3Value); in onCreate()
127 mParameters[2] = new DecayTimeParam(mReverb, seekBar, textView); in onCreate()
[all …]
DEqualizerTest.java71 TextView textView; in onCreate() local
100 textView = (TextView)findViewById(R.id.eqParam1Value); in onCreate()
101 …rs[0] = new BandLevelParam(mEqualizer, 0, bandLevelRange[0], bandLevelRange[1], seekBar, textView); in onCreate()
111 textView = (TextView)findViewById(R.id.eqParam2Value); in onCreate()
112 …rs[1] = new BandLevelParam(mEqualizer, 1, bandLevelRange[0], bandLevelRange[1], seekBar, textView); in onCreate()
122 textView = (TextView)findViewById(R.id.eqParam3Value); in onCreate()
123 …rs[2] = new BandLevelParam(mEqualizer, 2, bandLevelRange[0], bandLevelRange[1], seekBar, textView); in onCreate()
133 textView = (TextView)findViewById(R.id.eqParam4Value); in onCreate()
134 …rs[3] = new BandLevelParam(mEqualizer, 3, bandLevelRange[0], bandLevelRange[1], seekBar, textView); in onCreate()
144 textView = (TextView)findViewById(R.id.eqParam5Value); in onCreate()
[all …]
DVirtualizerTest.java69 TextView textView; in onCreate() local
85 textView = (TextView)findViewById(R.id.virtStrengthMin); in onCreate()
86 textView.setText("0"); in onCreate()
87 textView = (TextView)findViewById(R.id.virtStrengthMax); in onCreate()
88 textView.setText("1000"); in onCreate()
90 textView = (TextView)findViewById(R.id.virtStrengthValue); in onCreate()
91 mStrength = new VirtualizerParam(mVirtualizer, 0, 1000, seekBar, textView); in onCreate()
160 …c VirtualizerParam(Virtualizer virtualizer, int min, int max, SeekBar seekBar, TextView textView) { in VirtualizerParam() argument
161 super (min, max, seekBar, textView, "o/oo"); in VirtualizerParam()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DAppCompatTextViewTest.java80 final AppCompatTextView textView = in testAppCompatAllCapsFalseOnButton() local
83 assertEquals("Text view is not in all caps", text, textView.getLayout().getText()); in testAppCompatAllCapsFalseOnButton()
88 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_hex); in testTextColorSetHex() local
89 assertEquals(Color.RED, textView.getCurrentTextColor()); in testTextColorSetHex()
94 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_csl); in testTextColorSetColorStateList() local
97 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default), in testTextColorSetColorStateList()
98 textView.getCurrentTextColor()); in testTextColorSetColorStateList()
101 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_disabled), in testTextColorSetColorStateList()
102 textView.getCurrentTextColor()); in testTextColorSetColorStateList()
107 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_primary); in testTextColorSetThemeAttrHex() local
[all …]
/frameworks/support/v4/tests/java/android/support/v4/testutils/
DTextViewActions.java53 TextView textView = (TextView) view; in setMaxLines() local
54 textView.setMaxLines(maxLines); in setMaxLines()
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, start, top, end, bottom);
[all …]
/frameworks/support/v4/jellybean-mr1/android/support/v4/widget/
DTextViewCompatJbMr1.java27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, in setCompoundDrawablesRelative() argument
30 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in setCompoundDrawablesRelative()
31 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom); in setCompoundDrawablesRelative()
34 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
37 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in setCompoundDrawablesRelativeWithIntrinsicBounds()
38 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end, in setCompoundDrawablesRelativeWithIntrinsicBounds()
42 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
44 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in setCompoundDrawablesRelativeWithIntrinsicBounds()
45 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end, in setCompoundDrawablesRelativeWithIntrinsicBounds()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java313 public static ViewAction dragHandle(TextView textView, Handle handleType, int endIndex) { in dragHandle() argument
314 return dragHandle(textView, handleType, endIndex, true); in dragHandle()
332 public static ViewAction dragHandle(TextView textView, Handle handleType, int endIndex, in dragHandle() argument
337 new CurrentHandleCoordinates(textView), in dragHandle()
338 new HandleCoordinates(textView, handleType, endIndex, primary), in dragHandle()
352 public CurrentHandleCoordinates(TextView textView) { in CurrentHandleCoordinates() argument
353 mTextView = textView; in CurrentHandleCoordinates()
407 public HandleCoordinates(TextView textView, Handle handleType, int index, boolean primary) { in HandleCoordinates() argument
408 mTextView = textView; in HandleCoordinates()
523 private float[] locateTextAtIndex(TextView textView, int index, boolean primary) { in locateTextAtIndex() argument
[all …]
DTextViewAssertions.java107 TextView textView = (TextView) view; in hasInsertionPointerAtIndex()
108 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex()
109 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex()
153 TextView textView = (TextView) view;
154 int selectionStart = textView.getSelectionStart();
155 int selectionEnd = textView.getSelectionEnd();
157 String selectedText = textView.getText()
/frameworks/support/v4/jellybean-mr2/android/support/v4/widget/
DTextViewCompatJbMr2.java27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, in setCompoundDrawablesRelative() argument
30 textView.setCompoundDrawablesRelative(start, top, end, bottom); in setCompoundDrawablesRelative()
33 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
36 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
39 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
42 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
/frameworks/support/v4/jellybean/android/support/v4/widget/
DTextViewCompatJb.java24 static int getMaxLines(TextView textView) { in getMaxLines() argument
25 return textView.getMaxLines(); in getMaxLines()
28 static int getMinLines(TextView textView) { in getMinLines() argument
29 return textView.getMinLines(); in getMinLines()
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
DRichTextViewTest.java39 RichTextView textView = new RichTextView(getContext()); in testLinkAnnotation() local
40 textView.setText(ssb); in testLinkAnnotation()
42 final CharSequence text = textView.getText(); in testLinkAnnotation()
61 RichTextView textView = new RichTextView(getContext()); in testTextStyle() local
62 textView.setText(ssb); in testTextStyle()
64 final CharSequence text = textView.getText(); in testTextStyle()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivity.java19 View textView = findViewById(R.id.textView); in onCreate() local
20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY()); in onCreate()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DLinkSpanTest.java32 final TextView textView = new TextView(context); in testOnClick() local
35 linkSpan.onClick(textView); in testOnClick()
43 final TextView textView = new TextView(context); in testNonImplementingContext() local
46 linkSpan.onClick(textView); in testNonImplementingContext()
/frameworks/base/core/tests/coretests/src/android/view/
DRunQueue.java39 TextView textView = new TextView(this); in onCreate() local
40 textView.setText("RunQueue"); in onCreate()
41 textView.setId(R.id.simple_view); in onCreate()
43 setContentView(textView); in onCreate()

12345