/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...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
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() {
|
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...] |
/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);
|
/packages/apps/Settings/src/com/android/settings/ |
MultiLinePreference.java | 24 import android.widget.TextView; 44 TextView textView = (TextView) view.findViewById(android.R.id.title); 45 if (textView != null) { 46 textView.setSingleLine(false);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
AutoComplete6.java | 35 MultiAutoCompleteTextView textView = (MultiAutoCompleteTextView) findViewById(R.id.edit); 36 textView.setAdapter(adapter); 37 textView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
|
AutoComplete1.java | 35 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); 36 textView.setAdapter(adapter);
|
AutoComplete2.java | 37 AutoCompleteTextView textView = (AutoCompleteTextView) 39 textView.setAdapter(adapter);
|
AutoComplete3.java | 37 AutoCompleteTextView textView = (AutoCompleteTextView) 39 textView.setAdapter(adapter); 40 textView = (AutoCompleteTextView) findViewById(R.id.edit2); 41 textView.setAdapter(adapter);
|
AutoComplete5.java | 40 AutoCompleteTextView textView = (AutoCompleteTextView) 42 textView.setAdapter(adapter);
|
/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...] |
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
AutoCompleteTextViewActivityLandscape.java | 32 import android.widget.TextView; 54 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); 55 textView.setAdapter(adapter);
|
AutoCompleteTextViewActivityPortrait.java | 28 import android.widget.TextView; 48 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); 49 textView.setAdapter(adapter);
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
ArraysCheckWidget.java | 7 import android.widget.TextView; 36 TextView textView = new TextView(context); 37 textView.setText(string); 38 textView.setTextSize(30); 39 addView(textView);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
BindToFinalFieldTest.java | 20 import android.widget.TextView; 34 final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view); 35 assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString());
|
BindToFinalObservableFieldTest.java | 20 import android.widget.TextView; 34 final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view); 35 assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString()); 40 textView.getText().toString());
|
NameMappingTest.java | 62 assertEquals(f2.get(), mBinder.textView.isEnabled()); 66 assertEquals(f1.get(), mBinder.textView.isFocusable());
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
MoreContactUtils.java | 30 import android.widget.TextView; 195 * containing {@link android.widget.TextView} is set using the given textResourceId. 197 public static TextView createHeaderView(Context context, int textResourceId) { 198 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null); 199 textView.setText(context.getString(textResourceId)); 200 return textView; 207 public static void setHeaderViewBottomPadding(Context context, TextView textView, [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
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);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TextViewFadingEdgeTest.java | 29 import static android.widget.TextView.TEXT_ALIGNMENT_TEXT_START; 30 import static android.widget.TextView.TEXT_ALIGNMENT_TEXT_END; 31 import static android.widget.TextView.TEXT_ALIGNMENT_VIEW_START; 32 import static android.widget.TextView.TEXT_ALIGNMENT_VIEW_END; 133 MockTextView textView = createTextView(data.text, data.horizontalFadingEnabled, 137 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); 139 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); 145 final MockTextView textView = new MockTextView(getActivity()); 146 textView.setSingleLine(true); 147 textView.setTextSize(30) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerView.java | 25 import android.widget.TextView; 32 private TextView mHoursTens, mHoursOnes; 33 private TextView mMinutesTens, mMinutesOnes; 34 private TextView mSeconds; 60 mHoursTens = (TextView) findViewById(R.id.hours_tens); 62 mHoursOnes = (TextView) findViewById(R.id.hours_ones); 65 mMinutesTens = (TextView) findViewById(R.id.minutes_tens); 68 mMinutesOnes = (TextView) findViewById(R.id.minutes_ones); 71 mSeconds = (TextView) findViewById(R.id.seconds); 77 * @param textView view to measure and onb to which add start paddin [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ToolbarFragmentPagerMenu.java | 37 import android.widget.TextView; 107 TextView textView = new TextView(container.getContext()); 109 textView.setText(getClass().getSimpleName()); 110 textView.setGravity(Gravity.CENTER); 111 textView.setLayoutParams(new ViewGroup.LayoutParams( 114 return textView; 149 TextView textView = new TextView(container.getContext()) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
AddAdapter.java | 26 import android.widget.TextView; 84 TextView textView = (TextView) convertView; 85 textView.setTag(item); 86 textView.setText(item.text); 87 textView.setCompoundDrawablesWithIntrinsicBounds(item.image, null, null, null);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
CrossProfileTestActivity.java | 29 import android.widget.TextView; 49 TextView textView = (TextView) findViewById(R.id.text); 56 textView.setText(R.string.provisioning_byod_cross_profile_app_work); 58 textView.setText(R.string.provisioning_byod_cross_profile_app_personal); 60 textView.setText(R.string.provisioning_byod_cross_profile_app_ctsverifier);
|
WorkStatusTestActivity.java | 24 import android.widget.TextView; 54 TextView textView = (TextView) findViewById(R.id.text); 56 textView.setText(R.string.provisioning_byod_work_status_icon_activity); 58 textView.setText(R.string.provisioning_byod_work_status_toast_activity);
|