/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 76 View view1 = rootView.findViewById(R.id.view1); in testGetExplicitStyle() local 77 assertEquals(R.style.ExplicitStyle1, view1.getExplicitStyle()); in testGetExplicitStyle() 98 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeResolutionStack() local 99 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 116 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeSourceResourceMap() local 117 Map<Integer, Integer> attributeMapView1 = view1.getAttributeSourceResourceMap(); in testGetAttributeSourceResourceMap()
|
D | ViewPaddingTest.java | 55 View view1 = viewGroup.findViewById(R.id.view1); in testPadding() local 68 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testPadding() 69 view1.getBottom()); in testPadding()
|
D | ViewTreeObserverTest.java | 87 final View view1 = mActivity.findViewById(R.id.view1); in testAddOnGlobalFocusChangeListener() local 90 mActivityRule.runOnUiThread(view1::requestFocus); in testAddOnGlobalFocusChangeListener() 99 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener() 232 final View view1 = mActivity.findViewById(R.id.view1); in testRemoveOnGlobalFocusChangeListener() local 235 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener() 243 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener() 247 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
|
D | ViewSourceLayoutTest.java | 43 View view1 = activity.findViewById(R.id.view1); in testGetSourceLayout() local 44 assertEquals(R.layout.view_source_layout_test_layout, view1.getSourceLayoutResId()); in testGetSourceLayout()
|
D | ViewGroup_MarginLayoutParamsTest.java | 233 View view1 = viewGroup.findViewById(R.id.view1); in testVerticalHorizontalMargins() local 241 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testVerticalHorizontalMargins() 242 view1.getBottom()); in testVerticalHorizontalMargins()
|
D | ViewGroupTest.java | 2465 TemporaryDetachingMockView view1 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local 2467 vg.addView(view1); in testTemporaryDetach() 2481 assertFalse(view1.isTemporarilyDetached()); in testTemporaryDetach() 2482 assertEquals(0, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2483 assertEquals(0, view1.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() 2484 assertEquals(0, view1.getOnStartTemporaryDetachCount()); in testTemporaryDetach() 2485 assertEquals(0, view1.getOnFinishTemporaryDetachCount()); in testTemporaryDetach() 2510 assertTrue(view1.isTemporarilyDetached()); in testTemporaryDetach() 2511 assertEquals(1, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2512 assertEquals(0, view1.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() [all …]
|
D | View_FocusHandlingTest.java | 58 View v1 = activity.findViewById(R.id.view1); in testFocusHandling() 87 v2.setNextFocusLeftId(R.id.view1); in testFocusHandling() 91 v3.setNextFocusUpId(R.id.view1); in testFocusHandling() 100 assertEquals(R.id.view1, v2.getNextFocusLeftId()); in testFocusHandling() 103 assertEquals(R.id.view1, v3.getNextFocusUpId()); in testFocusHandling() 248 View v1 = activity.findViewById(R.id.view1); in testEnabledHandling()
|
D | View_InitialFocusTest.java | 99 View v1 = activity.findViewById(R.id.view1); in testClearFocus()
|
D | ContentPaneFocusTest.java | 61 final View v1 = mActivity.findViewById(R.id.view1); in testAccessActionBar()
|
D | ViewTest.java | 4901 final View view1 = mActivity.findViewById(R.id.transform_matrix_view); in testTransformMatrixToLocal() local 4903 final Matrix initialMatrix = view1.getMatrix(); in testTransformMatrixToLocal() 4908 view1.transformMatrixToGlobal(globalMatrix); in testTransformMatrixToLocal() 4973 View view1 = new View(mContext); in testGetUniqueDrawingId() local 4977 assertNotEquals(view1.getUniqueDrawingId(), view2.getUniqueDrawingId()); in testGetUniqueDrawingId()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 97 View view1 = mActivity.findViewById(R.id.relative_view1); in testConstructor() local 98 ViewAsserts.assertHorizontalCenterAligned(relativeLayout, view1); in testConstructor() 99 ViewAsserts.assertVerticalCenterAligned(relativeLayout, view1); in testConstructor() 100 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams()); in testConstructor() 107 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor() 108 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor() 118 ViewAsserts.assertTopAligned(view1, view3); in testConstructor() 120 assertEquals(view1.getRight(), view3.getLeft()); in testConstructor() 171 assertEquals(view1.getLeft(), view8.getRight()); in testConstructor() 204 View view1 = mActivity.findViewById(R.id.relative_view21); in testStartEnd() local [all …]
|
D | CheckedTextViewTest.java | 124 final CheckedTextView view1 = (CheckedTextView) adapter.getView(1, null, null); in testChecked() local 127 assertTrue(view1.isChecked()); in testChecked() 135 assertTrue(view1.isChecked()); in testChecked() 139 view1.setChecked(false); in testChecked() 142 assertFalse(view1.isChecked()); in testChecked()
|
D | TabWidgetTest.java | 250 View view1 = new TextView(mActivity); in testAddView() local 251 mockTabWidget.addView(view1); in testAddView() 252 assertSame(view1, mockTabWidget.getChildAt(0)); in testAddView()
|
D | LinearLayoutTest.java | 1228 assertEquals(0, mActivity.findViewById(R.id.view1).getWidth()); in testZeroWeightDistributionHorizontal() 1241 assertEquals(0, mActivity.findViewById(R.id.view1).getHeight()); in testZeroWeightDistributionVertical()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | VisibilitySetterActionTest.java | 97 final View view1 = new View(sContext); in testMultipleChildren() local 98 view1.setId(42); in testMultipleChildren() 99 view1.setVisibility(View.GONE); in testMultipleChildren() 100 mRootView.addView(view1); in testMultipleChildren() 109 assertThat(view1.getVisibility()).isEqualTo(View.VISIBLE); in testMultipleChildren()
|
D | DuplicateIdActivityTest.java | 108 final AssistStructure.ViewNode view1 = views1[0]; in testDoNotRestoreDuplicateAutofillIds() local 110 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() 117 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()
|