Home
last modified time | relevance | path

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

1234567

/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()
DGetBitmapActivity.java75 FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.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/
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()
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()
DGoneParentFocusedChild.java73 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
74 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
DListWithFooterViewAndNewLabels.java49 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
50 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
DListOfEditTexts.java56 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
86 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/volley/tests/src/com/android/volley/toolbox/
DNetworkImageViewTest.java18 … mNIV.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in testSetImageUrl_requestsImage()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java81 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
150 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
166 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
199 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createTabLayout()
207 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createSpinner()
445 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
446 LayoutParams.WRAP_CONTENT); in update()
465 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
466 LayoutParams.WRAP_CONTENT); in update()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DScrollingTabContainerView.java88 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
157 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
173 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
206 … LinearLayoutCompat.LayoutParams.WRAP_CONTENT, LinearLayoutCompat.LayoutParams.MATCH_PARENT)); in createTabLayout()
214 … LinearLayoutCompat.LayoutParams.WRAP_CONTENT, LinearLayoutCompat.LayoutParams.MATCH_PARENT)); in createSpinner()
468 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
469 LayoutParams.WRAP_CONTENT); in update()
488 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
489 LayoutParams.WRAP_CONTENT); in update()
/frameworks/base/core/java/android/widget/
DRadioGroup.java240 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
318 width = WRAP_CONTENT; in setBaseAttributes()
324 height = WRAP_CONTENT; in setBaseAttributes()
/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()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DRowContainerView.java51 setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in RowContainerView()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java156 LinearLayout.LayoutParams.WRAP_CONTENT)); in addLabelToRoot()
161 LinearLayout.LayoutParams.WRAP_CONTENT)); in addChildToRoot()
196 view.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, in addCanvasBitmap()
197 LinearLayout.LayoutParams.WRAP_CONTENT)); in addCanvasBitmap()
/frameworks/volley/src/com/android/volley/toolbox/
DNetworkImageView.java109 wrapWidth = getLayoutParams().width == LayoutParams.WRAP_CONTENT; in loadImageIfNecessary()
110 wrapHeight = getLayoutParams().height == LayoutParams.WRAP_CONTENT; in loadImageIfNecessary()

1234567