Home
last modified time | relevance | path

Searched refs:LayoutParams (Results 1 – 25 of 245) sorted by relevance

12345678910

/frameworks/base/core/java/android/widget/
DTableRow.java162 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns()
193 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout()
225 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout()
234 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT]; in measureChildBeforeLayout()
237 … lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2; in measureChildBeforeLayout()
241 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0; in measureChildBeforeLayout()
255 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getChildrenSkipCount()
266 return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION]; in getLocationOffset()
274 … return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION_NEXT]; in getNextLocationOffset()
297 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getColumnsWidths()
[all …]
DAbsoluteLayout.java72 AbsoluteLayout.LayoutParams lp in onMeasure()
73 = (AbsoluteLayout.LayoutParams) child.getLayoutParams(); in onMeasure()
102 protected ViewGroup.LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
103 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0); in generateDefaultLayoutParams()
115 AbsoluteLayout.LayoutParams lp = in onLayout()
116 (AbsoluteLayout.LayoutParams) child.getLayoutParams(); in onLayout()
129 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
130 return new AbsoluteLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
135 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { in checkLayoutParams()
136 return p instanceof AbsoluteLayout.LayoutParams; in checkLayoutParams()
[all …]
DRadioGroup.java126 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView()
222 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
223 return new RadioGroup.LayoutParams(getContext(), attrs); in generateLayoutParams()
230 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { in checkLayoutParams()
231 return p instanceof RadioGroup.LayoutParams; in checkLayoutParams()
235 protected LinearLayout.LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
236 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in generateDefaultLayoutParams()
249 public static class LayoutParams extends LinearLayout.LayoutParams { class in RadioGroup
253 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() method in RadioGroup.LayoutParams
260 public LayoutParams(int w, int h) { in LayoutParams() method in RadioGroup.LayoutParams
[all …]
DFrameLayout.java193 protected LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
194 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in generateDefaultLayoutParams()
294 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
301 if (lp.width == LayoutParams.MATCH_PARENT || in onMeasure()
302 lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
337 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure()
349 if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
384 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout()
536 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
537 return new FrameLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
[all …]
DTableLayout.java411 public void addView(View child, ViewGroup.LayoutParams params) { in addView()
420 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView()
497 final ViewGroup.LayoutParams layoutParams = row.getLayoutParams(); in findLargestCells()
498 layoutParams.height = LayoutParams.WRAP_CONTENT; in findLargestCells()
631 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
632 return new TableLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
641 protected LinearLayout.LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
642 return new LayoutParams(); in generateDefaultLayoutParams()
649 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { in checkLayoutParams()
650 return p instanceof TableLayout.LayoutParams; in checkLayoutParams()
[all …]
DPopupWindow.java86 private int mSoftInputMode = WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED;
118 private int mWindowLayoutType = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
135 WindowManager.LayoutParams p = (WindowManager.LayoutParams)
833 WindowManager.LayoutParams p = createPopupLayout(token); in showAtLocation()
887 WindowManager.LayoutParams p = createPopupLayout(anchor.getWindowToken()); in showAsDropDown()
944 private void preparePopup(WindowManager.LayoutParams p) { in preparePopup()
951 final ViewGroup.LayoutParams layoutParams = mContentView.getLayoutParams(); in preparePopup()
952 int height = ViewGroup.LayoutParams.MATCH_PARENT; in preparePopup()
954 layoutParams.height == ViewGroup.LayoutParams.WRAP_CONTENT) { in preparePopup()
955 height = ViewGroup.LayoutParams.WRAP_CONTENT; in preparePopup()
[all …]
DLinearLayout.java309 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
322 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical()
336 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
349 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal()
468 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams(); in getBaseline()
634 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams(); in measureVertical()
653 lp.height = LayoutParams.WRAP_CONTENT; in measureVertical()
697 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
711 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
748 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) in measureVertical()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuView.java150 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
188 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
214 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
244 LayoutParams lp = (LayoutParams) getChildAt(0).getLayoutParams(); in onMeasureExactFormat()
248 LayoutParams lp = ((LayoutParams) getChildAt(childCount - 1).getLayoutParams()); in onMeasureExactFormat()
260 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
297 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
329 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildForCells()
380 LayoutParams p = (LayoutParams) v.getLayoutParams(); in onLayout()
425 final LayoutParams lp = (LayoutParams) v.getLayoutParams(); in onLayout()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java51 final LinearLayout.LayoutParams buttonLp = in twoButtonsSeparatedByFiller()
52 new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller()
53 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
63 middleFiller.setLayoutParams(new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller()
64 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
96 final LinearLayout.LayoutParams lp in horizontalButtonSlots()
97 = new LinearLayout.LayoutParams(0, desiredHeight); in horizontalButtonSlots()
159 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in button()
160 ViewGroup.LayoutParams.MATCH_PARENT, in button()
161 ViewGroup.LayoutParams.WRAP_CONTENT); in button()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DCreateViewTest.java24 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
25 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
48 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout2()
56 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
59 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
62 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
65 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
68 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
71 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3()
86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)); in testLayout5()
[all …]
DBigCache.java41 testBed.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
42 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate()
59 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height)); in onCreate()
62 scroller.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
63 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfEditTexts.java47 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
48 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
49 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
54 new LinearLayout.LayoutParams( in onCreate()
55 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
56 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
62 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
63 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
64 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
67 mListView.setLayoutParams((new LinearLayout.LayoutParams( in onCreate()
[all …]
DVerticalFocusSearch.java70 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
71 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
72 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide()
105 ViewGroup.LayoutParams.MATCH_PARENT, in makeWide()
106 ViewGroup.LayoutParams.WRAP_CONTENT)); in makeWide()
121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny()
123 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
128 filler.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny()
130 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
[all …]
DHorizontalFocusSearch.java63 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
64 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
65 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall()
97 ViewGroup.LayoutParams.WRAP_CONTENT, in makeTall()
98 ViewGroup.LayoutParams.MATCH_PARENT)); in makeTall()
105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort()
106 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
112 filler.setLayoutParams(new LinearLayout.LayoutParams( in addShort()
113 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
[all …]
DGoneParentFocusedChild.java60 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
61 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
62 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
67 mGoneGroup.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
68 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
69 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
72 mButton.setLayoutParams(new LinearLayout.LayoutParams( in onCreate()
73 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
74 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DKeyguardViewManager.java55 private WindowManager.LayoutParams mWindowLayoutParams;
117 final int stretch = ViewGroup.LayoutParams.MATCH_PARENT; in show()
118 int flags = WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN in show()
119 | WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER in show()
120 | WindowManager.LayoutParams.FLAG_KEEP_SURFACE_WHILE_ANIMATING in show()
124 flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; in show()
128 flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; in show()
130 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in show()
131 stretch, stretch, WindowManager.LayoutParams.TYPE_KEYGUARD, in show()
133 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE; in show()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextGammaActivity.java41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate()
42 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
58 layout.addView(image, new LinearLayout.LayoutParams( in onCreate()
59 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate()
60 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
92 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate()
93 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
/frameworks/support/v4/java/android/support/v4/app/
DListFragment.java105 pframe.addView(progress, new FrameLayout.LayoutParams( in onCreateView()
106 ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreateView()
108 root.addView(pframe, new FrameLayout.LayoutParams( in onCreateView()
109 ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); in onCreateView()
119 lframe.addView(tv, new FrameLayout.LayoutParams( in onCreateView()
120 ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); in onCreateView()
125 lframe.addView(lv, new FrameLayout.LayoutParams( in onCreateView()
126 ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); in onCreateView()
128 root.addView(lframe, new FrameLayout.LayoutParams( in onCreateView()
129 ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); in onCreateView()
[all …]
/frameworks/base/core/java/android/view/
DWindow.java139 private final WindowManager.LayoutParams mWindowAttributes =
140 new WindowManager.LayoutParams();
290 public void onWindowAttributesChanged(WindowManager.LayoutParams attrs); in onWindowAttributesChanged()
490 public final void addView(View view, ViewGroup.LayoutParams params) { in addView()
492 WindowManager.LayoutParams wp = (WindowManager.LayoutParams)params; in addView()
494 if (wp.type >= WindowManager.LayoutParams.FIRST_SUB_WINDOW && in addView()
495 wp.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) { in addView()
504 if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA) { in addView()
506 … } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY) { in addView()
508 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) { in addView()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DSoftInputWindow.java43 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setToken()
99 WindowManager.LayoutParams lp = getWindow().getAttributes(); in getSize()
118 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setSize()
139 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setGravity()
156 WindowManager.LayoutParams lp = getWindow().getAttributes(); in initDockWindow()
158 lp.type = WindowManager.LayoutParams.TYPE_INPUT_METHOD; in initDockWindow()
169 WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | in initDockWindow()
170 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, in initDockWindow()
171 WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | in initDockWindow()
172 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | in initDockWindow()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java77 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in ScrollingTabContainerView()
78 ViewGroup.LayoutParams.MATCH_PARENT)); in ScrollingTabContainerView()
145 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performCollapse()
146 ViewGroup.LayoutParams.MATCH_PARENT)); in performCollapse()
161 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in performExpand()
162 ViewGroup.LayoutParams.MATCH_PARENT)); in performExpand()
189 tabLayout.setLayoutParams(new LinearLayout.LayoutParams( in createTabLayout()
190 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createTabLayout()
197 spinner.setLayoutParams(new LinearLayout.LayoutParams( in createSpinner()
198 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)); in createSpinner()
[all …]
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
DBigEditTextActivityScrollablePanScan.java39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); in onCreate()
43 mRootView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
44 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
45 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
49 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
50 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
51 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
DBigEditTextActivityScrollableResize.java39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); in onCreate()
43 mRootView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
44 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
45 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
49 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
50 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
51 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemISVAndButton.java49 isv.setLayoutParams(new LinearLayout.LayoutParams( in createView()
50 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
54 final LinearLayout.LayoutParams buttonLp = in createView()
55 new LinearLayout.LayoutParams( in createView()
56 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
65 filler.setLayoutParams(new LinearLayout.LayoutParams( in createView()
66 ViewGroup.LayoutParams.MATCH_PARENT, in createView()
/frameworks/base/core/java/android/preference/
DPreferenceFrameLayout.java79 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
80 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
90 android.view.ViewGroup.LayoutParams params = child.getLayoutParams(); in addView()
91 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams in addView()
92 ? (PreferenceFrameLayout.LayoutParams) child.getLayoutParams() : null; in addView()
126 public static class LayoutParams extends FrameLayout.LayoutParams { class in PreferenceFrameLayout
131 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() method in PreferenceFrameLayout.LayoutParams
145 public LayoutParams(int width, int height) { in LayoutParams() method in PreferenceFrameLayout.LayoutParams

12345678910