Home
last modified time | relevance | path

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

12345

/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/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindow.java172 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in create() local
178 layoutParams.packageName = mainWindowParams.packageName; in create()
179 layoutParams.windowAnimations = mainWindowParams.windowAnimations; in create()
180 layoutParams.dimAmount = mainWindowParams.dimAmount; in create()
181 layoutParams.type = TYPE_APPLICATION_STARTING; in create()
182 layoutParams.format = snapshot.getHardwareBuffer().getFormat(); in create()
183 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in create()
188 layoutParams.privateFlags = (windowPrivateFlags & PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS) in create()
190 layoutParams.token = appToken; in create()
191 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in create()
[all …]
/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/core/java/com/android/internal/widget/
DConversationLayout.java636 LayoutParams layoutParams = (LayoutParams) mConversationFacePile.getLayoutParams(); in bindFacePile() local
637 layoutParams.width = conversationAvatarSize; in bindFacePile()
638 layoutParams.height = conversationAvatarSize; in bindFacePile()
639 mConversationFacePile.setLayoutParams(layoutParams); in bindFacePile()
641 layoutParams = (LayoutParams) bottomView.getLayoutParams(); in bindFacePile()
642 layoutParams.width = facepileAvatarSize; in bindFacePile()
643 layoutParams.height = facepileAvatarSize; in bindFacePile()
644 bottomView.setLayoutParams(layoutParams); in bindFacePile()
646 layoutParams = (LayoutParams) topView.getLayoutParams(); in bindFacePile()
647 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/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/qs/
DQSContainerImpl.java86 MarginLayoutParams layoutParams = (MarginLayoutParams) mQSPanelContainer.getLayoutParams(); in onMeasure() local
89 int maxQs = availableHeight - layoutParams.topMargin - layoutParams.bottomMargin in onMeasure()
91 int padding = mPaddingLeft + mPaddingRight + layoutParams.leftMargin in onMeasure()
92 + layoutParams.rightMargin; in onMeasure()
94 layoutParams.width); in onMeasure()
DQSPanel.java268 MarginLayoutParams layoutParams = (MarginLayoutParams) child.getLayoutParams(); in onMeasure() local
269 height += layoutParams.topMargin + layoutParams.bottomMargin; in onMeasure()
466 LinearLayout.LayoutParams layoutParams = (LayoutParams) hostView.getLayoutParams(); in reAttachMediaHost() local
467 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in reAttachMediaHost()
468 layoutParams.width = horizontal ? 0 : ViewGroup.LayoutParams.MATCH_PARENT; in reAttachMediaHost()
469 layoutParams.weight = horizontal ? 1f : 0; in reAttachMediaHost()
473 layoutParams.bottomMargin = !horizontal || displayMediaMarginsOnMedia() in reAttachMediaHost()
475 layoutParams.topMargin = mediaNeedsTopMargin() && !horizontal in reAttachMediaHost()
478 hostView.setLayoutParams(layoutParams); in reAttachMediaHost()
/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/dreams/
DDreamOverlayService.java179 public void onStartDream(@NonNull WindowManager.LayoutParams layoutParams) { in onStartDream() argument
205 if (!addOverlayWindowLocked(layoutParams)) { in onStartDream()
250 private boolean addOverlayWindowLocked(WindowManager.LayoutParams layoutParams) { in addOverlayWindowLocked() argument
254 mWindow.setAttributes(layoutParams); in addOverlayWindowLocked()
255 mWindow.setWindowManager(null, layoutParams.token, "DreamOverlay", true); in addOverlayWindowLocked()
287 Log.e(TAG, "Dream activity window invalid: " + layoutParams.packageName, in addOverlayWindowLocked()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DSplitNavLayoutTest.java75 ViewGroup.LayoutParams layoutParams = contentContainer.getLayoutParams(); in test_UltraWideContentWidth_isSetToCustomWidth() local
76 assertThat(layoutParams.width).isEqualTo(PARTNER_CONTENT_WIDTH); in test_UltraWideContentWidth_isSetToCustomWidth()
87 ViewGroup.LayoutParams layoutParams = contentContainer.getLayoutParams(); in test_UltraWideContentWidthIsSetTo0_withoutCustomValue() local
88 assertThat(layoutParams.width).isEqualTo(0); in test_UltraWideContentWidthIsSetTo0_withoutCustomValue()
/frameworks/base/core/tests/coretests/src/android/view/
DViewRootImplTest.java360 WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in playSoundEffect_wrongEffectId_throwException() local
362 layoutParams.token = new Binder(); in playSoundEffect_wrongEffectId_throwException()
363 view.setLayoutParams(layoutParams); in playSoundEffect_wrongEffectId_throwException()
364 viewRootImpl.setView(view, layoutParams, /* panelParentView= */ null); in playSoundEffect_wrongEffectId_throwException()
379 WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing() local
381 layoutParams.token = new Binder(); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing()
382 view.setLayoutParams(layoutParams); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing()
383 viewRootImpl.setView(view, layoutParams, /* panelParentView= */ null); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthBiometricFingerprintView.kt52 val layoutParams = super.onMeasureInternal(width, height) in onMeasureInternal() constant
54 return udfpsAdapter?.onMeasureInternal(width, height, layoutParams, in onMeasureInternal()
55 scale) ?: layoutParams in onMeasureInternal()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthContainerViewTest.kt388 val layoutParams = AuthContainerView.getLayoutParams(windowToken, "") in testLayoutParams_hasSecureWindowFlag() constant
389 assertThat((layoutParams.flags and WindowManager.LayoutParams.FLAG_SECURE) != 0).isTrue() in testLayoutParams_hasSecureWindowFlag()
394 val layoutParams = AuthContainerView.getLayoutParams(windowToken, "") in testLayoutParams_hasShowWhenLockedFlag() constant
395 assertThat((layoutParams.flags and WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED) != 0) in testLayoutParams_hasShowWhenLockedFlag()
401 val layoutParams = AuthContainerView.getLayoutParams(windowToken, "") in testLayoutParams_hasDimbehindWindowFlag() constant
402 val lpFlags = layoutParams.flags in testLayoutParams_hasDimbehindWindowFlag()
403 val lpDimAmount = layoutParams.dimAmount in testLayoutParams_hasDimbehindWindowFlag()
411 val layoutParams = AuthContainerView.getLayoutParams(windowToken, "") in testLayoutParams_excludesImeInsets() constant
412 assertThat((layoutParams.fitInsetsTypes and WindowInsets.Type.ime()) == 0).isTrue() in testLayoutParams_excludesImeInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/
DMediaViewHolder.java42 @Named(MEDIA_COMPLICATION_LAYOUT_PARAMS) ComplicationLayoutParams layoutParams) { in MediaViewHolder() argument
46 mLayoutParams = layoutParams; in MediaViewHolder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DDialogLaunchAnimatorTest.kt77 assertEquals(MATCH_PARENT, decorView.layoutParams.width) in testShowDialogFromView()
78 assertEquals(MATCH_PARENT, decorView.layoutParams.height) in testShowDialogFromView()
84 assertEquals(MATCH_PARENT, transparentBackground.layoutParams.width) in testShowDialogFromView()
85 assertEquals(MATCH_PARENT, transparentBackground.layoutParams.height) in testShowDialogFromView()
91 assertEquals(TestDialog.DIALOG_WIDTH, dialogContentWithBackground.layoutParams.width) in testShowDialogFromView()
92 assertEquals(TestDialog.DIALOG_HEIGHT, dialogContentWithBackground.layoutParams.height) in testShowDialogFromView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DOngoingPrivacyChip.kt53 layoutParams = LayoutParams(WRAP_CONTENT, MATCH_PARENT, CENTER_VERTICAL or END) in <lambda>()
83 val lp = image.layoutParams as MarginLayoutParams in <lambda>()
85 image.layoutParams = lp in <lambda>()

12345