/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroup_ScrollCaptureTest.java | 88 final MockViewGroup viewGroup = new MockViewGroup(context); in testSetScrollCaptureHint() local 90 assertNotNull(viewGroup); in testSetScrollCaptureHint() 92 ViewGroup.SCROLL_CAPTURE_HINT_AUTO, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 94 viewGroup.setScrollCaptureHint(View.SCROLL_CAPTURE_HINT_INCLUDE); in testSetScrollCaptureHint() 96 ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 98 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE); in testSetScrollCaptureHint() 100 ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 102 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS); in testSetScrollCaptureHint() 105 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 107 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE in testSetScrollCaptureHint() [all …]
|
D | ViewPaddingTest.java | 51 LinearLayout viewGroup = (LinearLayout) in testPadding() local 54 viewGroup.measure(measureSpec, measureSpec); in testPadding() 55 viewGroup.layout(0, 0, 1000, 1000); in testPadding() 57 View view1 = viewGroup.findViewById(R.id.view1); in testPadding() 58 View view2 = viewGroup.findViewById(R.id.view2); in testPadding() 59 View view3 = viewGroup.findViewById(R.id.view3); in testPadding() 60 View view4 = viewGroup.findViewById(R.id.view4); in testPadding() 61 View view5 = viewGroup.findViewById(R.id.view5); in testPadding() 62 View view6 = viewGroup.findViewById(R.id.view6); in testPadding() 63 View view7 = viewGroup.findViewById(R.id.view7); in testPadding() [all …]
|
D | ViewGroup_MarginLayoutParamsTest.java | 229 LinearLayout viewGroup = (LinearLayout) in testVerticalHorizontalMargins() local 232 viewGroup.measure(measureSpec, measureSpec); in testVerticalHorizontalMargins() 233 viewGroup.layout(0, 0, 1000, 1000); in testVerticalHorizontalMargins() 235 View view1 = viewGroup.findViewById(R.id.view1); in testVerticalHorizontalMargins() 236 View view2 = viewGroup.findViewById(R.id.view2); in testVerticalHorizontalMargins() 237 View view3 = viewGroup.findViewById(R.id.view3); in testVerticalHorizontalMargins() 238 View view4 = viewGroup.findViewById(R.id.view4); in testVerticalHorizontalMargins() 239 View view5 = viewGroup.findViewById(R.id.view5); in testVerticalHorizontalMargins() 240 View view6 = viewGroup.findViewById(R.id.view6); in testVerticalHorizontalMargins() 241 View view7 = viewGroup.findViewById(R.id.view7); in testVerticalHorizontalMargins()
|
D | ViewGroupTest.java | 1041 final ScrollTestView viewGroup = spy(new ScrollTestView(mContext)); in onInterceptHoverEvent_scrollabilityAffectsResult() local 1042 viewGroup.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT); in onInterceptHoverEvent_scrollabilityAffectsResult() 1043 viewGroup.setHorizontalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult() 1044 viewGroup.setVerticalScrollBarEnabled(true); in onInterceptHoverEvent_scrollabilityAffectsResult() 1045 viewGroup.setScrollBarSize(10); in onInterceptHoverEvent_scrollabilityAffectsResult() 1046 viewGroup.layout(0, 0, 100, 100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1048 when(viewGroup.computeVerticalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1049 when(viewGroup.computeVerticalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult() 1050 when(viewGroup.computeHorizontalScrollExtent()).thenReturn(100); in onInterceptHoverEvent_scrollabilityAffectsResult() 1051 when(viewGroup.computeHorizontalScrollRange()).thenReturn(range); in onInterceptHoverEvent_scrollabilityAffectsResult() [all …]
|
D | ViewTest.java | 726 ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.viewlayout_root); in testAccessTag() local 734 viewGroup.setTag(viewData); in testAccessTag() 735 viewGroup.setFocusable(true); in testAccessTag() 736 assertSame(viewData, viewGroup.getTag()); in testAccessTag() 743 scrollView.setTag(viewGroup); in testAccessTag() 744 assertSame(viewGroup, scrollView.getTag()); in testAccessTag() 746 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); in testAccessTag() 747 assertSame(mockView, viewGroup.findViewWithTag(tag)); in testAccessTag() 748 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag() 756 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 | 596 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument 597 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot() 602 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot() 603 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot() 644 ActivityTestRule<?> activityTestRule, ViewGroup viewGroup) throws Throwable { in emulateScrollToBottom() argument 646 viewGroup.getLocationOnScreen(viewGroupOnScreenXY); in emulateScrollToBottom() 648 final int emulatedX = viewGroupOnScreenXY[0] + viewGroup.getWidth() / 2; in emulateScrollToBottom() 649 final int emulatedStartY = viewGroupOnScreenXY[1] + 3 * viewGroup.getHeight() / 4; in emulateScrollToBottom() 650 final int swipeAmount = viewGroup.getHeight() / 2; in emulateScrollToBottom() 653 ViewStateSnapshot next = new ViewStateSnapshot(viewGroup); in emulateScrollToBottom() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 112 final ViewGroup viewGroup = (ViewGroup) node; in setPackageNameInjector() local 113 final int childCount = viewGroup.getChildCount(); in setPackageNameInjector() 115 setPackageNameInjector(viewGroup.getChildAt(i), injector); in setPackageNameInjector()
|
/cts/tests/tests/widget/src/android/widget/cts/inline/ |
D | InlineContentViewTest.java | 143 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.inlinecontentview); in attachInlineContentView() local 146 () -> viewGroup.addView(mInlineContentView, new ViewGroup.LayoutParams( in attachInlineContentView()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SearchView_CursorTest.java | 112 private AutoCompleteTextView findAutoCompleteTextView(final ViewGroup viewGroup) { in findAutoCompleteTextView() argument 113 final int count = viewGroup.getChildCount(); in findAutoCompleteTextView() 115 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 | 634 private void verifyBounds(final ViewGroup viewGroup, final View view, in verifyBounds() argument 637 viewGroup.getViewTreeObserver().addOnPreDrawListener( in verifyBounds() 646 viewGroup.getViewTreeObserver().removeOnPreDrawListener(this); in verifyBounds() 671 final ViewGroup viewGroup = (ViewGroup) mActivity.findViewById(R.id.linearlayout_root); in testVisibilityAffectsLayout() local 675 viewGroup.removeAllViews(); in testVisibilityAffectsLayout() 676 viewGroup.addView(parent); in testVisibilityAffectsLayout() 679 verifyBounds(viewGroup, child1, countDownLatch1, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout() 680 verifyBounds(viewGroup, child2, countDownLatch1, in testVisibilityAffectsLayout() 692 verifyBounds(viewGroup, child2, countDownLatch2, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout() 703 verifyBounds(viewGroup, child1, countDownLatch3, 0, 0, childWidth, childHeight); in testVisibilityAffectsLayout() [all …]
|
D | EditTextTest.java | 874 ViewGroup viewGroup = (ViewGroup) editText.getParent(); in testCursorSuspendBlinking_ViewDynamicallyRemoved() local 875 viewGroup.removeView(editText); in testCursorSuspendBlinking_ViewDynamicallyRemoved() 892 ViewGroup viewGroup = (ViewGroup) editText.getParent(); in testCursorBlinking_ViewDynamically_RemovedAdded_NeverHadFocus() local 893 viewGroup.removeView(editText); in testCursorBlinking_ViewDynamically_RemovedAdded_NeverHadFocus() 926 ViewGroup viewGroup = (ViewGroup) editText.getParent(); in testCursorResumeBlinking_AfterFocusedView_DynamicallyRemovedAdded() local 927 viewGroup.removeView(editText); in testCursorResumeBlinking_AfterFocusedView_DynamicallyRemovedAdded()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | CollectionAppWidgetTest.java | 414 ViewGroup viewGroup = (ViewGroup) view; in findFirstMatchingView() local 415 for (int i = 0; i < viewGroup.getChildCount(); i++) { in findFirstMatchingView() 416 View result = findFirstMatchingView(viewGroup.getChildAt(i), predicate); in findFirstMatchingView()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 232 ViewGroup viewGroup, in clickButton() 242 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/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 253 ViewGroup viewGroup = (ViewGroup) view; in setButtonsEnabled() local 254 for (int i = 0; i < viewGroup.getChildCount(); i++) { in setButtonsEnabled() 255 View child = viewGroup.getChildAt(i); in setButtonsEnabled()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | SearchViewTest.java | 244 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()
|