Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarContainerTest.java38 TestViewGroup viewGroup = new TestViewGroup(mContext); in testPrimaryActionModesAreStopped() local
39 viewGroup.addView(mActionBarContainer); in testPrimaryActionModesAreStopped()
46 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); in testPrimaryActionModesAreStopped()
47 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); in testPrimaryActionModesAreStopped()
53 assertFalse(viewGroup.isStartActionModeForChildTypedCalled); in testPrimaryActionModesAreStopped()
54 assertFalse(viewGroup.isStartActionModeForChildTypelessCalled); in testPrimaryActionModesAreStopped()
58 TestViewGroup viewGroup = new TestViewGroup(mContext); in testFloatingActionModesAreBubbledUp() local
59 viewGroup.addView(mActionBarContainer); in testFloatingActionModesAreBubbledUp()
66 assertTrue(viewGroup.isStartActionModeForChildTypedCalled); in testFloatingActionModesAreBubbledUp()
/frameworks/base/core/java/android/view/
DGhostView.java94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { in addGhost() argument
98 ViewGroupOverlay overlay = viewGroup.getOverlay(); in addGhost()
114 calculateMatrix(view, viewGroup, matrix); in addGhost()
120 copySize(viewGroup, parent); in addGhost()
121 copySize(viewGroup, ghostView); in addGhost()
134 public static GhostView addGhost(View view, ViewGroup viewGroup) { in addGhost() argument
135 return addGhost(view, viewGroup, null); in addGhost()
167 private static int moveGhostViewsToTop(ViewGroup viewGroup, ArrayList<View> tempViews) { in moveGhostViewsToTop() argument
168 final int numChildren = viewGroup.getChildCount(); in moveGhostViewsToTop()
171 } else if (isGhostWrapper(viewGroup.getChildAt(numChildren - 1))) { in moveGhostViewsToTop()
[all …]
DLayoutInflater.java859 final ViewGroup viewGroup = (ViewGroup) parent; in rInflate() local
860 final ViewGroup.LayoutParams params = viewGroup.generateLayoutParams(attrs); in rInflate()
862 viewGroup.addView(view, params); in rInflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java150 public static void link(ViewGroup viewGroup, BaseAdapter adapter) { in link() argument
151 new ViewGroupAdapterBridge(viewGroup, adapter); in link()
154 private ViewGroupAdapterBridge(ViewGroup viewGroup, BaseAdapter adapter) { in ViewGroupAdapterBridge() argument
155 mViewGroup = new WeakReference<>(viewGroup); in ViewGroupAdapterBridge()
166 ViewGroup viewGroup = mViewGroup.get(); in refresh() local
167 if (viewGroup == null) { in refresh()
171 final int childCount = viewGroup.getChildCount(); in refresh()
178 oldView = viewGroup.getChildAt(i); in refresh()
180 View newView = mAdapter.getView(i, oldView, viewGroup); in refresh()
183 viewGroup.addView(newView); in refresh()
[all …]
/frameworks/base/core/java/android/app/
DActionBar.java1098 protected boolean requestFocus(ViewGroup viewGroup) { in requestFocus() argument
1099 if (viewGroup != null && !viewGroup.hasFocus()) { in requestFocus()
1100 final ViewGroup toolbar = viewGroup.getTouchscreenBlocksFocus() ? viewGroup : null; in requestFocus()
1101 ViewParent parent = viewGroup.getParent(); in requestFocus()
1117 viewGroup.requestFocus(); in requestFocus()
1118 final View focused = viewGroup.findFocus(); in requestFocus()
1120 focused.setOnFocusChangeListener(new FollowOutOfActionBar(viewGroup, in requestFocus()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtilsActions.java60 final ViewGroup viewGroup = (ViewGroup) view; in replaceTabLayout() local
61 final int childCount = viewGroup.getChildCount(); in replaceTabLayout()
64 View child = viewGroup.getChildAt(i); in replaceTabLayout()
67 viewGroup.removeView(child); in replaceTabLayout()
72 tabLayoutResId, viewGroup, false); in replaceTabLayout()
74 viewGroup.addView(newTabLayout, i); in replaceTabLayout()
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/
DDataBoundAdapter.java20 public DataBoundAdapter.DataBoundViewHolder<T> onCreateViewHolder(ViewGroup viewGroup, in onCreateViewHolder() argument
22 T binder = DataBindingUtil.inflate(LayoutInflater.from(viewGroup.getContext()), mLayoutId, in onCreateViewHolder()
23 viewGroup, false); in onCreateViewHolder()
DMainActivity.java144 … public DataBoundViewHolder<ListItemBinding> onCreateViewHolder(ViewGroup viewGroup, int type) { in onCreateViewHolder() argument
145 DataBoundViewHolder<ListItemBinding> vh = super.onCreateViewHolder(viewGroup, type); in onCreateViewHolder()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DOnboardingDemoSupportFragment.java80 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateBackgroundView() argument
81 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false); in onCreateBackgroundView()
86 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateContentView() argument
87 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false); in onCreateContentView()
94 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateForegroundView() argument
DOnboardingDemoFragment.java78 protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateBackgroundView() argument
79 mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false); in onCreateBackgroundView()
84 protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateContentView() argument
85 mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false); in onCreateContentView()
92 protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { in onCreateForegroundView() argument
/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/support/fragment/api21/android/support/v4/app/
DFragmentTransitionCompat21.java294 ViewGroup viewGroup = (ViewGroup) view; in bfsAddViewChildren() local
295 final int childCount = viewGroup.getChildCount(); in bfsAddViewChildren()
297 final View child = viewGroup.getChildAt(childIndex); in bfsAddViewChildren()
348 ViewGroup viewGroup = (ViewGroup) view; in captureTransitioningViews() local
349 if (viewGroup.isTransitionGroup()) { in captureTransitioningViews()
350 transitioningViews.add(viewGroup); in captureTransitioningViews()
352 int count = viewGroup.getChildCount(); in captureTransitioningViews()
354 View child = viewGroup.getChildAt(i); in captureTransitioningViews()
371 ViewGroup viewGroup = (ViewGroup) view; in findNamedViews() local
372 int count = viewGroup.getChildCount(); in findNamedViews()
[all …]
/frameworks/support/core-ui/java/android/support/v4/view/
DNestedScrollingParentHelper.java46 public NestedScrollingParentHelper(ViewGroup viewGroup) { in NestedScrollingParentHelper() argument
47 mViewGroup = viewGroup; in NestedScrollingParentHelper()
/frameworks/base/core/tests/coretests/src/android/animation/
DStateListAnimatorTest.java64 ViewGroup viewGroup = (ViewGroup) getActivity().findViewById(android.R.id.content); in testAttachDetach() local
66 viewGroup.addView(view); in testAttachDetach()
78 viewGroup.removeView(view); in testAttachDetach()
/frameworks/support/transition/ics/android/support/transition/
DViewGroupOverlay.java30 public static ViewGroupOverlay createFrom(ViewGroup viewGroup) { in createFrom() argument
31 return (ViewGroupOverlay) ViewOverlay.createFrom(viewGroup); in createFrom()
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DTransitionHelperApi21.java109 public static void setTransitionGroup(ViewGroup viewGroup, boolean transitionGroup) { in setTransitionGroup() argument
110 viewGroup.setTransitionGroup(transitionGroup); in setTransitionGroup()
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java959 final ViewGroup viewGroup = (ViewGroup) view; in mapBindings() local
960 final int count = viewGroup.getChildCount(); in mapBindings()
963 final View child = viewGroup.getChildAt(i); in mapBindings()
977 int lastMatchingIndex = findLastMatching(viewGroup, i); in mapBindings()
985 included[j] = viewGroup.getChildAt(i + j); in mapBindings()
1017 private static int findLastMatching(ViewGroup viewGroup, int firstIncludedIndex) { in findLastMatching() argument
1018 final View firstView = viewGroup.getChildAt(firstIncludedIndex); in findLastMatching()
1023 final int count = viewGroup.getChildCount(); in findLastMatching()
1026 final View view = viewGroup.getChildAt(i); in findLastMatching()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DBasicBindingTest.java148 ViewGroup viewGroup = (ViewGroup) mBinder.getRoot(); in testInflation() local
150 BasicBindingBinding.inflate(getActivity().getLayoutInflater(), viewGroup, true); in testInflation()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridActivity.java392 ViewGroup viewGroup = (ViewGroup) itemView;
393 View shadow = new View(viewGroup.getContext());
395 viewGroup.addView(shadow);
396 viewGroup.setLayoutMode(ViewGroup.LAYOUT_MODE_OPTICAL_BOUNDS);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/
DTransitionHelper.java156 public void setTransitionGroup(ViewGroup viewGroup, boolean transitionGroup); in setTransitionGroup() argument
391 public void setTransitionGroup(ViewGroup viewGroup, boolean transitionGroup) { in setTransitionGroup() argument
627 public void setTransitionGroup(ViewGroup viewGroup, boolean transitionGroup) { in setTransitionGroup() argument
628 TransitionHelperApi21.setTransitionGroup(viewGroup, transitionGroup); in setTransitionGroup()
843 public static void setTransitionGroup(ViewGroup viewGroup, boolean transitionGroup) { in setTransitionGroup() argument
844 sImpl.setTransitionGroup(viewGroup, transitionGroup); in setTransitionGroup()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DToolbarActionBar.java238 final ViewGroup viewGroup = mDecorToolbar.getViewGroup(); in requestFocus() local
239 if (viewGroup != null && !viewGroup.hasFocus()) { in requestFocus()
240 viewGroup.requestFocus(); in requestFocus()
DWindowDecorActionBar.java445 final ViewGroup viewGroup = mDecorToolbar.getViewGroup(); in requestFocus() local
446 if (viewGroup != null && !viewGroup.hasFocus()) { in requestFocus()
447 viewGroup.requestFocus(); in requestFocus()
/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java1254 private List<ViewInfo> visitAllChildren(ViewGroup viewGroup, int offset, in visitAllChildren() argument
1256 if (viewGroup == null) { in visitAllChildren()
1261 offset += viewGroup.getTop(); in visitAllChildren()
1264 int childCount = viewGroup.getChildCount(); in visitAllChildren()
1265 if (viewGroup == mContentRoot) { in visitAllChildren()
1269 ViewInfo[] childViewInfo = visitContentRoot(viewGroup.getChildAt(i), offset, in visitAllChildren()
1279 children.add(visit(viewGroup.getChildAt(i), offset, setExtendedInfo, in visitAllChildren()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java333 final ViewGroup viewGroup = (ViewGroup)v; in addToDispatchers() local
334 final int N = viewGroup.getChildCount(); in addToDispatchers()
336 addToDispatchers(viewGroup.getChildAt(i)); in addToDispatchers()

12