Home
last modified time | relevance | path

Searched refs:textView (Results 1 – 25 of 92) sorted by relevance

1234

/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewPopup.java51 textView.requestFocus(); in testPopupSetListSelection()
72 clearText(textView); in testPopupSetListSelection()
83 textView.requestFocus(); in testPopupGetListSelection()
99 clearText(textView); in testPopupGetListSelection()
110 textView.requestFocus(); in testPopupClearListSelection()
132 clearText(textView); in testPopupClearListSelection()
143 textView.requestFocus(); in testPopupNavigateNoAdapter()
166 clearText(textView); in testPopupNavigateNoAdapter()
180 textView.requestFocus(); in testPopupShow()
190 textView.setText(""); in testPopupShow()
[all …]
H A DTextViewPopulateCharacterBoundsTest.java79 textView.setTypeface(mTypeface); in createTextView()
81 textView.setText(text); in createTextView()
84 textView.measure( in createTextView()
87 textView.layout(0, 0, width, height); in createTextView()
88 return textView; in createTextView()
102 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR()
131 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR_multiline()
161 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR_newline()
194 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_RTL()
223 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_RTL_multiline()
[all …]
H A DTextViewActivityTest.java323 textView.setSingleLine(true); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
324 textView.setHint("الروبوت"); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
352 assertTrue(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
357 assertFalse(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
361 assertTrue(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
365 assertFalse(textView.hasSelection()); in testToolbarAppearsAfterLinkClickedNonselectable()
388 textView.setText(text); in testToolbarMenuItemClickAfterSelectionChange()
426 textView.setText(text); in testSelectionOnCreateActionModeReturnsFalse()
465 assertTrue(textView.hasSelection()); in testSelectionRemovedWhenNonselectableTextLosesFocus()
507 textView.setText(content); in addLinkifiedTextToTextView()
[all …]
H A DTextViewFallbackLineSpacingTest.java96 final TextView textView = new TextView(activity); in testFallbackLineSpacing() local
97 textView.setTypeface(setup.getTypefaceFor("sans-serif")); in testFallbackLineSpacing()
98 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, 100); in testFallbackLineSpacing()
100 textView.setText("aaaaa aabaa aaaaa", mBufferType); in testFallbackLineSpacing()
101 textView.setPadding(0, 0, 0, 0); in testFallbackLineSpacing()
102 textView.setIncludeFontPadding(false); in testFallbackLineSpacing()
103 textView.setFallbackLineSpacing(mEnabled); in testFallbackLineSpacing()
105 final int em = (int) Math.ceil(textView.getPaint().measureText("a")); in testFallbackLineSpacing()
108 textView.measure( in testFallbackLineSpacing()
111 textView.layout(0, 0, width, height); in testFallbackLineSpacing()
[all …]
H A DAutoCompleteTextViewCallbacks.java39 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupNoSelection() local
43 textView.requestFocus(); in testPopupNoSelection()
64 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupEnterSelection() local
68 textView.requestFocus(); in testPopupEnterSelection()
72 textView.post(new Runnable() { in testPopupEnterSelection()
90 textView.post(new Runnable() { in testPopupEnterSelection()
113 AutoCompleteTextView textView = theActivity.getTextView(); in testPopupLeaveSelection() local
117 textView.requestFocus(); in testPopupLeaveSelection()
126 textView.post(new Runnable() { in testPopupLeaveSelection()
H A DSuggestionsPopupWindowTest.java80 textView.post( in setSuggestionSpan()
101 textView.post(() -> textView.onTextContextMenuItem(TextView.ID_REPLACE)); in testOnTextContextMenuItem()
147 textView.post(() -> textView.onTextContextMenuItem(TextView.ID_REPLACE)); in showSuggestionsPopup()
359 assertTrue(textView.isCursorVisible()); in testCursorVisibility()
370 assertFalse(textView.isCursorVisible()); in testCursorVisibility()
376 assertTrue(textView.isCursorVisible()); in testCursorVisibility()
384 assertTrue(textView.isCursorVisible()); in testCursorVisibilityWhenImeConsumesInput()
397 assertFalse(textView.isCursorVisible()); in testCursorVisibilityWhenImeConsumesInput()
403 assertFalse(textView.isCursorVisible()); in testCursorVisibilityWhenImeConsumesInput()
412 textView.post(() -> textView.setImeConsumesInput(imeConsumesInput)); in setImeConsumesInputWithExpect()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DTextViewPrecomputedTextPerfTest.java346 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
348 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
353 textView.onDraw(c); in testOnDraw_RandomText()
373 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
375 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
380 textView.onDraw(c); in testOnDraw_RandomText_Selectable()
402 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
404 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
409 textView.onDraw(c); in testOnDraw_PrecomputedText()
432 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText_Selectable()
[all …]
H A DTextViewOnMeasurePerfTest.java107 final TextView textView = new TextView(context); in testMeasure_AtMost() local
108 textView.setText(COMPLEX_MULTILINE_TEXT); in testMeasure_AtMost()
112 textView.setTextLocale(Locale.UK); in testMeasure_AtMost()
113 textView.setTextLocale(Locale.US); in testMeasure_AtMost()
125 textView.setText(COMPLEX_MULTILINE_TEXT); in testMeasure_Exactly()
129 textView.setTextLocale(Locale.UK); in testMeasure_Exactly()
130 textView.setTextLocale(Locale.US); in testMeasure_Exactly()
142 textView.setText(COMPLEX_MULTILINE_TEXT); in testMeasure_Unspecified()
146 textView.setTextLocale(Locale.UK); in testMeasure_Unspecified()
147 textView.setTextLocale(Locale.US); in testMeasure_Unspecified()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ongoingcall/
H A DOngoingCallChronometerTest.kt43 private lateinit var textView: OngoingCallChronometer
80 val initialTextLength = textView.measuredWidth
90 val xlWidth = textView.measuredWidth
116 val xlWidth = textView.measuredWidth
118 textView.base = 0L
129 textView.base = 0L
137 textView.setShouldHideText(true)
146 textView.setShouldHideText(true)
149 textView.setShouldHideText(false)
156 textView.text = text
[all …]
/aosp14/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEnvReverbTest.java72 TextView textView; in onCreate() local
78 textView = findViewById(R.id.sessionText); in onCreate()
81 R.id.stop1, stop, textView, in onCreate()
85 R.id.stop1, stop, textView, in onCreate()
275 super (min, max, seekBar, textView, unit); in EnvReverbParam()
298 super (reverb, -9600, 0, seekBar, textView, "mB"); in RoomLevelParam()
320 super (reverb, -4000, 0, seekBar, textView, "mB"); in RoomHFLevelParam()
342 super (reverb, 200, 4000, seekBar, textView, "ms"); in DecayTimeParam()
386 super (reverb, -9600, 0, seekBar, textView, "mB"); in ReflectionsLevelParam()
408 super (reverb, 0, 65, seekBar, textView, "ms"); in ReflectionsDelayParam()
[all …]
H A DEqualizerTest.java71 TextView textView; in onCreate() local
100 textView = (TextView)findViewById(R.id.eqParam1Value); in onCreate()
111 textView = (TextView)findViewById(R.id.eqParam2Value); in onCreate()
122 textView = (TextView)findViewById(R.id.eqParam3Value); in onCreate()
133 textView = (TextView)findViewById(R.id.eqParam4Value); in onCreate()
144 textView = (TextView)findViewById(R.id.eqParam5Value); in onCreate()
151 textView = (TextView)findViewById(R.id.eqParam6Value); in onCreate()
231 TextView textView = (TextView)findViewById(viewId); in displayFreq() local
233 textView.setText(text); in displayFreq()
240 super (min, max, seekBar, textView, unit); in EqualizerParam()
[all …]
H A DVirtualizerTest.java69 TextView textView; in onCreate() local
85 textView = (TextView)findViewById(R.id.virtStrengthMin); in onCreate()
86 textView.setText("0"); in onCreate()
87 textView = (TextView)findViewById(R.id.virtStrengthMax); in onCreate()
88 textView.setText("1000"); in onCreate()
90 textView = (TextView)findViewById(R.id.virtStrengthValue); in onCreate()
91 mStrength = new VirtualizerParam(mVirtualizer, 0, 1000, seekBar, textView); in onCreate()
160 …c VirtualizerParam(Virtualizer virtualizer, int min, int max, SeekBar seekBar, TextView textView) { in VirtualizerParam() argument
161 super (min, max, seekBar, textView, "o/oo"); in VirtualizerParam()
H A DBassBoostTest.java64 TextView textView; in onCreate() local
85 textView = (TextView)findViewById(R.id.bbStrengthMin); in onCreate()
86 textView.setText("0"); in onCreate()
87 textView = (TextView)findViewById(R.id.bbStrengthMax); in onCreate()
88 textView.setText("1000"); in onCreate()
90 textView = (TextView)findViewById(R.id.bbStrengthValue); in onCreate()
91 mStrength = new BassBoostParam(mBassBoost, 0, 1000, seekBar, textView); in onCreate()
169 … public BassBoostParam(BassBoost bassboost, int min, int max, SeekBar seekBar, TextView textView) { in BassBoostParam() argument
170 super (min, max, seekBar, textView, "o/oo"); in BassBoostParam()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DTextPrecomputerTest.kt38 private lateinit var textView: TextView
43 textView = TextView(mContext)
49 val precomputeResult = textPrecomputer.precompute(textView, TEXT)
58 textPrecomputer.precompute(textView, TEXT).run()
61 assertThat(textView.text).isInstanceOf(PrecomputedText::class.java)
68 textPrecomputer.precompute(textView, TEXT, logException = false)
71 textView.textMetricsParams = PrecomputedText.Params.Builder(PAINT).build()
75 assertThat(textView.text).isInstanceOf(String::class.java)
81 textView.text = TEXT
82 val precomputedTextRunnable = textPrecomputer.precompute(textView, null)
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewActions.java219 new CurrentHandleCoordinates(textView), in longPressAndDragHandle()
259 new CurrentHandleCoordinates(textView), in doubleTapAndDragHandle()
434 new CurrentHandleCoordinates(textView), in dragHandle()
470 public CurrentHandleCoordinates(TextView textView) { in CurrentHandleCoordinates() argument
471 mTextView = textView; in CurrentHandleCoordinates()
526 mTextView = textView; in HandleCoordinates()
645 final Layout layout = textView.getLayout(); in locateTextAtIndex()
647 return convertToScreenCoordinates(textView, in locateTextAtIndex()
662 textView.getLocationOnScreen(xy); in convertToScreenCoordinates()
663 return new float[]{ x + textView.getTotalPaddingLeft() - textView.getScrollX() + xy[0], in convertToScreenCoordinates()
[all …]
H A DTextViewAssertions.java111 TextView textView = (TextView) view; in hasInsertionPointerAtIndex()
112 int selectionStart = textView.getSelectionStart(); in hasInsertionPointerAtIndex()
113 int selectionEnd = textView.getSelectionEnd(); in hasInsertionPointerAtIndex()
169 TextView textView = (TextView) view;
170 int selectionStart = textView.getSelectionStart();
171 int selectionEnd = textView.getSelectionEnd();
173 String selectedText = textView.getText()
/aosp14/frameworks/base/core/java/android/widget/
H A DTextViewTranslationCallback.java107 TextView textView = textViewRef.get(); in onShowTranslation()
108 if (textView == null) { in onShowTranslation()
125 mOriginalFocusable = textView.getFocusable(); in onShowTranslation()
126 mOriginalClickable = textView.isClickable(); in onShowTranslation()
128 textView.setTextIsSelectable(false); in onShowTranslation()
134 textView.setTransformationMethod(transformation); in onShowTranslation()
169 TextView textView = textViewRef.get(); in onHideTranslation()
170 if (textView == null) { in onHideTranslation()
183 textView.setTextIsSelectable(true); in onHideTranslation()
185 textView.setFocusable(mOriginalFocusable); in onHideTranslation()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DTextViewSetTextMeasurePerfTest.java96 textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE); in timeCreate()
98 textView.setText(text); in timeCreate()
103 textView.setTextLocale(Locale.UK); in timeCreate()
104 textView.setTextLocale(Locale.US); in timeCreate()
108 textView.setText(text); in timeCreate()
109 textView.measure(AT_MOST | mLineWidth, UNSPECIFIED); in timeCreate()
125 textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE); in timeDraw()
126 textView.setText(text); in timeDraw()
134 textView.setTextLocale(Locale.UK); in timeDraw()
135 textView.setTextLocale(Locale.US); in timeDraw()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DTextPrecomputer.kt33 textView: TextView,
38 text?.let { PrecomputedText.create(it, textView.textMetricsParams) }
42 textView.text = precomputedText
47 /* msg = */ "PrecomputedText setText failed for TextView:$textView",
51 textView.text = text
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
H A DDialogThemedActivity.java43 TextView textView = new TextView(this); in onCreate() local
45 textView.setId(android.R.id.text1); in onCreate()
46 textView.setText("Insets visibility\n\n"); in onCreate()
47 textView.setTextColor(Color.BLACK); in onCreate()
50 layout.addView(textView); in onCreate()
62 dialog.setOnShowListener(d -> textView.setText(textView.getText() in onCreate()
/aosp14/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivity.java19 View textView = findViewById(R.id.textView); in onCreate() local
20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY()); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
H A DClipboardOverlayView.java245 TextView textView = hidden ? mHiddenPreview : mTextPreview; in showTextPreview() local
246 showSinglePreview(textView); in showTextPreview()
248 updateTextSize(text, textView); in showTextPreview()
249 textView.addOnLayoutChangeListener( in showTextPreview()
252 updateTextSize(text, textView); in showTextPreview()
465 Paint paint = new Paint(textView.getPaint()); in updateTextSize()
466 Resources res = textView.getResources(); in updateTextSize()
481 textView.setGravity(Gravity.CENTER); in updateTextSize()
487 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.START); in updateTextSize()
495 float availableWidth = textView.getWidth() - textView.getPaddingLeft() in fitsInView()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DRunQueue.java38 TextView textView = new TextView(this); in onCreate() local
39 textView.setText("RunQueue"); in onCreate()
40 textView.setId(R.id.simple_view); in onCreate()
42 setContentView(textView); in onCreate()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DBilingualSuggestedLocaleAdapter.java84 TextView textView = (TextView) convertView; in getView() local
87 textView, in getView()
92 textView, in getView()
156 TextView textView, int languageStringResourceId, int regionStringResourceId) { in setHeaderText() argument
158 setTextTo(textView, regionStringResourceId); in setHeaderText()
160 setTextTo(textView, languageStringResourceId); in setHeaderText()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DMainSwitchBarTest.java59 final TextView textView = ((TextView) mBar.findViewById(R.id.switch_text)); in setTitle_shouldUpdateTitle() local
61 assertThat(textView.getText()).isEqualTo(title); in setTitle_shouldUpdateTitle()
108 final TextView textView = ((TextView) mBar.findViewById(R.id.switch_text)); in setTitle_shouldSetCorrectLineBreakStyle() local
110 assertThat(textView.getLineBreakWordStyle()).isEqualTo(LINE_BREAK_WORD_STYLE_PHRASE); in setTitle_shouldSetCorrectLineBreakStyle()

1234