Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DViewPaddingTest.java48 LinearLayout viewGroup = (LinearLayout) in testPadding() local
51 viewGroup.measure(measureSpec, measureSpec); in testPadding()
52 viewGroup.layout(0, 0, 1000, 1000); in testPadding()
54 View view1 = viewGroup.findViewById(R.id.view1); in testPadding()
55 View view2 = viewGroup.findViewById(R.id.view2); in testPadding()
56 View view3 = viewGroup.findViewById(R.id.view3); in testPadding()
57 View view4 = viewGroup.findViewById(R.id.view4); in testPadding()
58 View view5 = viewGroup.findViewById(R.id.view5); in testPadding()
59 View view6 = viewGroup.findViewById(R.id.view6); in testPadding()
60 View view7 = viewGroup.findViewById(R.id.view7); in testPadding()
[all …]
DViewGroup_MarginLayoutParamsTest.java226 LinearLayout viewGroup = (LinearLayout) in testVerticalHorizontalMargins() local
229 viewGroup.measure(measureSpec, measureSpec); in testVerticalHorizontalMargins()
230 viewGroup.layout(0, 0, 1000, 1000); in testVerticalHorizontalMargins()
232 View view1 = viewGroup.findViewById(R.id.view1); in testVerticalHorizontalMargins()
233 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins()
234 View view3 = viewGroup.findViewById(R.id.view3); in testVerticalHorizontalMargins()
235 View view4 = viewGroup.findViewById(R.id.view4); in testVerticalHorizontalMargins()
236 View view5 = viewGroup.findViewById(R.id.view5); in testVerticalHorizontalMargins()
237 View view6 = viewGroup.findViewById(R.id.view6); in testVerticalHorizontalMargins()
238 View view7 = viewGroup.findViewById(R.id.view7); in testVerticalHorizontalMargins()
DViewTest.java513 ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testAccessTag() local
521 viewGroup.setTag(viewData); in testAccessTag()
522 viewGroup.setFocusable(true); in testAccessTag()
523 assertSame(viewData, viewGroup.getTag()); in testAccessTag()
530 scrollView.setTag(viewGroup); in testAccessTag()
531 assertSame(viewGroup, scrollView.getTag()); in testAccessTag()
533 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); in testAccessTag()
534 assertSame(mockView, viewGroup.findViewWithTag(tag)); in testAccessTag()
535 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag()
543 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testOnSizeChanged() local
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java334 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument
335 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot()
340 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot()
341 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot()
381 public static void emulateScrollToBottom(Instrumentation instrumentation, ViewGroup viewGroup) { in emulateScrollToBottom() argument
383 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom()
385 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom()
386 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom()
387 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom()
390 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/tests/widget/src/android/widget/cts/
DSearchView_CursorTest.java101 private AutoCompleteTextView findAutoCompleteTextView(final ViewGroup viewGroup) { in findAutoCompleteTextView() argument
102 final int count = viewGroup.getChildCount(); in findAutoCompleteTextView()
104 final View view = viewGroup.getChildAt(index); in findAutoCompleteTextView()
DSimpleCursorAdapterTest.java358 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( in testNewView() local
360 View result = simpleCursorAdapter.newView(mContext, null, viewGroup); in testNewView()
375 ViewGroup viewGroup = (ViewGroup) layoutInflater.inflate( in testNewDropDownView() local
377 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/animation/src/android/animation/cts/
DAnimationActivity.java77 ViewGroup viewGroup = (ViewGroup) findViewById(R.id.container); in onCreate() local
78 viewGroup.addView(view); in onCreate()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java476 public long getStartDelay(ViewGroup viewGroup, Transition transition, in testPropagation()