/cts/tests/tests/view/src/android/view/cts/ |
D | ViewPaddingTest.java | 49 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 …]
|
D | ViewGroup_MarginLayoutParamsTest.java | 227 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()
|
D | ViewGroupTest.java | 1029 final ScrollTestView viewGroup = spy(new ScrollTestView(mContext)); in onInterceptHoverEvent_scrollabilityAffectsResult() local 1030 viewGroup.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT); in onInterceptHoverEvent_scrollabilityAffectsResult() 1031 viewGroup.setHorizontalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult() 1032 viewGroup.setVerticalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult() 1033 viewGroup.setScrollBarSize(10); in onInterceptHoverEvent_scrollabilityAffectsResult() 1034 viewGroup.layout(0, 0, 100, 100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1036 when(viewGroup.computeVerticalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1037 when(viewGroup.computeVerticalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult() 1038 when(viewGroup.computeHorizontalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1039 when(viewGroup.computeHorizontalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult() [all …]
|
D | ViewTest.java | 707 ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testAccessTag() local 715 viewGroup.setTag(viewData); in testAccessTag() 716 viewGroup.setFocusable(true); in testAccessTag() 717 assertSame(viewData, viewGroup.getTag()); in testAccessTag() 724 scrollView.setTag(viewGroup); in testAccessTag() 725 assertSame(viewGroup, scrollView.getTag()); in testAccessTag() 727 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); in testAccessTag() 728 assertSame(mockView, viewGroup.findViewWithTag(tag)); in testAccessTag() 729 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag() 737 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testOnSizeChanged() local [all …]
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | IconHeaderItemPresenter.java | 37 public ViewHolder onCreateViewHolder(ViewGroup viewGroup) { in onCreateViewHolder() argument 38 mUnselectedAlpha = viewGroup.getResources() in onCreateViewHolder() 40 LayoutInflater inflater = (LayoutInflater) viewGroup.getContext() in onCreateViewHolder()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 445 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument 446 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot() 451 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot() 452 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot() 493 ActivityTestRule<?> activityTestRule, ViewGroup viewGroup) { in emulateScrollToBottom() argument 495 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom() 497 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom() 498 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom() 499 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom() 502 ViewStateSnapshot next = new ViewStateSnapshot(viewGroup); in emulateScrollToBottom() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 444 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument 445 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot() 450 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot() 451 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot() 492 ActivityTestRule<?> activityTestRule, ViewGroup viewGroup) { in emulateScrollToBottom() argument 494 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom() 496 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom() 497 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom() 498 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom() 501 ViewStateSnapshot next = new ViewStateSnapshot(viewGroup); in emulateScrollToBottom() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 111 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/ |
D | SearchView_CursorTest.java | 102 private AutoCompleteTextView findAutoCompleteTextView(final ViewGroup viewGroup) { in findAutoCompleteTextView() argument 103 final int count = viewGroup.getChildCount(); in findAutoCompleteTextView() 105 final View view = viewGroup.getChildAt(index); in findAutoCompleteTextView()
|
D | SimpleCursorAdapterTest.java | 359 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()
|
D | LinearLayoutTest.java | 625 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/ |
D | AnimationActivity.java | 77 ViewGroup viewGroup = (ViewGroup) findViewById(R.id.container); in onCreate() local 78 viewGroup.addView(view); in onCreate()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 513 public long getStartDelay(ViewGroup viewGroup, Transition transition, in testPropagation()
|