/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | TwoTargetPreferenceTest.java | 92 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/ |
D | TableRow.java | 164 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/ |
D | QSContainerImpl.java | 97 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/ |
D | MediaNotificationView.java | 74 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()
|
D | ActionBarContextView.java | 110 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()
|
D | MessagingImageMessage.java | 272 ViewGroup.MarginLayoutParams layoutParams = 274 layoutParams.topMargin = isolated ? 0 : mExtraSpacing; 275 setLayoutParams(layoutParams);
|
D | NotificationActionListLayout.java | 305 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in setEmphasizedMode() local 306 layoutParams.height = height; in setEmphasizedMode() 307 setLayoutParams(layoutParams); in setEmphasizedMode()
|
D | ChildHelper.java | 227 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/ |
D | FrameworkActionBar.java | 145 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()
|
D | NavigationBar.java | 103 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/ |
D | TaskSnapshotSurface.java | 140 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/ |
D | CutoutAvoidingToolbar.kt | 73 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()
|
D | ToolbarView.kt | 51 var lp = layoutParams as FrameLayout.LayoutParams? in onApplyWindowInsets() 60 layoutParams = lp in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutKeysLayout.java | 63 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/ |
D | ExpandableView.java | 86 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/ |
D | HomeActivity.java | 72 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/ |
D | PreferenceFrameLayout.java | 102 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams in addView() local 105 if (layoutParams != null && layoutParams.removeBorders) { in addView()
|
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/ |
D | MainActivity.java | 130 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/ |
D | CarSetupWizardBaseLayout.java | 230 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/ |
D | ViewStub.java | 284 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/ |
D | NavigationBarInflaterView.java | 288 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/ |
D | Layout.java | 287 … 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/ |
D | AlignmentTest.java | 96 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/ |
D | MockWindow.java | 66 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/ |
D | AppWidgetHostActivity.java | 139 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in addAppWidgetView() local 142 mAppWidgetContainer.addView(view, layoutParams); in addAppWidgetView()
|