Home
last modified time | relevance | path

Searched refs:getLayoutParams (Results 1 – 25 of 273) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/view/
DIncludeTest.java54 button1.getLayoutParams().width != button2.getLayoutParams().width); in testIncludedWithLayoutParams()
56 button1.getLayoutParams().height != button2.getLayoutParams().height); in testIncludedWithLayoutParams()
73 final ViewGroup.LayoutParams lp = button1.getLayoutParams(); in testIncludedWithSize()
DViewStubTest.java79 stub.getLayoutParams().width, swapped.getLayoutParams().width); in testInflatedLayoutParams()
81 stub.getLayoutParams().height, swapped.getLayoutParams().height); in testInflatedLayoutParams()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetButtonBarLayout.java44 spacer.getLayoutParams().width = 0; in onMeasure()
45 spacer.getLayoutParams().height = in onMeasure()
49 spacer.getLayoutParams().width = in onMeasure()
51 spacer.getLayoutParams().height = 0; in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DOrientationHelper.java275 view.getLayoutParams(); in createHorizontalHelper()
283 view.getLayoutParams(); in createHorizontalHelper()
291 view.getLayoutParams(); in createHorizontalHelper()
298 view.getLayoutParams(); in createHorizontalHelper()
373 view.getLayoutParams();
381 view.getLayoutParams();
389 view.getLayoutParams();
396 view.getLayoutParams();
DNotificationOptimizedLinearLayout.java167 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in requiresNegativeMarginHandlingForHorizontalLinearLayout()
192 final ViewGroup.LayoutParams lp = child.getLayoutParams(); in requiresMatchParentRemeasureForVerticalLinearLayout()
218 if (child.getLayoutParams() instanceof LayoutParams) { in requiresBaselineAlignmentForHorizontalLinearLayout()
219 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in requiresBaselineAlignmentForHorizontalLinearLayout()
257 if (child.getLayoutParams() instanceof LayoutParams) { in getSingleWeightedChild()
258 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in getSingleWeightedChild()
278 final LayoutParams lp = (LayoutParams) singleWeightedChild.getLayoutParams(); in getSingleWeightedChild()
315 final ViewGroup.LayoutParams lp = weightedChildView.getLayoutParams(); in onMeasureOptimized()
379 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in measureVerticalOptimized()
404 final MarginLayoutParams lp = (MarginLayoutParams) weightedChildView.getLayoutParams(); in measureVerticalOptimized()
[all …]
DRemeasuringLinearLayout.java61 boolean isWrapContent = getLayoutParams().height == LayoutParams.WRAP_CONTENT; in onMeasure()
68 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
83 child.getLayoutParams().width), in onMeasure()
DMessagingLinearLayout.java95 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
123 LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams(); in onMeasure()
221 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout()
281 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawChild()
325 final ViewGroup.LayoutParams lp = view.getLayoutParams(); in isGone()
371 MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in getBaseline()
DConversationHeaderLinearLayout.java64 child.getLayoutParams(); in calculateTotalChildLength()
92 final float weight = ((LayoutParams) child.getLayoutParams()).weight; in onMeasure()
176 this.mWeight = ((LayoutParams) view.getLayoutParams()).weight; in ViewInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedSwitchPreferenceTest.java61 assertThat(mImageView.getLayoutParams().height).isEqualTo(SIZE); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
62 assertThat(mImageView.getLayoutParams().width).isEqualTo(SIZE); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
69 assertThat(mImageView.getLayoutParams().height).isEqualTo( in onBindViewHolder_notSetIconSize_shouldHaveCorrectLayoutParam()
71 assertThat(mImageView.getLayoutParams().width).isEqualTo( in onBindViewHolder_notSetIconSize_shouldHaveCorrectLayoutParam()
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/
DFrameLayoutMarginTest.java66 ((ViewGroup.MarginLayoutParams) mLeftView.getLayoutParams()).leftMargin); in testLeftMarginAligned()
72 ((ViewGroup.MarginLayoutParams) mRightView.getLayoutParams()).rightMargin); in testRightMarginAligned()
78 ((ViewGroup.MarginLayoutParams) mTopView.getLayoutParams()).topMargin); in testTopMarginAligned()
84 ((ViewGroup.MarginLayoutParams) mBottomView.getLayoutParams()).bottomMargin); in testBottomMarginAligned()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/
DBiometricPromptLayout.java109 MeasureSpec.makeMeasureSpec(child.getLayoutParams().height, in onMeasureInternal()
114 MeasureSpec.makeMeasureSpec(iconView.getLayoutParams().width, in onMeasureInternal()
116 MeasureSpec.makeMeasureSpec(iconView.getLayoutParams().height, in onMeasureInternal()
120 MeasureSpec.makeMeasureSpec(child.getLayoutParams().width, in onMeasureInternal()
122 MeasureSpec.makeMeasureSpec(child.getLayoutParams().height, in onMeasureInternal()
/frameworks/base/core/java/android/widget/
DActionMenuView.java167 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
224 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
262 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
288 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
318 LayoutParams lp = (LayoutParams) getChildAt(0).getLayoutParams(); in onMeasureExactFormat()
322 LayoutParams lp = ((LayoutParams) getChildAt(childCount - 1).getLayoutParams()); in onMeasureExactFormat()
334 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
370 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat()
402 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildForCells()
457 LayoutParams p = (LayoutParams) v.getLayoutParams(); in onLayout()
[all …]
DTableRow.java164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns()
195 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout()
257 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getChildrenSkipCount()
268 return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION]; in getLocationOffset()
276 … return ((TableRow.LayoutParams) child.getLayoutParams()).mOffset[LayoutParams.LOCATION_NEXT]; in getNextLocationOffset()
299 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getColumnsWidths()
DToolbar.java1522 final ViewGroup.LayoutParams vlp = v.getLayoutParams(); in addSystemView()
1629 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in measureChildConstrained()
1654 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in measureChildCollapseMargins()
1767 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
1899 final LayoutParams lp = (LayoutParams) mTitleTextView.getLayoutParams(); in onLayout()
1903 final LayoutParams lp = (LayoutParams) mSubtitleTextView.getLayoutParams(); in onLayout()
1911 final LayoutParams toplp = (LayoutParams) topChild.getLayoutParams(); in onLayout()
1912 final LayoutParams bottomlp = (LayoutParams) bottomChild.getLayoutParams(); in onLayout()
1949 final LayoutParams lp = (LayoutParams) mTitleTextView.getLayoutParams(); in onLayout()
1957 final LayoutParams lp = (LayoutParams) mSubtitleTextView.getLayoutParams(); in onLayout()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DButtonPreferenceTest.java106 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) button.getLayoutParams(); in onBindViewHolder_default_shouldReturnButtonGravityStart()
117 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) button.getLayoutParams(); in onBindViewHolder_setGravityStart_shouldReturnButtonGravityStart()
128 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) button.getLayoutParams(); in onBindViewHolder_setGravityCenter_shouldReturnButtonGravityCenterHorizontal()
147 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) button.getLayoutParams(); in onBindViewHolder_setUnsupportedGravity_shouldReturnButtonGravityStart()
DTwoTargetPreferenceTest.java96 .getLayoutParams(); in bind_smallIcon_shouldUseSmallIconSize()
112 .getLayoutParams(); in bind_mediumIcon_shouldUseMediumIconSize()
126 .getLayoutParams(); in bind_defaultIcon_shouldUseDefaultIconSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickStatusBarHeader.java88 ViewGroup.LayoutParams lp = getLayoutParams(); in updateResources()
96 MarginLayoutParams qqsLP = (MarginLayoutParams) mHeaderQsPanel.getLayoutParams(); in updateResources()
126 MarginLayoutParams lp = (MarginLayoutParams) view.getLayoutParams(); in setContentMargins()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipMenuIconsAlgorithm.java65 if (v.getLayoutParams() instanceof FrameLayout.LayoutParams) { in setLayoutGravity()
66 FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) v.getLayoutParams(); in setLayoutGravity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMenuIconsAlgorithm.java65 if (v.getLayoutParams() instanceof FrameLayout.LayoutParams) { in setLayoutGravity()
66 FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) v.getLayoutParams(); in setLayoutGravity()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerWindowlessMagnifierTest.java377 ViewGroup.LayoutParams params = mSurfaceControlViewHost.getView().getLayoutParams(); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained()
658 ViewGroup.LayoutParams params = mSurfaceControlViewHost.getView().getLayoutParams(); in onScreenSizeAndDensityChanged_enabled_restoreSavedMagnifierWindow()
685 ViewGroup.LayoutParams params = mSurfaceControlViewHost.getView().getLayoutParams(); in screenSizeIsChangedToLarge_enabled_defaultWindowSize()
850 mSurfaceControlViewHost.getView().getLayoutParams().height); in windowWidthIsNotMax_performA11yActionIncreaseWidth_windowWidthIncreased()
852 mSurfaceControlViewHost.getView().getLayoutParams().width); in windowWidthIsNotMax_performA11yActionIncreaseWidth_windowWidthIncreased()
892 mSurfaceControlViewHost.getView().getLayoutParams().height); in windowHeightIsNotMax_performA11yActionIncreaseHeight_windowHeightIncreased()
894 mSurfaceControlViewHost.getView().getLayoutParams().width); in windowHeightIsNotMax_performA11yActionIncreaseHeight_windowHeightIncreased()
973 mSurfaceControlViewHost.getView().getLayoutParams().height); in windowWidthIsNotMin_performA11yActionDecreaseWidth_windowWidthDecreased()
975 mSurfaceControlViewHost.getView().getLayoutParams().width); in windowWidthIsNotMin_performA11yActionDecreaseWidth_windowWidthDecreased()
1015 mSurfaceControlViewHost.getView().getLayoutParams().height); in windowHeightIsNotMin_performA11yActionDecreaseHeight_windowHeightDecreased()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java154 MarginLayoutParams lp = (MarginLayoutParams) mMultiUserAvatar.getLayoutParams(); in onConfigurationChanged()
189 lp = (MarginLayoutParams) mCarrierLabel.getLayoutParams(); in onConfigurationChanged()
205 ViewGroup.LayoutParams lp = (ViewGroup.LayoutParams) getLayoutParams(); in updateKeyguardStatusBarHeight()
263 (LinearLayout.LayoutParams) mSystemIconsContainer.getLayoutParams(); in updateSystemIconsLayoutParams()
339 RelativeLayout.LayoutParams lp = (LayoutParams) mCarrierLabel.getLayoutParams(); in updateLayoutParamsNoCutout()
342 lp = (LayoutParams) mStatusIconArea.getLayoutParams(); in updateLayoutParamsNoCutout()
364 RelativeLayout.LayoutParams lp = (LayoutParams) mCutoutSpace.getLayoutParams(); in updateLayoutParamsForCutout()
371 lp = (LayoutParams) mCarrierLabel.getLayoutParams(); in updateLayoutParamsForCutout()
374 lp = (LayoutParams) mStatusIconArea.getLayoutParams(); in updateLayoutParamsForCutout()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DReachabilityEduLayout.java129 final LayoutParams layoutParams = ((LayoutParams) view.getLayoutParams()); in marginAnimator()
160 final LayoutParams leftParams = ((LayoutParams) mMoveLeftButton.getLayoutParams()); in handleLetterboxHorizontalPosition()
180 ((LayoutParams) mMoveRightButton.getLayoutParams()); in handleLetterboxHorizontalPosition()
211 final LayoutParams topParams = ((LayoutParams) mMoveUpButton.getLayoutParams()); in handleLetterboxVerticalPosition()
231 ((LayoutParams) mMoveDownButton.getLayoutParams()); in handleLetterboxVerticalPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationLayoutEngine.java156 public ComplicationLayoutParams getLayoutParams() { in getLayoutParams() method in ComplicationLayoutEngine.ViewEntry
175 final int direction = getLayoutParams().getDirection(); in applyLayoutParams()
177 final boolean snapsToGuide = getLayoutParams().snapsToGuide(); in applyLayoutParams()
268 final ComplicationLayoutParams layoutParams = getLayoutParams(); in setGuide()
326 public ComplicationLayoutParams getLayoutParams() { in getLayoutParams() method in ComplicationLayoutEngine.ViewEntry.Builder
396 final int direction = entryBuilder.getLayoutParams().getDirection(); in add()
429 return mDirectionalMargins.get(entry.getLayoutParams().getDirection()); in getMargins()
535 int directionalSpacing = entry.getLayoutParams().getDirectionalSpacing( in getMargins()
541 switch (entry.getLayoutParams().getDirection()) { in getMargins()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java264 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure()
364 final LayoutParams lp = (LayoutParams) smartReplyButton.getLayoutParams(); in onMeasure()
436 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in dump()
483 final LayoutParams lp = (LayoutParams) smartReplyButton.getLayoutParams(); in gotEnoughSmartReplies()
500 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in filterActionsOrReplies()
515 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in resetButtonsLayoutParams()
617 final LayoutParams lp = (LayoutParams) button.getLayoutParams(); in squeezeButtonToTextWidth()
634 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in remeasureButtonsIfNecessary()
665 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in markButtonsWithPendingSqueezeStatusAs()
682 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java59 if (radio.getLayoutParams().height != content.getMeasuredHeight()) { in onMeasure()
61 radio.getLayoutParams().height = content.getMeasuredHeight(); in onMeasure()

1234567891011