Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTwoTargetPreferenceTest.java92 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_smallIcon_shouldUseSmallIconSize() local
96 assertThat(layoutParams.width).isEqualTo(smallIconSize); in bind_smallIcon_shouldUseSmallIconSize()
97 assertThat(layoutParams.height).isEqualTo(smallIconSize); in bind_smallIcon_shouldUseSmallIconSize()
108 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_mediumIcon_shouldUseMediumIconSize() local
112 assertThat(layoutParams.width).isEqualTo(size); in bind_mediumIcon_shouldUseMediumIconSize()
113 assertThat(layoutParams.height).isEqualTo(size); in bind_mediumIcon_shouldUseMediumIconSize()
122 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_defaultIcon_shouldUseDefaultIconSize() local
126 assertThat(layoutParams.width).isEqualTo(ViewGroup.LayoutParams.WRAP_CONTENT); in bind_defaultIcon_shouldUseDefaultIconSize()
127 assertThat(layoutParams.height).isEqualTo(ViewGroup.LayoutParams.WRAP_CONTENT); in bind_defaultIcon_shouldUseDefaultIconSize()
/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()
312 … spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in getColumnsWidths()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSContainerImpl.java97 MarginLayoutParams layoutParams = (MarginLayoutParams) mQSPanel.getLayoutParams(); in onMeasure() local
101 int maxQs = getDisplayHeight() - layoutParams.topMargin - layoutParams.bottomMargin in onMeasure()
110 int height = layoutParams.topMargin + layoutParams.bottomMargin in onMeasure()
148 LayoutParams layoutParams = (LayoutParams) mQSPanel.getLayoutParams(); in updateResources() local
149 layoutParams.topMargin = mContext.getResources().getDimensionPixelSize( in updateResources()
152 mQSPanel.setLayoutParams(layoutParams); in updateResources()
/frameworks/base/core/java/com/android/internal/widget/
DMediaNotificationView.java74 ViewGroup.MarginLayoutParams layoutParams = in onMeasure() local
76 int imageEndMargin = layoutParams.getMarginEnd(); in onMeasure()
85 if (layoutParams.width != fullHeight || layoutParams.height != fullHeight) { in onMeasure()
86 layoutParams.width = fullHeight; in onMeasure()
87 layoutParams.height = fullHeight; in onMeasure()
88 mRightIcon.setLayoutParams(layoutParams); in onMeasure()
DActionBarContextView.java110 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local
117 addView(mMenuView, layoutParams); in setSplitToolbar()
125 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
126 layoutParams.height = mContentHeight; in setSplitToolbar()
131 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
225 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local
231 addView(mMenuView, layoutParams); in initForMode()
239 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode()
240 layoutParams.height = mContentHeight; in initForMode()
244 mSplitView.addView(mMenuView, layoutParams); in initForMode()
DMessagingImageMessage.java272 ViewGroup.MarginLayoutParams layoutParams =
274 layoutParams.topMargin = isolated ? 0 : mExtraSpacing;
275 setLayoutParams(layoutParams);
DNotificationActionListLayout.java305 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in setEmphasizedMode() local
306 layoutParams.height = height; in setEmphasizedMode()
307 setLayoutParams(layoutParams); in setEmphasizedMode()
DChildHelper.java227 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams, in attachViewToParent() argument
239 mCallback.attachViewToParent(child, offset, layoutParams); in attachViewToParent()
529 void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams); in attachViewToParent() argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java145 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( in createMenuPopup() local
147 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_END); in createMenuPopup()
149 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in createMenuPopup()
150 layoutParams.bottomMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
152 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); in createMenuPopup()
153 layoutParams.topMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup()
155 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup()
156 listView.setLayoutParams(layoutParams); in createMenuPopup()
DNavigationBar.java103 LayoutParams layoutParams = (LayoutParams) view.getLayoutParams(); in setSize() local
105 layoutParams.width = size; in setSize()
107 layoutParams.height = size; in setSize()
109 view.setLayoutParams(layoutParams); in setSize()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotSurface.java140 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in create() local
183 layoutParams.packageName = mainWindow.getAttrs().packageName; in create()
184 layoutParams.windowAnimations = mainWindow.getAttrs().windowAnimations; in create()
185 layoutParams.dimAmount = mainWindow.getAttrs().dimAmount; in create()
186 layoutParams.type = TYPE_APPLICATION_STARTING; in create()
187 layoutParams.format = snapshot.getSnapshot().getFormat(); in create()
188 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in create()
191 layoutParams.privateFlags = windowPrivateFlags & PRIVATE_FLAG_INHERITS; in create()
192 layoutParams.token = token.token; in create()
193 layoutParams.width = LayoutParams.MATCH_PARENT; in create()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DCutoutAvoidingToolbar.kt73 it.layoutParams = LayoutParams(cutoutLeft, MATCH_PARENT) in adjustLayout()
76 it.layoutParams = LayoutParams(cutoutCenter, MATCH_PARENT) in adjustLayout()
79 it.layoutParams = LayoutParams(cutoutRight, MATCH_PARENT) in adjustLayout()
DToolbarView.kt51 var lp = layoutParams as FrameLayout.LayoutParams? in onApplyWindowInsets()
60 layoutParams = lp in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
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/notification/row/
DExpandableView.java86 ViewGroup.LayoutParams layoutParams = child.getLayoutParams(); in onMeasure() local
87 if (layoutParams.height != ViewGroup.LayoutParams.MATCH_PARENT) { in onMeasure()
88 if (layoutParams.height >= 0) { in onMeasure()
90 childHeightSpec = layoutParams.height > ownMaxHeight in onMeasure()
92 : MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in onMeasure()
95 widthMeasureSpec, viewHorizontalPadding, layoutParams.width), in onMeasure()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DHomeActivity.java72 ViewGroup.LayoutParams layoutParams = listView.getLayoutParams(); in onCreate() local
73 layoutParams.height = 2048; in onCreate()
74 listView.setLayoutParams(layoutParams); in onCreate()
/frameworks/base/core/java/android/preference/
DPreferenceFrameLayout.java102 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams in addView() local
105 if (layoutParams != null && layoutParams.removeBorders) { in addView()
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/
DMainActivity.java130 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in addWindows() local
131 layoutParams.token = getActivityToken(); in addWindows()
137 layoutParams, View.VISIBLE, Display.DEFAULT_DISPLAY, tmpRect, tmpRect, in addWindows()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardBaseLayout.java230 ViewGroup.LayoutParams layoutParams = mProgressBar.getLayoutParams(); in init() local
231 layoutParams.height = Math.round(lineWeight); in init()
232 mProgressBar.setLayoutParams(layoutParams); in init()
572 MarginLayoutParams layoutParams = in inflateSecondaryToolbarButtonIfNecessary() local
574 layoutParams.setMarginEnd(Math.round(marginEnd)); in inflateSecondaryToolbarButtonIfNecessary()
696 ViewGroup.LayoutParams layoutParams = mDivider.getLayoutParams(); in initDivider() local
697 layoutParams.height = Math.round(dividerHeight); in initDivider()
698 mDivider.setLayoutParams(layoutParams); in initDivider()
/frameworks/base/core/java/android/view/
DViewStub.java284 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in replaceSelfWithView() local
285 if (layoutParams != null) { in replaceSelfWithView()
286 parent.addView(view, index, layoutParams); in replaceSelfWithView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java288 private ViewGroup.LayoutParams copy(ViewGroup.LayoutParams layoutParams) { in copy() argument
289 if (layoutParams instanceof LinearLayout.LayoutParams) { in copy()
290 return new LinearLayout.LayoutParams(layoutParams.width, layoutParams.height, in copy()
291 ((LinearLayout.LayoutParams) layoutParams).weight); in copy()
293 return new LayoutParams(layoutParams.width, layoutParams.height); in copy()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java287 … RelativeLayout.LayoutParams layoutParams = createSysUiLayoutParams(MATCH_PARENT, heightRule); in createActionBar() local
292 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar()
303 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_FRAMEWORK_BAR)); in createActionBar()
305 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar()
311 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_STATUS_BAR)); in createActionBar()
315 actionBar.getRootView().setLayoutParams(layoutParams); in createActionBar()
/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/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DMockWindow.java66 public void setContentView(View view, ViewGroup.LayoutParams layoutParams) { in setContentView() argument
71 public void addContentView(View view, ViewGroup.LayoutParams layoutParams) { in addContentView() 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()

12