/frameworks/support/v4/java/android/support/v4/view/ |
D | MarginLayoutParamsCompat.java | 29 int getMarginStart(ViewGroup.MarginLayoutParams lp); in getMarginStart() argument 30 int getMarginEnd(ViewGroup.MarginLayoutParams lp); in getMarginEnd() argument 31 void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart); in setMarginStart() argument 32 void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd); in setMarginEnd() argument 33 boolean isMarginRelative(ViewGroup.MarginLayoutParams lp); in isMarginRelative() argument 34 int getLayoutDirection(ViewGroup.MarginLayoutParams lp); in getLayoutDirection() argument 35 void setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); in setLayoutDirection() argument 36 void resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); in resolveLayoutDirection() argument 42 public int getMarginStart(ViewGroup.MarginLayoutParams lp) { in getMarginStart() argument 43 return lp.leftMargin; in getMarginStart() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | LinkPropertiesTest.java | 236 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { in assertAllRoutesHaveInterface() argument 237 for (RouteInfo r : lp.getRoutes()) { in assertAllRoutesHaveInterface() 249 LinkProperties lp = new LinkProperties(); in testRouteInterfaces() local 251 assertTrue(lp.addRoute(r)); in testRouteInterfaces() 252 assertEquals(1, lp.getRoutes().size()); in testRouteInterfaces() 253 assertAllRoutesHaveInterface(null, lp); in testRouteInterfaces() 256 assertFalse(lp.addRoute(r)); in testRouteInterfaces() 257 assertEquals(1, lp.getRoutes().size()); in testRouteInterfaces() 262 lp.addRoute(r); in testRouteInterfaces() 267 lp.setInterfaceName("rmnet0"); in testRouteInterfaces() [all …]
|
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/ |
D | MarginLayoutParamsCompatJellybeanMr1.java | 23 public static int getMarginStart(ViewGroup.MarginLayoutParams lp) { in getMarginStart() argument 24 return lp.getMarginStart(); in getMarginStart() 27 public static int getMarginEnd(ViewGroup.MarginLayoutParams lp) { in getMarginEnd() argument 28 return lp.getMarginEnd(); in getMarginEnd() 31 public static void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) { in setMarginStart() argument 32 lp.setMarginStart(marginStart); in setMarginStart() 35 public static void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) { in setMarginEnd() argument 36 lp.setMarginEnd(marginEnd); in setMarginEnd() 39 public static boolean isMarginRelative(ViewGroup.MarginLayoutParams lp) { in isMarginRelative() argument 40 return lp.isMarginRelative(); in isMarginRelative() [all …]
|
/frameworks/base/core/tests/coretests/src/android/preference/ |
D | ListPreferenceTest.java | 26 ListPreference lp = new ListPreference(getContext()); in testListPreferenceSummaryFromEntries() local 27 lp.setEntries(entries); in testListPreferenceSummaryFromEntries() 28 lp.setEntryValues(entryValues); in testListPreferenceSummaryFromEntries() 30 lp.setValue(entryValues[1]); in testListPreferenceSummaryFromEntries() 31 assertTrue(lp.getSummary() == null); in testListPreferenceSummaryFromEntries() 33 lp.setSummary("%1$s"); in testListPreferenceSummaryFromEntries() 34 assertEquals(entries[1], lp.getSummary()); in testListPreferenceSummaryFromEntries() 36 lp.setValue(entryValues[2]); in testListPreferenceSummaryFromEntries() 37 assertEquals(entries[2], lp.getSummary()); in testListPreferenceSummaryFromEntries() 39 lp.setSummary(null); in testListPreferenceSummaryFromEntries() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | LinearLayoutCompat.java | 297 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local 298 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical() 310 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local 311 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical() 325 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local 328 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal() 330 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal() 347 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local 349 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal() 351 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal() [all …]
|
D | ActionMenuView.java | 166 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local 167 lp.leftMargin = lp.rightMargin = 0; in onMeasure() 223 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat() local 224 lp.expanded = false; in onMeasureExactFormat() 225 lp.extraPixels = 0; in onMeasureExactFormat() 226 lp.cellsUsed = 0; in onMeasureExactFormat() 227 lp.expandable = false; in onMeasureExactFormat() 228 lp.leftMargin = 0; in onMeasureExactFormat() 229 lp.rightMargin = 0; in onMeasureExactFormat() 230 lp.preventEdgeOffset = isGeneratedItem && ((ActionMenuItemView) child).hasText(); in onMeasureExactFormat() [all …]
|
D | Toolbar.java | 841 final LayoutParams lp = generateDefaultLayoutParams(); in ensureMenuView() local 842 lp.gravity = GravityCompat.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureMenuView() 843 mMenuView.setLayoutParams(lp); in ensureMenuView() 996 final LayoutParams lp = generateDefaultLayoutParams(); in ensureNavButtonView() local 997 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureNavButtonView() 998 mNavButtonView.setLayoutParams(lp); in ensureNavButtonView() 1008 final LayoutParams lp = generateDefaultLayoutParams(); in ensureCollapseButtonView() local 1009 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureCollapseButtonView() 1010 lp.mViewType = LayoutParams.EXPANDED; in ensureCollapseButtonView() 1011 mCollapseButtonView.setLayoutParams(lp); in ensureCollapseButtonView() [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | SoftInputWindow.java | 50 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setToken() local 51 lp.token = token; in setToken() 52 getWindow().setAttributes(lp); in setToken() 112 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setGravity() local 113 lp.gravity = gravity; in setGravity() 114 updateWidthHeight(lp); in setGravity() 115 getWindow().setAttributes(lp); in setGravity() 122 private void updateWidthHeight(WindowManager.LayoutParams lp) { in updateWidthHeight() argument 123 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in updateWidthHeight() 124 lp.width = WindowManager.LayoutParams.MATCH_PARENT; in updateWidthHeight() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | LinearLayout.java | 351 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local 352 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical() 364 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local 365 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical() 379 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local 382 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal() 384 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal() 401 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local 403 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal() 405 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal() [all …]
|
D | ActionMenuView.java | 156 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local 157 lp.leftMargin = lp.rightMargin = 0; in onMeasure() 213 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat() local 214 lp.expanded = false; in onMeasureExactFormat() 215 lp.extraPixels = 0; in onMeasureExactFormat() 216 lp.cellsUsed = 0; in onMeasureExactFormat() 217 lp.expandable = false; in onMeasureExactFormat() 218 lp.leftMargin = 0; in onMeasureExactFormat() 219 lp.rightMargin = 0; in onMeasureExactFormat() 220 lp.preventEdgeOffset = isGeneratedItem && ((ActionMenuItemView) child).hasText(); in onMeasureExactFormat() [all …]
|
D | Toolbar.java | 840 final LayoutParams lp = generateDefaultLayoutParams(); in ensureMenuView() local 841 lp.gravity = Gravity.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureMenuView() 842 mMenuView.setLayoutParams(lp); in ensureMenuView() 994 final LayoutParams lp = generateDefaultLayoutParams(); in ensureNavButtonView() local 995 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureNavButtonView() 996 mNavButtonView.setLayoutParams(lp); in ensureNavButtonView() 1005 final LayoutParams lp = generateDefaultLayoutParams(); in ensureCollapseButtonView() local 1006 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); in ensureCollapseButtonView() 1007 lp.mViewType = LayoutParams.EXPANDED; in ensureCollapseButtonView() 1008 mCollapseButtonView.setLayoutParams(lp); in ensureCollapseButtonView() [all …]
|
D | FrameLayout.java | 437 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local 439 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure() 441 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin); in onMeasure() 444 if (lp.width == LayoutParams.MATCH_PARENT || in onMeasure() 445 lp.height == LayoutParams.MATCH_PARENT) { in onMeasure() 476 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in onMeasure() local 480 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure() 483 lp.leftMargin - lp.rightMargin, in onMeasure() 488 lp.leftMargin + lp.rightMargin, in onMeasure() 489 lp.width); in onMeasure() [all …]
|
D | TableRow.java | 195 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout() local 200 final int span = lp.span; in measureChildBeforeLayout() 206 final int gravity = lp.gravity; in measureChildBeforeLayout() 217 Math.max(0, columnWidth - lp.leftMargin - lp.rightMargin), measureMode in measureChildBeforeLayout() 220 mPaddingTop + mPaddingBottom + lp.topMargin + in measureChildBeforeLayout() 221 lp .bottomMargin + totalHeight, lp.height); in measureChildBeforeLayout() 227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout() 236 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT]; in measureChildBeforeLayout() 239 … lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2; in measureChildBeforeLayout() 243 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0; in measureChildBeforeLayout()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | SizeAdaptiveLayoutTest.java | 81 SizeAdaptiveLayout.LayoutParams lp = in testOpenLarge() local 83 int height = (int) lp.minHeight + 10; in testOpenLarge() 98 SizeAdaptiveLayout.LayoutParams lp = in testOpenSmall() local 100 int height = (int) lp.minHeight; in testOpenSmall() 115 SizeAdaptiveLayout.LayoutParams lp = in testOpenTooSmall() local 117 int height = (int) lp.minHeight - 10; in testOpenTooSmall() 132 SizeAdaptiveLayout.LayoutParams lp = in testOpenTooBig() local 134 lp.maxHeight = 500; in testOpenTooBig() 135 mLargeView.setLayoutParams(lp); in testOpenTooBig() 136 int height = (int) (lp.minHeight + 10); in testOpenTooBig() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | MultiPaneChallengeLayout.java | 188 private int getVirtualHeight(LayoutParams lp, int height, int heightUsed) { in getVirtualHeight() argument 197 if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { in getVirtualHeight() 201 } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) { in getVirtualHeight() 232 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local 234 if (lp.childType == LayoutParams.CHILD_TYPE_CHALLENGE) { in onMeasure() 244 } else if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) { in onMeasure() 255 if (lp.maxWidth >= 0) { in onMeasure() 257 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY); in onMeasure() 259 if (lp.maxHeight >= 0) { in onMeasure() 261 Math.min(lp.maxHeight, insetHeight), MeasureSpec.EXACTLY); in onMeasure() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListViewHeight.java | 62 ViewGroup.MarginLayoutParams lp; in onCreate() 63 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams(); in onCreate() 64 lp.height = 200; in onCreate() 65 mInnerList.setLayoutParams(lp); in onCreate() 78 ViewGroup.MarginLayoutParams lp; in onCreate() 79 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams(); in onCreate() 80 lp.height = lp.MATCH_PARENT; in onCreate() 81 mInnerList.setLayoutParams(lp); in onCreate()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SlidingPaneLayout.java | 504 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local 507 lp.dimWhenOffset = false; in onMeasure() 511 if (lp.weight > 0) { in onMeasure() 512 weightSum += lp.weight; in onMeasure() 516 if (lp.width == 0) continue; in onMeasure() 520 final int horizontalMargin = lp.leftMargin + lp.rightMargin; in onMeasure() 521 if (lp.width == LayoutParams.WRAP_CONTENT) { in onMeasure() 524 } else if (lp.width == LayoutParams.FILL_PARENT) { in onMeasure() 528 childWidthSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY); in onMeasure() 532 if (lp.height == LayoutParams.WRAP_CONTENT) { in onMeasure() [all …]
|
D | DrawerLayout.java | 262 void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity); in applyMarginInsets() argument 276 public void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity) { in applyMarginInsets() argument 299 public void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity) { in applyMarginInsets() argument 300 DrawerLayoutCompatApi21.applyMarginInsets(lp, insets, drawerGravity); in applyMarginInsets() 624 final LayoutParams lp = (LayoutParams) activeDrawer.getLayoutParams(); in updateDrawerState() local 625 if (lp.onScreen == 0) { in updateDrawerState() 627 } else if (lp.onScreen == 1) { in updateDrawerState() 642 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); in dispatchOnDrawerClosed() local 643 if (lp.knownOpen) { in dispatchOnDrawerClosed() 644 lp.knownOpen = false; in dispatchOnDrawerClosed() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 96 final LinearLayout.LayoutParams lp in horizontalButtonSlots() local 98 lp.setMargins(10, 0, 10, 0); in horizontalButtonSlots() 99 lp.weight = 0.33f; in horizontalButtonSlots() 121 ll.addView(button, lp); in horizontalButtonSlots() 123 ll.addView(new View(context), lp); in horizontalButtonSlots() 129 ll.addView(button, lp); in horizontalButtonSlots() 131 ll.addView(new View(context), lp); in horizontalButtonSlots() 137 ll.addView(button, lp); in horizontalButtonSlots() 139 ll.addView(new View(context), lp); in horizontalButtonSlots() 159 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in button() local [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ScaleFrameLayout.java | 93 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout() local 101 int gravity = lp.gravity; in onLayout() 112 lp.leftMargin - lp.rightMargin; in onLayout() 115 childLeft = parentRight - width - lp.rightMargin; in onLayout() 119 childLeft = parentLeft + lp.leftMargin; in onLayout() 124 childTop = parentTop + lp.topMargin; in onLayout() 128 lp.topMargin - lp.bottomMargin; in onLayout() 131 childTop = parentBottom - height - lp.bottomMargin; in onLayout() 134 childTop = parentTop + lp.topMargin; in onLayout()
|
D | ShadowOverlayContainer.java | 159 LayoutParams lp = mWrappedView.getLayoutParams(); in onMeasure() local 160 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure() 164 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 0, lp.width); in onMeasure() 166 if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure() 170 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, 0, lp.height); in onMeasure() 182 lp = child.getLayoutParams(); in onMeasure() 183 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure() 187 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 0, lp.width); in onMeasure() 190 if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure() 194 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, 0, lp.height); in onMeasure()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarOverlayLayout.java | 291 LayoutParams lp = (LayoutParams)view.getLayoutParams(); 292 if (left && lp.leftMargin != insets.left) { 294 lp.leftMargin = insets.left; 296 if (top && lp.topMargin != insets.top) { 298 lp.topMargin = insets.top; 300 if (right && lp.rightMargin != insets.right) { 302 lp.rightMargin = insets.right; 304 if (bottom && lp.bottomMargin != insets.bottom) { 306 lp.bottomMargin = insets.bottom; 375 LayoutParams lp = (LayoutParams) mActionBarTop.getLayoutParams(); [all …]
|
D | SizeAdaptiveLayout.java | 159 SizeAdaptiveLayout.LayoutParams lp = in onMeasure() local 161 if (DEBUG) Log.d(TAG, "active min: " + lp.minHeight + " max: " + lp.maxHeight); in onMeasure() 176 SizeAdaptiveLayout.LayoutParams lp = in clampSizeToBounds() local 179 int height = Math.max(heightIn, lp.minHeight); in clampSizeToBounds() 180 if (lp.maxHeight != SizeAdaptiveLayout.LayoutParams.UNBOUNDED) { in clampSizeToBounds() 181 height = Math.min(height, lp.maxHeight); in clampSizeToBounds() 206 SizeAdaptiveLayout.LayoutParams lp = in selectActiveChild() local 209 " with min: " + lp.minHeight + in selectActiveChild() 210 " max: " + lp.maxHeight); in selectActiveChild() 211 if (lp.maxHeight == SizeAdaptiveLayout.LayoutParams.UNBOUNDED && in selectActiveChild() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ActionBarOverlayLayout.java | 294 LayoutParams lp = (LayoutParams)view.getLayoutParams(); in applyInsets() local 295 if (left && lp.leftMargin != insets.left) { in applyInsets() 297 lp.leftMargin = insets.left; in applyInsets() 299 if (top && lp.topMargin != insets.top) { in applyInsets() 301 lp.topMargin = insets.top; in applyInsets() 303 if (right && lp.rightMargin != insets.right) { in applyInsets() 305 lp.rightMargin = insets.right; in applyInsets() 307 if (bottom && lp.bottomMargin != insets.bottom) { in applyInsets() 309 lp.bottomMargin = insets.bottom; in applyInsets() 378 LayoutParams lp = (LayoutParams) mActionBarTop.getLayoutParams(); in onMeasure() local [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManager.java | 299 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in hasGapsToFix() 300 if (mSpansToCheck.get(lp.mSpan.mIndex)) { in hasGapsToFix() 301 if (checkSpanForGap(lp.mSpan)) { in hasGapsToFix() 304 mSpansToCheck.clear(lp.mSpan.mIndex); in hasGapsToFix() 306 if (lp.mFullSpan) { in hasGapsToFix() 334 if (lp.mSpan.mIndex - nextLp.mSpan.mIndex < 0 != preferredSpanDir < 0) { in hasGapsToFix() 969 private void measureChildWithDecorationsAndMargin(View child, LayoutParams lp) { 970 if (lp.mFullSpan) { 973 getSpecForDimension(lp.height, mHeightSpec)); 976 getSpecForDimension(lp.width, mWidthSpec), mFullSizeSpec); [all …]
|