Home
last modified time | relevance | path

Searched refs:layoutParams (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerCustomSizeInScrollDirectionTest.java75 ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) in customSizeInScrollDirectionTest()
77 if (layoutParams == null) { in customSizeInScrollDirectionTest()
78 layoutParams = new ViewGroup.MarginLayoutParams( in customSizeInScrollDirectionTest()
81 holder.itemView.setLayoutParams(layoutParams); in customSizeInScrollDirectionTest()
85 layoutParams.width = size; in customSizeInScrollDirectionTest()
86 layoutParams.leftMargin = margin; in customSizeInScrollDirectionTest()
87 layoutParams.rightMargin = margin; in customSizeInScrollDirectionTest()
89 layoutParams.height = size; in customSizeInScrollDirectionTest()
90 layoutParams.topMargin = margin; in customSizeInScrollDirectionTest()
91 layoutParams.bottomMargin = margin; in customSizeInScrollDirectionTest()
DBaseWrapContentWithAspectRatioTest.java136 ViewGroup.MarginLayoutParams layoutParams; field in BaseWrapContentWithAspectRatioTest.MeasureBehavior
141 layoutParams = new ViewGroup.MarginLayoutParams( in MeasureBehavior()
147 layoutParams.leftMargin = left; in withMargins()
148 layoutParams.topMargin = top; in withMargins()
149 layoutParams.rightMargin = right; in withMargins()
150 layoutParams.bottomMargin = bottom; in withMargins()
174 view.setLayoutParams(layoutParams); in setLayoutParams()
/frameworks/base/core/java/android/widget/
DTableRow.java163 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns() local
165 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns()
166 virtualCount = layoutParams.column; in mapIndexAndColumns()
169 for (int j = 0; j < layoutParams.span; j++) { in mapIndexAndColumns()
256 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getChildrenSkipCount() local
259 return layoutParams.span - 1; in getChildrenSkipCount()
298 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getColumnsWidths() local
299 if (layoutParams.span == 1) { in getColumnsWidths()
301 switch (layoutParams.width) { in getColumnsWidths()
311 … spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in getColumnsWidths()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java147 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( in createMenuPopup() local
149 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_END); in createMenuPopup()
151 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in createMenuPopup()
152 layoutParams.bottomMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
154 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); in createMenuPopup()
155 layoutParams.topMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
157 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup()
158 listView.setLayoutParams(layoutParams); in createMenuPopup()
DNavigationBar.java97 LayoutParams layoutParams = (LayoutParams) view.getLayoutParams(); in setSize() local
99 layoutParams.width = size; in setSize()
101 layoutParams.height = size; in setSize()
103 view.setLayoutParams(layoutParams); in setSize()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRowPresenter.java466 ViewGroup.MarginLayoutParams layoutParams = in bindImageDrawable() local
512 layoutParams.setMarginStart(horizontalMargin); in bindImageDrawable()
513 layoutParams.topMargin = layoutParams.bottomMargin = verticalMargin; in bindImageDrawable()
518 layoutParams.leftMargin = layoutParams.topMargin = layoutParams.bottomMargin = 0; in bindImageDrawable()
529 layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in bindImageDrawable()
530 layoutParams.width = ViewGroup.LayoutParams.WRAP_CONTENT; in bindImageDrawable()
534 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in bindImageDrawable()
536 layoutParams.width = Math.min(cardHeight, drawableWidth); in bindImageDrawable()
538 vh.mImageView.setLayoutParams(layoutParams); in bindImageDrawable()
/frameworks/base/core/java/com/android/internal/widget/
DMediaNotificationView.java66 ViewGroup.MarginLayoutParams layoutParams = in onMeasure() local
68 int imageEndMargin = layoutParams.getMarginEnd(); in onMeasure()
72 layoutParams.width = size; in onMeasure()
73 layoutParams.height = size; in onMeasure()
74 mRightIcon.setLayoutParams(layoutParams); in onMeasure()
DActionBarContextView.java109 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local
116 addView(mMenuView, layoutParams); in setSplitToolbar()
124 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
125 layoutParams.height = mContentHeight; in setSplitToolbar()
130 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
224 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local
230 addView(mMenuView, layoutParams); in initForMode()
238 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode()
239 layoutParams.height = mContentHeight; in initForMode()
243 mSplitView.addView(mMenuView, layoutParams); in initForMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableView.java69 ViewGroup.LayoutParams layoutParams = child.getLayoutParams(); in onMeasure() local
70 if (layoutParams.height != ViewGroup.LayoutParams.MATCH_PARENT) { in onMeasure()
71 if (layoutParams.height >= 0) { in onMeasure()
73 childHeightSpec = layoutParams.height > ownMaxHeight in onMeasure()
75 : MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in onMeasure()
78 getChildMeasureSpec(widthMeasureSpec, 0 /* padding */, layoutParams.width), in onMeasure()
DKeyboardShortcutKeysLayout.java63 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in onMeasure() local
68 child.getMeasuredHeight() + layoutParams.mVerticalSpacing); in onMeasure()
74 xPos += childWidth + layoutParams.mHorizontalSpacing; in onMeasure()
96 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) { in generateLayoutParams() argument
98 return new LayoutParams(spacing, spacing, layoutParams); in generateLayoutParams()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java237 private ViewGroup.LayoutParams copy(ViewGroup.LayoutParams layoutParams) { in copy() argument
238 if (layoutParams instanceof LinearLayout.LayoutParams) { in copy()
239 return new LinearLayout.LayoutParams(layoutParams.width, layoutParams.height, in copy()
240 ((LinearLayout.LayoutParams) layoutParams).weight); in copy()
242 return new LayoutParams(layoutParams.width, layoutParams.height); in copy()
DPhoneStatusBarView.java192 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in onDensityOrFontScaleChanged() local
193 layoutParams.height = getResources().getDimensionPixelSize( in onDensityOrFontScaleChanged()
195 setLayoutParams(layoutParams); in onDensityOrFontScaleChanged()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DViewStubCompat.java214 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in inflate() local
215 if (layoutParams != null) { in inflate()
216 parent.addView(view, index, layoutParams); in inflate()
/frameworks/base/core/java/android/view/
DViewStub.java269 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in inflate() local
270 if (layoutParams != null) { in inflate()
271 parent.addView(view, index, layoutParams); in inflate()
/frameworks/base/core/java/android/preference/
DPreferenceFrameLayout.java95 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams in addView() local
98 if (layoutParams != null && layoutParams.removeBorders) { in addView()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DDataBindingUtilTest.java60 LayoutParams layoutParams = binding.getRoot().getLayoutParams(); in testSetContentView() local
61 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetContentView()
62 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testSetContentView()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseErrorSupportActivity.java82 … FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(100, 100, Gravity.CENTER); in onCreateView() local
83 progressBar.setLayoutParams(layoutParams); in onCreateView()
DBrowseErrorActivity.java80 … FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(100, 100, Gravity.CENTER); in onCreateView() local
81 progressBar.setLayoutParams(layoutParams); in onCreateView()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DAsyncListUtilActivity.java53 final ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in onCreate() local
55 mRecyclerView.setLayoutParams(layoutParams); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java104 final ViewGroup.LayoutParams layoutParams = mPreview.getLayoutParams(); in inflatePreview() local
105 layoutParams.width = (int) ((isPhoneLandscape ? display.getHeight() : display.getWidth()) in inflatePreview()
109 layoutParams.height = (int) (layoutParams.height * scale); in inflatePreview()
111 int width = layoutParams.width; in inflatePreview()
112 layoutParams.width = layoutParams.height; in inflatePreview()
113 layoutParams.height = width; in inflatePreview()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardStatusView.java131 MarginLayoutParams layoutParams = (MarginLayoutParams) mClockView.getLayoutParams(); in onConfigurationChanged() local
132 layoutParams.bottomMargin = getResources().getDimensionPixelSize( in onConfigurationChanged()
134 mClockView.setLayoutParams(layoutParams); in onConfigurationChanged()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/
DMockWindow.java49 public void setContentView(View view, ViewGroup.LayoutParams layoutParams) { in setContentView() argument
54 public void addContentView(View view, ViewGroup.LayoutParams layoutParams) { in addContentView() argument
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DAlignmentTest.java96 LayoutParams layoutParams = new LayoutParams(spec(i, va), spec(j, ha)); in create() local
99 container.addView(factory.create(name, 20), layoutParams); in create() local
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java244 LayoutParams layoutParams = createLayoutParams(MATCH_PARENT, MATCH_PARENT); in createActionBar() local
247 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar()
250 layoutParams.addRule(BELOW, getId(ID_STATUS_BAR)); in createActionBar()
252 actionBar.getRootView().setLayoutParams(layoutParams); in createActionBar()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java140 Map<String, String> layoutParams, IAnimationListener listener) { in moveChild() argument
153 layoutParams, listener); in moveChild()

123