/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerCustomSizeInScrollDirectionTest.java | 77 ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) in customSizeInScrollDirectionTest() 79 if (layoutParams == null) { in customSizeInScrollDirectionTest() 80 layoutParams = new ViewGroup.MarginLayoutParams( in customSizeInScrollDirectionTest() 83 holder.itemView.setLayoutParams(layoutParams); in customSizeInScrollDirectionTest() 87 layoutParams.width = size; in customSizeInScrollDirectionTest() 88 layoutParams.leftMargin = margin; in customSizeInScrollDirectionTest() 89 layoutParams.rightMargin = margin; in customSizeInScrollDirectionTest() 91 layoutParams.height = size; in customSizeInScrollDirectionTest() 92 layoutParams.topMargin = margin; in customSizeInScrollDirectionTest() 93 layoutParams.bottomMargin = margin; in customSizeInScrollDirectionTest()
|
D | BaseWrapContentWithAspectRatioTest.java | 136 ViewGroup.MarginLayoutParams layoutParams; field in BaseWrapContentWithAspectRatioTest.MeasureBehavior 141 layoutParams = new ViewGroup.MarginLayoutParams( in MeasureBehavior() 147 layoutParams.leftMargin = left; in withMargins() 148 layoutParams.topMargin = top; in withMargins() 149 layoutParams.rightMargin = right; in withMargins() 150 layoutParams.bottomMargin = bottom; in withMargins() 174 view.setLayoutParams(layoutParams); in setLayoutParams()
|
/frameworks/base/core/java/android/widget/ |
D | TableRow.java | 163 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in mapIndexAndColumns() local 165 if (layoutParams.column >= virtualCount) { in mapIndexAndColumns() 166 virtualCount = layoutParams.column; in mapIndexAndColumns() 169 for (int j = 0; j < layoutParams.span; j++) { in mapIndexAndColumns() 256 LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getChildrenSkipCount() local 259 return layoutParams.span - 1; in getChildrenSkipCount() 298 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); in getColumnsWidths() local 299 if (layoutParams.span == 1) { in getColumnsWidths() 301 switch (layoutParams.width) { in getColumnsWidths() 311 … spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in getColumnsWidths() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MediaNotificationView.java | 69 ViewGroup.MarginLayoutParams layoutParams = in onMeasure() local 71 int imageEndMargin = layoutParams.getMarginEnd(); in onMeasure() 80 if (layoutParams.width != fullHeight || layoutParams.height != fullHeight) { in onMeasure() 81 layoutParams.width = fullHeight; in onMeasure() 82 layoutParams.height = fullHeight; in onMeasure() 83 mRightIcon.setLayoutParams(layoutParams); in onMeasure()
|
D | ActionBarContextView.java | 109 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in setSplitToolbar() local 116 addView(mMenuView, layoutParams); in setSplitToolbar() 124 layoutParams.width = LayoutParams.MATCH_PARENT; in setSplitToolbar() 125 layoutParams.height = mContentHeight; in setSplitToolbar() 130 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar() 224 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, in initForMode() local 230 addView(mMenuView, layoutParams); in initForMode() 238 layoutParams.width = LayoutParams.MATCH_PARENT; in initForMode() 239 layoutParams.height = mContentHeight; in initForMode() 243 mSplitView.addView(mMenuView, layoutParams); in initForMode()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBar.java | 147 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( in createMenuPopup() local 149 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_END); in createMenuPopup() 151 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in createMenuPopup() 152 layoutParams.bottomMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup() 154 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); in createMenuPopup() 155 layoutParams.topMargin = getActionBarHeight() + mActionBar.getMenuPopupMargin(); in createMenuPopup() 157 layoutParams.setMarginEnd(getPixelValue("5dp", metrics)); in createMenuPopup() 158 listView.setLayoutParams(layoutParams); in createMenuPopup()
|
D | NavigationBar.java | 97 LayoutParams layoutParams = (LayoutParams) view.getLayoutParams(); in setSize() local 99 layoutParams.width = size; in setSize() 101 layoutParams.height = size; in setSize() 103 view.setLayoutParams(layoutParams); in setSize()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotSurface.java | 133 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in create() local 175 layoutParams.dimAmount = mainWindow.getAttrs().dimAmount; in create() 176 layoutParams.type = TYPE_APPLICATION_STARTING; in create() 177 layoutParams.format = snapshot.getSnapshot().getFormat(); in create() 178 layoutParams.flags = (windowFlags & ~FLAG_INHERIT_EXCLUDES) in create() 181 layoutParams.privateFlags = windowPrivateFlags & PRIVATE_FLAG_INHERITS; in create() 182 layoutParams.token = token.token; in create() 183 layoutParams.width = LayoutParams.MATCH_PARENT; in create() 184 layoutParams.height = LayoutParams.MATCH_PARENT; in create() 185 layoutParams.systemUiVisibility = sysUiVis; in create() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | DetailsOverviewRowPresenter.java | 464 ViewGroup.MarginLayoutParams layoutParams = in bindImageDrawable() local 510 layoutParams.setMarginStart(horizontalMargin); in bindImageDrawable() 511 layoutParams.topMargin = layoutParams.bottomMargin = verticalMargin; in bindImageDrawable() 516 layoutParams.leftMargin = layoutParams.topMargin = layoutParams.bottomMargin = 0; in bindImageDrawable() 527 layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in bindImageDrawable() 528 layoutParams.width = ViewGroup.LayoutParams.WRAP_CONTENT; in bindImageDrawable() 532 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in bindImageDrawable() 534 layoutParams.width = Math.min(cardHeight, drawableWidth); in bindImageDrawable() 536 vh.mImageView.setLayoutParams(layoutParams); in bindImageDrawable()
|
/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()
|
D | ExpandableView.java | 74 ViewGroup.LayoutParams layoutParams = child.getLayoutParams(); in onMeasure() local 75 if (layoutParams.height != ViewGroup.LayoutParams.MATCH_PARENT) { in onMeasure() 76 if (layoutParams.height >= 0) { in onMeasure() 78 childHeightSpec = layoutParams.height > ownMaxHeight in onMeasure() 80 : MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in onMeasure() 83 getChildMeasureSpec(widthMeasureSpec, 0 /* padding */, layoutParams.width), in onMeasure()
|
D | NotificationContentView.java | 169 ViewGroup.LayoutParams layoutParams = mExpandedChild.getLayoutParams(); in onMeasure() local 171 if (layoutParams.height >= 0) { in onMeasure() 173 size = Math.min(maxSize, layoutParams.height); in onMeasure() 187 ViewGroup.LayoutParams layoutParams = mContractedChild.getLayoutParams(); in onMeasure() local 189 if (layoutParams.height >= 0) { in onMeasure() 191 size = Math.min(size, layoutParams.height); in onMeasure() 219 ViewGroup.LayoutParams layoutParams = mHeadsUpChild.getLayoutParams(); in onMeasure() local 221 if (layoutParams.height >= 0) { in onMeasure() 223 size = Math.min(size, layoutParams.height); in onMeasure() 245 ViewGroup.LayoutParams layoutParams = mAmbientChild.getLayoutParams(); in onMeasure() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSContainerImpl.java | 77 LayoutParams layoutParams = (LayoutParams) mQSPanel.getLayoutParams(); in onMeasure() local 78 int height = layoutParams.topMargin + layoutParams.bottomMargin in onMeasure()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | AppCompatBaseAutoSizeTest.java | 90 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in testAutoSizeCallers_setMaxLines() local 96 autoSizeView.setLayoutParams(layoutParams); in testAutoSizeCallers_setMaxLines() 198 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in testAutoSizeCallers_setText() local 203 autoSizeView.setLayoutParams(layoutParams); in testAutoSizeCallers_setText() 323 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in testAutoSizeUniform_equivalentConfigurations() local 329 granularityView.setLayoutParams(layoutParams); in testAutoSizeUniform_equivalentConfigurations() 330 presetView.setLayoutParams(layoutParams); in testAutoSizeUniform_equivalentConfigurations() 352 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in testAutoSizeCallers_setHeight() local 358 autoSizeView.setLayoutParams(layoutParams); in testAutoSizeCallers_setHeight() 616 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( [all …]
|
D | AppCompatTextViewAutoSizeTest.java | 55 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in testAutoSize_notSupportedByEditText() local 61 autoSizeEditText.setLayoutParams(layoutParams); in testAutoSize_notSupportedByEditText()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BrowseErrorActivity.java | 59 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(100, 100, in onCreateView() local 61 progressBar.setLayoutParams(layoutParams); in onCreateView()
|
D | BrowseErrorSupportActivity.java | 62 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(100, 100, in onCreateView() local 64 progressBar.setLayoutParams(layoutParams); in onCreateView()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ViewStubCompat.java | 216 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in inflate() local 217 if (layoutParams != null) { in inflate() 218 parent.addView(view, index, layoutParams); in inflate()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceFrameLayout.java | 95 LayoutParams layoutParams = params instanceof PreferenceFrameLayout.LayoutParams in addView() local 98 if (layoutParams != null && layoutParams.removeBorders) { in addView()
|
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/ |
D | MainActivity.java | 126 final WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); in addWindows() local 127 layoutParams.token = getActivityToken(); in addWindows() 132 … final int res = session.addToDisplayWithoutInputChannel(window, window.mSeq, layoutParams, in addWindows()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | DataBindingUtilTest.java | 60 LayoutParams layoutParams = binding.getRoot().getLayoutParams(); in testSetContentView() local 61 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetContentView() 62 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testSetContentView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarView.java | 212 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in onDensityOrFontScaleChanged() local 213 layoutParams.height = getResources().getDimensionPixelSize( in onDensityOrFontScaleChanged() 215 setLayoutParams(layoutParams); in onDensityOrFontScaleChanged()
|
D | NavigationBarInflaterView.java | 250 private ViewGroup.LayoutParams copy(ViewGroup.LayoutParams layoutParams) { in copy() argument 251 if (layoutParams instanceof LinearLayout.LayoutParams) { in copy() 252 return new LinearLayout.LayoutParams(layoutParams.width, layoutParams.height, in copy() 253 ((LinearLayout.LayoutParams) layoutParams).weight); in copy() 255 return new LayoutParams(layoutParams.width, layoutParams.height); in copy()
|
/frameworks/base/core/java/android/view/ |
D | ViewStub.java | 281 final ViewGroup.LayoutParams layoutParams = getLayoutParams(); in replaceSelfWithView() local 282 if (layoutParams != null) { in replaceSelfWithView() 283 parent.addView(view, index, layoutParams); in replaceSelfWithView()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 265 LayoutParams layoutParams = createLayoutParams(MATCH_PARENT, heightRule); in createActionBar() local 270 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar() 281 layoutParams.addRule(BELOW, getId(ID_FRAMEWORK_BAR)); in createActionBar() 283 layoutParams.addRule(BELOW, getId(ID_STATUS_BAR)); in createActionBar() 289 layoutParams.addRule(BELOW, getId(ID_STATUS_BAR)); in createActionBar() 293 actionBar.getRootView().setLayoutParams(layoutParams); in createActionBar()
|