/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 | 57 View view2 = activity.findViewById(R.id.view2); in testGetSourceLayout() local 58 assertEquals(R.layout.view_source_layout_test_include_layout, view2.getSourceLayoutResId()); in testGetSourceLayout()
|
D | ViewTreeObserverTest.java | 101 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener() local 110 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener() 112 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener() 246 final View view2 = mActivity.findViewById(R.id.view2); in testRemoveOnGlobalFocusChangeListener() local 254 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener() 256 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
|
D | ViewGroup_ScrollCaptureTest.java | 250 final MockView view2 = new MockView(context, 0, 25, 150, 100); in testDispatchScrollCaptureSearch_toChildren() local 251 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren() 286 view2.assertDispatchScrollCaptureSearchCount(1); in testDispatchScrollCaptureSearch_toChildren() 287 view2.assertDispatchScrollCaptureSearchLastArgs( in testDispatchScrollCaptureSearch_toChildren() 346 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local 347 parent.addView(view2); in testOnScrollCaptureSearch_withPadding() 366 view2.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
|
D | ViewPaddingTest.java | 58 View view2 = viewGroup.findViewById(R.id.view2); in testPadding() local 83 checkBounds(view2, defaultBounds, insetAll, insetAll, insetAll, insetAll); in testPadding()
|
D | ViewAttributeTest.java | 97 View view2 = rootView.findViewById(R.id.view2); in testGetExplicitStyle() local 98 assertEquals(R.style.ExplicitStyle2, view2.getExplicitStyle()); in testGetExplicitStyle()
|
D | ViewGroup_MarginLayoutParamsTest.java | 236 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins() local 252 checkBounds(view2, defaultBounds, marginHorizontal, 0, marginHorizontal, 0); in testVerticalHorizontalMargins()
|
D | ViewGroupTest.java | 2497 TemporaryDetachingMockView view2 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local 2499 vg.addView(view2); in testTemporaryDetach() 2517 assertFalse(view2.isTemporarilyDetached()); in testTemporaryDetach() 2518 assertEquals(0, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2519 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() 2520 assertEquals(0, view2.getOnStartTemporaryDetachCount()); in testTemporaryDetach() 2521 assertEquals(0, view2.getOnFinishTemporaryDetachCount()); in testTemporaryDetach() 2546 assertTrue(view2.isTemporarilyDetached()); in testTemporaryDetach() 2547 assertEquals(1, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2548 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() [all …]
|
D | View_FocusHandlingTest.java | 70 View v2 = activity.findViewById(R.id.view2); in testFocusHandling() 95 v1.setNextFocusRightId(R.id.view2); in testFocusHandling() 105 v4.setNextFocusUpId(R.id.view2); in testFocusHandling() 108 assertEquals(R.id.view2, v1.getNextFocusRightId()); in testFocusHandling() 117 assertEquals(R.id.view2, v4.getNextFocusUpId()); in testFocusHandling() 260 View v2 = activity.findViewById(R.id.view2); in testEnabledHandling()
|
D | ViewTest.java | 527 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view); in testMouseEventCallsGetPointerIcon() local 528 assertFalse(view2.hasCalledOnResolvePointerIcon()); in testMouseEventCallsGetPointerIcon() 2327 final View view2 = mActivity.findViewById(R.id.fit_windows); in testHasWindowFocus() local 2329 PollingCheck.waitFor(TIMEOUT_DELTA, view2::hasWindowFocus); in testHasWindowFocus() 4311 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view_2); in testScrollbarSize() local 4312 view2.setScrollBarSize(customScrollbarSize); in testScrollbarSize() 4313 assertEquals(customScrollbarSize, view2.getScrollBarSize()); in testScrollbarSize() 4314 assertEquals(customScrollbarSize, view2.getVerticalScrollbarWidth()); in testScrollbarSize() 4315 assertEquals(customScrollbarSize, view2.getHorizontalScrollbarHeight()); in testScrollbarSize() 5233 final View view2 = mActivity.findViewById(R.id.transform_matrix_view_2); in testTransformMatrixToLocal() local [all …]
|
/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 301 view2.getLocationOnScreen(locations[1]); 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/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 115 View view2 = mActivity.findViewById(R.id.relative_view2); in testConstructor() local 116 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor() 117 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor() 118 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testConstructor() 128 ViewAsserts.assertBottomAligned(view2, view3); in testConstructor() 222 View view2 = mActivity.findViewById(R.id.relative_view22); in testStartEnd() local 223 ViewAsserts.assertLeftAligned(view1, view2); in testStartEnd() 224 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd() 225 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testStartEnd() 244 ViewAsserts.assertBottomAligned(view2, view3); in testStartEnd()
|
D | CheckedTextViewTest.java | 133 final CheckedTextView view2 = (CheckedTextView) adapter.getView(2, null, null); in testChecked() local 136 assertFalse(view2.isChecked()); in testChecked() 144 assertTrue(view2.isChecked()); in testChecked() 149 view2.setChecked(false); in testChecked() 153 assertFalse(view2.isChecked()); in testChecked()
|
D | TabWidgetTest.java | 272 View view2 = new RelativeLayout(mActivity); in testAddView() local 273 mockTabWidget.addView(view2); in testAddView() 274 assertSame(view2, mockTabWidget.getChildAt(1)); in testAddView()
|
D | LinearLayoutTest.java | 1272 assertEquals(0, mActivity.findViewById(R.id.view2).getWidth()); in testZeroWeightDistributionHorizontal() 1285 assertEquals(0, mActivity.findViewById(R.id.view2).getHeight()); in testZeroWeightDistributionVertical()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | DuplicateIdActivityTest.java | 133 final AssistStructure.ViewNode view2 = views1[1]; in testDoNotRestoreDuplicateAutofillIds() local 135 final AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() 141 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 222 final TextView view2 = new Button(activity) { in testSwitchingBetweenEquivalentNonEditableViews() 229 view2.setText("View 2"); in testSwitchingBetweenEquivalentNonEditableViews() 230 layout.addView(view2); in testSwitchingBetweenEquivalentNonEditableViews() 231 view2.setFocusableInTouchMode(true); in testSwitchingBetweenEquivalentNonEditableViews() 232 viewRef2.set(view2); in testSwitchingBetweenEquivalentNonEditableViews()
|