/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | VisibilitySetterActionTest.java | 102 final View view2 = new View(sContext); in testMultipleChildren() local 103 view2.setId(108); in testMultipleChildren() 104 view2.setVisibility(View.GONE); in testMultipleChildren() 105 mRootView.addView(view2); in testMultipleChildren() 110 assertThat(view2.getVisibility()).isEqualTo(View.INVISIBLE); in testMultipleChildren()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewSourceLayoutTest.java | 46 View view2 = activity.findViewById(R.id.view2); in testGetSourceLayout() local 47 assertEquals(R.layout.view_source_layout_test_include_layout, view2.getSourceLayoutResId()); in testGetSourceLayout()
|
D | ViewTreeObserverTest.java | 88 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener() local 97 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener() 99 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener() 233 final View view2 = mActivity.findViewById(R.id.view2); in testRemoveOnGlobalFocusChangeListener() local 241 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener() 243 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
|
D | ViewGroup_ScrollCaptureTest.java | 248 final MockView view2 = new MockView(context, 0, 25, 150, 100); in testDispatchScrollCaptureSearch_toChildren() local 249 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren() 284 view2.assertDispatchScrollCaptureSearchCount(1); in testDispatchScrollCaptureSearch_toChildren() 285 view2.assertDispatchScrollCaptureSearchLastArgs( in testDispatchScrollCaptureSearch_toChildren() 344 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local 345 parent.addView(view2); in testOnScrollCaptureSearch_withPadding() 364 view2.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
|
D | ViewPaddingTest.java | 56 View view2 = viewGroup.findViewById(R.id.view2); in testPadding() local 81 checkBounds(view2, defaultBounds, insetAll, insetAll, insetAll, insetAll); in testPadding()
|
D | ViewAttributeTest.java | 79 View view2 = rootView.findViewById(R.id.view2); in testGetExplicitStyle() local 80 assertEquals(R.style.ExplicitStyle2, view2.getExplicitStyle()); in testGetExplicitStyle()
|
D | ViewGroup_MarginLayoutParamsTest.java | 234 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins() local 250 checkBounds(view2, defaultBounds, marginHorizontal, 0, marginHorizontal, 0); in testVerticalHorizontalMargins()
|
D | ViewGroupTest.java | 2470 TemporaryDetachingMockView view2 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local 2472 vg.addView(view2); in testTemporaryDetach() 2490 assertFalse(view2.isTemporarilyDetached()); in testTemporaryDetach() 2491 assertEquals(0, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2492 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() 2493 assertEquals(0, view2.getOnStartTemporaryDetachCount()); in testTemporaryDetach() 2494 assertEquals(0, view2.getOnFinishTemporaryDetachCount()); in testTemporaryDetach() 2519 assertTrue(view2.isTemporarilyDetached()); in testTemporaryDetach() 2520 assertEquals(1, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2521 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() [all …]
|
D | View_FocusHandlingTest.java | 59 View v2 = activity.findViewById(R.id.view2); in testFocusHandling() 84 v1.setNextFocusRightId(R.id.view2); in testFocusHandling() 94 v4.setNextFocusUpId(R.id.view2); in testFocusHandling() 97 assertEquals(R.id.view2, v1.getNextFocusRightId()); in testFocusHandling() 106 assertEquals(R.id.view2, v4.getNextFocusUpId()); in testFocusHandling() 249 View v2 = activity.findViewById(R.id.view2); in testEnabledHandling()
|
D | ViewTest.java | 515 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view); in testMouseEventCallsGetPointerIcon() local 516 assertFalse(view2.hasCalledOnResolvePointerIcon()); in testMouseEventCallsGetPointerIcon() 2201 final View view2 = mActivity.findViewById(R.id.fit_windows); in testHasWindowFocus() local 2203 PollingCheck.waitFor(TIMEOUT_DELTA, view2::hasWindowFocus); in testHasWindowFocus() 4168 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view_2); in testScrollbarSize() local 4169 view2.setScrollBarSize(customScrollbarSize); in testScrollbarSize() 4170 assertEquals(customScrollbarSize, view2.getScrollBarSize()); in testScrollbarSize() 4171 assertEquals(customScrollbarSize, view2.getVerticalScrollbarWidth()); in testScrollbarSize() 4172 assertEquals(customScrollbarSize, view2.getHorizontalScrollbarHeight()); in testScrollbarSize() 4967 final View view2 = mActivity.findViewById(R.id.transform_matrix_view_2); in testTransformMatrixToLocal() local [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 106 View view2 = mActivity.findViewById(R.id.relative_view2); in testConstructor() local 107 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor() 108 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor() 109 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testConstructor() 119 ViewAsserts.assertBottomAligned(view2, view3); in testConstructor() 213 View view2 = mActivity.findViewById(R.id.relative_view22); in testStartEnd() local 214 ViewAsserts.assertLeftAligned(view1, view2); in testStartEnd() 215 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd() 216 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testStartEnd() 235 ViewAsserts.assertBottomAligned(view2, view3); in testStartEnd()
|
D | CheckedTextViewTest.java | 125 final CheckedTextView view2 = (CheckedTextView) adapter.getView(2, null, null); in testChecked() local 128 assertFalse(view2.isChecked()); in testChecked() 136 assertTrue(view2.isChecked()); in testChecked() 140 view2.setChecked(false); in testChecked() 143 assertFalse(view2.isChecked()); in testChecked()
|
D | TabWidgetTest.java | 264 View view2 = new RelativeLayout(mActivity); in testAddView() local 265 mockTabWidget.addView(view2); in testAddView() 266 assertSame(view2, mockTabWidget.getChildAt(1)); in testAddView()
|
D | LinearLayoutTest.java | 1229 assertEquals(0, mActivity.findViewById(R.id.view2).getWidth()); in testZeroWeightDistributionHorizontal() 1242 assertEquals(0, mActivity.findViewById(R.id.view2).getHeight()); in testZeroWeightDistributionVertical()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LayoutTests.java | 261 private static void assertLayoutEquals(View view1, View view2) { in assertLayoutEquals() argument 264 view2.getLocationOnScreen(locations[1]); 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()
|
D | WindowInputTests.java | 214 View view2 = new View(mActivity); in testTouchModalWindow() local 217 mActivity.addWindow(view2, p); in testTouchModalWindow()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | DuplicateIdActivityTest.java | 115 final AssistStructure.ViewNode view2 = views1[1]; in testDoNotRestoreDuplicateAutofillIds() local 117 final AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() 123 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()
|