Home
last modified time | relevance | path

Searched refs:view2 (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DViewTreeObserverTest.java75 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener() local
92 view2.requestFocus(); in testAddOnGlobalFocusChangeListener()
100 && listener.oldFocus == view1 && listener.newFocus == view2; in testAddOnGlobalFocusChangeListener()
205 final View view2 = mActivity.findViewById(R.id.view2); in testRemoveOnGlobalFocusChangeListener() local
221 view2.requestFocus(); in testRemoveOnGlobalFocusChangeListener()
229 && listener.oldFocus == view1 && listener.newFocus == view2; in testRemoveOnGlobalFocusChangeListener()
DView_FocusHandlingTest.java39 View v2 = activity.findViewById(R.id.view2); in testFocusHandling()
64 v1.setNextFocusRightId(R.id.view2); in testFocusHandling()
74 v4.setNextFocusUpId(R.id.view2); in testFocusHandling()
77 assertEquals(R.id.view2, v1.getNextFocusRightId()); in testFocusHandling()
86 assertEquals(R.id.view2, v4.getNextFocusUpId()); in testFocusHandling()
DViewGroupTest.java1787 TemporaryDetachingMockView view2 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local
1789 vg.addView(view2); in testTemporaryDetach()
1807 assertFalse(view2.isTemporarilyDetached()); in testTemporaryDetach()
1808 assertEquals(0, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
1809 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach()
1810 assertEquals(0, view2.getOnStartTemporaryDetachCount()); in testTemporaryDetach()
1811 assertEquals(0, view2.getOnFinishTemporaryDetachCount()); in testTemporaryDetach()
1836 assertTrue(view2.isTemporarilyDetached()); in testTemporaryDetach()
1837 assertEquals(1, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach()
1838 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach()
[all …]
DViewTest.java382 final MockView view2 = (MockView) mActivity.findViewById(R.id.scroll_view); in testMouseEventCallsGetPointerIcon() local
383 assertFalse(view2.hasCalledOnResolvePointerIcon()); in testMouseEventCallsGetPointerIcon()
1870 final View view2 = mActivity.findViewById(R.id.fit_windows); in testHasWindowFocus() local
1875 return view2.hasWindowFocus(); in testHasWindowFocus()
/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayout_LayoutParamsTest.java73 View view2 = activity.findViewById(R.id.relative_view2); in testConstructor() local
74 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor()
75 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor()
76 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testConstructor()
86 ViewAsserts.assertBottomAligned(view2, view3); in testConstructor()
180 View view2 = activity.findViewById(R.id.relative_view22); in testStartEnd() local
181 ViewAsserts.assertLeftAligned(view1, view2); in testStartEnd()
182 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd()
183 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testStartEnd()
202 ViewAsserts.assertBottomAligned(view2, view3); in testStartEnd()
DCheckedTextViewTest.java106 CheckedTextView view2 = (CheckedTextView) adapter.getView(2, null, null); in testChecked() local
109 assertFalse(view2.isChecked()); in testChecked()
120 assertTrue(view2.isChecked()); in testChecked()
124 view2.setChecked(false); in testChecked()
127 assertFalse(view2.isChecked()); in testChecked()
DTabWidgetTest.java256 View view2 = new RelativeLayout(mActivity); in testAddView() local
257 mockTabWidget.addView(view2); in testAddView()
258 assertSame(view2, mockTabWidget.getChildAt(1)); in testAddView()