Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFadingEdgeTest.java133 MockTextView textView = createTextView(data.text, data.horizontalFadingEnabled, in testFadingEdge() local
137 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge()
139 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge()
145 final MockTextView textView = new MockTextView(getActivity()); in createTextView() local
146 textView.setSingleLine(true); in createTextView()
147 textView.setTextSize(30); in createTextView()
148 textView.setPadding(ANY_PADDING, ANY_PADDING, ANY_PADDING, ANY_PADDING); in createTextView()
149 textView.setFadingEdgeLength(ANY_FADE_LENGTH); in createTextView()
150 textView.setLayoutParams(new ViewGroup.LayoutParams(300, in createTextView()
152 textView.setHorizontalFadingEdgeEnabled(horizontalFadingEnabled); in createTextView()
[all …]
DTextViewTest.java480 MockTextView textView = new MockTextView(mActivity); in testSetShadowLayer() local
483 textView.setShadowLayer(1.0f, 0.3f, 0.3f, Color.CYAN); in testSetShadowLayer()
484 assertTrue(textView.isPaddingOffsetRequired()); in testSetShadowLayer()
485 assertEquals(0, textView.getLeftPaddingOffset()); in testSetShadowLayer()
486 assertEquals(0, textView.getTopPaddingOffset()); in testSetShadowLayer()
487 assertEquals(1, textView.getRightPaddingOffset()); in testSetShadowLayer()
488 assertEquals(1, textView.getBottomPaddingOffset()); in testSetShadowLayer()
491 textView.setShadowLayer(1.0f, -0.8f, -0.8f, Color.CYAN); in testSetShadowLayer()
492 assertTrue(textView.isPaddingOffsetRequired()); in testSetShadowLayer()
493 assertEquals(-1, textView.getLeftPaddingOffset()); in testSetShadowLayer()
[all …]
DArrayAdapterTest.java127 final TextView textView = new TextView(mContext); in testAccessView() local
128 textView.setText(STR3); in testAccessView()
144 assertEquals(STR3, textView.getText()); in testAccessView()
145 assertSame(textView, mArrayAdapter.getView(0, textView, null)); in testAccessView()
146 assertSame(textView, mArrayAdapter.getDropDownView(0, textView, null)); in testAccessView()
147 assertEquals(STR1, textView.getText()); in testAccessView()
150 assertEquals(textView, mArrayAdapter.getView(-1, textView, null)); in testAccessView()
156 assertEquals(textView, mArrayAdapter.getDropDownView(-1, textView, null)); in testAccessView()
162 assertEquals(textView, in testAccessView()
163 mArrayAdapter.getView(mArrayAdapter.getCount(), textView, null)); in testAccessView()
[all …]
DCursorAdapterTest.java192 TextView textView = new TextView(mContext); in testGetView() local
193 textView.setText("getView test"); in testGetView()
199 cursorAdapter.getView(0, textView, mParent); in testGetView()
206 cursorAdapter.getView(100, textView, mParent); in testGetView()
217 retView = (TextView) cursorAdapter.getView(1, textView, mParent); in testGetView()
228 TextView textView = (TextView) cursorAdapter.newDropDownView(mContext, mCursor, mParent); in testNewDropDownView() local
229 assertEquals(FIRST_NUMBER, textView.getText().toString()); in testNewDropDownView()
237 TextView textView = new TextView(mContext); in testGetDropDownView() local
238 textView.setText("getDropDownView test"); in testGetDropDownView()
240 assertNull(cursorAdapter.getDropDownView(0, textView, mParent)); in testGetDropDownView()
[all …]
DCursorTreeAdapterTest.java442 TextView textView = new TextView(mContext); in testGetGroupView() local
443 textView.setText(expectedStr); in testGetGroupView()
449 adapter.getGroupView(0, true, textView, mParent); in testGetGroupView()
458 adapter.getGroupView(10, true, textView, mParent); in testGetGroupView()
469 retView = (TextView) adapter.getGroupView(0, true, textView, mParent); in testGetGroupView()
551 TextView textView = new TextView(mContext); in testGetChildView() local
552 textView.setText(expectedStr); in testGetChildView()
558 adapter.getChildView(0, 0, true, textView, mParent); in testGetChildView()
566 adapter.getChildView(10, 0, true, textView, mParent); in testGetChildView()
575 adapter.getChildView(0, 2, true, textView, mParent); in testGetChildView()
[all …]
DViewGroupCtsActivity.java39 TextView textView = (TextView)findViewById(android.widget.cts.R.id.viewgrouptest_stub); in onCreate() local
40 textView.setText("test"); in onCreate()
DFrameLayoutTest.java152 final TextView textView = (TextView) frameLayout.findViewById(R.id.framelayout_textview); in testAccessMeasureAllChildren() local
153 compareScaledPixels(30, textView.getMeasuredHeight()); in testAccessMeasureAllChildren()
154 compareScaledPixels(60, textView.getMeasuredWidth()); in testAccessMeasureAllChildren()
155 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren()
156 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
160 textView.setVisibility(View.GONE); in testAccessMeasureAllChildren()
178 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren()
179 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
DRemoteViewsTest.java135 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextViewText() local
136 assertEquals("", textView.getText().toString()); in testSetTextViewText()
141 assertEquals(expected, textView.getText().toString()); in testSetTextViewText()
145 assertEquals("", textView.getText().toString()); in testSetTextViewText()
445 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetCharSequence() local
446 assertEquals("", textView.getText().toString()); in testSetCharSequence()
451 assertEquals(expected, textView.getText().toString()); in testSetCharSequence()
455 assertEquals("", textView.getText().toString()); in testSetCharSequence()
534 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextColor() local
538 assertSame(ColorStateList.valueOf(R.color.testcolor1), textView.getTextColors()); in testSetTextColor()
[all …]
DTabHostTest.java247 TextView textView = (TextView) tabHost.getCurrentView(); in testGetCurrentView() local
248 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, textView.getText().toString()); in testGetCurrentView()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java90 TextView textView = new TextView(mContext); in testAddFocusables() local
91 list.add(textView); in testAddFocusables()
92 vg.addView(textView); in testAddFocusables()
98 list.add(textView); in testAddFocusables()
107 TextView textView = new TextView(mContext); in testAddStatesFromChildren() local
108 vg.addView(textView); in testAddStatesFromChildren()
112 textView.performClick(); in testAddStatesFromChildren()
122 TextView textView = new TextView(mContext); in testAddTouchables() local
123 textView.setVisibility(View.VISIBLE); in testAddTouchables()
124 textView.setClickable(true); in testAddTouchables()
[all …]
DViewGroupCtsActivity.java39 TextView textView = (TextView)findViewById(android.view.cts.R.id.viewgrouptest_stub); in onCreate() local
40 textView.setText("test"); in onCreate()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextActionTest.java49 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() local
54 textView.setVisibility(View.VISIBLE); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
55 textView.setText(getString(R.string.a_b)); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
73 TextUtils.equals(getString(R.string.a_b), textView.getText())); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
77 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testEditableTextView_shouldExposeAndRespondToSetTextAction() local
82 textView.setVisibility(View.VISIBLE); in testEditableTextView_shouldExposeAndRespondToSetTextAction()
83 textView.setText(getString(R.string.a_b), TextView.BufferType.EDITABLE); in testEditableTextView_shouldExposeAndRespondToSetTextAction()
105 TextUtils.equals(textToSet, textView.getText())); in testEditableTextView_shouldExposeAndRespondToSetTextAction()
DAccessibilityEndToEndActivity.java42 TextView textView = (TextView) View in onCreate()
44 textView.setText((String) getItem(position)); in onCreate()
45 return textView; in onCreate()
DAccessibilityTextTraversalTest.java478 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testActionNextAndPreviousAtGranularityCharacterOverText() local
483 textView.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverText()
484 textView.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverText()
534 assertEquals(1, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
535 assertEquals(1, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
568 assertEquals(2, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
569 assertEquals(2, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
602 assertEquals(3, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
603 assertEquals(3, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
610 assertEquals(3, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DMockApplicationActivity.java28 TextView textView = new TextView(this); in onCreate() local
29 textView.setText("Test"); in onCreate()
30 setContentView(textView); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCrossProfileTestActivity.java49 TextView textView = (TextView) findViewById(R.id.text); in onCreate() local
56 textView.setText(R.string.provisioning_byod_cross_profile_app_work); in onCreate()
58 textView.setText(R.string.provisioning_byod_cross_profile_app_personal); in onCreate()
60 textView.setText(R.string.provisioning_byod_cross_profile_app_ctsverifier); in onCreate()
DWorkStatusTestActivity.java54 TextView textView = (TextView) findViewById(R.id.text); in onStart() local
56 textView.setText(R.string.provisioning_byod_work_status_icon_activity); in onStart()
58 textView.setText(R.string.provisioning_byod_work_status_toast_activity); in onStart()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java380 TextView textView; in getView() local
383 textView = (TextView) mLayoutInflater.inflate(layout, parent, false); in getView()
385 textView = (TextView) convertView; in getView()
389 textView.setText(item.title); in getView()
390 textView.setPadding(PADDING, 0, PADDING, 0); in getView()
391 textView.setCompoundDrawablePadding(PADDING); in getView()
417 textView.setBackgroundResource(backgroundResource); in getView()
418 textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, iconResource, 0); in getView()
421 return textView; in getView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckTestActivity.java366 TextView textView = new TextView(this); in showDetailedTutorialLink() local
367 textView.setText(Html.fromHtml( in showDetailedTutorialLink()
370 textView.setMovementMethod(LinkMovementMethod.getInstance()); in showDetailedTutorialLink()
371 textView.setPadding(10, 0, 0, 0); in showDetailedTutorialLink()
372 getTestLogger().logCustomView(textView); in showDetailedTutorialLink()
410 TextView textView = (TextView) dialog.findViewById(android.R.id.message); in showOpenCVLibaryLicenseDisplayButton()
411 textView.setTextSize(9); in showOpenCVLibaryLicenseDisplayButton()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java405 TextView textView = new TextView(mContext); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull() local
406 textView.setText("any https://android.com any android.com any"); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull()
408 Linkify.addLinks(textView, pattern, null, null, null); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull()
410 URLSpan[] spans = textView.getUrls(); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull()
419 TextView textView = new TextView(mContext); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull() local
420 textView.setText("any https://android.com any android.com any"); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull()
422 Linkify.addLinks(textView, pattern, "http://", null, null); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull()
424 URLSpan[] spans = textView.getUrls(); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull()
434 TextView textView = new TextView(mContext); in testAddLinks_withTextView_prependsDefaultSchemeToBeginingOfLink() local
435 textView.setText("any android.com any"); in testAddLinks_withTextView_prependsDefaultSchemeToBeginingOfLink()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DURLSpanTest.java65 final TextView textView = (TextView) mActivity.findViewById(R.id.url); in testOnClick() local
74 urlSpan.onClick(textView); in testOnClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioInputRoutingNotificationsActivity.java74 TextView textView = in onRoutingChanged() local
81 textView.setText(msg + " - " + in onRoutingChanged()
DAudioOutputRoutingNotificationsActivity.java74 TextView textView = in onRoutingChanged() local
81 textView.setText(msg + " - " + in onRoutingChanged()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java427 TextView textView = (TextView) parentView; in verifyViewProperties() local
428 assertEquals(textView.getTextSize(), parentNode.getTextSize()); in verifyViewProperties()
429 String viewString = textView.getText().toString(); in verifyViewProperties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DMtpHostTestActivity.java377 final TextView textView = (TextView) view.findViewById(R.id.instructions);
378 textView.setText(messageText);

12