Home
last modified time | relevance | path

Searched refs:view1 (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java76 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()
DViewPaddingTest.java55 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()
DViewSourceLayoutTest.java43 View view1 = activity.findViewById(R.id.view1); in testGetSourceLayout() local
44 assertEquals(R.layout.view_source_layout_test_layout, view1.getSourceLayoutResId()); in testGetSourceLayout()
DViewTreeObserverTest.java87 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()
DViewGroup_MarginLayoutParamsTest.java233 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()
DViewGroupTest.java2465 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 …]
DView_FocusHandlingTest.java58 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()
DView_InitialFocusTest.java99 View v1 = activity.findViewById(R.id.view1); in testClearFocus()
DContentPaneFocusTest.java61 final View v1 = mActivity.findViewById(R.id.view1); in testAccessActionBar()
DViewTest.java4901 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/autofillservice/src/android/autofillservice/cts/
DVisibilitySetterActionTest.java97 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()
DDuplicateIdActivityTest.java108 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()
/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayout_LayoutParamsTest.java97 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 …]
DCheckedTextViewTest.java124 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()
DTabWidgetTest.java250 View view1 = new TextView(mActivity); in testAddView() local
251 mockTabWidget.addView(view1); in testAddView()
252 assertSame(view1, mockTabWidget.getChildAt(0)); in testAddView()
DLinearLayoutTest.java1228 assertEquals(0, mActivity.findViewById(R.id.view1).getWidth()); in testZeroWeightDistributionHorizontal()
1241 assertEquals(0, mActivity.findViewById(R.id.view1).getHeight()); in testZeroWeightDistributionVertical()