Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarContainerTest.java41 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/
DGhostView.java99 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 …]
DLayoutInflater.java1121 final ViewGroup viewGroup = (ViewGroup) parent; in rInflate() local
1122 final ViewGroup.LayoutParams params = viewGroup.generateLayoutParams(attrs); in rInflate()
1124 viewGroup.addView(view, params); in rInflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java146 public static void link(ViewGroup viewGroup, BaseAdapter adapter) { in link() argument
147 new ViewGroupAdapterBridge(viewGroup, adapter); in link()
150 private ViewGroupAdapterBridge(ViewGroup viewGroup, BaseAdapter adapter) { in ViewGroupAdapterBridge() argument
151 mViewGroup = new WeakReference<>(viewGroup); in ViewGroupAdapterBridge()
162 ViewGroup viewGroup = mViewGroup.get(); in refresh() local
163 if (viewGroup == null) { in refresh()
167 final int childCount = viewGroup.getChildCount(); in refresh()
174 oldView = viewGroup.getChildAt(i); in refresh()
176 View newView = mAdapter.getView(i, oldView, viewGroup); in refresh()
179 viewGroup.addView(newView); in refresh()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DLayoutPerfTest.java93 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()
105viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight()); in testLayoutPerf()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java164 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/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvArrayAdapter.java46 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapperTest.java59 LinearLayout viewGroup = new LinearLayout(mContext); in childrenNeedInversion_doesntCrash_whenOpacity() local
62 viewGroup.addView(textView); in childrenNeedInversion_doesntCrash_whenOpacity()
64 mNotificationViewWrapper.childrenNeedInversion(0xcc000000, viewGroup); in childrenNeedInversion_doesntCrash_whenOpacity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java150 boolean childrenNeedInversion(@ColorInt int parentBackground, ViewGroup viewGroup) { in childrenNeedInversion() argument
151 if (viewGroup == null) { in childrenNeedInversion()
155 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion()
160 for (int i = 0; i < viewGroup.getChildCount(); i++) { in childrenNeedInversion()
161 View child = viewGroup.getChildAt(i); in childrenNeedInversion()
/frameworks/base/core/tests/coretests/src/android/animation/
DStateListAnimatorTest.java71 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/statusbar/car/
DCarFacetButtonController.java95 ViewGroup viewGroup = (ViewGroup) v; in addAllFacetButtons() local
96 for (int i = 0; i < viewGroup.getChildCount(); i++) { in addAllFacetButtons()
97 addAllFacetButtons(viewGroup.getChildAt(i)); in addAllFacetButtons()
DCarStatusBar.java585 ViewGroup viewGroup = (ViewGroup) v; in addTemperatureViewToController() local
586 for (int i = 0; i < viewGroup.getChildCount(); i++) { in addTemperatureViewToController()
587 addTemperatureViewToController(viewGroup.getChildAt(i)); in addTemperatureViewToController()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java97 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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java919 private List<ViewInfo> visitAllChildren(ViewGroup viewGroup, int hOffset, int vOffset, in visitAllChildren() argument
921 if (viewGroup == null) { in visitAllChildren()
926 vOffset += viewGroup.getTop(); in visitAllChildren()
927 hOffset += viewGroup.getLeft(); in visitAllChildren()
930 int childCount = viewGroup.getChildCount(); in visitAllChildren()
931 if (viewGroup == mContentRoot) { in visitAllChildren()
936 visitContentRoot(viewGroup.getChildAt(i), hOffset, vOffset, in visitAllChildren()
946 children.add(visit(viewGroup.getChildAt(i), hOffset, vOffset, setExtendedInfo, in visitAllChildren()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java793 private ViewStateSnapshot(ViewGroup viewGroup) { in ViewStateSnapshot() argument
794 mChildCount = viewGroup.getChildCount(); in ViewStateSnapshot()
799 mFirst = viewGroup.getChildAt(0); in ViewStateSnapshot()
800 mLast = viewGroup.getChildAt(mChildCount - 1); in ViewStateSnapshot()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java149 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in onCreateViewHolder() argument
DDividerItemDecorationTest.java160 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in drawDecoration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java456 final ViewGroup viewGroup = (ViewGroup)v; in addToDispatchers() local
457 final int N = viewGroup.getChildCount(); in addToDispatchers()
459 addToDispatchers(viewGroup.getChildAt(i)); in addToDispatchers()
/frameworks/base/core/java/android/app/
DFragmentTransition.java970 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/
DRemoteViews.java1743 private void removeAllViewsExceptIdToKeep(ViewGroup viewGroup) {
1745 int index = viewGroup.getChildCount() - 1;
1747 if (viewGroup.getChildAt(index).getId() != mViewIdToKeep) {
1748 viewGroup.removeViewAt(index);
2153 ViewGroup viewGroup = (ViewGroup) v;
2154 for (int i = 0; i < viewGroup.getChildCount(); i++) {
2155 viewsToProcess.push(viewGroup.getChildAt(i));
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java5584 private void invalidateDisplayListInt(ViewGroup viewGroup, boolean invalidateThis) { in invalidateDisplayListInt() argument
5585 for (int i = viewGroup.getChildCount() - 1; i >= 0; i--) { in invalidateDisplayListInt()
5586 final View view = viewGroup.getChildAt(i); in invalidateDisplayListInt()
5595 if (viewGroup.getVisibility() == View.INVISIBLE) { in invalidateDisplayListInt()
5596 viewGroup.setVisibility(View.VISIBLE); in invalidateDisplayListInt()
5597 viewGroup.setVisibility(View.INVISIBLE); in invalidateDisplayListInt()
5599 final int visibility = viewGroup.getVisibility(); in invalidateDisplayListInt()
5600 viewGroup.setVisibility(View.INVISIBLE); in invalidateDisplayListInt()
5601 viewGroup.setVisibility(visibility); in invalidateDisplayListInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java4387 private void clearTemporaryViewsInGroup(ViewGroup viewGroup) {
4388 while (viewGroup != null && viewGroup.getTransientViewCount() != 0) {
4389 viewGroup.removeTransientView(viewGroup.getTransientView(0));
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java3369 final ViewGroup viewGroup = holder.getViewGroup();
3373 setViewBounds(viewGroup, LayoutParams.MATCH_PARENT, holder.getMeasuredRowHeight());
3381 viewGroup.setTag(holder);