/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupScrollCaptureTest.java | 62 final MockViewGroup viewGroup = new MockViewGroup(context); in testSetScrollCaptureHint() local 64 assertNotNull(viewGroup); in testSetScrollCaptureHint() 66 ViewGroup.SCROLL_CAPTURE_HINT_AUTO, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 68 viewGroup.setScrollCaptureHint(View.SCROLL_CAPTURE_HINT_INCLUDE); in testSetScrollCaptureHint() 70 ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 72 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE); in testSetScrollCaptureHint() 74 ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 76 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS); in testSetScrollCaptureHint() 79 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint() 81 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE in testSetScrollCaptureHint() [all …]
|
D | ViewGroupTest.java | 50 final TestView viewGroup = new TestView(context, 0 /* left */, 0 /* top */, in testDispatchMouseEventsUnderCursor() local 57 viewGroup.addView(viewA); in testDispatchMouseEventsUnderCursor() 58 viewGroup.addView(viewB); in testDispatchMouseEventsUnderCursor() 87 viewGroup.dispatchTouchEvent(event); in testDispatchMouseEventsUnderCursor() 95 viewGroup.dispatchTouchEvent(event); in testDispatchMouseEventsUnderCursor()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarContainerTest.java | 41 TestViewGroup viewGroup = new TestViewGroup(mContext); in testPrimaryActionModesAreStopped() local 42 viewGroup.addView(mActionBarContainer); in testPrimaryActionModesAreStopped() 49 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); in testPrimaryActionModesAreStopped() 50 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); in testPrimaryActionModesAreStopped() 56 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); in testPrimaryActionModesAreStopped() 57 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); in testPrimaryActionModesAreStopped() 61 TestViewGroup viewGroup = new TestViewGroup(mContext); in testFloatingActionModesAreBubbledUp() local 62 viewGroup.addView(mActionBarContainer); in testFloatingActionModesAreBubbledUp() 67 assertTrue(viewGroup.isStartActionModeForChildTypedCalled); in testFloatingActionModesAreBubbledUp()
|
/frameworks/base/core/java/android/view/ |
D | GhostView.java | 99 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { in addGhost() argument 103 ViewGroupOverlay overlay = viewGroup.getOverlay(); in addGhost() 119 calculateMatrix(view, viewGroup, matrix); in addGhost() 125 copySize(viewGroup, parent); in addGhost() 126 copySize(viewGroup, ghostView); in addGhost() 140 public static GhostView addGhost(View view, ViewGroup viewGroup) { in addGhost() argument 141 return addGhost(view, viewGroup, null); in addGhost() 174 private static int moveGhostViewsToTop(ViewGroup viewGroup, ArrayList<View> tempViews) { in moveGhostViewsToTop() argument 175 final int numChildren = viewGroup.getChildCount(); in moveGhostViewsToTop() 178 } else if (isGhostWrapper(viewGroup.getChildAt(numChildren - 1))) { in moveGhostViewsToTop() [all …]
|
D | LayoutInflater.java | 1122 final ViewGroup viewGroup = (ViewGroup) parent; in rInflate() local 1123 final ViewGroup.LayoutParams params = viewGroup.generateLayoutParams(attrs); in rInflate() 1125 viewGroup.addView(view, params); in rInflate()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | LayoutPerfTest.java | 93 ViewGroup viewGroup = (ViewGroup) activity.findViewById(mViewId); in testLayoutPerf() local 95 List<View> allNodes = gatherViewTree(viewGroup); in testLayoutPerf() 104 viewGroup.measure(mMeasureSpecs[i % length], mMeasureSpecs[i % length]); in testLayoutPerf() 105 … viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight()); in testLayoutPerf()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvArrayAdapter.java | 46 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { in onCreateViewHolder() argument 48 mLayoutInflater = LayoutInflater.from(viewGroup.getContext()); in onCreateViewHolder() 50 View v = mLayoutInflater.inflate(android.R.layout.simple_list_item_1, viewGroup, false); in onCreateViewHolder()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | FloatingToolbarEspressoUtils.java | 164 ViewGroup viewGroup = (ViewGroup) view; in assertFloatingToolbarItemIndex() 165 for (int i = 0; i < viewGroup.getChildCount(); i++) { in assertFloatingToolbarItemIndex() 166 collectMenuItemIds(viewGroup.getChildAt(i)); in assertFloatingToolbarItemIndex() 214 ViewGroup viewGroup = (ViewGroup) view; in assertFloatingToolbarMenuItem() 215 for (int i = 0; i < viewGroup.getChildCount(); i++) { in assertFloatingToolbarMenuItem() 216 if (containsItem(viewGroup.getChildAt(i))) { in assertFloatingToolbarMenuItem()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapperTest.java | 62 LinearLayout viewGroup = new LinearLayout(mContext); in childrenNeedInversion_doesntCrash_whenOpacity() local 65 viewGroup.addView(textView); in childrenNeedInversion_doesntCrash_whenOpacity() 67 mNotificationViewWrapper.childrenNeedInversion(0xcc000000, viewGroup); in childrenNeedInversion_doesntCrash_whenOpacity()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | StateListAnimatorTest.java | 71 ViewGroup viewGroup = activity.findViewById(android.R.id.content); in testAttachDetach() local 73 viewGroup.addView(view); in testAttachDetach() 85 viewGroup.removeView(view); in testAttachDetach()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/ |
D | ButtonRoleHolderController.java | 84 ViewGroup viewGroup = (ViewGroup) v; in addAllButtonsWithRoleName() local 85 for (int i = 0; i < viewGroup.getChildCount(); i++) { in addAllButtonsWithRoleName() 86 addAllButtonsWithRoleName(viewGroup.getChildAt(i)); in addAllButtonsWithRoleName()
|
D | ButtonSelectionStateController.java | 74 ViewGroup viewGroup = (ViewGroup) v; in addAllButtonsWithSelectionState() local 75 for (int i = 0; i < viewGroup.getChildCount(); i++) { in addAllButtonsWithSelectionState() 76 addAllButtonsWithSelectionState(viewGroup.getChildAt(i)); in addAllButtonsWithSelectionState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 166 boolean childrenNeedInversion(@ColorInt int parentBackground, ViewGroup viewGroup) { in childrenNeedInversion() argument 167 if (viewGroup == null) { in childrenNeedInversion() 171 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion() 176 for (int i = 0; i < viewGroup.getChildCount(); i++) { in childrenNeedInversion() 177 View child = viewGroup.getChildAt(i); in childrenNeedInversion()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogImplTest.java | 97 ViewGroup viewGroup = (ViewGroup) view; in navigateViews() local 98 for (int i = 0; i < viewGroup.getChildCount(); i++) { in navigateViews() 99 navigateViews(viewGroup.getChildAt(i), condition); in navigateViews()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/hvac/ |
D | HvacController.java | 194 ViewGroup viewGroup = (ViewGroup) v; in addTemperatureViewToController() local 195 for (int i = 0; i < viewGroup.getChildCount(); i++) { in addTemperatureViewToController() 196 addTemperatureViewToController(viewGroup.getChildAt(i)); in addTemperatureViewToController()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderSessionImpl.java | 940 private List<ViewInfo> visitAllChildren(ViewGroup viewGroup, int hOffset, int vOffset, in visitAllChildren() argument 942 if (viewGroup == null) { in visitAllChildren() 947 vOffset += viewGroup.getTop(); in visitAllChildren() 948 hOffset += viewGroup.getLeft(); in visitAllChildren() 951 int childCount = viewGroup.getChildCount(); in visitAllChildren() 952 if (viewGroup == mContentRoot) { in visitAllChildren() 957 visitContentRoot(viewGroup.getChildAt(i), hOffset, vOffset, in visitAllChildren() 967 children.add(visit(viewGroup.getChildAt(i), hOffset, vOffset, setExtendedInfo, in visitAllChildren()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/animation/ |
D | PhysicsAnimatorTest.kt | 43 private lateinit var viewGroup: ViewGroup in <lambda>() variable in com.android.systemui.util.animation.PhysicsAnimatorTest 67 viewGroup = FrameLayout(context) in <lambda>() 70 viewGroup.addView(testView) in <lambda>() 71 viewGroup.addView(testView2) in <lambda>()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 811 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument 812 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot() 817 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot() 818 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | HeaderRecyclerViewTest.java | 149 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in onCreateViewHolder() argument
|
D | DividerItemDecorationTest.java | 160 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in drawDecoration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarInflaterView.java | 445 final ViewGroup viewGroup = (ViewGroup)v; in addToDispatchers() local 446 final int N = viewGroup.getChildCount(); in addToDispatchers() 448 addToDispatchers(viewGroup.getChildAt(i)); in addToDispatchers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImpl.kt | 207 val viewGroup = parent.requireViewById(R.id.controls_no_favorites_group) as ViewGroup in <lambda>() constant 208 viewGroup.setOnClickListener { v: View -> startProviderSelectorActivity(v.context) } in <lambda>() 215 val imageView = inflater.inflate(R.layout.controls_icon, viewGroup, false) as ImageView in <lambda>()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ConversationLayout.java | 1201 ViewGroup viewGroup = (ViewGroup) mAppOps.getParent(); in onLayout() local 1202 while (viewGroup != this) { in onLayout() 1203 mAppOpsTouchRect.offset(viewGroup.getLeft(), viewGroup.getTop()); in onLayout() 1204 viewGroup = (ViewGroup) viewGroup.getParent(); in onLayout()
|
/frameworks/base/core/java/android/app/ |
D | FragmentTransition.java | 970 ViewGroup viewGroup = (ViewGroup) view; in bfsAddViewChildren() local 971 final int childCount = viewGroup.getChildCount(); in bfsAddViewChildren() 973 final View child = viewGroup.getChildAt(childIndex); in bfsAddViewChildren()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViews.java | 1752 private void removeAllViewsExceptIdToKeep(ViewGroup viewGroup) { 1754 int index = viewGroup.getChildCount() - 1; 1756 if (viewGroup.getChildAt(index).getId() != mViewIdToKeep) { 1757 viewGroup.removeViewAt(index); 2162 ViewGroup viewGroup = (ViewGroup) v; 2163 for (int i = 0; i < viewGroup.getChildCount(); i++) { 2164 viewsToProcess.push(viewGroup.getChildAt(i));
|