/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/v4/jellybean/android/support/v4/widget/ |
TextViewCompatJb.java | 21 import android.widget.TextView; 24 static int getMaxLines(TextView textView) { 25 return textView.getMaxLines(); 28 static int getMinLines(TextView textView) { 29 return textView.getMinLines();
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
ShadowOverlayContainerTest.java | 22 import android.widget.TextView; 29 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) [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);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
TextViewCompat.java | 26 import android.widget.TextView; 29 * Helper for accessing features in {@link TextView} introduced after API level 38 void setCompoundDrawablesRelative(@NonNull TextView textView, 41 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, 44 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, 47 int getMaxLines(TextView textView); [all...] |
TextViewCompatDonut.java | 20 import android.widget.TextView; 39 static int getMaxLines(TextView textView) { 44 if (sMaxModeField != null && retrieveIntFromField(sMaxModeField, textView) == LINES) { 51 return retrieveIntFromField(sMaximumField, textView); 57 static int getMinLines(TextView textView) { 62 if (sMinModeField != null && retrieveIntFromField(sMinModeField, textView) == LINES) { 69 return retrieveIntFromField(sMinimumField, textView); 78 field = TextView.class.getDeclaredField(fieldName) [all...] |
/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/v4/jellybean-mr1/android/support/v4/widget/ |
TextViewCompatJbMr1.java | 23 import android.widget.TextView; 27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, 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, 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 [all...] |
/frameworks/support/v4/api23/android/support/v4/widget/ |
TextViewCompatApi23.java | 22 import android.widget.TextView; 25 public static void setTextAppearance(@NonNull TextView textView, @StyleRes int resId) { 26 textView.setTextAppearance(resId);
|
/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());
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
LinkSpanTest.java | 23 import android.widget.TextView; 32 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/ |
AppCompatTextViewTest.java | 32 import android.widget.TextView; 57 // Note that TextView.getText() returns the original text. We are interested in 80 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) [all...] |
/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 */);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/widget/ |
TextViewCompatJbMr2.java | 23 import android.widget.TextView; 27 public static void setCompoundDrawablesRelative(@NonNull TextView textView, 30 textView.setCompoundDrawablesRelative(start, top, end, bottom); 33 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, 36 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom); 39 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, 42 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom) [all...] |