/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTreeObserverTest.java | 86 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener() local 95 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener() 97 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener() 216 final View view2 = mActivity.findViewById(R.id.view2); in testRemoveOnGlobalFocusChangeListener() local 224 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener() 226 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
|
D | ViewPaddingTest.java | 55 View view2 = viewGroup.findViewById(R.id.view2); in testPadding() local 80 checkBounds(view2, defaultBounds, insetAll, insetAll, insetAll, insetAll); in testPadding()
|
D | ViewGroup_MarginLayoutParamsTest.java | 233 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins() local 249 checkBounds(view2, defaultBounds, marginHorizontal, 0, marginHorizontal, 0); in testVerticalHorizontalMargins()
|
D | ViewGroupTest.java | 2313 TemporaryDetachingMockView view2 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local 2315 vg.addView(view2); in testTemporaryDetach() 2333 assertFalse(view2.isTemporarilyDetached()); in testTemporaryDetach() 2334 assertEquals(0, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2335 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() 2336 assertEquals(0, view2.getOnStartTemporaryDetachCount()); in testTemporaryDetach() 2337 assertEquals(0, view2.getOnFinishTemporaryDetachCount()); in testTemporaryDetach() 2362 assertTrue(view2.isTemporarilyDetached()); in testTemporaryDetach() 2363 assertEquals(1, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2364 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() [all …]
|
D | View_FocusHandlingTest.java | 58 View v2 = activity.findViewById(R.id.view2); in testFocusHandling() 83 v1.setNextFocusRightId(R.id.view2); in testFocusHandling() 93 v4.setNextFocusUpId(R.id.view2); in testFocusHandling() 96 assertEquals(R.id.view2, v1.getNextFocusRightId()); in testFocusHandling() 105 assertEquals(R.id.view2, v4.getNextFocusUpId()); in testFocusHandling() 248 View v2 = activity.findViewById(R.id.view2); in testEnabledHandling()
|
D | ViewTest.java | 442 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view); in testMouseEventCallsGetPointerIcon() local 443 assertFalse(view2.hasCalledOnResolvePointerIcon()); in testMouseEventCallsGetPointerIcon() 2033 final View view2 = mActivity.findViewById(R.id.fit_windows); in testHasWindowFocus() local 2035 PollingCheck.waitFor(TIMEOUT_DELTA, view2::hasWindowFocus); in testHasWindowFocus() 3848 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view_2); in testScrollbarSize() local 3849 view2.setScrollBarSize(customScrollbarSize); in testScrollbarSize() 3850 assertEquals(customScrollbarSize, view2.getScrollBarSize()); in testScrollbarSize() 3851 assertEquals(customScrollbarSize, view2.getVerticalScrollbarWidth()); in testScrollbarSize() 3852 assertEquals(customScrollbarSize, view2.getHorizontalScrollbarHeight()); in testScrollbarSize()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | DuplicateIdActivityTest.java | 96 AssistStructure.ViewNode view2 = views[1]; in testDoNotRestoreDuplicateAutofillIds() local 98 AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds() 104 assertThat(view1.getId()).isEqualTo(view2.getId()); in testDoNotRestoreDuplicateAutofillIds()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 105 View view2 = mActivity.findViewById(R.id.relative_view2); in testConstructor() local 106 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor() 107 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor() 108 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testConstructor() 118 ViewAsserts.assertBottomAligned(view2, view3); in testConstructor() 212 View view2 = mActivity.findViewById(R.id.relative_view22); in testStartEnd() local 213 ViewAsserts.assertLeftAligned(view1, view2); in testStartEnd() 214 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd() 215 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testStartEnd() 234 ViewAsserts.assertBottomAligned(view2, view3); in testStartEnd()
|
D | CheckedTextViewTest.java | 124 final CheckedTextView view2 = (CheckedTextView) adapter.getView(2, null, null); in testChecked() local 127 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 | 265 View view2 = new RelativeLayout(mActivity); in testAddView() local 266 mockTabWidget.addView(view2); in testAddView() 267 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()
|