Home
last modified time | relevance | path

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

1234

/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DViewGroupScrollCaptureTest.java62 assertNotNull(viewGroup); in testSetScrollCaptureHint()
77 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
84 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
100 viewGroup.setScrollCaptureHint( in testSetScrollCaptureHint_mutuallyExclusiveFlags()
148 final MockViewGroup viewGroup = in testDispatchScrollCaptureSearch_noCallback_hintExclude() local
222 MockViewGroup viewGroup = in testDispatchScrollCaptureSearch_withCallback_hintExclude() local
277 viewGroup.addView(view1); in testDispatchScrollCaptureSearch_toChildren()
281 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren()
290 viewGroup.addView(view3); in testDispatchScrollCaptureSearch_toChildren()
294 viewGroup.addView(view4); in testDispatchScrollCaptureSearch_toChildren()
[all …]
H A DViewInputConnectionTest.java74 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks() local
78 viewGroup.addView(editText1); in testInputConnectionCallbacks()
79 viewGroup.addView(editText2); in testInputConnectionCallbacks()
128 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks_nullInputConnection() local
132 viewGroup.addView(editText1); in testInputConnectionCallbacks_nullInputConnection()
133 viewGroup.addView(editText2); in testInputConnectionCallbacks_nullInputConnection()
180 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks_nonEditableInput() local
184 viewGroup.addView(view1); in testInputConnectionCallbacks_nonEditableInput()
185 viewGroup.addView(view2); in testInputConnectionCallbacks_nonEditableInput()
H A DViewGroupTest.java50 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()
/aosp12/frameworks/base/core/java/android/view/
H A DGhostView.java119 calculateMatrix(view, viewGroup, matrix); in addGhost()
125 copySize(viewGroup, parent); in addGhost()
126 copySize(viewGroup, ghostView); in addGhost()
141 return addGhost(view, viewGroup, null); in addGhost()
192 View child = viewGroup.getChildAt(i); in moveGhostViewsToTop()
197 viewGroup.removeViewAt(i); in moveGhostViewsToTop()
206 firstGhost = viewGroup.getChildCount(); in moveGhostViewsToTop()
209 viewGroup.addView(tempViews.get(i)); in moveGhostViewsToTop()
223 viewGroup.addView(wrapper); in insertIntoOverlay()
230 viewGroup.addView(wrapper); in insertIntoOverlay()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPseudoGridView.java154 new ViewGroupAdapterBridge(viewGroup, adapter); in link()
158 mViewGroup = new WeakReference<>(viewGroup); in ViewGroupAdapterBridge()
169 ViewGroup viewGroup = mViewGroup.get(); in refresh() local
170 if (viewGroup == null) { in refresh()
174 final int childCount = viewGroup.getChildCount(); in refresh()
181 oldView = viewGroup.getChildAt(i); in refresh()
186 viewGroup.addView(newView); in refresh()
189 viewGroup.removeViewAt(i); in refresh()
190 viewGroup.addView(newView, i); in refresh()
193 int lastIndex = viewGroup.getChildCount() - 1; in refresh()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DAlphaUpdateListener.java61 ViewGroup viewGroup = ((ViewGroup) view); in updateVisibility() local
62 int oldFocusability = viewGroup.getDescendantFocusability(); in updateVisibility()
63 viewGroup.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); in updateVisibility()
64 viewGroup.setVisibility(View.VISIBLE); in updateVisibility()
65 viewGroup.setDescendantFocusability(oldFocusability); in updateVisibility()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/rotary/
H A DDirectManipulationState.java72 ViewGroup viewGroup = (ViewGroup) mViewInDirectManipulationMode; in enable() local
73 mOriginalDescendantFocusability = viewGroup.getDescendantFocusability(); in enable()
74 viewGroup.setDescendantFocusability(FOCUS_AFTER_DESCENDANTS); in enable()
89 ViewGroup viewGroup = (ViewGroup) mViewInDirectManipulationMode; in disable() local
90 viewGroup.setDescendantFocusability(mOriginalDescendantFocusability); in disable()
/aosp12/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
H A DDirectManipulationState.java75 ViewGroup viewGroup = (ViewGroup) mViewInDirectManipulationMode; in enable() local
76 mOriginalDescendantFocusability = viewGroup.getDescendantFocusability(); in enable()
77 viewGroup.setDescendantFocusability(FOCUS_AFTER_DESCENDANTS); in enable()
94 ViewGroup viewGroup = (ViewGroup) mViewInDirectManipulationMode; in disable() local
95 viewGroup.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); in disable()
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DLayoutPerfTest.java93 ViewGroup viewGroup = (ViewGroup) activity.findViewById(mViewId); in testLayoutPerf()
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()
/aosp12/packages/apps/Dialer/java/com/android/incallui/sessiondata/
H A DMultimediaFragment.java109 LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) { in onCreateView() argument
116 return layoutInflater.inflate(R.layout.fragment_spam, viewGroup, false); in onCreateView()
127 R.layout.fragment_composer_text_image_frag, viewGroup, false); in onCreateView()
130 return layoutInflater.inflate(R.layout.fragment_composer_image_frag, viewGroup, false); in onCreateView()
134 return layoutInflater.inflate(R.layout.fragment_composer_text_frag, viewGroup, false); in onCreateView()
137 return layoutInflater.inflate(R.layout.fragment_composer_frag, viewGroup, false); in onCreateView()
142 return layoutInflater.inflate(R.layout.fragment_composer_text_image, viewGroup, false); in onCreateView()
145 return layoutInflater.inflate(R.layout.fragment_composer_image, viewGroup, false); in onCreateView()
149 return layoutInflater.inflate(R.layout.fragment_composer_text, viewGroup, false); in onCreateView()
/aosp12/packages/apps/Settings/tests/componenttests/src/com/android/settings/notification/
H A DAppNotificationComponentTest.java104 ViewGroup viewGroup = (ViewGroup) recyclerView; in test_special_app_could_not_disable_notification()
106 for (int i = 0; i < viewGroup.getChildCount(); i++) { in test_special_app_could_not_disable_notification()
107 if (viewGroup.getChildAt(i) instanceof LinearLayout) { in test_special_app_could_not_disable_notification()
111 View sWidget = viewGroup.getChildAt(i).findViewById( in test_special_app_could_not_disable_notification()
113 TextView sText = viewGroup.getChildAt(i).findViewById( in test_special_app_could_not_disable_notification()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DFloatingToolbarEspressoUtils.java165 ViewGroup viewGroup = (ViewGroup) view; in assertFloatingToolbarItemIndex()
166 for (int i = 0; i < viewGroup.getChildCount(); i++) { in assertFloatingToolbarItemIndex()
167 collectMenuItemIds(viewGroup.getChildAt(i)); in assertFloatingToolbarItemIndex()
215 ViewGroup viewGroup = (ViewGroup) view; in assertFloatingToolbarMenuItem()
216 for (int i = 0; i < viewGroup.getChildCount(); i++) { in assertFloatingToolbarMenuItem()
217 if (containsItem(viewGroup.getChildAt(i))) { in assertFloatingToolbarMenuItem()
/aosp12/packages/apps/Dialer/java/com/android/dialer/enrichedcall/simulator/
H A DSessionsAdapter.java37 public SessionViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in onCreateViewHolder() argument
38 LayoutInflater inflater = LayoutInflater.from(viewGroup.getContext()); in onCreateViewHolder()
39 return new SessionViewHolder(inflater.inflate(R.layout.session_view_holder, viewGroup, false)); in onCreateViewHolder()
/aosp12/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A 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()
/aosp12/packages/apps/Contacts/src/com/android/contacts/drawer/
H A DDrawerAdapter.java188 public View getView(int position, View view, ViewGroup viewGroup) { in getView() argument
192 return getPrimaryItemView((PrimaryItem) drawerItem, view, viewGroup); in getView()
194 return getHeaderItemView((HeaderItem) drawerItem, view, viewGroup); in getView()
196 return getDrawerItemView(drawerItem, view, viewGroup); in getView()
198 return getGroupEntryView((GroupEntryItem) drawerItem, view, viewGroup); in getView()
200 return getAccountItemView((AccountEntryItem) drawerItem, view, viewGroup); in getView()
202 return getDrawerItemView(drawerItem, view, viewGroup); in getView()
204 return getBaseItemView(R.layout.nav_drawer_spacer, view, viewGroup); in getView()
206 return getBaseItemView(R.layout.drawer_horizontal_divider, view, viewGroup); in getView()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapperTest.java64 LinearLayout viewGroup = new LinearLayout(mContext); in childrenNeedInversion_doesntCrash_whenOpacity() local
67 viewGroup.addView(textView); in childrenNeedInversion_doesntCrash_whenOpacity()
69 mNotificationViewWrapper.childrenNeedInversion(0xcc000000, viewGroup); in childrenNeedInversion_doesntCrash_whenOpacity()
/aosp12/packages/apps/Settings/src/com/android/settings/panel/
H A DPanelSlicesAdapter.java72 public SliceRowViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) { in onCreateViewHolder() argument
73 final Context context = viewGroup.getContext(); in onCreateViewHolder()
77 view = inflater.inflate(R.layout.panel_slice_slider_row, viewGroup, false); in onCreateViewHolder()
79 view = inflater.inflate(R.layout.panel_slice_row, viewGroup, false); in onCreateViewHolder()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
H A DCheckableLinearLayout.java99 private static void updateChildrenChecked(@NonNull ViewGroup viewGroup, boolean checked) { in updateChildrenChecked() argument
100 int count = viewGroup.getChildCount(); in updateChildrenChecked()
102 View child = viewGroup.getChildAt(i); in updateChildrenChecked()
/aosp12/packages/apps/Settings/src/com/android/settings/widget/
H A DCheckableRelativeLayout.java72 private static View findFirstCheckableView(@NonNull ViewGroup viewGroup) { in findFirstCheckableView() argument
73 final int childCount = viewGroup.getChildCount(); in findFirstCheckableView()
75 final View child = viewGroup.getChildAt(i); in findFirstCheckableView()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
H A DHvacController.java237 ViewGroup viewGroup = (ViewGroup) rootView; in registerHvacViews() local
238 for (int i = 0; i < viewGroup.getChildCount(); i++) { in registerHvacViews()
239 registerHvacViews(viewGroup.getChildAt(i)); in registerHvacViews()
257 ViewGroup viewGroup = (ViewGroup) rootView; in unregisterViews() local
258 for (int i = 0; i < viewGroup.getChildCount(); i++) { in unregisterViews()
259 unregisterViews(viewGroup.getChildAt(i)); in unregisterViews()
/aosp12/packages/apps/TV/src/com/android/tv/guide/
H A DGuideUtils.java144 ViewGroup viewGroup = (ViewGroup) v; in findFocusables() local
145 for (int i = 0; i < viewGroup.getChildCount(); ++i) { in findFocusables()
146 findFocusables(viewGroup.getChildAt(i), outFocusable); in findFocusables()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapper.java169 boolean childrenNeedInversion(@ColorInt int parentBackground, ViewGroup viewGroup) { in childrenNeedInversion() argument
170 if (viewGroup == null) { in childrenNeedInversion()
174 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion()
179 for (int i = 0; i < viewGroup.getChildCount(); i++) { in childrenNeedInversion()
180 View child = viewGroup.getChildAt(i); in childrenNeedInversion()
/aosp12/packages/apps/Settings/src/com/android/settings/security/
H A DCredentialManagementAppAdapter.java248 public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) { in onCreateViewHolder() argument
251 view = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder()
252 .inflate(R.layout.request_manage_credentials_header, viewGroup, false); in onCreateViewHolder()
256 view = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder()
257 .inflate(R.layout.app_authentication_item, viewGroup, false); in onCreateViewHolder()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestNotificationService.java213 ViewGroup viewGroup = (ViewGroup)view; in getProgressBarImpl() local
214 if (viewGroup.getChildCount() <= 0) { in getProgressBarImpl()
219 for (int i = 0; i < viewGroup.getChildCount(); i++) { in getProgressBarImpl()
220 View v = viewGroup.getChildAt(i); in getProgressBarImpl()

1234