/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFadingEdgeTest.java | 148 MockTextView textView = createTextView(data.text, data.horizontalFadingEnabled, in testFadingEdge() local 152 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge() 154 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge() 160 final MockTextView textView = new MockTextView(mActivity); in createTextView() local 161 textView.setSingleLine(true); in createTextView() 162 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, TEXT_SIZE); in createTextView() 163 textView.setPadding(ANY_PADDING, ANY_PADDING, ANY_PADDING, ANY_PADDING); in createTextView() 164 textView.setFadingEdgeLength(ANY_FADE_LENGTH); in createTextView() 165 textView.setLayoutParams(new ViewGroup.LayoutParams(WIDTH, in createTextView() 167 textView.setHorizontalFadingEdgeEnabled(horizontalFadingEnabled); in createTextView() [all …]
|
D | CursorAdapterTest.java | 213 TextView textView = new TextView(mContext); in testGetView() local 214 textView.setText("getView test"); in testGetView() 220 cursorAdapter.getView(0, textView, mParent); in testGetView() 227 cursorAdapter.getView(100, textView, mParent); in testGetView() 238 retView = (TextView) cursorAdapter.getView(1, textView, mParent); in testGetView() 250 TextView textView = (TextView) cursorAdapter.newDropDownView(mContext, mCursor, mParent); in testNewDropDownView() local 251 assertEquals(FIRST_NUMBER, textView.getText().toString()); in testNewDropDownView() 260 TextView textView = new TextView(mContext); in testGetDropDownView() local 261 textView.setText("getDropDownView test"); in testGetDropDownView() 263 assertNull(cursorAdapter.getDropDownView(0, textView, mParent)); in testGetDropDownView() [all …]
|
D | CursorTreeAdapterTest.java | 478 TextView textView = new TextView(mContext); in testGetGroupView() local 479 textView.setText(expectedStr); in testGetGroupView() 485 adapter.getGroupView(0, true, textView, mParent); in testGetGroupView() 494 adapter.getGroupView(10, true, textView, mParent); in testGetGroupView() 505 retView = (TextView) adapter.getGroupView(0, true, textView, mParent); in testGetGroupView() 591 TextView textView = new TextView(mContext); in testGetChildView() local 592 textView.setText(expectedStr); in testGetChildView() 598 adapter.getChildView(0, 0, true, textView, mParent); in testGetChildView() 606 adapter.getChildView(10, 0, true, textView, mParent); in testGetChildView() 615 adapter.getChildView(0, 2, true, textView, mParent); in testGetChildView() [all …]
|
D | ArrayAdapterTest.java | 145 final TextView textView = new TextView(mContext); in testAccessView() local 146 textView.setText(STR3); in testAccessView() 162 assertEquals(STR3, textView.getText()); in testAccessView() 163 assertSame(textView, mArrayAdapter.getView(0, textView, null)); in testAccessView() 164 assertSame(textView, mArrayAdapter.getDropDownView(0, textView, null)); in testAccessView() 165 assertEquals(STR1, textView.getText()); in testAccessView() 171 final TextView textView = new TextView(mContext); in testGetViewOutOfBoundsLow() local 172 mArrayAdapter.getView(-1, textView, null); in testGetViewOutOfBoundsLow() 178 final TextView textView = new TextView(mContext); in testDropDownGetViewOutOfBoundsLow() local 179 mArrayAdapter.getDropDownView(-1, textView, null); in testDropDownGetViewOutOfBoundsLow() [all …]
|
D | RemoteViewsTest.java | 198 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextViewText() local 199 assertEquals("", textView.getText().toString()); in testSetTextViewText() 204 assertEquals(expected, textView.getText().toString()); in testSetTextViewText() 208 assertEquals("", textView.getText().toString()); in testSetTextViewText() 217 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextViewTextSize() local 222 textView.getTextSize(), 0.001f); in testSetTextViewTextSize() 532 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetCharSequence() local 533 assertEquals("", textView.getText().toString()); in testSetCharSequence() 538 assertEquals(expected, textView.getText().toString()); in testSetCharSequence() 542 assertEquals("", textView.getText().toString()); in testSetCharSequence() [all …]
|
D | TextViewTest.java | 441 private static void assertImeOptions(TextView textView, in assertImeOptions() argument 444 final int actualAction = textView.getImeOptions() & EditorInfo.IME_MASK_ACTION; in assertImeOptions() 445 final int actualFlags = textView.getImeOptions() & ~EditorInfo.IME_MASK_ACTION; in assertImeOptions() 654 final TextView textView = (TextView) mActivity.findViewById(R.id.textview_text); in testAccessHighlightColor() local 657 textView.setTextIsSelectable(true); in testAccessHighlightColor() 658 textView.setText("abcd", BufferType.EDITABLE); in testAccessHighlightColor() 659 textView.setHighlightColor(Color.BLUE); in testAccessHighlightColor() 663 assertTrue(textView.isTextSelectable()); in testAccessHighlightColor() 664 assertEquals(Color.BLUE, textView.getHighlightColor()); in testAccessHighlightColor() 669 CtsTouchUtils.emulateLongPressOnViewCenter(mInstrumentation, textView); in testAccessHighlightColor() [all …]
|
D | FrameLayoutTest.java | 168 final TextView textView = (TextView) frameLayout.findViewById(R.id.framelayout_textview); in testAccessMeasureAllChildren() local 169 WidgetTestUtils.assertScaledPixels(30, textView.getMeasuredHeight(), mActivity); in testAccessMeasureAllChildren() 170 WidgetTestUtils.assertScaledPixels(60, textView.getMeasuredWidth(), mActivity); in testAccessMeasureAllChildren() 171 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren() 172 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren() 176 textView.setVisibility(View.GONE); in testAccessMeasureAllChildren() 195 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren() 196 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | MockApplicationActivity.java | 28 TextView textView = new TextView(this); in onCreate() local 29 textView.setText("Test"); in onCreate() 30 setContentView(textView); in onCreate()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextActionTest.java | 79 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() local 80 makeTextViewVisibleAndSetText(textView, getString(R.string.a_b)); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 96 TextUtils.equals(getString(R.string.a_b), textView.getText())); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 100 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testEditableTextView_shouldExposeAndRespondToSetTextAction() local 105 textView.setVisibility(View.VISIBLE); in testEditableTextView_shouldExposeAndRespondToSetTextAction() 106 textView.setText(getString(R.string.a_b), TextView.BufferType.EDITABLE); in testEditableTextView_shouldExposeAndRespondToSetTextAction() 128 TextUtils.equals(textToSet, textView.getText())); in testEditableTextView_shouldExposeAndRespondToSetTextAction() 157 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testClickableSpan_shouldWorkFromAccessibilityService() local 161 assertEquals("Clickable span called back on wrong View", textView, widget); in testClickableSpan_shouldWorkFromAccessibilityService() 167 makeTextViewVisibleAndSetText(textView, textWithClickableSpan); in testClickableSpan_shouldWorkFromAccessibilityService() [all …]
|
D | AccessibilityTextTraversalTest.java | 478 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/fragment/src/android/fragment/cts/ |
D | LoaderActivity.java | 33 public TextView textView; field in LoaderActivity 42 textView = (TextView) findViewById(R.id.textA); in onCreate() 44 ViewGroup container = (ViewGroup) textView.getParent(); in onCreate() 64 textView.setText(data); in onLoadFinished()
|
D | NestedInflatedFragmentTest.java | 89 TextView textView = new TextView(inflater.getContext()); in onCreateView() local 90 textView.setText("Simple fragment"); in onCreateView() 91 return textView; in onCreateView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | CrossProfileTestActivity.java | 49 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()
|
D | WorkStatusTestActivity.java | 54 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/tests/tests/text/src/android/text/method/cts/ |
D | BaseMovementMethodTest.java | 181 final TextView textView = new TextViewNoIme(mActivityRule.getActivity()); in createTextView() local 182 textView.setFocusable(true); in createTextView() 183 textView.setMovementMethod(mMovementMethod); in createTextView() 184 textView.setTextDirection(View.TEXT_DIRECTION_LTR); in createTextView() 185 return textView; in createTextView() 188 private void setContentView(@NonNull TextView textView, int textWidth) throws Throwable { in setContentView() argument 191 layout.addView(textView, new ViewGroup.LayoutParams(textWidth, WRAP_CONTENT)); in setContentView() 196 textView.requestFocus(); in setContentView() 199 assertTrue(textView.isFocused()); in setContentView()
|
/cts/hostsidetests/devicepolicy/app/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/ |
D | MainActivity.java | 44 TextView textView = findViewById(R.id.user_textview); in onStart() local 45 textView.setText(Long.toString(getCurrentUserSerialNumber())); in onStart()
|
D | CrossProfileAppsTargetUserTest.java | 105 UiObject2 textView = mDevice.wait( in testCanStartMainActivity() local 108 assertNotNull("Failed to start activity in target user", textView); in testCanStartMainActivity() 112 textView.getText()); in testCanStartMainActivity()
|
/cts/tests/tests/toast/src/android/widget/toast/cts/ |
D | BaseToastTest.java | 86 TextView textView = new TextView(mContext); in showToastsViaAddingWindow() local 87 textView.setText(BaseToastTest.class.getName()); in showToastsViaAddingWindow() 91 windowManager.addView(textView, params); in showToastsViaAddingWindow()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 46 TextView textView = (TextView) View in onCreate() 48 textView.setText((String) getItem(position)); in onCreate() 49 return textView; in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 380 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/ |
D | RVCVXCheckTestActivity.java | 366 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/ |
D | LinkifyTest.java | 398 TextView textView = new TextView(mContext); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull() local 399 textView.setText("any https://android.com any android.com any"); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull() 401 Linkify.addLinks(textView, pattern, null, null, null); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull() 403 URLSpan[] spans = textView.getUrls(); in testAddLinks_withTextView_addsLinksWhenDefaultSchemeIsNull() 413 TextView textView = new TextView(mContext); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull() local 414 textView.setText("any https://android.com any android.com any"); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull() 416 Linkify.addLinks(textView, pattern, "http://", null, null); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull() 418 URLSpan[] spans = textView.getUrls(); in testAddLinks_withTextView_addsLinksWhenSchemesArrayIsNull() 429 TextView textView = new TextView(mContext); in testAddLinks_withTextView_prependsDefaultSchemeToBeginingOfLink() local 430 textView.setText("any android.com any"); in testAddLinks_withTextView_prependsDefaultSchemeToBeginingOfLink() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 140 final TextView textView = new TextView(activity) { in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 146 textView.setText("textView"); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 147 textView.setPrivateImeOptions(marker); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 148 textView.requestFocus(); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 151 layout.addView(textView); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 266 final TextView textView = new TextView(context); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 267 textView.setText("Test Text"); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 268 popup.setContentView(textView); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioOutputRoutingNotificationsActivity.java | 74 TextView textView = in onRoutingChanged() local 81 textView.setText(msg + " - " + in onRoutingChanged()
|
D | AudioInputRoutingNotificationsActivity.java | 74 TextView textView = in onRoutingChanged() local 81 textView.setText(msg + " - " + in onRoutingChanged()
|