/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupTest.java | 92 TextView textView = new TextView(mContext); in testAddFocusables() local 93 list.add(textView); in testAddFocusables() 94 vg.addView(textView); in testAddFocusables() 100 list.add(textView); in testAddFocusables() 109 TextView textView = new TextView(mContext); in testAddStatesFromChildren() local 110 vg.addView(textView); in testAddStatesFromChildren() 114 textView.performClick(); in testAddStatesFromChildren() 124 TextView textView = new TextView(mContext); in testAddTouchables() local 125 textView.setVisibility(View.VISIBLE); in testAddTouchables() 126 textView.setClickable(true); in testAddTouchables() [all …]
|
D | ViewGroupCtsActivity.java | 39 TextView textView = (TextView)findViewById(com.android.cts.view.R.id.viewgrouptest_stub); in onCreate() local 40 textView.setText("test"); in onCreate()
|
/cts/tests/app/src/android/app/cts/ |
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/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 472 MockTextView textView = new MockTextView(mActivity); in testSetShadowLayer() local 475 textView.setShadowLayer(1.0f, 0.3f, 0.3f, Color.CYAN); in testSetShadowLayer() 476 assertTrue(textView.isPaddingOffsetRequired()); in testSetShadowLayer() 477 assertEquals(0, textView.getLeftPaddingOffset()); in testSetShadowLayer() 478 assertEquals(0, textView.getTopPaddingOffset()); in testSetShadowLayer() 479 assertEquals(1, textView.getRightPaddingOffset()); in testSetShadowLayer() 480 assertEquals(1, textView.getBottomPaddingOffset()); in testSetShadowLayer() 483 textView.setShadowLayer(1.0f, -0.8f, -0.8f, Color.CYAN); in testSetShadowLayer() 484 assertTrue(textView.isPaddingOffsetRequired()); in testSetShadowLayer() 485 assertEquals(-1, textView.getLeftPaddingOffset()); in testSetShadowLayer() [all …]
|
D | ArrayAdapterTest.java | 127 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 …]
|
D | CursorAdapterTest.java | 192 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 …]
|
D | CursorTreeAdapterTest.java | 442 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 …]
|
D | ViewGroupCtsActivity.java | 39 TextView textView = (TextView)findViewById(com.android.cts.widget.R.id.viewgrouptest_stub); in onCreate() local 40 textView.setText("test"); in onCreate()
|
D | FrameLayoutTest.java | 164 final TextView textView = (TextView) frameLayout.findViewById(R.id.framelayout_textview); in testAccessMeasureAllChildren() local 165 compareScaledPixels(30, textView.getMeasuredHeight()); in testAccessMeasureAllChildren() 166 compareScaledPixels(60, textView.getMeasuredWidth()); in testAccessMeasureAllChildren() 167 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren() 168 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren() 173 textView.setVisibility(View.GONE); in testAccessMeasureAllChildren() 194 assertEquals(textView.getMeasuredHeight(), frameLayout.getMeasuredHeight()); in testAccessMeasureAllChildren() 195 assertEquals(textView.getMeasuredWidth(), frameLayout.getMeasuredWidth()); in testAccessMeasureAllChildren()
|
D | RemoteViewsTest.java | 135 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 …]
|
D | TabHostTest.java | 252 TextView textView = (TextView) tabHost.getCurrentView(); in testGetCurrentView() local 253 assertEquals(TabHostCtsActivity.INITIAL_VIEW_TEXT, textView.getText().toString()); in testGetCurrentView()
|
/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/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndActivity.java | 42 TextView textView = (TextView) View in onCreate() 44 textView.setText((String) getItem(position)); in onCreate() 45 return textView; in onCreate()
|
D | AccessibilityTextTraversalTest.java | 475 final TextView textView = (TextView) getActivity().findViewById(R.id.text); in testActionNextAndPreviousAtGranularityCharacterOverText() local 480 textView.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverText() 481 textView.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverText() 531 assertEquals(1, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 532 assertEquals(1, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 565 assertEquals(2, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 566 assertEquals(2, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 599 assertEquals(3, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 600 assertEquals(3, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() 607 assertEquals(3, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText() [all …]
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
D | Test4DetailFragment.java | 171 TextView textView = new TextView(getActivity()); in onCreateView() local 172 textView.setGravity(Gravity.CENTER); in onCreateView() 174 textView.setText("[ " + Integer.toString(args.getInt(ARG_SECTION_NUMBER)) + " ]"); in onCreateView() 175 return textView; in onCreateView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioRoutingNotificationsActivity.java | 83 TextView textView = in onRoutingChanged() local 90 textView.setText(msg + " - " + in onRoutingChanged() 99 TextView textView = in onRoutingChanged() local 106 textView.setText(msg + " - " + in onRoutingChanged()
|
/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/tests/uiautomator/src/com/android/cts/uiautomatortest/ |
D | CtsUiAutomatorTest.java | 332 UiObject textView = new UiObject(new UiSelector().textContains("[")); in testSwipes() local 334 textView.swipeLeft(10); in testSwipes() 335 assertTrue("UiObject swipe left 1->2", "[ 2 ]".equals(textView.getText())); in testSwipes() 337 textView.swipeLeft(10); in testSwipes() 338 assertTrue("UiObject swipe left 2->3", "[ 3 ]".equals(textView.getText())); in testSwipes() 340 textView.swipeLeft(10); in testSwipes() 341 assertTrue("UiObject swipe left 3->4", "[ 4 ]".equals(textView.getText())); in testSwipes() 343 textView.swipeRight(10); in testSwipes() 344 assertTrue("UiObject swipe right 3<-4", "[ 3 ]".equals(textView.getText())); in testSwipes() 346 textView.swipeRight(10); in testSwipes() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | URLSpanTest.java | 65 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/tv/ |
D | MockTvInputService.java | 306 TextView textView = (TextView) view.findViewById(R.id.overlay_view_text); in onCreateOverlayView() local 307 textView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { in onCreateOverlayView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 113 TextView textView = (TextView) findViewById(R.id.camera_fov_tap_to_take_photo); in onCreate() local 114 textView.setTextColor(Color.WHITE); in onCreate()
|