/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_ScrollCaptureTest.java | 86 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 …]
|
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 | 1033 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 …]
|
D | ViewTest.java | 715 ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testAccessTag() local 723 viewGroup.setTag(viewData); in testAccessTag() 724 viewGroup.setFocusable(true); in testAccessTag() 725 assertSame(viewData, viewGroup.getTag()); in testAccessTag() 732 scrollView.setTag(viewGroup); in testAccessTag() 733 assertSame(viewGroup, scrollView.getTag()); in testAccessTag() 735 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); in testAccessTag() 736 assertSame(mockView, viewGroup.findViewWithTag(tag)); in testAccessTag() 737 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag() 745 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 | 638 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument 639 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot() 644 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot() 645 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot() 686 ActivityTestRule<?> activityTestRule, ViewGroup viewGroup) throws Throwable { in emulateScrollToBottom() argument 688 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom() 690 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom() 691 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom() 692 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom() 695 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/inline/ |
D | InlineContentViewTest.java | 135 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/ |
D | SearchView_CursorTest.java | 105 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()
|
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 | LayoutAnimationTest.java | 223 ViewGroup viewGroup, in clickButton() 233 ViewGroup viewGroup, in clickButton()
|
D | AnimationActivity.java | 77 ViewGroup viewGroup = (ViewGroup) findViewById(R.id.container); in onCreate() local 78 viewGroup.addView(view); in onCreate()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | CollectionAppWidgetTest.java | 413 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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 215 ViewGroup viewGroup = (ViewGroup) view; in setButtonsEnabled() local 216 for (int i = 0; i < viewGroup.getChildCount(); i++) { in setButtonsEnabled() 217 View child = viewGroup.getChildAt(i); in setButtonsEnabled()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | SearchViewTest.java | 234 public View getView(int i, View view, ViewGroup viewGroup) { in getView() argument
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 513 public long getStartDelay(ViewGroup viewGroup, Transition transition, in testPropagation()
|