Searched refs:viewGroup (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/
H A DViewGroupTest.kt35 private val viewGroup = LinearLayout(context)
39 viewGroup.addView(view1)
41 viewGroup.addView(view2)
43 assertSame(view1, viewGroup[0])
44 assertSame(view2, viewGroup[1])
47 viewGroup[-1]
51 viewGroup[2]
57 viewGroup.addView(view1)
58 assertTrue(view1 in viewGroup)
59 assertFalse(view1 !in viewGroup)
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DActionBarContainerTest.java40 TestViewGroup viewGroup = new TestViewGroup(mContext);
41 viewGroup.addView(mActionBarContainer);
48 assertFalse(viewGroup.isStartActionModeForChildTypedCalled);
49 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled);
55 assertFalse(viewGroup.isStartActionModeForChildTypedCalled);
56 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled);
60 TestViewGroup viewGroup = new TestViewGroup(mContext);
61 viewGroup.addView(mActionBarContainer);
66 assertTrue(viewGroup.isStartActionModeForChildTypedCalled);
/frameworks/support/transition/src/main/java/androidx/transition/
H A DGhostViewUtils.java26 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
28 return GhostViewApi21.addGhost(view, viewGroup, matrix);
30 return GhostViewApi14.addGhost(view, viewGroup);
H A DGhostViewImpl.java30 void reserveEndViewTransition(ViewGroup viewGroup, View view); argument
H A DViewGroupOverlayApi14.java31 static ViewGroupOverlayApi14 createFrom(ViewGroup viewGroup) { argument
32 return (ViewGroupOverlayApi14) ViewOverlayApi14.createFrom(viewGroup);
H A DGhostViewApi14.java45 static GhostViewImpl addGhost(View view, ViewGroup viewGroup) { argument
48 FrameLayout frameLayout = findFrameLayout(viewGroup);
76 * viewGroup}.
78 private static FrameLayout findFrameLayout(ViewGroup viewGroup) { argument
79 while (!(viewGroup instanceof FrameLayout)) {
80 ViewParent parent = viewGroup.getParent();
84 viewGroup = (ViewGroup) parent;
86 return (FrameLayout) viewGroup;
181 public void reserveEndViewTransition(ViewGroup viewGroup, View view) { argument
182 mStartParent = viewGroup;
[all...]
H A DGhostViewApi21.java42 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
47 (View) sAddGhostMethod.invoke(null, view, viewGroup, matrix));
83 public void reserveEndViewTransition(ViewGroup viewGroup, View view) { argument
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/
H A DDataBoundAdapter.java20 public DataBoundAdapter.DataBoundViewHolder<T> onCreateViewHolder(ViewGroup viewGroup, argument
22 T binder = DataBindingUtil.inflate(LayoutInflater.from(viewGroup.getContext()), mLayoutId,
23 viewGroup, false);
/frameworks/base/core/java/android/view/
H A DGhostView.java94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
98 ViewGroupOverlay overlay = viewGroup.getOverlay();
114 calculateMatrix(view, viewGroup, matrix);
120 copySize(viewGroup, parent);
121 copySize(viewGroup, ghostView);
134 public static GhostView addGhost(View view, ViewGroup viewGroup) { argument
135 return addGhost(view, viewGroup, null);
167 private static int moveGhostViewsToTop(ViewGroup viewGroup, ArrayList<View> tempViews) { argument
168 final int numChildren = viewGroup.getChildCount();
171 } else if (isGhostWrapper(viewGroup
213 insertIntoOverlay(ViewGroup viewGroup, ViewGroup wrapper, GhostView ghostView, ArrayList<View> tempParents, int firstGhost) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPseudoGridView.java140 * Usage: {@code ViewGroupAdapterBridge.link(viewGroup, adapter)}
150 public static void link(ViewGroup viewGroup, BaseAdapter adapter) { argument
151 new ViewGroupAdapterBridge(viewGroup, adapter);
154 private ViewGroupAdapterBridge(ViewGroup viewGroup, BaseAdapter adapter) { argument
155 mViewGroup = new WeakReference<>(viewGroup);
166 ViewGroup viewGroup = mViewGroup.get();
167 if (viewGroup == null) {
171 final int childCount = viewGroup.getChildCount();
178 oldView = viewGroup.getChildAt(i);
180 View newView = mAdapter.getView(i, oldView, viewGroup);
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DLayoutPerfTest.java91 ViewGroup viewGroup = (ViewGroup) activity.findViewById(mViewId);
93 List<View> allNodes = gatherViewTree(viewGroup);
102 viewGroup.measure(mMeasureSpecs[i % length], mMeasureSpecs[i % length]);
103 viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight());
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DNestedScrollingParentHelper.java50 public NestedScrollingParentHelper(@NonNull ViewGroup viewGroup) { argument
51 mViewGroup = viewGroup;
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvArrayAdapter.java46 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { argument
48 mLayoutInflater = LayoutInflater.from(viewGroup.getContext());
50 View v = mLayoutInflater.inflate(android.R.layout.simple_list_item_1, viewGroup, false);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DListViewActivity.java58 public View getView(int i, View view, ViewGroup viewGroup) {
61 view = LayoutInflater.from(viewGroup.getContext()).inflate(
62 R.layout.list_view_item, viewGroup, false);
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DListViewActivity.java58 public View getView(int i, View view, ViewGroup viewGroup) {
61 view = LayoutInflater.from(viewGroup.getContext()).inflate(
62 R.layout.list_view_item, viewGroup, false);
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/
H A DHeaderItemPresenter.java39 public ViewHolder onCreateViewHolder(ViewGroup viewGroup) { argument
40 mUnselectedAlpha = viewGroup.getResources()
42 LayoutInflater inflater = (LayoutInflater) viewGroup.getContext()
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/
H A DHeaderItemPresenter.java39 public ViewHolder onCreateViewHolder(ViewGroup viewGroup) { argument
40 mUnselectedAlpha = viewGroup.getResources()
42 LayoutInflater inflater = (LayoutInflater) viewGroup.getContext()
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentTransitionImpl.java191 ViewGroup viewGroup = (ViewGroup) view;
192 if (ViewGroupCompat.isTransitionGroup(viewGroup)) {
193 transitioningViews.add(viewGroup);
195 int count = viewGroup.getChildCount();
197 View child = viewGroup.getChildAt(i);
218 ViewGroup viewGroup = (ViewGroup) view;
219 int count = viewGroup.getChildCount();
221 View child = viewGroup.getChildAt(i);
319 ViewGroup viewGroup = (ViewGroup) view;
320 final int childCount = viewGroup
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DOnboardingDemoFragment.java80 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
81 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false);
86 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
87 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false);
94 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
H A DOnboardingDemoSupportFragment.java83 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
84 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false);
89 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
90 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false);
97 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DOnboardingDemoFragment.java80 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
81 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false);
86 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
87 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false);
94 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
H A DOnboardingDemoSupportFragment.java83 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
84 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false);
89 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
90 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false);
97 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { argument
/frameworks/base/core/tests/coretests/src/android/animation/
H A DStateListAnimatorTest.java65 ViewGroup viewGroup = (ViewGroup) getActivity().findViewById(android.R.id.content);
67 viewGroup.addView(view);
79 viewGroup.removeView(view);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DFloatingToolbarEspressoUtils.java163 ViewGroup viewGroup = (ViewGroup) view;
164 for (int i = 0; i < viewGroup.getChildCount(); i++) {
165 collectMenuItemIds(viewGroup.getChildAt(i));
213 ViewGroup viewGroup = (ViewGroup) view;
214 for (int i = 0; i < viewGroup.getChildCount(); i++) {
215 if (containsItem(viewGroup.getChildAt(i))) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
H A DVolumeDialogImplTest.java103 ViewGroup viewGroup = (ViewGroup) view;
104 for (int i = 0; i < viewGroup.getChildCount(); i++) {
105 navigateViews(viewGroup.getChildAt(i), condition);

Completed in 222 milliseconds

12