Home
last modified time | relevance | path

Searched refs:WRAP_CONTENT (Results 1 – 25 of 199) sorted by relevance

12345678

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerWrapContentTest.java23 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
68 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in testSimple()
70 new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT), in testSimple()
71 new MeasureBehavior(10, 15, WRAP_CONTENT, WRAP_CONTENT), in testSimple()
72 new MeasureBehavior(10, 20, WRAP_CONTENT, WRAP_CONTENT), in testSimple()
73 new MeasureBehavior(20, 10, WRAP_CONTENT, WRAP_CONTENT) in testSimple()
88 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in testSimpleHorizontal()
90 new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT), in testSimpleHorizontal()
91 new MeasureBehavior(15, 10, WRAP_CONTENT, WRAP_CONTENT), in testSimpleHorizontal()
92 new MeasureBehavior(20, 10, WRAP_CONTENT, WRAP_CONTENT), in testSimpleHorizontal()
[all …]
DGridLayoutManagerWrapContentTest.java24 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
96 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in testVerticalWithItemDecors()
98 new MeasureBehavior(10, 10, WRAP_CONTENT, MATCH_PARENT) in testVerticalWithItemDecors()
116 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in testHorizontalWithItemDecors()
118 new MeasureBehavior(10, 10, MATCH_PARENT, WRAP_CONTENT) in testHorizontalWithItemDecors()
131 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in testHorizontal()
133 new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT), in testHorizontal()
134 new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT), in testHorizontal()
135 new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT), in testHorizontal()
136 new MeasureBehavior(20, 10, WRAP_CONTENT, WRAP_CONTENT) in testHorizontal()
[all …]
DGridLayoutManagerWrapContentWithAspectRatioTest.java34 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
95 mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT); in init()
118 mTestOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT, in testChildWithMultipleSpans()
119 mTestOrientation == VERTICAL ? MATCH_PARENT : WRAP_CONTENT); in testChildWithMultipleSpans()
123 mTestOrientation == VERTICAL ? 30 : 10, WRAP_CONTENT, WRAP_CONTENT); in testChildWithMultipleSpans()
204 mTestOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT, in testChildWithMatchParentInOtherDirection()
205 mTestOrientation == VERTICAL ? MATCH_PARENT : WRAP_CONTENT); in testChildWithMatchParentInOtherDirection()
209 mTestOrientation == VERTICAL ? 15 : 10, WRAP_CONTENT, WRAP_CONTENT); in testChildWithMatchParentInOtherDirection()
281 behavior1 = new MeasureBehavior(mBehavior1Size, mBehavior1Size, WRAP_CONTENT, WRAP_CONTENT); in testAllChildrenWrapContentInOtherDirection()
285 mTestOrientation == VERTICAL ? 15 : 10, WRAP_CONTENT, WRAP_CONTENT); in testAllChildrenWrapContentInOtherDirection()
DLinearLayoutManagerWrapContentWithAspectRatioTest.java35 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
111 ViewGroup.LayoutParams.WRAP_CONTENT, in wrapContentAffectsOtherOrientation()
112 ViewGroup.LayoutParams.WRAP_CONTENT); in wrapContentAffectsOtherOrientation()
132 WRAP_CONTENT, WRAP_CONTENT).aspectRatio(testOrientation, mRatio); in wrapContentAffectsOtherOrientation()
134 testOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT, in wrapContentAffectsOtherOrientation()
135 testOrientation == VERTICAL ? MATCH_PARENT : WRAP_CONTENT) in wrapContentAffectsOtherOrientation()
138 testOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT, in wrapContentAffectsOtherOrientation()
139 testOrientation == VERTICAL ? MATCH_PARENT : WRAP_CONTENT) in wrapContentAffectsOtherOrientation()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DDelayedTransition.java50 LayoutParams.WRAP_CONTENT)); in onCreate()
52 button2.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
56 button1.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
57 LayoutParams.WRAP_CONTENT)); in onCreate()
59 button2.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
60 LayoutParams.WRAP_CONTENT)); in onCreate()
/frameworks/base/core/tests/coretests/src/android/view/
DCreateViewTest.java25 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout5()
95 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
99 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
103 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
107 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
111 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
115 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout6()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDisplayListLayersActivity.java33 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
45 WRAP_CONTENT, WRAP_CONTENT); in onCreate()
47 WRAP_CONTENT, WRAP_CONTENT); in onCreate()
48 addChild(root, createButton(root), WRAP_CONTENT, WRAP_CONTENT); in onCreate()
DTextGammaActivity.java42 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
59 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate()
60 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
93 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
DGlyphCacheActivity.java44 layout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in onCreate()
45 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
59 textview.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, in createTextView()
60 ViewGroup.LayoutParams.WRAP_CONTENT)); in createTextView()
DTextureViewActivity.java92 FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, in onCreate()
95 FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, in onCreate()
DNinePatchesActivity.java33 b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, in onCreate()
34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER)); in onCreate()
DTimeDialogActivity.java35 b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, in onCreate()
36 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER)); in onCreate()
DMarqueeActivity.java43 100, LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate()
51 100, LinearLayout.LayoutParams.WRAP_CONTENT); in onCreate()
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DLinearLayoutTest.java25 import static android.widget.LinearLayout.LayoutParams.WRAP_CONTENT;
36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT); in create()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearch.java106 ViewGroup.LayoutParams.WRAP_CONTENT)); in makeWide()
123 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
130 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
137 ViewGroup.LayoutParams.WRAP_CONTENT)); in addSkinny()
DHorizontalFocusSearch.java97 ViewGroup.LayoutParams.WRAP_CONTENT, in makeTall()
106 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
113 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
120 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
DGoneParentFocusedChild.java73 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
74 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java184 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
188 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
192 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
196 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
200 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
204 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); in set()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DShadowOverlayContainerTest.java31 textView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, in testWrapContent()
32 LayoutParams.WRAP_CONTENT)); in testWrapContent()
62 textView.setLayoutParams(new FrameLayout.LayoutParams(200, LayoutParams.WRAP_CONTENT));
92 LayoutParams.WRAP_CONTENT));
/frameworks/base/core/java/android/widget/
DRadioGroup.java240 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
311 width = WRAP_CONTENT; in setBaseAttributes()
317 height = WRAP_CONTENT; in setBaseAttributes()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java80 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
149 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
167 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
200 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createTabLayout()
208 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createSpinner()
438 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
439 LayoutParams.WRAP_CONTENT); in update()
458 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
459 LayoutParams.WRAP_CONTENT); in update()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DScrollingTabContainerView.java87 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
156 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
172 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
205 … LinearLayoutCompat.LayoutParams.WRAP_CONTENT, LinearLayoutCompat.LayoutParams.MATCH_PARENT)); in createTabLayout()
213 LinearLayoutCompat.LayoutParams.WRAP_CONTENT, in createSpinner()
473 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
474 LayoutParams.WRAP_CONTENT); in update()
493 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
494 LayoutParams.WRAP_CONTENT); in update()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java305 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
306 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
313 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
314 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
320 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
321 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
359 ViewGroup.LayoutParams.WRAP_CONTENT, in createButton()
360 ViewGroup.LayoutParams.WRAP_CONTENT)); in createButton()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestResultActivity.java55 mTextView, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate()
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java161 ViewGroup.LayoutParams.WRAP_CONTENT); in button()
201 ViewGroup.LayoutParams.WRAP_CONTENT); in text()
253 ViewGroup.LayoutParams.WRAP_CONTENT, 1.0f); in doubleText()
262 ViewGroup.LayoutParams.WRAP_CONTENT, in doubleText()

12345678