Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/view/
DViewFrameRateTest.java169 ViewGroup.LayoutParams layoutParams = mMovingView.getLayoutParams(); in lowVelocity60() local
170 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in lowVelocity60()
171 layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in lowVelocity60()
172 mMovingView.setLayoutParams(layoutParams); in lowVelocity60()
221 ViewGroup.LayoutParams layoutParams = mMovingView.getLayoutParams(); in highVelocity120() local
222 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in highVelocity120()
223 layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in highVelocity120()
224 mMovingView.setLayoutParams(layoutParams); in highVelocity120()
247 ViewGroup.LayoutParams layoutParams = mMovingView.getLayoutParams(); in noVelocityUsesCategorySmall() local
251 layoutParams.width = (int) smallSize; in noVelocityUsesCategorySmall()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DReachabilityEduLayout.java129 final LayoutParams layoutParams = ((LayoutParams) view.getLayoutParams()); in marginAnimator() local
130 ValueAnimator animator = ValueAnimator.ofInt(marginSupplier.apply(layoutParams), from, to); in marginAnimator()
132 marginConsumer.accept(layoutParams, (Integer) valueAnimator.getAnimatedValue()); in marginAnimator()
156 marginAnimator(mMoveLeftButton, layoutParams -> layoutParams.leftMargin, in handleLetterboxHorizontalPosition()
157 (layoutParams, margin) -> layoutParams.leftMargin = margin, in handleLetterboxHorizontalPosition()
175 marginAnimator(mMoveRightButton, layoutParams -> layoutParams.rightMargin, in handleLetterboxHorizontalPosition()
176 (layoutParams, margin) -> layoutParams.rightMargin = margin, in handleLetterboxHorizontalPosition()
207 marginAnimator(mMoveUpButton, layoutParams -> layoutParams.topMargin, in handleLetterboxVerticalPosition()
208 (layoutParams, margin) -> layoutParams.topMargin = margin, in handleLetterboxVerticalPosition()
226 marginAnimator(mMoveDownButton, layoutParams -> layoutParams.bottomMargin, in handleLetterboxVerticalPosition()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityWindowAttributes.java38 public AccessibilityWindowAttributes(@NonNull WindowManager.LayoutParams layoutParams, in AccessibilityWindowAttributes() argument
40 mWindowTitle = populateWindowTitle(layoutParams); in AccessibilityWindowAttributes()
58 private CharSequence populateWindowTitle(@NonNull WindowManager.LayoutParams layoutParams) { in populateWindowTitle() argument
59 CharSequence windowTitle = layoutParams.accessibilityTitle; in populateWindowTitle()
63 (layoutParams.type >= WindowManager.LayoutParams.FIRST_SUB_WINDOW) in populateWindowTitle()
64 && (layoutParams.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW); in populateWindowTitle()
68 layoutParams.type == WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY; in populateWindowTitle()
72 windowTitle = TextUtils.isEmpty(layoutParams.getTitle()) ? null in populateWindowTitle()
73 : layoutParams.getTitle(); in populateWindowTitle()
/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/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationsQuickSettingsContainerTest.kt88 val layoutParams = ConstraintLayout.LayoutParams(0, 0) in setUpViews() constant
89 whenever(qsFrame.layoutParams).thenReturn(layoutParams) in setUpViews()
90 whenever(stackScroller.layoutParams).thenReturn(layoutParams) in setUpViews()
91 whenever(keyguardStatusBar.layoutParams).thenReturn(layoutParams) in setUpViews()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/
DRemoteComposePlayer.java104 LayoutParams layoutParams = new LayoutParams( in applyContentBehavior() local
107 addView(horizontalScrollView, layoutParams); in applyContentBehavior()
121 LayoutParams layoutParams = new LayoutParams( in applyContentBehavior() local
124 addView(scrollView, layoutParams); in applyContentBehavior()
131 LayoutParams layoutParams = new LayoutParams( in applyContentBehavior() local
134 addView(mInner, layoutParams); in applyContentBehavior()
140 LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT, in init() local
145 addView(mInner, layoutParams); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/
DWindowRootView.kt108 if (child.layoutParams is LayoutParams) { in applyMargins()
109 val layoutParams = child.layoutParams as LayoutParams in applyMargins() constant
111 !layoutParams.ignoreRightInset && in applyMargins()
112 (layoutParams.rightMargin != rightInset || in applyMargins()
113 layoutParams.leftMargin != leftInset) in applyMargins()
115 layoutParams.updateMargins(left = leftInset, right = rightInset) in applyMargins()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/events/
DPrivacyDotViewControllerTest.kt123 assertThat(topLeftView.layoutParams.height) in <lambda>()
131 assertThat(topRightView.layoutParams.height).isEqualTo(CONTENT_AREA_ROTATION_NONE.height()) in <lambda>()
138 assertThat(bottomLeftView.layoutParams.height) in <lambda>()
146 assertThat(bottomRightView.layoutParams.height) in <lambda>()
154 assertThat(topLeftView.layoutParams.width) in <lambda>()
163 assertThat(topLeftView.layoutParams.width).isEqualTo(CONTENT_AREA_ROTATION_NONE.left) in <lambda>()
170 assertThat(topRightView.layoutParams.width) in <lambda>()
179 assertThat(topRightView.layoutParams.width).isEqualTo(CONTENT_AREA_ROTATION_LANDSCAPE.left) in <lambda>()
186 assertThat(bottomRightView.layoutParams.width) in <lambda>()
195 assertThat(bottomRightView.layoutParams.width) in <lambda>()
[all …]
/frameworks/base/core/java/android/window/
DSnapshotDrawerUtils.java420 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in createLayoutParameters() local
426 layoutParams.packageName = mainWindowParams.packageName; in createLayoutParameters()
427 layoutParams.windowAnimations = mainWindowParams.windowAnimations; in createLayoutParameters()
428 layoutParams.dimAmount = mainWindowParams.dimAmount; in createLayoutParameters()
429 layoutParams.type = windowType; in createLayoutParameters()
430 layoutParams.format = pixelFormat; in createLayoutParameters()
431 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in createLayoutParameters()
434 layoutParams.privateFlags = in createLayoutParameters()
441 layoutParams.token = token; in createLayoutParameters()
442 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in createLayoutParameters()
[all …]
/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/animation/src/com/android/systemui/util/
DDialog.kt152 val layoutParams = dialogContentWithBackground.layoutParams in maybeForceFullscreen() constant
153 layoutParams.width = window.attributes.width in maybeForceFullscreen()
154 layoutParams.height = window.attributes.height in maybeForceFullscreen()
155 dialogContentWithBackground.layoutParams = layoutParams in maybeForceFullscreen()
/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/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DEditTextActivity.java70 ViewGroup.MarginLayoutParams layoutParams = in onCreate()
72 layoutParams.leftMargin = insets.left; in onCreate()
73 layoutParams.bottomMargin = insets.bottom; in onCreate()
74 layoutParams.rightMargin = insets.right; in onCreate()
75 layoutParams.topMargin = insets.top; in onCreate()
76 view.setLayoutParams(layoutParams); in onCreate()
/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/ui/binder/
DPromptIconViewBinder.kt62 iconView.layoutParams.width = iconViewLayoutParamSizeOverride.first in <lambda>()
63 iconView.layoutParams.height = iconViewLayoutParamSizeOverride.second in <lambda>()
65 iconOverlayView.layoutParams.width = iconViewLayoutParamSizeOverride.first in <lambda>()
66 iconOverlayView.layoutParams.height = iconViewLayoutParamSizeOverride.second in <lambda>()
150 iconView.layoutParams.width = iconSize.first in <lambda>()
151 iconView.layoutParams.height = iconSize.second in <lambda>()
153 iconOverlayView.layoutParams.width = iconSize.first in <lambda>()
154 iconOverlayView.layoutParams.height = iconSize.second in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapter.java138 final ViewGroup.LayoutParams layoutParams = mIconView.getLayoutParams(); in updateIconWidthHeight() local
139 if (layoutParams.width == newValue) { in updateIconWidthHeight()
142 layoutParams.width = newValue; in updateIconWidthHeight()
143 layoutParams.height = newValue; in updateIconWidthHeight()
144 mIconView.setLayoutParams(layoutParams); in updateIconWidthHeight()
DDragToInteractView.kt142 layoutParams = in setup()
158 linearLayout.layoutParams = in setup()
240 layoutParams.height = resources.getDimensionPixelSize(config.floatingGradientHeightResId) in updateResources()
246 circle.layoutParams.width = targetSize in updateResources()
247 circle.layoutParams.height = targetSize in updateResources()
300 space.layoutParams = in addSpace()
317 circle.layoutParams = circleLayoutParams in addCircle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/binder/
DActionButtonViewBinder.kt66 val iconParams = iconView.layoutParams as LinearLayout.LayoutParams in setMargins()
67 val textParams = textView.layoutParams as LinearLayout.LayoutParams in setMargins()
79 iconView.layoutParams = iconParams in setMargins()
80 textView.layoutParams = textParams in setMargins()
/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()
/frameworks/base/core/java/com/android/internal/widget/
DConversationLayout.java789 LayoutParams layoutParams = (LayoutParams) mConversationFacePile.getLayoutParams(); in bindFacePile() local
790 layoutParams.width = conversationAvatarSize; in bindFacePile()
791 layoutParams.height = conversationAvatarSize; in bindFacePile()
792 mConversationFacePile.setLayoutParams(layoutParams); in bindFacePile()
794 layoutParams = (LayoutParams) bottomView.getLayoutParams(); in bindFacePile()
795 layoutParams.width = facepileAvatarSize; in bindFacePile()
796 layoutParams.height = facepileAvatarSize; in bindFacePile()
797 bottomView.setLayoutParams(layoutParams); in bindFacePile()
799 layoutParams = (LayoutParams) topView.getLayoutParams(); in bindFacePile()
800 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/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityWindowAttributesTest.java77 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in createInstance() local
78 layoutParams.accessibilityTitle = windowTitle; in createInstance()
79 return new AccessibilityWindowAttributes(layoutParams, locales); in createInstance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java239 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in updateStatusBarHeight() local
241 layoutParams.height = mStatusBarHeight - waterfallTopInset; in updateStatusBarHeight()
244 setLayoutParams(layoutParams); in updateStatusBarHeight()
249 ViewGroup.LayoutParams layoutParams = systemIconsContainer.getLayoutParams(); in updateSystemIconsContainerHeight() local
252 if (layoutParams.height != newSystemIconsHeight) { in updateSystemIconsContainerHeight()
253 layoutParams.height = newSystemIconsHeight; in updateSystemIconsContainerHeight()
254 systemIconsContainer.setLayoutParams(layoutParams); in updateSystemIconsContainerHeight()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindow.java97 final WindowManager.LayoutParams layoutParams = SnapshotDrawerUtils.createLayoutParameters( in create() local
100 if (layoutParams == null) { in create()
129 final int res = session.addToDisplay(window, layoutParams, View.GONE, displayId, in create()
145 session.relayout(window, layoutParams, -1, -1, View.VISIBLE, 0, 0, 0, in create()
148 session.relayoutLegacy(window, layoutParams, -1, -1, View.VISIBLE, 0, 0, 0, in create()
159 SnapshotDrawerUtils.drawSnapshotOnSurface(info, layoutParams, surfaceControl, snapshot, in create()

1234567