Home
last modified time | relevance | path

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

1234

/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()
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/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/core/java/com/android/internal/app/
DPlatLogoActivity.java49 ViewGroup.LayoutParams.WRAP_CONTENT, in makeView()
50 ViewGroup.LayoutParams.WRAP_CONTENT in makeView()
60 LinearLayout.LayoutParams.WRAP_CONTENT, in makeView()
61 LinearLayout.LayoutParams.WRAP_CONTENT); in makeView()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java77 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
146 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
162 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
192 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createTabLayout()
200 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createSpinner()
415 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
416 LayoutParams.WRAP_CONTENT); in update()
434 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, in update()
435 LayoutParams.WRAP_CONTENT); in update()
DActionBarContextView.java111 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitActionBar()
226 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode()
314 return new MarginLayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
374 final int customWidthMode = lp.width != LayoutParams.WRAP_CONTENT ? in onMeasure()
378 final int customHeightMode = lp.height != LayoutParams.WRAP_CONTENT ? in onMeasure()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java146 LinearLayout.LayoutParams.WRAP_CONTENT, in buildUi()
147 LinearLayout.LayoutParams.WRAP_CONTENT)); in buildUi()
155 LinearLayout.LayoutParams.WRAP_CONTENT, in buildUi()
156 LinearLayout.LayoutParams.WRAP_CONTENT)); in buildUi()
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DLinearLayoutTest.java36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT); in create()
/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()
DListPopupWindow.java61 private int mDropDownHeight = ViewGroup.LayoutParams.WRAP_CONTENT;
62 private int mDropDownWidth = ViewGroup.LayoutParams.WRAP_CONTENT;
124 public static final int WRAP_CONTENT = ViewGroup.LayoutParams.WRAP_CONTENT; field in ListPopupWindow
537 } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
557 } else if (mDropDownHeight == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
571 if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
581 if (mDropDownHeight == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
1099 case ViewGroup.LayoutParams.WRAP_CONTENT: in buildDropDown()
DTableRow.java303 case LayoutParams.WRAP_CONTENT: in getColumnsWidths()
304 … spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT); in getColumnsWidths()
470 super(MATCH_PARENT, WRAP_CONTENT); in LayoutParams()
516 height = WRAP_CONTENT; in setBaseAttributes()
DAbsoluteLayout.java103 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0); in generateDefaultLayoutParams()
/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/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeConstants.java50 public final static String WRAP_CONTENT = "wrap_content"; field in BridgeConstants

1234