Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/tests/coretests/src/android/view/
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 …]
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 …]
DViewGroupTest.java70 viewA.addView(viewB); in testSubtractObscuredTouchableRegion()
71 viewA.addView(viewE); in testSubtractObscuredTouchableRegion()
72 viewB.addView(viewC); in testSubtractObscuredTouchableRegion()
73 viewB.addView(viewD); in testSubtractObscuredTouchableRegion()
74 viewE.addView(viewF); in testSubtractObscuredTouchableRegion()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNearestTouchFrameTest.java62 mNearestTouchFrame.addView(left); in testNoActionOnLargeDevices()
63 mNearestTouchFrame.addView(right); in testNoActionOnLargeDevices()
79 mNearestTouchFrame.addView(left); in testInvisibleViews()
80 mNearestTouchFrame.addView(right); in testInvisibleViews()
98 mNearestTouchFrame.addView(left); in testNearestView_DetachedViewsExcluded()
99 mNearestTouchFrame.addView(right); in testNearestView_DetachedViewsExcluded()
115 mNearestTouchFrame.addView(left); in testHorizontalSelection_Left()
116 mNearestTouchFrame.addView(right); in testHorizontalSelection_Left()
131 mNearestTouchFrame.addView(left); in testHorizontalSelection_Right()
132 mNearestTouchFrame.addView(right); in testHorizontalSelection_Right()
[all …]
DStatusBarIconControllerTest.java119 mGroup.addView(mock, index); in addIcon()
127 mGroup.addView(mock, index); in addSignalIcon()
134 mGroup.addView(mock, index); in addMobileIcon()
154 mGroup.addView(mock, index); in addIcon()
162 mGroup.addView(mock, index); in addSignalIcon()
169 mGroup.addView(mock, index); in addMobileIcon()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
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()
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()
DAdjacentVerticalRectLists.java77 mLayout.addView(mLeftColumn); in onCreate()
82 mLayout.addView(mMiddleColumn); in onCreate()
87 mLayout.addView(mRightColumn); in onCreate()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
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()
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()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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()
DPictureCaptureDemo.java56 inner.addView(spinner, in onCreate()
59 inner.addView(new View(this), new LayoutParams(50, 1)); in onCreate()
72 inner.addView(iv1, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate()
74 inner.addView(new View(this), new LayoutParams(50, 1)); in onCreate()
78 inner.addView(iv2, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate()
80 layout.addView(inner, in onCreate()
87 layout.addView(wv, new LayoutParams(LayoutParams.MATCH_PARENT, 400)); in onCreate()
90 layout.addView(mySurfaceView, in onCreate()
DPointsActivity.java47 container.addView(slider); in onCreate()
52 frame.addView(gpuView); in onCreate()
55 frame.addView(swView); in onCreate()
56 container.addView(frame); in onCreate()
/frameworks/base/core/tests/coretests/src/android/util/
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 …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
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()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
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()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
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()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsLayout.java70 getListView().addView(v, 0); in addToListView()
72 getListView().addView(v); in addToListView()
78 getSeparatedView().addView(v, 0); in addToSeparatedView()
80 getSeparatedView().addView(v); in addToSeparatedView()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java117 original.addView(R.id.layout, child); in clone_child_fails()
148 original.addView(R.id.layout, child); in parcelSize_nestedViews()
157 original.addView(R.id.layout, child); in parcelSize_nestedViews()
228 views.addView(R.id.container, createViewChained(1, "row1-c1", "row1-c2", "row1-c3"));
229 views.addView(R.id.container, createViewChained(5, "row2-c1", "row2-c2"));
230 views.addView(R.id.container, createViewChained(2, "row3-c1", "row3-c2"));
248 viewstub.addView(R.id.stub_inflated, createViewChained(1, "row1-c1", "row1-c2", "row1-c3"));
252 views.addView(R.id.container, viewstub);
253 views.addView(R.id.container, createViewChained(5, "row2-c1", "row2-c2"));
272 parent.addView(R.id.container, child);
[all …]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java183 addView(tv, new LinearLayout.LayoutParams( in set()
187 addView(tv, new LinearLayout.LayoutParams( in set()
191 addView(tv, new LinearLayout.LayoutParams( in set()
195 addView(tv, new LinearLayout.LayoutParams( in set()
199 addView(tv, new LinearLayout.LayoutParams( in set()
203 addView(tv, new LinearLayout.LayoutParams( in set()
/frameworks/base/core/java/android/widget/
DViewSwitcher.java62 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() method in ViewSwitcher
66 super.addView(child, index, params); in addView()
90 addView(child, lp); in obtainView()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemISVAndButton.java52 ll.addView(isv); in createView()
62 ll.addView(topButton); in createView()
69 ll.addView(filler); in createView()

12345678910>>...15