/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() {
|
/cts/tests/src/android/app/cts/ |
MockApplicationActivity.java | 21 import android.widget.TextView; 28 TextView textView = new TextView(this); 29 textView.setText("Test"); 30 setContentView(textView);
|
/external/robolectric/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;
|
/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);
|
AutoComplete6.java | 35 MultiAutoCompleteTextView textView = (MultiAutoCompleteTextView) findViewById(R.id.edit); 36 textView.setAdapter(adapter); 37 textView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
|
ExpandableList1.java | 31 import android.widget.TextView; 65 String title = ((TextView) info.targetView).getText().toString(); 111 public TextView getGenericView() { 116 TextView textView = new TextView(ExpandableList1.this); 117 textView.setLayoutParams(lp); 119 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); 121 textView.setPaddingRelative(36, 0, 0, 0); 123 textView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START) [all...] |
HoverInterceptorView.java | 25 import android.widget.TextView; 57 TextView textView = (TextView) findViewById(R.id.intercept_message); 59 textView.setText(getResources().getString( 63 textView.setText(getResources().getString(
|
ScrollView2.java | 24 import android.widget.TextView; 39 TextView textView = new TextView(this); 40 textView.setText("Text View " + i); 45 layout.addView(textView, p);
|
AutoComplete2.java | 37 AutoCompleteTextView textView = (AutoCompleteTextView) 39 textView.setAdapter(adapter);
|
AutoComplete1.java | 35 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); 36 textView.setAdapter(adapter);
|
AutoComplete5.java | 40 AutoCompleteTextView textView = (AutoCompleteTextView) 42 textView.setAdapter(adapter);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
PhoneNumberFormatter.java | 22 import android.widget.TextView; 30 * Load {@link TextWatcherLoadAsyncTask} in a worker thread and set it to a {@link TextView}. 35 private final TextView mTextView; 37 public TextWatcherLoadAsyncTask(String countryCode, TextView textView) { 39 mTextView = textView; 66 * Delay-set {@link PhoneNumberFormattingTextWatcher} to a {@link TextView}. 69 TextView textView) { 70 new TextWatcherLoadAsyncTask(GeoUtil.getCurrentCountryIso(context), textView) [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
PhoneNumberFormatter.java | 22 import android.widget.TextView; 30 * Load {@link TextWatcherLoadAsyncTask} in a worker thread and set it to a {@link TextView}. 35 private final TextView mTextView; 37 public TextWatcherLoadAsyncTask(String countryCode, TextView textView) { 39 mTextView = textView; 66 * Delay-set {@link PhoneNumberFormattingTextWatcher} to a {@link TextView}. 69 TextView textView) { 70 new TextWatcherLoadAsyncTask(MmsApp.getApplication().getCurrentCountryIso(), textView) [all...] |
/packages/services/Telephony/src/com/android/phone/ |
MultiLineTitleEditTextPreference.java | 23 import android.widget.TextView; 37 * handle to the "title" TextView. 60 // The "title" TextView inside an EditTextPreference defaults to 62 // We override onBindView() purely to look up that TextView and call 68 TextView textView = (TextView) view.findViewById(com.android.internal.R.id.title); 69 if (textView != null) { 70 textView.setSingleLine(false);
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
MainActivity.java | 31 import android.widget.TextView; 111 TextView textView = new TextView(getActivity()); 112 textView.setGravity(Gravity.CENTER); 113 textView.setText(R.string.tab_photos); 114 return textView; 123 TextView textView = new TextView(getActivity()) [all...] |
/external/droiddriver/samples/testapp/src/com/google/android/apps/common/testing/ui/testapp/ |
DisplayActivity.java | 6 import android.widget.TextView; 17 TextView textView = (TextView) findViewById(R.id.displayData); 18 textView.setText(getIntent().getStringExtra(SendActivity.EXTRA_DATA));
|
/packages/apps/Contacts/tests/src/com/android/contacts/detail/ |
ContactDetailDisplayUtilsTest.java | 26 import android.widget.TextView; 74 TextView textView = (TextView) parent.findViewById(textViewId); 75 assertNotNull(textView); 76 assertEquals(View.VISIBLE, textView.getVisibility()); 77 assertEquals(expectedText, textView.getText().toString()); 82 TextView textView = (TextView) parent.findViewById(textViewId) [all...] |
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
EnvReverbTest.java | 30 import android.widget.TextView; 58 TextView mSendLevelDisplay; 72 TextView textView; 78 textView = (TextView) findViewById(R.id.sessionText); 81 R.id.stop1, stop, textView, 85 R.id.stop1, stop, textView, 91 mSendLevelDisplay = (TextView)findViewById(R.id.sendLevelValue); 114 textView = (TextView)findViewById(R.id.rvbParam1Value) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
RunQueue.java | 21 import android.widget.TextView; 39 TextView textView = new TextView(this); 40 textView.setText("RunQueue"); 41 textView.setId(R.id.simple_view); 43 setContentView(textView);
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewGroupTest.java | 56 import android.widget.TextView; 89 TextView textView = new TextView(mContext); 90 list.add(textView); 91 vg.addView(textView); 97 list.add(textView); 106 TextView textView = new TextView(mContext) [all...] |
/packages/apps/Browser/src/com/android/browser/addbookmark/ |
FolderSpinnerAdapter.java | 28 import android.widget.TextView; 90 TextView textView = (TextView) view; 92 textView.setText(mRecentFolderName); 95 textView.setText(mOtherFolderDisplayText); 97 textView.setText(labelResource); 99 textView.setGravity(Gravity.CENTER_VERTICAL); 101 textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null,
|