Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupScrollCaptureTest.java60 final MockViewGroup viewGroup = new MockViewGroup(context); in testSetScrollCaptureHint() local
62 assertNotNull(viewGroup); in testSetScrollCaptureHint()
64 ViewGroup.SCROLL_CAPTURE_HINT_AUTO, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
66 viewGroup.setScrollCaptureHint(View.SCROLL_CAPTURE_HINT_INCLUDE); in testSetScrollCaptureHint()
68 ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
70 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE); in testSetScrollCaptureHint()
72 ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE, viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
74 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS); in testSetScrollCaptureHint()
77 viewGroup.getScrollCaptureHint()); in testSetScrollCaptureHint()
79 viewGroup.setScrollCaptureHint(ViewGroup.SCROLL_CAPTURE_HINT_INCLUDE in testSetScrollCaptureHint()
[all …]
DViewGroupTest.java51 final TestView viewGroup = new TestView(context, 0 /* left */, 0 /* top */, in testDispatchMouseEventsUnderCursor() local
58 viewGroup.addView(viewA); in testDispatchMouseEventsUnderCursor()
59 viewGroup.addView(viewB); in testDispatchMouseEventsUnderCursor()
88 viewGroup.dispatchTouchEvent(event); in testDispatchMouseEventsUnderCursor()
91 viewGroup.onResolvePointerIcon(event, 0 /* pointerIndex */); in testDispatchMouseEventsUnderCursor()
95 viewGroup.dispatchGenericMotionEvent(event); in testDispatchMouseEventsUnderCursor()
103 viewGroup.dispatchTouchEvent(event); in testDispatchMouseEventsUnderCursor()
106 viewGroup.onResolvePointerIcon(event, 1 /* pointerIndex */); in testDispatchMouseEventsUnderCursor()
110 viewGroup.dispatchGenericMotionEvent(event); in testDispatchMouseEventsUnderCursor()
DViewInputConnectionTest.java97 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks() local
101 viewGroup.addView(editText1); in testInputConnectionCallbacks()
102 viewGroup.addView(editText2); in testInputConnectionCallbacks()
151 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks_nullInputConnection() local
155 viewGroup.addView(editText1); in testInputConnectionCallbacks_nullInputConnection()
156 viewGroup.addView(editText2); in testInputConnectionCallbacks_nullInputConnection()
203 final ViewGroup viewGroup = mActivity.findViewById(R.id.root); in testInputConnectionCallbacks_nonEditableInput() local
207 viewGroup.addView(view1); in testInputConnectionCallbacks_nonEditableInput()
208 viewGroup.addView(view2); in testInputConnectionCallbacks_nonEditableInput()
320 final ViewGroup viewGroup = getOnMainSync(() -> mActivity.findViewById(R.id.root)); in testInputConnectionCallbacks_nonUiThread() local
[all …]
/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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java153 public static void link(ViewGroup viewGroup, BaseAdapter adapter) { in link() argument
154 new ViewGroupAdapterBridge(viewGroup, adapter); in link()
157 private ViewGroupAdapterBridge(ViewGroup viewGroup, BaseAdapter adapter) { in ViewGroupAdapterBridge() argument
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()
183 View newView = mAdapter.getView(i, oldView, viewGroup); in refresh()
186 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/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.java57 LinearLayout viewGroup = new LinearLayout(mContext); in childrenNeedInversion_doesntCrash_whenOpacity() local
60 viewGroup.addView(textView); in childrenNeedInversion_doesntCrash_whenOpacity()
62 mNotificationViewWrapper.childrenNeedInversion(0xcc000000, viewGroup); in childrenNeedInversion_doesntCrash_whenOpacity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesListAdapter.java52 public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int position) { in onCreateViewHolder() argument
53 View view = LayoutInflater.from(viewGroup.getContext()).inflate( in onCreateViewHolder()
54 R.layout.bluetooth_device_item, viewGroup, false); in onCreateViewHolder()
55 return new DeviceItemViewHolder(view, viewGroup.getContext()); in onCreateViewHolder()
/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/SystemUI/src/com/android/systemui/volume/
DVolumePanelSlicesAdapter.java60 public SliceRowViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) { in onCreateViewHolder() argument
61 final Context context = viewGroup.getContext(); in onCreateViewHolder()
63 View view = inflater.inflate(R.layout.volume_panel_slice_slider_row, viewGroup, false); in onCreateViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java172 boolean childrenNeedInversion(@ColorInt int parentBackground, ViewGroup viewGroup) { in childrenNeedInversion() argument
173 if (viewGroup == null) { in childrenNeedInversion()
177 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion()
182 for (int i = 0; i < viewGroup.getChildCount(); i++) { in childrenNeedInversion()
183 View child = viewGroup.getChildAt(i); in childrenNeedInversion()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DMailAdapter.java118 public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { in onCreateViewHolder() argument
120 .from(viewGroup.getContext()) in onCreateViewHolder()
121 .inflate(R.layout.mail_row_item, viewGroup, false); in onCreateViewHolder()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DViewDialogTransitionAnimatorController.kt39 override fun startDrawingInOverlayOf(viewGroup: ViewGroup) { in startDrawingInOverlayOf()
53 GhostView.addGhost(source, viewGroup) in startDrawingInOverlayOf()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardCarousel.java387 public WalletCardViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
388 LayoutInflater inflater = LayoutInflater.from(viewGroup.getContext());
389 View view = inflater.inflate(R.layout.wallet_card_view, viewGroup, false);
463 ViewGroup viewGroup, View view, AccessibilityEvent accessibilityEvent) { in onRequestSendAccessibilityEvent() argument
468 return super.onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent); in onRequestSendAccessibilityEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DFoldAodAnimationControllerTest.kt77 @Mock lateinit var viewGroup: ViewGroup variable in com.android.systemui.unfold.FoldAodAnimationControllerTest
103 whenever(shadeFoldAnimator.view).thenReturn(viewGroup) in setup()
104 whenever(viewGroup.viewTreeObserver).thenReturn(viewTreeObserver) in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetAdapter.java75 public InternetViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, in onCreateViewHolder() argument
77 mContext = viewGroup.getContext(); in onCreateViewHolder()
79 viewGroup, false); in onCreateViewHolder()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerPickerActivity.java230 @NonNull ViewGroup viewGroup, in onCreateViewHolder()
232 LayoutInflater layoutInflater = LayoutInflater.from(viewGroup.getContext()); in onCreateViewHolder()
233 View view = layoutInflater.inflate(R.layout.battery_consumer_info_layout, viewGroup, in onCreateViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DButtonDispatcher.java373 if (v instanceof ViewGroup viewGroup) { in setNavBarButtonClickLoggerForViewChildren()
374 final int childrenCount = viewGroup.getChildCount(); in setNavBarButtonClickLoggerForViewChildren()
376 setNavBarButtonClickLoggerForViewChildren(viewGroup.getChildAt(i)); in setNavBarButtonClickLoggerForViewChildren()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java901 private List<ViewInfo> visitAllChildren(ViewGroup viewGroup, int hOffset, int vOffset, in visitAllChildren() argument
903 if (viewGroup == null) { in visitAllChildren()
908 vOffset += viewGroup.getTop(); in visitAllChildren()
909 hOffset += viewGroup.getLeft(); in visitAllChildren()
912 int childCount = viewGroup.getChildCount(); in visitAllChildren()
913 if (viewGroup == mContentRoot) { in visitAllChildren()
918 visitContentRoot(viewGroup.getChildAt(i), hOffset, vOffset, params); in visitAllChildren()
927 children.add(visit(viewGroup.getChildAt(i), hOffset, vOffset, params, in visitAllChildren()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTest.kt58 private lateinit var viewGroup: ViewGroup in <lambda>() variable in com.android.wm.shell.shared.animation.PhysicsAnimatorTest
82 viewGroup = FrameLayout(context) in <lambda>()
85 viewGroup.addView(testView) in <lambda>()
86 viewGroup.addView(testView2) in <lambda>()
/frameworks/base/core/java/android/view/translation/
DUiTranslationController.java260 private void dumpChildren(ViewGroup viewGroup, String outerPrefix, PrintWriter pw) { in dumpChildren() argument
261 final int childCount = viewGroup.getChildCount(); in dumpChildren()
263 final View child = viewGroup.getChildAt(i); in dumpChildren()
620 private void findViewsTraversalByAutofillIds(ViewGroup viewGroup, in findViewsTraversalByAutofillIds() argument
622 final int childCount = viewGroup.getChildCount(); in findViewsTraversalByAutofillIds()
624 final View child = viewGroup.getChildAt(i); in findViewsTraversalByAutofillIds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java207 public void linkToViewGroup(ViewGroup viewGroup) { in linkToViewGroup() argument
208 PseudoGridView.ViewGroupAdapterBridge.link(viewGroup, this); in linkToViewGroup()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java811 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()

12