HomeSort by relevance Sort by last modified time
    Searched refs:textView (Results 1 - 25 of 371) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/widget/
AutoCompleteTextViewPopup.java 47 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, ListView.INVALID_POSITION)
    [all...]
AutoCompleteTextViewCallbacks.java 38 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/compat/java/android/support/v4/widget/
TextViewCompat.java 33 import android.widget.TextView;
40 * Helper for accessing features in {@link TextView} in a backwards compatible fashion.
45 * The TextView does not auto-size text (default).
50 * The TextView scales text size both horizontally and vertically to fit within the
78 public void setCompoundDrawablesRelative(@NonNull TextView textView,
81 textView.setCompoundDrawables(start, top, end, bottom);
84 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView,
87 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom)
    [all...]
  /frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
ShadowOverlayContainerTest.java 28 import android.widget.TextView;
47 TextView textView = new TextView(mContext);
48 textView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
50 textView.setText("abc");
53 container.wrap(textView);
58 assertTrue(textView.getWidth() > 0);
59 assertTrue(textView.getWidth() < 500);
60 assertTrue(textView.getHeight() > 0)
    [all...]
  /cts/tests/app/app/src/android/app/stubs/
MockApplicationActivity.java 21 import android.widget.TextView;
28 TextView textView = new TextView(this);
29 textView.setText("Test");
30 setContentView(textView);
  /developers/build/prebuilts/gradle/DirectShare/Application/src/main/java/com/example/android/directshare/
ContactViewBinder.java 19 import android.widget.TextView;
22 * A simple utility to bind a {@link TextView} with a {@link Contact}.
27 * Binds the {@code textView} with the specified {@code contact}.
30 * @param textView The TextView.
32 public static void bind(Contact contact, TextView textView) {
33 textView.setText(contact.getName());
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
  /developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/
ContactViewBinder.java 19 import android.widget.TextView;
22 * A simple utility to bind a {@link TextView} with a {@link Contact}.
27 * Binds the {@code textView} with the specified {@code contact}.
30 * @param textView The TextView.
32 public static void bind(Contact contact, TextView textView) {
33 textView.setText(contact.getName());
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
  /development/samples/browseable/DirectShare/src/com.example.android.directshare/
ContactViewBinder.java 19 import android.widget.TextView;
22 * A simple utility to bind a {@link TextView} with a {@link Contact}.
27 * Binds the {@code textView} with the specified {@code contact}.
30 * @param textView The TextView.
32 public static void bind(Contact contact, TextView textView) {
33 textView.setText(contact.getName());
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ViewInnerTextTest.java 7 import android.widget.TextView;
28 top.addView(textView("blah"));
30 top.addView(textView("a b c"));
35 innerLayout.addView(textView("d e f"));
36 innerLayout.addView(textView("g h i"));
37 innerLayout.addView(textView(""));
38 innerLayout.addView(textView(null));
39 innerLayout.addView(textView("jkl!"));
41 top.addView(textView("mnop"));
49 top.addView(textView("blah", View.VISIBLE))
    [all...]
TextViewTest.java 13 import android.widget.TextView;
40 private TextView textView;
44 textView = new TextView(new Activity());
49 TextView textView = new TextView(null);
51 textView.setOnEditorActionListener(actionListener);
53 shadowOf(textView).triggerEditorAction(EditorInfo.IME_ACTION_GO)
    [all...]
CountingAdapter.java 6 import android.widget.TextView;
37 TextView textView = new TextView(null);
38 textView.setText("Item " + position);
39 return textView;
  /frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
FindMethodTest.java 22 import android.widget.TextView;
32 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())
    [all...]
InnerCannotReadDependencyTest.java 37 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());
NewApiTest.java 22 import android.widget.TextView;
43 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))
    [all...]
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
AppCompatTextViewTest.java 37 import android.widget.TextView;
61 // Note that TextView.getText() returns the original text. We are interested in
84 final AppCompatTextView textView =
87 assertEquals("Text view is not in all caps", text, textView.getLayout().getText());
92 final TextView textView = mContainer.findViewById(R.id.view_text_color_hex);
93 assertEquals(Color.RED, textView.getCurrentTextColor());
98 final TextView textView = mContainer.findViewById(R.id.view_text_color_csl);
101 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default)
    [all...]
AppCompatTextViewAutoSizeTest.java 41 import android.widget.TextView;
510 final AppCompatTextView textView = (AppCompatTextView) getActivity().findViewById(
512 final int initialAutoSizeType = textView.getAutoSizeTextType();
513 final int initialMinTextSize = textView.getAutoSizeMinTextSize();
514 final int initialMaxTextSize = textView.getAutoSizeMaxTextSize();
515 final int initialAutoSizeGranularity = textView.getAutoSizeStepGranularity();
516 final int initialSizes = textView.getAutoSizeTextAvailableSizes().length;
518 Assert.assertEquals(null, textView.getEllipsize());
523 // Because this TextView has been configured to use predefined sizes.
531 textView.setEllipsize(newEllipsizeValue)
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
AccessibilityContextMenuMaker.java 29 import android.widget.TextView;
35 * {@link TextView}.
43 * @param activity the target {@link TextView} belongs to
53 * @param textView target TextView potentially containing links.
55 public void registerWithActivity(TextView textView) {
56 if (getSpans(getText(textView)).length == 0) {
57 mActivity.unregisterForContextMenu(textView);
58 textView.setAccessibilityDelegate(null)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
TextViewCompatUtils.java 20 import android.widget.TextView;
25 // Note that TextView.setCompoundDrawablesRelativeWithIntrinsicBounds(Drawable,Drawable,
28 CompatUtils.getMethod(TextView.class, "setCompoundDrawablesRelativeWithIntrinsicBounds",
35 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView,
38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
41 CompatUtils.invoke(textView, null, METHOD_setCompoundDrawablesRelativeWithIntrinsicBounds,
  /development/samples/ApiDemos/src/com/example/android/apis/view/
AutoComplete3.java 37 AutoCompleteTextView textView = (AutoCompleteTextView)
39 textView.setAdapter(adapter);
40 textView = (AutoCompleteTextView) findViewById(R.id.edit2);
41 textView.setAdapter(adapter);
  /frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
MainActivity.java 19 View textView = findViewById(R.id.textView);
20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY());
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
StyleUtils.java 24 import android.widget.TextView;
36 public static void stripUnderlinesAndLinkUrls(TextView textView,
38 final Spannable spannable = (Spannable) textView.getText();
63 public static void stripUnderlinesAndUrl(TextView textView) {
64 stripUnderlinesAndLinkUrls(textView, null /* onClickListener */);
  /packages/apps/Dialer/java/com/android/dialer/about/
LicenseActivity.java 23 import android.widget.TextView;
43 TextView textView = (TextView) findViewById(R.id.license_activity_textview);
49 textView.setText(licenseText);
56 TextView textView = (TextView) findViewById(R.id.license_activity_textview);
57 int firstVisibleLine = textView.getLayout().getLineForVertical(scrollView.getScrollY());
58 int firstVisibleChar = textView.getLayout().getLineStart(firstVisibleLine)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
PhoneNumberFormatter.java 22 import android.widget.TextView;
31 * Load {@link TextWatcherLoadAsyncTask} in a worker thread and set it to a {@link TextView}.
36 private final TextView mTextView;
40 String countryCode, TextView textView, boolean formatAfterWatcherSet) {
42 mTextView = textView;
68 * Delay-set {@link PhoneNumberFormattingTextWatcher} to a {@link TextView}.
71 TextView textView) {
72 setPhoneNumberFormattingTextWatcher(context, textView,
    [all...]
  /packages/apps/Settings/src/com/android/settings/
LinkifyUtils.java 24 import android.widget.TextView;
25 import android.widget.TextView.BufferType;
28 * Utility class to create clickable links inside {@link TextView TextViews}.
43 * Applies the text into the {@link TextView} and part of it a clickable link.
49 public static boolean linkify(TextView textView, StringBuilder text,
54 textView.setText(text);
60 textView.setText(text);
65 textView.setText(text.toString(), BufferType.SPANNABLE);
66 textView.setMovementMethod(LinkMovementMethod.getInstance())
    [all...]
  /frameworks/opt/setupwizard/library/eclair-mr1/test/instrumentation/src/com/android/setupwizardlib/test/
RichTextViewTest.java 50 RichTextView textView = new RichTextView(InstrumentationRegistry.getContext());
51 textView.setText(ssb);
53 final CharSequence text = textView.getText();
72 RichTextView textView = new RichTextView(InstrumentationRegistry.getContext());
73 textView.setText(ssb);
75 final CharSequence text = textView.getText();
96 assertTrue("TextView should be focusable since it contains spans", view.isFocusable());
103 RichTextView textView = new RichTextView(InstrumentationRegistry.getContext());
104 textView.setText("Thou shall not be focusable!");
106 assertFalse("TextView should not be focusable since it does not contain any span"
    [all...]

Completed in 982 milliseconds

1 2 3 4 5 6 7 8 91011>>