/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | 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, ListVie 224 waitAssertPopupShowState(String message, AutoCompleteTextView textView, boolean expected) argument 235 waitAssertListSelection(AutoCompleteTextView textView, int expected) argument 240 waitAssertListSelection(String message, AutoCompleteTextView textView, int expected) argument 253 clearText(final AutoCompleteTextView textView) argument [all...] |
H A D | 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() {
|
H A D | TextViewFallbackLineSpacingTest.java | 95 final TextView textView = new TextView(activity); 96 textView.setTypeface(setup.getTypefaceFor("sans-serif")); 97 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, 100); 99 textView.setText("aaaaa aabaa aaaaa", mBufferType); 100 textView.setPadding(0, 0, 0, 0); 101 textView.setIncludeFontPadding(false); 102 textView.setFallbackLineSpacing(mEnabled); 104 final int em = (int) Math.ceil(textView.getPaint().measureText("a")); 107 textView.measure( 110 textView [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | ShadowOverlayContainerTest.java | 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); 61 assertTrue(textView.getHeight() < 500); 62 assertEquals(container.getWidth(), textView.getWidth()); 63 assertEquals(container.getHeight(), textView [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
H A D | TextViewPrecomputedTextPerfTest.java | 107 final TextView textView = new TextView(getContext()); 108 textView.setBreakStrategy(Layout.BREAK_STRATEGY_BALANCED); 109 textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NORMAL); 110 textView.setText(text); 114 textView.makeNewLayout(TEXT_WIDTH, TEXT_WIDTH, UNKNOWN_BORING, UNKNOWN_BORING, 126 final TextView textView = new TextView(getContext()); 127 textView.setTextIsSelectable(true); 128 textView.setBreakStrategy(Layout.BREAK_STRATEGY_BALANCED); 129 textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NORMAL); 130 textView [all...] |
H A D | TextViewOnMeasurePerfTest.java | 111 final TextView textView = new TextView(context); 112 textView.setText(COMPLEX_MULTILINE_TEXT); 116 textView.setTextLocale(Locale.UK); 117 textView.setTextLocale(Locale.US); 119 textView.measure(AT_MOST | VIEW_WIDTH, AT_MOST | VIEW_HEIGHT); 128 final TextView textView = new TextView(context); 129 textView.setText(COMPLEX_MULTILINE_TEXT); 133 textView.setTextLocale(Locale.UK); 134 textView.setTextLocale(Locale.US); 136 textView [all...] |
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
H A D | AppCompatTextViewTest.java | 135 final AppCompatTextView textView = 138 assertEquals("Text view is not in all caps", text, textView.getLayout().getText()); 143 final TextView textView = mContainer.findViewById(R.id.view_text_color_hex); 144 assertEquals(Color.RED, textView.getCurrentTextColor()); 149 final TextView textView = mContainer.findViewById(R.id.view_text_color_csl); 152 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default), 153 textView.getCurrentTextColor()); 156 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_disabled), 157 textView.getCurrentTextColor()); 162 final TextView textView 179 verifyTextLinkColor(TextView textView) argument [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
H A D | FindMethodTest.java | 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()); 47 TextView textView = mBinder.textView2; 48 assertEquals("hello", textView.getText().toString()); 52 TextView textView = mBinder.textView3; 53 assertEquals("1", textView [all...] |
H A D | 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());
|
H A D | NewApiTest.java | 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));
|
H A D | BindToFinalObservableFieldTest.java | 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());
|
H A D | CustomBindingTest.java | 34 assertEquals("hello world", mBinder.textView.getText().toString()); 40 assertEquals("goodbye world", subPackaged.textView.getText().toString()); 46 assertEquals("hello android", newPackage.textView.getText().toString());
|
H A D | ObservableWithNotBindableFieldObjectTest.java | 36 assertEquals("", mBinder.textView.getText().toString()); 39 assertEquals("100", mBinder.textView.getText().toString());
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | TextViewCompat.java | 107 private static int retrieveIntFromField(Field field, TextView textView) { argument 109 return field.getInt(textView); 125 * @param textView The TextView against which to invoke the method. 131 public static void setCompoundDrawablesRelative(@NonNull TextView textView, argument 135 textView.setCompoundDrawablesRelative(start, top, end, bottom); 137 boolean rtl = textView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; 138 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom); 140 textView.setCompoundDrawables(start, top, end, bottom); 152 * @param textView The TextView against which to invoke the method. 158 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView, argument 190 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument 208 getMaxLines(@onNull TextView textView) argument 234 getMinLines(@onNull TextView textView) argument 265 setTextAppearance(@onNull TextView textView, @StyleRes int resId) argument 277 getCompoundDrawablesRelative(@onNull TextView textView) argument 307 setAutoSizeTextTypeWithDefaults(@onNull TextView textView, int autoSizeTextType) argument 338 setAutoSizeTextTypeUniformWithConfiguration( @onNull TextView textView, int autoSizeMinTextSize, int autoSizeMaxTextSize, int autoSizeStepGranularity, int unit) argument 368 setAutoSizeTextTypeUniformWithPresetSizes(@onNull TextView textView, @NonNull int[] presetSizes, int unit) argument 388 getAutoSizeTextType(@onNull TextView textView) argument 404 getAutoSizeStepGranularity(@onNull TextView textView) argument 421 getAutoSizeMinTextSize(@onNull TextView textView) argument 438 getAutoSizeMaxTextSize(@onNull TextView textView) argument 455 getAutoSizeTextAvailableSizes(@onNull TextView textView) argument 487 setCustomSelectionActionModeCallback(@onNull final TextView textView, @NonNull final ActionMode.Callback callback) argument 518 OreoCallback(ActionMode.Callback callback, TextView textView) argument 659 setFirstBaselineToTopHeight( @onNull final TextView textView, @Px @IntRange(from = 0) final int firstBaselineToTopHeight) argument 704 setLastBaselineToBottomHeight( @onNull final TextView textView, @Px @IntRange(from = 0) int lastBaselineToBottomHeight) argument 736 getFirstBaselineToTopHeight(@onNull final TextView textView) argument 746 getLastBaselineToBottomHeight(@onNull final TextView textView) argument 763 setLineHeight(@onNull final TextView textView, @Px @IntRange(from = 0) int lineHeight) argument [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
H A D | LinkSpanTest.java | 42 final TextView textView = new TextView(context); 45 linkSpan.onClick(textView); 52 final TextView textView = new TextView(application); 55 linkSpan.onClick(textView); 65 final TextView textView = new TextView(wrapperContext); 69 linkSpan.onClick(textView); 76 final TextView textView = new TextView(context); 77 textView.setMovementMethod(LinkMovementMethod.getInstance()); 78 textView.setFocusable(true); 79 textView [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
H A D | RichTextViewTest.java | 64 RichTextView textView = new RichTextView(application); 65 textView.setText(ssb); 67 final CharSequence text = textView.getText(); 70 assertThat(textView.getMovementMethod()).isInstanceOf(TouchableLinkMovementMethod.class); 88 RichTextView textView = new RichTextView(application); 89 textView.setText(ssb); 92 textView.setOnLinkClickListener(listener); 94 assertSame(listener, textView.getOnLinkClickListener()); 96 CharSequence text = textView.getText(); 98 spans[0].onClick(textView); [all...] |
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
H A D | MainActivity.java | 19 View textView = findViewById(R.id.textView); 20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY());
|
/frameworks/support/compat/src/androidTest/java/android/support/v4/testutils/ |
H A D | TextViewActions.java | 55 TextView textView = (TextView) view; 56 textView.setMaxLines(maxLines); 82 TextView textView = (TextView) view; 83 textView.setMinLines(minLines); 109 TextView textView = (TextView) view; 110 textView.setText(stringResId); 136 TextView textView = (TextView) view; 137 TextViewCompat.setTextAppearance(textView, styleResId); 165 TextView textView = (TextView) view; 166 TextViewCompat.setCompoundDrawablesRelative(textView, star [all...] |
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/ |
H A D | EmojiInputFilter.java | 49 EmojiInputFilter(@NonNull final TextView textView) { argument 50 mTextView = textView; 102 InitCallbackImpl(TextView textView) { argument 103 mViewRef = new WeakReference<>(textView); 109 final TextView textView = mViewRef.get(); 110 if (textView != null && textView.isAttachedToWindow()) { 111 final CharSequence result = EmojiCompat.get().process(textView.getText()); 116 textView.setText(result);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | TextViewInputDisabler.java | 41 public TextViewInputDisabler(TextView textView) { argument 42 mTextView = textView;
|
/frameworks/data-binding/integration-tests/IndependentLibrary/app/src/androidTest/java/android/databinding/test/independentlibrary/ |
H A D | LibraryActivityTest.java | 34 TextView textView = (TextView) activity.findViewById(R.id.fooTextView); 37 assertEquals(expected, textView.getText().toString());
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EnvReverbTest.java | 72 TextView textView; 78 textView = findViewById(R.id.sessionText); 81 R.id.stop1, stop, textView, 85 R.id.stop1, stop, textView, 114 textView = (TextView)findViewById(R.id.rvbParam1Value); 115 mParameters[0] = new RoomLevelParam(mReverb, seekBar, textView); 120 textView = (TextView)findViewById(R.id.rvbParam2Value); 121 mParameters[1] = new RoomHFLevelParam(mReverb, seekBar, textView); 126 textView = (TextView)findViewById(R.id.rvbParam3Value); 127 mParameters[2] = new DecayTimeParam(mReverb, seekBar, textView); 274 EnvReverbParam(EnvironmentalReverb reverb, int min, int max, SeekBar seekBar, TextView textView, String unit) argument 297 RoomLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 319 RoomHFLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 341 DecayTimeParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 363 DecayHFRatioParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 385 ReflectionsLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 407 ReflectionsDelayParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 429 ReverbLevelParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 451 ReverbDelayParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 473 DiffusionParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument 495 DensityParam(EnvironmentalReverb reverb, SeekBar seekBar, TextView textView) argument [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
H A D | TextViewSetTextMeasurePerfTest.java | 94 final TextView textView = new TextView(InstrumentationRegistry.getTargetContext()); 95 textView.setText(text); 100 textView.setTextLocale(Locale.UK); 101 textView.setTextLocale(Locale.US); 105 textView.setText(text); 106 textView.measure(AT_MOST | mLineWidth, UNSPECIFIED); 121 final TextView textView = new TextView(InstrumentationRegistry.getTargetContext()); 122 textView.setText(text); 130 textView.setTextLocale(Locale.UK); 131 textView [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | RunQueue.java | 39 TextView textView = new TextView(this); 40 textView.setText("RunQueue"); 41 textView.setId(R.id.simple_view); 43 setContentView(textView);
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
H A D | ArraysCheckWidget.java | 52 TextView textView = new TextView(context); 53 textView.setText(string); 54 textView.setTextSize(30); 55 addView(textView);
|