/frameworks/base/core/tests/coretests/src/android/view/ |
D | CreateViewTest.java | 48 vert.addView(new CreateViewTest.ViewOne(mContext), in testLayout2() 57 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 60 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 63 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 66 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 69 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 72 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 87 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout5() 96 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6() 100 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6() [all …]
|
D | ViewGroupChildrenTest.java | 61 mGroup.addView(view); in testAddChild() 74 mGroup.addView(view); in testAddChildAtFront() 78 mGroup.addView(view, 0); in testAddChildAtFront() 92 mGroup.addView(view); in testAddChildInMiddle() 96 mGroup.addView(view, 12); in testAddChildInMiddle() 110 mGroup.addView(view); in testAddChildren() 121 mGroup.addView(view); in testRemoveChild() 142 mGroup.addView(views[i]); in testRemoveChildren() 163 mGroup.addView(views[i]); in testRemoveChildrenBulk() 184 mGroup.addView(views[i]); in testRemoveChildrenBulkAtFront() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | MockView.java | 65 addView(mView); in MockView() 71 public void addView(View child) { in addView() method in MockView 73 super.addView(child); in addView() 78 public void addView(View child, int index) { in addView() method in MockView 80 super.addView(child, index); in addView() 85 public void addView(View child, int width, int height) { in addView() method in MockView 87 super.addView(child, width, height); in addView() 92 public void addView(View child, ViewGroup.LayoutParams params) { in addView() method in MockView 94 super.addView(child, params); in addView() 99 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() method in MockView [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/ |
D | NearestTouchFrameTest.java | 84 mNearestTouchFrame.addView(left); in testNoActionOnLargeDevices() 85 mNearestTouchFrame.addView(right); in testNoActionOnLargeDevices() 101 mNearestTouchFrame.addView(left); in testInvisibleViews() 102 mNearestTouchFrame.addView(right); in testInvisibleViews() 120 mNearestTouchFrame.addView(left); in testNearestView_DetachedViewsExcluded() 121 mNearestTouchFrame.addView(right); in testNearestView_DetachedViewsExcluded() 137 mNearestTouchFrame.addView(left); in testHorizontalSelection_Left() 138 mNearestTouchFrame.addView(right); in testHorizontalSelection_Left() 153 mNearestTouchFrame.addView(left); in testHorizontalSelection_Right() 154 mNearestTouchFrame.addView(right); in testHorizontalSelection_Right() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NotificationIconContainerTest.kt | 94 iconContainer.addView(icon) in calculateIconXTranslations_shortShelfOneIcon_atCorrectXWithoutOverflowDot() 119 iconContainer.addView(iconOne) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot() 120 iconContainer.addView(iconTwo) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot() 121 iconContainer.addView(iconThree) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot() 122 iconContainer.addView(iconFour) in calculateIconXTranslations_shortShelfFourIcons_atCorrectXWithoutOverflowDot() 149 iconContainer.addView(iconOne) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot() 150 iconContainer.addView(iconTwo) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot() 151 iconContainer.addView(iconThree) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot() 152 iconContainer.addView(iconFour) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot() 153 iconContainer.addView(iconFive) in calculateIconXTranslations_shortShelfFiveIcons_atCorrectXWithOverflowDot() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelSwitchToParentTest.kt | 58 parent1.addView(view1A) in setUp() 60 parent1.addView(view1B) in setUp() 62 parent1.addView(view1C) in setUp() 65 parent2.addView(view2A) in setUp() 67 parent2.addView(view2B) in setUp() 69 parent2.addView(view2C) in setUp() 94 parent1.addView(movingView, 0) in testMoveToEndDifferentParent() 108 parent2.addView(movingView, 0) in testMoveToEndSameParent() 134 parent1.addView(movingView, 1) in testMoveToMiddleDifferentParent() 148 parent2.addView(movingView, 0) in testMoveToMiddleSameParent()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | HorizontalFocusSearch.java | 68 mLayout.addView(mLeftTall); in onCreate() 74 mLayout.addView(mRightTall); in onCreate() 124 ll.addView(filler); in addShort() 125 ll.addView(button); in addShort() 126 root.addView(ll); in addShort() 128 ll.addView(button); in addShort() 129 ll.addView(filler); in addShort() 130 root.addView(ll); in addShort()
|
D | VerticalFocusSearch.java | 75 mLayout.addView(mTopWide); in onCreate() 82 mLayout.addView(mBottomWide); in onCreate() 140 ll.addView(filler); in addSkinny() 141 ll.addView(button); in addSkinny() 142 root.addView(ll); in addSkinny() 144 ll.addView(button); in addSkinny() 145 ll.addView(filler); in addSkinny() 146 root.addView(ll); in addSkinny()
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestGridLayoutCodeRtl.java | 59 currentView.addView(create(currentView.getContext())); in onViewCreated() 89 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); in create() 95 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); in create() 100 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); in create() 106 layout.addView(c, new GridLayout.LayoutParams(row3, col2)); in create() 111 layout.addView(c, new GridLayout.LayoutParams(row4, col1c)); in create() 117 layout.addView(c, new GridLayout.LayoutParams(row4, col2)); in create() 121 layout.addView(c, new GridLayout.LayoutParams(row5, col3)); in create() 126 layout.addView(c, new GridLayout.LayoutParams(row6, col4a)); in create() 131 layout.addView(c, new GridLayout.LayoutParams(row7, col4b)); in create()
|
D | BiDiTestGridLayoutCodeLtr.java | 59 currentView.addView(create(currentView.getContext())); in onViewCreated() 89 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); in create() 95 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); in create() 100 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); in create() 106 layout.addView(c, new GridLayout.LayoutParams(row3, col2)); in create() 111 layout.addView(c, new GridLayout.LayoutParams(row4, col1c)); in create() 117 layout.addView(c, new GridLayout.LayoutParams(row4, col2)); in create() 121 layout.addView(c, new GridLayout.LayoutParams(row5, col3)); in create() 126 layout.addView(c, new GridLayout.LayoutParams(row6, col4a)); in create() 131 layout.addView(c, new GridLayout.LayoutParams(row7, col4b)); in create()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | MultiLayersActivity.java | 38 grid.addView(row1, new LinearLayout.LayoutParams( in onCreate() 43 grid.addView(row2, new LinearLayout.LayoutParams( in onCreate() 46 row1.addView(new LayerView(this, 0xffff0000), new LinearLayout.LayoutParams( in onCreate() 48 row1.addView(new LayerView(this, 0x0f00ff00), new LinearLayout.LayoutParams( in onCreate() 51 row2.addView(new LayerView(this, 0x0f0000ff), new LinearLayout.LayoutParams( in onCreate() 53 row2.addView(new LayerView(this, 0xffffff00), new LinearLayout.LayoutParams( in onCreate()
|
D | PictureCaptureDemo.java | 57 inner.addView(spinner, in onCreate() 60 inner.addView(new View(this), new LayoutParams(50, 1)); in onCreate() 73 inner.addView(iv1, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate() 75 inner.addView(new View(this), new LayoutParams(50, 1)); in onCreate() 79 inner.addView(iv2, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate() 84 inner.addView(hello, in onCreate() 87 layout.addView(inner, in onCreate() 96 layout.addView(wv, wvParams); in onCreate() 99 layout.addView(mySurfaceView, in onCreate()
|
D | StretchShaderActivity.java | 237 linearLayout.addView(mImageView, in onCreate() 243 linearLayout.addView(overscrollXText, in onCreate() 248 linearLayout.addView(overscrollXBar, in onCreate() 255 linearLayout.addView(overscrollYText, in onCreate() 260 linearLayout.addView(overscrollYBar, in onCreate() 267 linearLayout.addView(scrollXText, in onCreate() 273 linearLayout.addView(scrollXSeekBar, in onCreate() 279 linearLayout.addView(scrollYText, in onCreate() 285 linearLayout.addView(scrollYSeekBar, in onCreate() 291 linearLayout.addView(stretchIntensityText, in onCreate() [all …]
|
D | SurfaceViewAlphaActivity.java | 73 overlapLayout.addView(leftBlueView, leftViewLayoutParams); in overlapViews() 78 overlapLayout.addView(view, sVLayoutParams); in overlapViews() 86 overlapLayout.addView(rightBlueView, rightViewLayoutParams); in overlapViews() 88 parent.addView(overlapLayout, new LinearLayout.LayoutParams( in overlapViews() 129 content.addView(alphaText, new LinearLayout.LayoutParams( in onCreate() 133 content.addView(alphaToggle, new LinearLayout.LayoutParams( in onCreate() 145 content.addView(button, new LinearLayout.LayoutParams( in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 60 ll.addView(topButton); in twoButtonsSeparatedByFiller() 67 ll.addView(middleFiller); in twoButtonsSeparatedByFiller() 72 ll.addView(bottomButton); in twoButtonsSeparatedByFiller() 121 ll.addView(button, lp); in horizontalButtonSlots() 123 ll.addView(new View(context), lp); in horizontalButtonSlots() 129 ll.addView(button, lp); in horizontalButtonSlots() 131 ll.addView(new View(context), lp); in horizontalButtonSlots() 137 ll.addView(button, lp); in horizontalButtonSlots() 139 ll.addView(new View(context), lp); in horizontalButtonSlots() 254 ll.addView(t1, lp1); in doubleText() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayControllerTest.kt | 124 verify(windowManager).addView(any(), capture(windowParamsCaptor)) in displayView_viewAddedWithCorrectTitle() 184 verify(windowManager, never()).addView(any(), any()) in displayView_twice_viewNotAddedTwice() 210 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in displayView_twiceWithDifferentIds_oldViewRemovedNewViewAdded() 297 verify(windowManager).addView(any(), any()) in displayScaleChange_viewReinflatedWithMostRecentState() 324 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in multipleViewsWithDifferentIds_moreRecentReplacesOlder() 342 verify(windowManager).addView(any(), any()) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 348 verify(windowManager).addView(any(), any()) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 360 verify(windowManager).addView(any(), any()) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 381 verify(windowManager).addView(any(), any()) in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed() 387 verify(windowManager).addView(any(), any()) in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | MessagingLinearLayoutTest.java | 57 mView.addView(child); in testSingleChild() 71 mView.addView(child1); in testLargeSmall() 72 mView.addView(child2); in testLargeSmall() 87 mView.addView(child1); in testSmallSmall() 88 mView.addView(child2); in testSmallSmall() 103 mView.addView(child1); in testLargeLarge() 104 mView.addView(child2); in testLargeLarge() 119 mView.addView(child1); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax() 120 mView.addView(child2); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | FindViewByIdTest.java | 59 contentView.addView(child1); in testFindViewById() 60 contentView.addView(child2); in testFindViewById() 73 contentView.addView(child1); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 74 contentView.addView(child2); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 93 contentView.addView(child1); in testFindViewByIdReturnNullIfNotImportant() 94 contentView.addView(child2); in testFindViewByIdReturnNullIfNotImportant()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/ |
D | ReverseLinearLayout.java | 51 public void addView(View child) { in addView() method in ReverseLinearLayout 54 super.addView(child, 0); in addView() 56 super.addView(child); in addView() 61 public void addView(View child, ViewGroup.LayoutParams params) { in addView() method in ReverseLinearLayout 64 super.addView(child, 0, params); in addView() 66 super.addView(child, params); in addView() 99 super.addView(child); in updateOrder()
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | ReverseLinearLayout.java | 53 public void addView(View child) { in addView() method in ReverseLinearLayout 56 super.addView(child, 0); in addView() 58 super.addView(child); in addView() 63 public void addView(View child, ViewGroup.LayoutParams params) { in addView() method in ReverseLinearLayout 66 super.addView(child, 0, params); in addView() 68 super.addView(child, params); in addView() 101 super.addView(child); in updateOrder()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | ElementLayoutActivity.java | 53 mLayout.addView(mIndicator); in onCreate() 98 mLayout.addView(textView); in createTextView() 104 mLayout.addView(button); in createRadioButton() 110 mLayout.addView(button); in createToggleButton() 116 mLayout.addView(button); in createSwitch() 122 mLayout.addView(chronometer); in createChronometer()
|
/frameworks/base/tests/graphics/VectorDrawableTest/src/com/android/test/dynamic/ |
D | ScaleDrawableTests.java | 48 scrollView.addView(container); in onCreate() 59 container.addView(t); in onCreate() 67 container.addView(png_view); in onCreate() 73 container.addView(view); in onCreate() 79 container.addView(avd_view); in onCreate()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/ |
D | RemoteComposePlayer.java | 103 horizontalScrollView.addView(mInner, layoutParamsInner); in applyContentBehavior() 107 addView(horizontalScrollView, layoutParams); in applyContentBehavior() 120 scrollView.addView(mInner, layoutParamsInner); in applyContentBehavior() 124 addView(scrollView, layoutParams); in applyContentBehavior() 134 addView(mInner, layoutParams); in applyContentBehavior() 145 addView(mInner, layoutParams); in init()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | DisableSubpixelTextTransitionListenerTest.kt | 46 childView.addView(childOfChildTextView) in setup() 47 rootView.addView(childTextView) in setup() 48 rootView.addView(childView) in setup() 121 rootViewWithNoTextView.addView(childViewWithNoTextView) in whenRootViewHasNoChildTextView_flagNotAddedToRelatedTextviews() 122 rootView.addView(rootViewWithNoTextView) in whenRootViewHasNoChildTextView_flagNotAddedToRelatedTextviews()
|
/frameworks/base/startop/apps/test/src/ |
D | InteractiveMicrobenchmarkActivity.java | 60 mBenchmarkList.addView(header, params); in addHeader() 88 mBenchmarkList.addView(button); in addBenchmark() 89 mBenchmarkList.addView(mean); in addBenchmark() 90 mBenchmarkList.addView(stdev); in addBenchmark()
|