HomeSort by relevance Sort by last modified time
    Searched refs:textView (Results 1 - 25 of 384) 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 34 import android.widget.TextView;
41 * Helper for accessing features in {@link TextView}.
46 * The TextView does not auto-size text (default).
48 public static final int AUTO_SIZE_TEXT_TYPE_NONE = TextView.AUTO_SIZE_TEXT_TYPE_NONE;
51 * The TextView scales text size both horizontally and vertically to fit within the
54 public static final int AUTO_SIZE_TEXT_TYPE_UNIFORM = TextView.AUTO_SIZE_TEXT_TYPE_UNIFORM;
79 public void setCompoundDrawablesRelative(@NonNull TextView textView,
82 textView.setCompoundDrawables(start, top, end, bottom);
85 public void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView
    [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 38 import android.widget.TextView;
62 // Note that TextView.getText() returns the original text. We are interested in
85 final AppCompatTextView textView =
88 assertEquals("Text view is not in all caps", text, textView.getLayout().getText());
93 final TextView textView = mContainer.findViewById(R.id.view_text_color_hex);
94 assertEquals(Color.RED, textView.getCurrentTextColor());
99 final TextView textView = mContainer.findViewById(R.id.view_text_color_csl);
102 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default)
    [all...]
  /external/walt/ios/WALT/
DebugLogController.m 25 self.textView.text = [[WALTLogger sessionLogger] stringValue];
30 self.textView.text = [[WALTLogger sessionLogger] stringValue];
DebugLogController.h 20 @property (assign) IBOutlet UITextView *textView;
  /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...]
  /frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
RichTextViewTest.java 58 RichTextView textView = new RichTextView(InstrumentationRegistry.getContext());
59 textView.setText(ssb);
61 final CharSequence text = textView.getText();
80 RichTextView textView = new RichTextView(InstrumentationRegistry.getContext());
81 textView.setText(ssb);
84 textView.setOnLinkClickListener(listener);
86 assertSame(listener, textView.getOnLinkClickListener());
88 CharSequence text = textView.getText();
90 spans[0].onClick(textView);
103 RichTextView textView = new RichTextView(context)
    [all...]
  /frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
LinkSpanTest.java 24 import android.widget.TextView;
40 final TextView textView = new TextView(context);
43 linkSpan.onClick(textView);
50 final TextView textView = new TextView(application);
53 linkSpan.onClick(textView);
63 final TextView textView = new TextView(wrapperContext)
    [all...]

Completed in 582 milliseconds

1 2 3 4 5 6 7 8 91011>>