Home
last modified time | relevance | path

Searched refs:view1 (Results 1 – 18 of 18) 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()
DViewGroup_ScrollCaptureTest.java244 final MockView view1 = new MockView(context, 0, 0, 200, 25); in testDispatchScrollCaptureSearch_toChildren() local
245 viewGroup.addView(view1); in testDispatchScrollCaptureSearch_toChildren()
280 view1.assertDispatchScrollCaptureSearchCount(0); in testDispatchScrollCaptureSearch_toChildren()
341 final MockView view1 = new MockView(context, 0, -100, 200, 100); in testOnScrollCaptureSearch_withPadding() local
342 parent.addView(view1); in testOnScrollCaptureSearch_withPadding()
361 view1.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
DViewGroupTest.java2469 TemporaryDetachingMockView view1 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local
2471 vg.addView(view1); in testTemporaryDetach()
2485 assertFalse(view1.isTemporarilyDetached()); in testTemporaryDetach()
2486 assertEquals(0, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
2487 assertEquals(0, view1.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach()
2488 assertEquals(0, view1.getOnStartTemporaryDetachCount()); in testTemporaryDetach()
2489 assertEquals(0, view1.getOnFinishTemporaryDetachCount()); in testTemporaryDetach()
2514 assertTrue(view1.isTemporarilyDetached()); in testTemporaryDetach()
2515 assertEquals(1, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
2516 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.java4966 final View view1 = mActivity.findViewById(R.id.transform_matrix_view); in testTransformMatrixToLocal() local
4968 final Matrix initialMatrix = view1.getMatrix(); in testTransformMatrixToLocal()
4973 view1.transformMatrixToGlobal(globalMatrix); in testTransformMatrixToLocal()
5038 View view1 = new View(mContext); in testGetUniqueDrawingId() local
5042 assertNotEquals(view1.getUniqueDrawingId(), view2.getUniqueDrawingId()); in testGetUniqueDrawingId()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
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()
/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()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLayoutTests.java261 private static void assertLayoutEquals(View view1, View view2) { in assertLayoutEquals() argument
263 view1.getLocationOnScreen(locations[0]); in assertLayoutEquals()
266 assertEquals("Width must be the same.", view1.getWidth(), view2.getWidth()); in assertLayoutEquals()
267 assertEquals("Height must be the same.", view1.getHeight(), view2.getHeight()); in assertLayoutEquals()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java114 final AssistStructure.ViewNode view1 = views1[0]; in testDoNotRestoreDuplicateAutofillIds() local
116 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
123 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()