Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java94 View view1 = rootView.findViewById(R.id.view1); in testGetExplicitStyle() local
95 assertEquals(R.style.ExplicitStyle1, view1.getExplicitStyle()); in testGetExplicitStyle()
116 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeResolutionStack() local
117 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack()
134 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeSourceResourceMap() local
135 Map<Integer, Integer> attributeMapView1 = view1.getAttributeSourceResourceMap(); in testGetAttributeSourceResourceMap()
DViewPaddingTest.java57 View view1 = viewGroup.findViewById(R.id.view1); in testPadding() local
70 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testPadding()
71 view1.getBottom()); in testPadding()
DViewSourceLayoutTest.java54 View view1 = activity.findViewById(R.id.view1); in testGetSourceLayout() local
55 assertEquals(R.layout.view_source_layout_test_layout, view1.getSourceLayoutResId()); in testGetSourceLayout()
DViewTreeObserverTest.java100 final View view1 = mActivity.findViewById(R.id.view1); in testAddOnGlobalFocusChangeListener() local
103 mActivityRule.runOnUiThread(view1::requestFocus); in testAddOnGlobalFocusChangeListener()
112 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener()
245 final View view1 = mActivity.findViewById(R.id.view1); in testRemoveOnGlobalFocusChangeListener() local
248 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
256 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
260 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
DViewGroup_MarginLayoutParamsTest.java235 View view1 = viewGroup.findViewById(R.id.view1); in testVerticalHorizontalMargins() local
243 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testVerticalHorizontalMargins()
244 view1.getBottom()); in testVerticalHorizontalMargins()
DViewGroup_ScrollCaptureTest.java246 final MockView view1 = new MockView(context, 0, 0, 200, 25); in testDispatchScrollCaptureSearch_toChildren() local
247 viewGroup.addView(view1); in testDispatchScrollCaptureSearch_toChildren()
282 view1.assertDispatchScrollCaptureSearchCount(0); in testDispatchScrollCaptureSearch_toChildren()
343 final MockView view1 = new MockView(context, 0, -100, 200, 100); in testOnScrollCaptureSearch_withPadding() local
344 parent.addView(view1); in testOnScrollCaptureSearch_withPadding()
363 view1.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
DViewGroupTest.java2496 TemporaryDetachingMockView view1 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local
2498 vg.addView(view1); in testTemporaryDetach()
2512 assertFalse(view1.isTemporarilyDetached()); in testTemporaryDetach()
2513 assertEquals(0, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
2514 assertEquals(0, view1.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach()
2515 assertEquals(0, view1.getOnStartTemporaryDetachCount()); in testTemporaryDetach()
2516 assertEquals(0, view1.getOnFinishTemporaryDetachCount()); in testTemporaryDetach()
2541 assertTrue(view1.isTemporarilyDetached()); in testTemporaryDetach()
2542 assertEquals(1, view1.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
2543 assertEquals(0, view1.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach()
[all …]
DView_FocusHandlingTest.java69 View v1 = activity.findViewById(R.id.view1); in testFocusHandling()
98 v2.setNextFocusLeftId(R.id.view1); in testFocusHandling()
102 v3.setNextFocusUpId(R.id.view1); in testFocusHandling()
111 assertEquals(R.id.view1, v2.getNextFocusLeftId()); in testFocusHandling()
114 assertEquals(R.id.view1, v3.getNextFocusUpId()); in testFocusHandling()
259 View v1 = activity.findViewById(R.id.view1); in testEnabledHandling()
DView_InitialFocusTest.java110 View v1 = activity.findViewById(R.id.view1); in testClearFocus()
DContentPaneFocusTest.java72 final View v1 = mActivity.findViewById(R.id.view1); in testAccessActionBar()
DViewTest.java5232 final View view1 = mActivity.findViewById(R.id.transform_matrix_view); in testTransformMatrixToLocal() local
5234 final Matrix initialMatrix = view1.getMatrix(); in testTransformMatrixToLocal()
5239 view1.transformMatrixToGlobal(globalMatrix); in testTransformMatrixToLocal()
5304 View view1 = new View(mContext); in testGetUniqueDrawingId() local
5308 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.java106 View view1 = mActivity.findViewById(R.id.relative_view1); in testConstructor() local
107 ViewAsserts.assertHorizontalCenterAligned(relativeLayout, view1); in testConstructor()
108 ViewAsserts.assertVerticalCenterAligned(relativeLayout, view1); in testConstructor()
109 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams()); in testConstructor()
116 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor()
117 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor()
127 ViewAsserts.assertTopAligned(view1, view3); in testConstructor()
129 assertEquals(view1.getRight(), view3.getLeft()); in testConstructor()
180 assertEquals(view1.getLeft(), view8.getRight()); in testConstructor()
213 View view1 = mActivity.findViewById(R.id.relative_view21); in testStartEnd() local
[all …]
DCheckedTextViewTest.java132 final CheckedTextView view1 = (CheckedTextView) adapter.getView(1, null, null); in testChecked() local
135 assertTrue(view1.isChecked()); in testChecked()
143 assertTrue(view1.isChecked()); in testChecked()
148 view1.setChecked(false); in testChecked()
152 assertFalse(view1.isChecked()); in testChecked()
DTabWidgetTest.java258 View view1 = new TextView(mActivity); in testAddView() local
259 mockTabWidget.addView(view1); in testAddView()
260 assertSame(view1, mockTabWidget.getChildAt(0)); in testAddView()
DLinearLayoutTest.java1271 assertEquals(0, mActivity.findViewById(R.id.view1).getWidth()); in testZeroWeightDistributionHorizontal()
1284 assertEquals(0, mActivity.findViewById(R.id.view1).getHeight()); in testZeroWeightDistributionVertical()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLayoutTests.java298 private static void assertLayoutEquals(View view1, View view2) { in assertLayoutEquals() argument
300 view1.getLocationOnScreen(locations[0]); in assertLayoutEquals()
303 assertEquals("Width must be the same.", view1.getWidth(), view2.getWidth()); in assertLayoutEquals()
304 assertEquals("Height must be the same.", view1.getHeight(), view2.getHeight()); in assertLayoutEquals()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java132 final AssistStructure.ViewNode view1 = views1[0]; in testDoNotRestoreDuplicateAutofillIds() local
134 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
141 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java216 final TextView view1 = new Button(activity); in testSwitchingBetweenEquivalentNonEditableViews()
217 view1.setText("View 1"); in testSwitchingBetweenEquivalentNonEditableViews()
218 layout.addView(view1); in testSwitchingBetweenEquivalentNonEditableViews()
219 view1.setFocusableInTouchMode(true); in testSwitchingBetweenEquivalentNonEditableViews()
220 viewRef1.set(view1); in testSwitchingBetweenEquivalentNonEditableViews()