Home
last modified time | relevance | path

Searched refs:viewGroup (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DViewGroup_ScrollCaptureTest.java86 final MockViewGroup viewGroup = new MockViewGroup(context); in testSetScrollCaptureHint() local
88 assertNotNull(viewGroup); in testSetScrollCaptureHint()
90 ViewGroup.SCROLL_CAPTURE_HINT_AUTO, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
92 viewGroup.setScrollCaptureHint(View.SCROLL_CAPTURE_HINT_INCLUDE); in testSetScrollCaptureHint()
94 ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
96 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE); in testSetScrollCaptureHint()
98 ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
100 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS); in testSetScrollCaptureHint()
103 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
105 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE in testSetScrollCaptureHint()
[all …]
DViewPaddingTest.java49 LinearLayout viewGroup = (LinearLayout) in testPadding() local
52 viewGroup.measure(measureSpec, measureSpec); in testPadding()
53 viewGroup.layout(0, 0, 1000, 1000); in testPadding()
55 View view1 = viewGroup.findViewById(R.id.view1); in testPadding()
56 View view2 = viewGroup.findViewById(R.id.view2); in testPadding()
57 View view3 = viewGroup.findViewById(R.id.view3); in testPadding()
58 View view4 = viewGroup.findViewById(R.id.view4); in testPadding()
59 View view5 = viewGroup.findViewById(R.id.view5); in testPadding()
60 View view6 = viewGroup.findViewById(R.id.view6); in testPadding()
61 View view7 = viewGroup.findViewById(R.id.view7); in testPadding()
[all …]
DViewGroup_MarginLayoutParamsTest.java227 LinearLayout viewGroup = (LinearLayout) in testVerticalHorizontalMargins() local
230 viewGroup.measure(measureSpec, measureSpec); in testVerticalHorizontalMargins()
231 viewGroup.layout(0, 0, 1000, 1000); in testVerticalHorizontalMargins()
233 View view1 = viewGroup.findViewById(R.id.view1); in testVerticalHorizontalMargins()
234 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins()
235 View view3 = viewGroup.findViewById(R.id.view3); in testVerticalHorizontalMargins()
236 View view4 = viewGroup.findViewById(R.id.view4); in testVerticalHorizontalMargins()
237 View view5 = viewGroup.findViewById(R.id.view5); in testVerticalHorizontalMargins()
238 View view6 = viewGroup.findViewById(R.id.view6); in testVerticalHorizontalMargins()
239 View view7 = viewGroup.findViewById(R.id.view7); in testVerticalHorizontalMargins()
DViewGroupTest.java1033 final ScrollTestView viewGroup = spy(new ScrollTestView(mContext)); in onInterceptHoverEvent_scrollabilityAffectsResult() local
1034 viewGroup.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT); in onInterceptHoverEvent_scrollabilityAffectsResult()
1035 viewGroup.setHorizontalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult()
1036 viewGroup.setVerticalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult()
1037 viewGroup.setScrollBarSize(10); in onInterceptHoverEvent_scrollabilityAffectsResult()
1038 viewGroup.layout(0, 0, 100, 100); in onInterceptHoverEvent_scrollabilityAffectsResult()
1040 when(viewGroup.computeVerticalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult()
1041 when(viewGroup.computeVerticalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult()
1042 when(viewGroup.computeHorizontalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult()
1043 when(viewGroup.computeHorizontalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult()
[all …]
DViewTest.java711 ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testAccessTag() local
719 viewGroup.setTag(viewData); in testAccessTag()
720 viewGroup.setFocusable(true); in testAccessTag()
721 assertSame(viewData, viewGroup.getTag()); in testAccessTag()
728 scrollView.setTag(viewGroup); in testAccessTag()
729 assertSame(viewGroup, scrollView.getTag()); in testAccessTag()
731 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); in testAccessTag()
732 assertSame(mockView, viewGroup.findViewWithTag(tag)); in testAccessTag()
733 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag()
741 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testOnSizeChanged() local
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java589 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument
590 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot()
595 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot()
596 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot()
637 ActivityTestRule<?> activityTestRule, ViewGroup viewGroup) throws Throwable { in emulateScrollToBottom() argument
639 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom()
641 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom()
642 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom()
643 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom()
646 ViewStateSnapshot next = new ViewStateSnapshot(viewGroup); in emulateScrollToBottom()
[all …]
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DIconHeaderItemPresenter.java37 public ViewHolder onCreateViewHolder(ViewGroup viewGroup) { in onCreateViewHolder() argument
38 mUnselectedAlpha = viewGroup.getResources() in onCreateViewHolder()
40 LayoutInflater inflater = (LayoutInflater) viewGroup.getContext() in onCreateViewHolder()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java111 final ViewGroup viewGroup = (ViewGroup) node; in setPackageNameInjector() local
112 final int childCount = viewGroup.getChildCount(); in setPackageNameInjector()
114 setPackageNameInjector(viewGroup.getChildAt(i), injector); in setPackageNameInjector()
/cts/tests/tests/widget/src/android/widget/cts/inline/
DInlineContentViewTest.java135 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.inlinecontentview); in attachInlineContentView() local
138 () -> viewGroup.addView(mInlineContentView, new ViewGroup.LayoutParams( in attachInlineContentView()
/cts/tests/tests/widget/src/android/widget/cts/
DSearchView_CursorTest.java105 private AutoCompleteTextView findAutoCompleteTextView(final ViewGroup viewGroup) { in findAutoCompleteTextView() argument
106 final int count = viewGroup.getChildCount(); in findAutoCompleteTextView()
108 final View view = viewGroup.getChildAt(index); in findAutoCompleteTextView()
DSimpleCursorAdapterTest.java359 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( in testNewView() local
361 View result = simpleCursorAdapter.newView(mContext, null, viewGroup); in testNewView()
376 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( in testNewDropDownView() local
378 View result = simpleCursorAdapter.newDropDownView(null, null, viewGroup); in testNewDropDownView()
DLinearLayoutTest.java625 private void verifyBounds(final ViewGroup viewGroup, final View view, in verifyBounds() argument
628 viewGroup.getViewTreeObserver().addOnPreDrawListener( in verifyBounds()
637 viewGroup.getViewTreeObserver().removeOnPreDrawListener(this); in verifyBounds()
662 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.linearlayout_root); in testVisibilityAffectsLayout() local
666 viewGroup.removeAllViews(); in testVisibilityAffectsLayout()
667 viewGroup.addView(parent); in testVisibilityAffectsLayout()
670 verifyBounds(viewGroup, child1, countDownLatch1, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
671 verifyBounds(viewGroup, child2, countDownLatch1, in testVisibilityAffectsLayout()
683 verifyBounds(viewGroup, child2, countDownLatch2, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
694 verifyBounds(viewGroup, child1, countDownLatch3, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DCollectionAppWidgetTest.java413 ViewGroup viewGroup = (ViewGroup) view; in findFirstMatchingView() local
414 for (int i = 0; i < viewGroup.getChildCount(); i++) { in findFirstMatchingView()
415 View result = findFirstMatchingView(viewGroup.getChildAt(i), predicate); in findFirstMatchingView()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java223 ViewGroup viewGroup, in clickButton()
233 ViewGroup viewGroup, in clickButton()
DAnimationActivity.java77 ViewGroup viewGroup = (ViewGroup) findViewById(R.id.container); in onCreate() local
78 viewGroup.addView(view); in onCreate()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DSearchViewTest.java234 public View getView(int i, View view, ViewGroup viewGroup) { in getView() argument
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java513 public long getStartDelay(ViewGroup viewGroup, Transition transition, in testPropagation()