Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DTwoTargetPreferenceTest.java94 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_smallIcon_shouldUseSmallIconSize() local
98 assertThat(layoutParams.width).isEqualTo(smallIconSize); in bind_smallIcon_shouldUseSmallIconSize()
99 assertThat(layoutParams.height).isEqualTo(smallIconSize); in bind_smallIcon_shouldUseSmallIconSize()
110 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_mediumIcon_shouldUseMediumIconSize() local
114 assertThat(layoutParams.width).isEqualTo(size); in bind_mediumIcon_shouldUseMediumIconSize()
115 assertThat(layoutParams.height).isEqualTo(size); in bind_mediumIcon_shouldUseMediumIconSize()
124 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_defaultIcon_shouldUseDefaultIconSize() local
128 assertThat(layoutParams.width).isEqualTo(ViewGroup.LayoutParams.WRAP_CONTENT); in bind_defaultIcon_shouldUseDefaultIconSize()
129 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/accessibility/floatingmenu/
DBaseTooltipView.java229 final LinearLayout.LayoutParams layoutParams = in updateArrowWith() local
231 layoutParams.width = mArrowWidth; in updateArrowWith()
232 layoutParams.height = mArrowHeight; in updateArrowWith()
236 layoutParams.setMargins(leftMargin, 0, rightMargin, 0); in updateArrowWith()
237 arrowView.setLayoutParams(layoutParams); in updateArrowWith()
241 final ViewGroup.LayoutParams layoutParams = mTextView.getLayoutParams(); in updateWidthWith() local
242 layoutParams.width = getTextWidthWith(anchorViewLocation); in updateWidthWith()
243 mTextView.setLayoutParams(layoutParams); in updateWidthWith()
256 final ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); in drawArrow() local
258 TriangleShape.createHorizontal(layoutParams.width, layoutParams.height, in drawArrow()
DAccessibilityTargetAdapter.java136 final ViewGroup.LayoutParams layoutParams = mIconView.getLayoutParams(); in updateIconWidthHeight() local
137 if (layoutParams.width == newValue) { in updateIconWidthHeight()
140 layoutParams.width = newValue; in updateIconWidthHeight()
141 layoutParams.height = newValue; in updateIconWidthHeight()
142 mIconView.setLayoutParams(layoutParams); in updateIconWidthHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMirrorWindowControl.java117 private void setDefaultPosition(LayoutParams layoutParams) { in setDefaultPosition() argument
120 layoutParams.x = displaySize.x - layoutParams.width; in setDefaultPosition()
121 layoutParams.y = displaySize.y - layoutParams.height; in setDefaultPosition()
122 mControlPosition.set(layoutParams.x, layoutParams.y); in setDefaultPosition()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotSurface.java162 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in create() local
192 layoutParams.packageName = mainWindow.getAttrs().packageName; in create()
193 layoutParams.windowAnimations = mainWindow.getAttrs().windowAnimations; in create()
194 layoutParams.dimAmount = mainWindow.getAttrs().dimAmount; in create()
195 layoutParams.type = TYPE_APPLICATION_STARTING; in create()
196 layoutParams.format = snapshot.getHardwareBuffer().getFormat(); in create()
197 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in create()
202 layoutParams.privateFlags = (windowPrivateFlags & PRIVATE_FLAG_INHERITS) in create()
204 layoutParams.token = activity.token; in create()
205 layoutParams.width = LayoutParams.MATCH_PARENT; in create()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindow.java168 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in create() local
174 layoutParams.packageName = mainWindowParams.packageName; in create()
175 layoutParams.windowAnimations = mainWindowParams.windowAnimations; in create()
176 layoutParams.dimAmount = mainWindowParams.dimAmount; in create()
177 layoutParams.type = TYPE_APPLICATION_STARTING; in create()
178 layoutParams.format = snapshot.getHardwareBuffer().getFormat(); in create()
179 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in create()
184 layoutParams.privateFlags = (windowPrivateFlags & PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS) in create()
186 layoutParams.token = appToken; in create()
187 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in create()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DConversationLayout.java625 LayoutParams layoutParams = (LayoutParams) mConversationFacePile.getLayoutParams(); in bindFacePile() local
626 layoutParams.width = conversationAvatarSize; in bindFacePile()
627 layoutParams.height = conversationAvatarSize; in bindFacePile()
628 mConversationFacePile.setLayoutParams(layoutParams); in bindFacePile()
630 layoutParams = (LayoutParams) bottomView.getLayoutParams(); in bindFacePile()
631 layoutParams.width = facepileAvatarSize; in bindFacePile()
632 layoutParams.height = facepileAvatarSize; in bindFacePile()
633 bottomView.setLayoutParams(layoutParams); in bindFacePile()
635 layoutParams = (LayoutParams) topView.getLayoutParams(); in bindFacePile()
636 layoutParams.width = facepileAvatarSize; in bindFacePile()
[all …]
DActionBarContextView.java111 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local
118 addView(mMenuView, layoutParams); in setSplitToolbar()
126 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
127 layoutParams.height = mContentHeight; in setSplitToolbar()
132 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
226 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local
232 addView(mMenuView, layoutParams); in initForMode()
240 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode()
241 layoutParams.height = mContentHeight; in initForMode()
245 mSplitView.addView(mMenuView, layoutParams); in initForMode()
/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/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthBiometricUdfpsView.java49 final AuthDialog.LayoutParams layoutParams = super.onMeasureInternal(width, height); in onMeasureInternal() local
51 ? mMeasureAdapter.onMeasureInternal(width, height, layoutParams) in onMeasureInternal()
52 : layoutParams; in onMeasureInternal()
/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.kt52 var lp = layoutParams as FrameLayout.LayoutParams? in onApplyWindowInsets()
61 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/qs/
DQSContainerImpl.java110 MarginLayoutParams layoutParams = (MarginLayoutParams) mQSPanelContainer.getLayoutParams(); in onMeasure() local
112 int maxQs = getDisplayHeight() - layoutParams.topMargin - layoutParams.bottomMargin in onMeasure()
114 int padding = mPaddingLeft + mPaddingRight + layoutParams.leftMargin in onMeasure()
115 + layoutParams.rightMargin; in onMeasure()
117 layoutParams.width); in onMeasure()
DQSPanel.java225 MarginLayoutParams layoutParams = (MarginLayoutParams) child.getLayoutParams(); in onMeasure() local
226 height += layoutParams.topMargin + layoutParams.bottomMargin; in onMeasure()
418 LinearLayout.LayoutParams layoutParams = (LayoutParams) hostView.getLayoutParams(); in reAttachMediaHost() local
419 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in reAttachMediaHost()
420 layoutParams.width = horizontal ? 0 : ViewGroup.LayoutParams.MATCH_PARENT; in reAttachMediaHost()
421 layoutParams.weight = horizontal ? 1f : 0; in reAttachMediaHost()
425 layoutParams.bottomMargin = !horizontal || displayMediaMarginsOnMedia() in reAttachMediaHost()
427 layoutParams.topMargin = mediaNeedsTopMargin() && !horizontal in reAttachMediaHost()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragAndDropController.java93 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in onDisplayAdded() local
98 layoutParams.privateFlags |= SYSTEM_FLAG_SHOW_FOR_ALL_USERS in onDisplayAdded()
101 layoutParams.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; in onDisplayAdded()
102 layoutParams.setFitInsetsTypes(0); in onDisplayAdded()
103 layoutParams.setTitle("ShellDropTarget"); in onDisplayAdded()
113 wm.addView(rootView, layoutParams); in onDisplayAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/television/
DTvOngoingPrivacyChip.java335 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in createAndShowIndicator() local
341 layoutParams.gravity = Gravity.TOP | (isRtl ? Gravity.LEFT : Gravity.RIGHT); in createAndShowIndicator()
342 layoutParams.setTitle(LAYOUT_PARAMS_TITLE); in createAndShowIndicator()
343 layoutParams.packageName = mContext.getPackageName(); in createAndShowIndicator()
345 windowManager.addView(mIndicatorView, layoutParams); in createAndShowIndicator()
359 ViewGroup.MarginLayoutParams layoutParams = in updateIcons() local
361 layoutParams.setMarginStart(mIconMarginStart); in updateIcons()
362 imageView.setLayoutParams(layoutParams); in updateIcons()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayout.kt371 val layoutParams = view.layoutParams as ConstraintLayout.LayoutParams in initFromLayout() constant
372 x = layoutParams.constraintWidget.left.toFloat() in initFromLayout()
373 y = layoutParams.constraintWidget.top.toFloat() in initFromLayout()
374 width = layoutParams.constraintWidget.width in initFromLayout()
375 height = layoutParams.constraintWidget.height in initFromLayout()
/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/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt214 views.forEach { it.layoutParams.height = height } in <lambda>()
227 (corner.layoutParams as FrameLayout.LayoutParams).apply { in <lambda>()
233 .layoutParams as FrameLayout.LayoutParams) in <lambda>()
243 (corner.layoutParams as FrameLayout.LayoutParams).width = w in <lambda>()
268 (tl.layoutParams as FrameLayout.LayoutParams).apply { in <lambda>()
279 (tr.layoutParams as FrameLayout.LayoutParams).apply { in <lambda>()
290 (br.layoutParams as FrameLayout.LayoutParams).apply { in <lambda>()
301 (bl.layoutParams as FrameLayout.LayoutParams).apply { in <lambda>()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardBaseLayout.java259 ViewGroup.LayoutParams layoutParams = mProgressBar.getLayoutParams(); in init() local
260 layoutParams.height = Math.round(lineWeight); in init()
261 mProgressBar.setLayoutParams(layoutParams); in init()
638 MarginLayoutParams layoutParams = in inflateSecondaryToolbarButtonIfNecessary() local
640 layoutParams.setMarginEnd(Math.round(marginEnd)); in inflateSecondaryToolbarButtonIfNecessary()
769 ViewGroup.LayoutParams layoutParams = mDivider.getLayoutParams(); in initDivider() local
770 layoutParams.height = Math.round(dividerHeight); in initDivider()
771 mDivider.setLayoutParams(layoutParams); in initDivider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardCarousel.java151 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in onViewAdded() local
152 layoutParams.leftMargin = mCardMarginPx; in onViewAdded()
153 layoutParams.rightMargin = mCardMarginPx; in onViewAdded()
378 ViewGroup.LayoutParams layoutParams = cardView.getLayoutParams();
379 layoutParams.width = mCardWidthPx;
380 layoutParams.height = mCardHeightPx;

1234