/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 94 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()
|
D | ViewPaddingTest.java | 57 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()
|
D | ViewSourceLayoutTest.java | 54 View view1 = activity.findViewById(R.id.view1); in testGetSourceLayout() local 55 assertEquals(R.layout.view_source_layout_test_layout, view1.getSourceLayoutResId()); in testGetSourceLayout()
|
D | ViewTreeObserverTest.java | 100 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()
|
D | ViewGroup_MarginLayoutParamsTest.java | 235 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()
|
D | ViewGroup_ScrollCaptureTest.java | 246 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()
|
D | ViewGroupTest.java | 2496 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 …]
|
D | View_FocusHandlingTest.java | 69 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()
|
D | View_InitialFocusTest.java | 110 View v1 = activity.findViewById(R.id.view1); in testClearFocus()
|
D | ContentPaneFocusTest.java | 72 final View v1 = mActivity.findViewById(R.id.view1); in testAccessActionBar()
|
D | ViewTest.java | 5232 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/ |
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()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 106 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 …]
|
D | CheckedTextViewTest.java | 132 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()
|
D | TabWidgetTest.java | 258 View view1 = new TextView(mActivity); in testAddView() local 259 mockTabWidget.addView(view1); in testAddView() 260 assertSame(view1, mockTabWidget.getChildAt(0)); in testAddView()
|
D | LinearLayoutTest.java | 1271 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/ |
D | LayoutTests.java | 298 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/ |
D | DuplicateIdActivityTest.java | 132 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/ |
D | FocusHandlingTest.java | 216 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()
|