/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupScrollCaptureTest.java | 60 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 …]
|
D | ViewGroupTest.java | 51 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()
|
D | ViewInputConnectionTest.java | 97 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/ |
D | ActionBarContainerTest.java | 41 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/ |
D | GhostView.java | 99 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/ |
D | PseudoGridView.java | 153 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/ |
D | LayoutPerfTest.java | 93 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() 105 … viewGroup.layout(0, 0, viewGroup.getMeasuredWidth(), viewGroup.getMeasuredHeight()); in testLayoutPerf()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvArrayAdapter.java | 46 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/ |
D | NotificationViewWrapperTest.java | 57 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/ |
D | HearingDevicesListAdapter.java | 52 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/ |
D | StateListAnimatorTest.java | 71 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/ |
D | VolumePanelSlicesAdapter.java | 60 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/ |
D | NotificationViewWrapper.java | 172 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/ |
D | MailAdapter.java | 118 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/ |
D | ViewDialogTransitionAnimatorController.kt | 39 override fun startDrawingInOverlayOf(viewGroup: ViewGroup) { in startDrawingInOverlayOf() 53 GhostView.addGhost(source, viewGroup) in startDrawingInOverlayOf()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletCardCarousel.java | 387 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/ |
D | FoldAodAnimationControllerTest.kt | 77 @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/ |
D | InternetAdapter.java | 75 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/ |
D | BatteryConsumerPickerActivity.java | 230 @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/ |
D | ButtonDispatcher.java | 373 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/ |
D | RenderSessionImpl.java | 901 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/ |
D | PhysicsAnimatorTest.kt | 58 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/ |
D | UiTranslationController.java | 260 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/ |
D | UserDetailView.java | 207 public void linkToViewGroup(ViewGroup viewGroup) { in linkToViewGroup() argument 208 PseudoGridView.ViewGroupAdapterBridge.link(viewGroup, this); in linkToViewGroup()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 811 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()
|