Home
last modified time | relevance | path

Searched refs:addView (Results 1 – 25 of 743) sorted by relevance

12345678910>>...30

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
H A DNearestTouchFrameTest.java84 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()
153 mNearestTouchFrame.addView(left); in testHorizontalSelection_Right()
169 mNearestTouchFrame.addView(top); in testVerticalSelection_Top()
185 mNearestTouchFrame.addView(top); in testVerticalSelection_Bottom()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java48 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 …]
H A DViewGroupChildrenTest.java61 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 …]
H A DViewGroupTest.java57 viewGroup.addView(viewA); in testDispatchMouseEventsUnderCursor()
58 viewGroup.addView(viewB); in testDispatchMouseEventsUnderCursor()
129 viewA.addView(viewB); in testSubtractObscuredTouchableRegion()
130 viewA.addView(viewE); in testSubtractObscuredTouchableRegion()
131 viewB.addView(viewC); in testSubtractObscuredTouchableRegion()
132 viewB.addView(viewD); in testSubtractObscuredTouchableRegion()
133 viewE.addView(viewF); in testSubtractObscuredTouchableRegion()
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DMockView.java65 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 …]
/aosp12/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/
H A DScaledLayoutActivity.java34 frameLayout.addView(createScaledLayoutTestcaseLayout()); in onCreate()
35 frameLayout.addView(createScaledLayoutTestcaseBounceY()); in onCreate()
58 scaledLayout.addView(view1); in createScaledLayoutTestcaseLayout()
59 scaledLayout.addView(view2); in createScaledLayoutTestcaseLayout()
60 scaledLayout.addView(view3); in createScaledLayoutTestcaseLayout()
61 scaledLayout.addView(view4); in createScaledLayoutTestcaseLayout()
78 scaledLayout.addView(view1); in createScaledLayoutTestcaseBounceY()
79 scaledLayout.addView(view2); in createScaledLayoutTestcaseBounceY()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSPanelSwitchToParentTest.kt58 parent1.addView(view1A)
60 parent1.addView(view1B)
62 parent1.addView(view1C)
65 parent2.addView(view2A)
67 parent2.addView(view2B)
69 parent2.addView(view2C)
94 parent1.addView(movingView, 0)
108 parent2.addView(movingView, 0)
134 parent1.addView(movingView, 1)
148 parent2.addView(movingView, 0)
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DHorizontalFocusSearch.java68 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()
H A DVerticalFocusSearch.java75 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()
/aosp12/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestGridLayoutCodeLtr.java59 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()
H A DBiDiTestGridLayoutCodeRtl.java59 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java60 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 …]
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPictureCaptureDemo.java57 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()
H A DMultiLayersActivity.java38 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()
H A DStretchShaderActivity.java237 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()
305 linearLayout.addView(stretchDistanceText, in onCreate()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DMessagingLinearLayoutTest.java57 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
H A DReverseLinearLayout.java51 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DFindViewByIdTest.java59 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()
/aosp12/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java53 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()
/aosp12/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DScaleDrawableTests.java48 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()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/widget/
H A DCarUiTextViewTest.java99 container.post(() -> container.addView(textView)); in testTruncateToVariant_startAsViewGone()
116 container.post(() -> container.addView(textView)); in testSpanOverLastLine()
133 container.post(() -> container.addView(textView)); in testLineBreaks_lineBreakAtEnd()
150 container.post(() -> container.addView(textView)); in testSpan()
168 container.post(() -> container.addView(textView)); in testTextVariants_withCharLimit()
190 container.post(() -> container.addView(textView)); in testTextVariants_withCharLimitNoMaxLines()
211 container.post(() -> container.addView(textView)); in testTextVariants_noFit()
231 container.post(() -> container.addView(textView)); in testTextVariants()
250 container.post(() -> container.addView(textView)); in testTextTruncation_twoShortLines()
267 container.post(() -> container.addView(textView)); in testTextTruncation_oneLongOneShort_withMaxLines()
[all …]
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
H A DBluetoothDeviceFragment.java107 row.addView(deviceName); in checkAllDevices()
108 row.addView(deviceType); in checkAllDevices()
109 mTableLayout.addView(row); in checkAllDevices()
122 row.addView(deviceName); in addDeviceToTable()
123 row.addView(deviceValue); in addDeviceToTable()
124 mTableLayout.addView(row); in addDeviceToTable()
/aosp12/packages/apps/Tag/src/com/android/apps/tag/
H A DTagViewer.java76 private void addView(LayoutInflater inflater, LinearLayout content, View v) { in addView() method in TagViewer
82 content.addView(v); in addView()
94 addView(inflater, content, null); in buildTagViews()
103 addView(inflater, content, null); in buildTagViews()
107 addView(inflater, content, record.getView(this, inflater, content, i)); in buildTagViews()
/aosp12/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
H A DCustomTestActivity.java57 root.addView(horizontalLayout); in createCustomViews()
63 horizontalLayout.addView(createItem(null, i)); in createCustomViews()
66 root.addView(horizontalLayout); in createCustomViews()
84 group.addView(text); in createItem()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconControllerTest.java120 mGroup.addView(mock, index); in addIcon()
128 mGroup.addView(mock, index); in addSignalIcon()
135 mGroup.addView(mock, index); in addMobileIcon()
155 mGroup.addView(mock, index); in addIcon()
163 mGroup.addView(mock, index); in addSignalIcon()
170 mGroup.addView(mock, index); in addMobileIcon()

12345678910>>...30