Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/widget/
DTableRow.java164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns() local
166 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns()
167 virtualCount = layoutParams.column; in mapIndexAndColumns()
170 for (int j = 0; j < layoutParams.span; j++) { in mapIndexAndColumns()
257 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getChildrenSkipCount() local
260 return layoutParams.span - 1; in getChildrenSkipCount()
299 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getColumnsWidths() local
300 if (layoutParams.span == 1) { in getColumnsWidths()
302 switch (layoutParams.width) { in getColumnsWidths()
310 … spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in getColumnsWidths()
[all …]
DTableLayout.java505 final ViewGroup.LayoutParams layoutParams = row.getLayoutParams(); in findLargestCells() local
506 layoutParams.height = LayoutParams.WRAP_CONTENT; in findLargestCells()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java146 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( in createMenuPopup() local
148 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_END); in createMenuPopup()
150 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in createMenuPopup()
151 layoutParams.bottomMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
153 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); in createMenuPopup()
154 layoutParams.topMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
156 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup()
157 listView.setLayoutParams(layoutParams); in createMenuPopup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableView.java67 ViewGroup.LayoutParams layoutParams = child.getLayoutParams(); in onMeasure() local
68 if (layoutParams.height != ViewGroup.LayoutParams.MATCH_PARENT) { in onMeasure()
69 if (layoutParams.height >= 0) { in onMeasure()
71 childHeightSpec = layoutParams.height > ownMaxHeight in onMeasure()
73 : MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in onMeasure()
76 getChildMeasureSpec(widthMeasureSpec, 0 /* padding */, layoutParams.width), in onMeasure()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewRowPresenter.java424 ViewGroup.MarginLayoutParams layoutParams = in onBindRowViewHolder() local
470 layoutParams.setMarginStart(horizontalMargin); in onBindRowViewHolder()
471 layoutParams.topMargin = layoutParams.bottomMargin = verticalMargin; in onBindRowViewHolder()
476 layoutParams.leftMargin = layoutParams.topMargin = layoutParams.bottomMargin = 0; in onBindRowViewHolder()
486 layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in onBindRowViewHolder()
487 layoutParams.width = ViewGroup.LayoutParams.WRAP_CONTENT; in onBindRowViewHolder()
491 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in onBindRowViewHolder()
493 layoutParams.width = Math.min(cardHeight, drawableWidth); in onBindRowViewHolder()
495 vh.mImageView.setLayoutParams(layoutParams); in onBindRowViewHolder()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarContextView.java117 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local
124 addView(mMenuView, layoutParams); in setSplitToolbar()
132 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
133 layoutParams.height = mContentHeight; in setSplitToolbar()
138 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
232 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local
238 addView(mMenuView, layoutParams); in initForMode()
246 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode()
247 layoutParams.height = mContentHeight; in initForMode()
251 mSplitView.addView(mMenuView, layoutParams); in initForMode()
DViewStubCompat.java211 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in inflate() local
212 if (layoutParams != null) { in inflate()
213 parent.addView(view, index, layoutParams); in inflate()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContextView.java124 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local
131 addView(mMenuView, layoutParams); in setSplitToolbar()
139 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
140 layoutParams.height = mContentHeight; in setSplitToolbar()
145 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
239 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local
245 addView(mMenuView, layoutParams); in initForMode()
253 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode()
254 layoutParams.height = mContentHeight; in initForMode()
258 mSplitView.addView(mMenuView, layoutParams); in initForMode()
DActionBarView.java395 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setMenu() local
407 addView(menuView, layoutParams); in setMenu()
416 layoutParams.width = LayoutParams.MATCH_PARENT; in setMenu()
417 layoutParams.height = LayoutParams.WRAP_CONTENT; in setMenu()
426 mSplitView.addView(menuView, layoutParams); in setMenu()
429 menuView.setLayoutParams(layoutParams); in setMenu()
/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/base/core/java/android/view/
DViewStub.java274 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in inflate() local
275 if (layoutParams != null) { in inflate()
276 parent.addView(view, index, layoutParams); in inflate()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java318 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in inflate() local
320 topLayout.setLayoutParams(layoutParams); in inflate()
350 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in inflate() local
352 layoutParams.weight = 1; in inflate()
353 backgroundLayout.setLayoutParams(layoutParams); in inflate()
376 layoutParams = new LinearLayout.LayoutParams( in inflate()
378 layoutParams.weight = 1; in inflate()
379 mContentRoot.setLayoutParams(layoutParams); in inflate()
802 LayoutParams layoutParams = null; in moveChild() local
805 layoutParams = newParentView.generateLayoutParams( in moveChild()
[all …]
/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/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java846 WindowManager.LayoutParams layoutParams = mWindow.getAttributes(); in showWallpaper() local
848 if ((layoutParams.flags & WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER) != 0) { in showWallpaper()
852 layoutParams.flags |= WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER; in showWallpaper()
854 if ((layoutParams.flags & WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER) == 0) { in showWallpaper()
858 layoutParams.flags &= ~WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER; in showWallpaper()
861 mWindow.setAttributes(layoutParams); in showWallpaper()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java147 Map<String, String> layoutParams, IAnimationListener listener) { in moveChild() argument
160 layoutParams, listener); in moveChild()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DChildHelper.java200 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams, in attachViewToParent() argument
208 mCallback.attachViewToParent(child, offset, layoutParams); in attachViewToParent()
483 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams); in attachViewToParent() argument
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DAppWidgetHostActivity.java139 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in addAppWidgetView() local
142 mAppWidgetContainer.addView(view, layoutParams); in addAppWidgetView()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerTest.java101 ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams(); in customSizeInScrollDirectionTest()
102 if (layoutParams == null) { in customSizeInScrollDirectionTest()
103 layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, in customSizeInScrollDirectionTest()
105 holder.itemView.setLayoutParams(layoutParams); in customSizeInScrollDirectionTest()
109 layoutParams.width = size; in customSizeInScrollDirectionTest()
111 layoutParams.height = size; in customSizeInScrollDirectionTest()
DBaseRecyclerViewInstrumentationTest.java396 RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view in layoutRange() local
399 + "that is removed", layoutParams != null in layoutRange()
400 && layoutParams.isItemRemoved()); in layoutRange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
DTvStatusBar.java108 LayoutParams layoutParams) { in getSearchLayoutParams() argument
/frameworks/base/docs/html/training/activity-testing/
Dactivity-ui-testing.jd122 final ViewGroup.LayoutParams layoutParams =
124 assertNotNull(layoutParams);
125 assertEquals(layoutParams.width, WindowManager.LayoutParams.MATCH_PARENT);
126 assertEquals(layoutParams.height, WindowManager.LayoutParams.WRAP_CONTENT);
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java85 public void setCustomView(View view, LayoutParams layoutParams) { in setCustomView() argument
86 view.setLayoutParams(layoutParams); in setCustomView()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindowSession.java90 public int relayout(IWindow iWindow, int i, LayoutParams layoutParams, int i2, in relayout() argument
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
DToolbarActionBar.java101 public void setCustomView(View view, LayoutParams layoutParams) { in setCustomView() argument
102 view.setLayoutParams(layoutParams); in setCustomView()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java314 public void setLayoutParams(LayoutParams layoutParams); in setLayoutParams() argument

12