Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/core/java/android/inputmethodservice/
DSoftInputWindow.java39 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setToken() local
40 lp.token = token; in setToken()
41 getWindow().setAttributes(lp); in setToken()
95 WindowManager.LayoutParams lp = getWindow().getAttributes(); in getSize() local
97 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in getSize()
98 return lp.height; in getSize()
100 return lp.width; in getSize()
114 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setSize() local
116 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in setSize()
117 lp.width = -1; in setSize()
[all …]
/frameworks/base/core/tests/coretests/src/android/preference/
DListPreferenceTest.java26 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/base/core/java/com/android/internal/view/menu/
DActionMenuView.java112 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local
113 lp.leftMargin = lp.rightMargin = 0; in onMeasure()
171 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasureExactFormat() local
172 lp.expanded = false; in onMeasureExactFormat()
173 lp.extraPixels = 0; in onMeasureExactFormat()
174 lp.cellsUsed = 0; in onMeasureExactFormat()
175 lp.expandable = false; in onMeasureExactFormat()
176 lp.leftMargin = 0; in onMeasureExactFormat()
177 lp.rightMargin = 0; in onMeasureExactFormat()
178 lp.preventEdgeOffset = isGeneratedItem && ((ActionMenuItemView) child).hasText(); in onMeasureExactFormat()
[all …]
/frameworks/base/core/java/android/widget/
DLinearLayout.java326 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local
327 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical()
339 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local
340 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical()
353 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local
354 final int left = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal()
366 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local
367 right = child.getRight() + lp.rightMargin; in drawDividersHorizontal()
489 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams(); in getBaseline() local
490 return childTop + lp.topMargin + childBaseline; in getBaseline()
[all …]
DFrameLayout.java311 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local
313 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
315 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin); in onMeasure()
318 if (lp.width == LayoutParams.MATCH_PARENT || in onMeasure()
319 lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
350 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in onMeasure() local
354 if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure()
357 lp.leftMargin - lp.rightMargin, in onMeasure()
362 lp.leftMargin + lp.rightMargin, in onMeasure()
363 lp.width); in onMeasure()
[all …]
DTableRow.java195 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()
239lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2; in measureChildBeforeLayout()
243 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0; in measureChildBeforeLayout()
DGridLayout.java625 LayoutParams lp = getLayoutParams(view); in getMargin1() local
627 (leading ? lp.leftMargin : lp.rightMargin) : in getMargin1()
628 (leading ? lp.topMargin : lp.bottomMargin); in getMargin1()
629 return margin == UNDEFINED ? getDefaultMargin(view, lp, horizontal, leading) : margin; in getMargin1()
638 LayoutParams lp = getLayoutParams(view); in getMargin() local
639 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec; in getMargin()
666 private static void setCellGroup(LayoutParams lp, int row, int rowSpan, int col, int colSpan) { in setCellGroup() argument
667 lp.setRowSpecSpan(new Interval(row, row + rowSpan)); in setCellGroup()
668 lp.setColumnSpecSpan(new Interval(col, col + colSpan)); in setCellGroup()
692 LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams(); in validateLayoutParams() local
[all …]
DAbsoluteLayout.java72 AbsoluteLayout.LayoutParams lp in onMeasure() local
75 childRight = lp.x + child.getMeasuredWidth(); in onMeasure()
76 childBottom = lp.y + child.getMeasuredHeight(); in onMeasure()
115 AbsoluteLayout.LayoutParams lp = in onLayout() local
118 int childLeft = mPaddingLeft + lp.x; in onLayout()
119 int childTop = mPaddingTop + lp.y; in onLayout()
DViewSwitcher.java95 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in obtainView() local
96 if (lp == null) { in obtainView()
97 lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); in obtainView()
99 addView(child, lp); in obtainView()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DSizeAdaptiveLayoutTest.java81 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/core/tests/coretests/src/android/util/
DListItemFactory.java96 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/base/core/tests/coretests/src/android/widget/listview/
DListViewHeight.java62 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/base/core/java/android/webkit/
DAutoCompletePopup.java144 AbsoluteLayout.LayoutParams lp = in resetRect() local
147 if (null == lp) { in resetRect()
148 lp = new AbsoluteLayout.LayoutParams(width, height, left, top); in resetRect()
150 if ((lp.x != left) || (lp.y != top) || (lp.width != width) in resetRect()
151 || (lp.height != height)) { in resetRect()
153 lp.x = left; in resetRect()
154 lp.y = top; in resetRect()
155 lp.width = width; in resetRect()
156 lp.height = height; in resetRect()
160 mAnchor.setLayoutParams(lp); in resetRect()
DViewManager.java127 AbsoluteLayout.LayoutParams lp; in requestLayout() local
131 lp = (AbsoluteLayout.LayoutParams) layoutParams; in requestLayout()
132 lp.width = width; in requestLayout()
133 lp.height = height; in requestLayout()
134 lp.x = x; in requestLayout()
135 lp.y = y; in requestLayout()
137 lp = new AbsoluteLayout.LayoutParams(width, height, x, y); in requestLayout()
141 v.mView.setLayoutParams(lp); in requestLayout()
/frameworks/base/core/java/com/android/internal/widget/
DSizeAdaptiveLayout.java154 SizeAdaptiveLayout.LayoutParams lp = in onMeasure() local
156 if (DEBUG) Log.d(TAG, "active min: " + lp.minHeight + " max: " + lp.maxHeight); in onMeasure()
171 SizeAdaptiveLayout.LayoutParams lp = in clampSizeToBounds() local
174 int height = Math.max(heightIn, lp.minHeight); in clampSizeToBounds()
175 if (lp.maxHeight != SizeAdaptiveLayout.LayoutParams.UNBOUNDED) { in clampSizeToBounds()
176 height = Math.min(height, lp.maxHeight); in clampSizeToBounds()
201 SizeAdaptiveLayout.LayoutParams lp = in selectActiveChild() local
204 " with min: " + lp.minHeight + in selectActiveChild()
205 " max: " + lp.maxHeight); in selectActiveChild()
206 if (lp.maxHeight == SizeAdaptiveLayout.LayoutParams.UNBOUNDED && in selectActiveChild()
[all …]
DActionBarOverlayLayout.java131 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams)view.getLayoutParams(); in applyInsets() local
132 if (left && lp.leftMargin != insets.left) { in applyInsets()
134 lp.leftMargin = insets.left; in applyInsets()
136 if (top && lp.topMargin != insets.top) { in applyInsets()
138 lp.topMargin = insets.top; in applyInsets()
140 if (right && lp.rightMargin != insets.right) { in applyInsets()
142 lp.rightMargin = insets.right; in applyInsets()
144 if (bottom && lp.bottomMargin != insets.bottom) { in applyInsets()
146 lp.bottomMargin = insets.bottom; in applyInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DTabletStatusBar.java228 final WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in addStatusBarWindow() local
245 lp.gravity = getStatusBarGravity(); in addStatusBarWindow()
246 lp.setTitle("SystemBar"); in addStatusBarWindow()
247 lp.packageName = mContext.getPackageName(); in addStatusBarWindow()
248 WindowManagerImpl.getDefault().addView(sb, lp); in addStatusBarWindow()
296 WindowManager.LayoutParams lp = mNotificationPanelParams = new WindowManager.LayoutParams( in addPanelWindows() local
306 lp.gravity = Gravity.BOTTOM | Gravity.RIGHT; in addPanelWindows()
307 lp.setTitle("NotificationPanel"); in addPanelWindows()
308 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED in addPanelWindows()
310 lp.windowAnimations = com.android.internal.R.style.Animation; // == no animation in addPanelWindows()
[all …]
DTabletTicker.java225 WindowManager.LayoutParams lp = new WindowManager.LayoutParams(width, mLargeIconHeight, in makeWindow() local
228 lp.gravity = Gravity.BOTTOM | Gravity.RIGHT; in makeWindow()
234 lp.setTitle("NotificationTicker"); in makeWindow()
235 view.setLayoutParams(lp); in makeWindow()
283 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in makeTickerView() local
286 content.addView(expanded, lp); in makeTickerView()
303 final ViewGroup.LayoutParams lp = largeIcon.getLayoutParams(); in makeTickerView() local
308 lp.height = statusBarHeight; in makeTickerView()
310 lp.height = mLargeIconHeight; in makeTickerView()
312 largeIcon.setLayoutParams(lp); in makeTickerView()
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeApp.java117 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in onCreate() local
123 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; in onCreate()
125 lp.width = ViewGroup.LayoutParams.MATCH_PARENT; in onCreate()
126 lp.height = ViewGroup.LayoutParams.MATCH_PARENT; in onCreate()
129 lp.x = maxSize; in onCreate()
130 lp.y = maxSize; in onCreate()
131 lp.setTitle(getPackageName()); in onCreate()
132 wm.addView(view, lp); in onCreate()
DFakeBackgroundService.java91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); in onCreate() local
94 lp.x = maxSize; in onCreate()
95 lp.y = maxSize; in onCreate()
96 lp.setTitle(getPackageName() + ":background"); in onCreate()
97 dialog.getWindow().setAttributes(lp); in onCreate()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DKeyguardViewManager.java130 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in show() local
133 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE; in show()
134 lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen; in show()
137 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; in show()
138 lp.privateFlags |= in show()
141 lp.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_SET_NEEDS_MENU_KEY; in show()
142 lp.setTitle("Keyguard"); in show()
143 mWindowLayoutParams = lp; in show()
145 mViewManager.addView(mKeyguardHost, lp); in show()
164 final ViewGroup.LayoutParams lp = new FrameLayout.LayoutParams( in show() local
[all …]
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DAbstractLayoutTest.java54 ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) v.getLayoutParams(); in animate() local
55 lp.topMargin = (lp.topMargin + 1) % 31; in animate()
56 lp.leftMargin = (lp.leftMargin + 1) % 31; in animate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientsActivity.java72 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate() local
73 lp.setMargins(220, 0, 0, 0); in onCreate()
74 layout.addView(radialGradientView, lp); in onCreate()
76 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate()
77 lp.setMargins(440, 0, 0, 0); in onCreate()
78 layout.addView(sweepGradientView, lp); in onCreate()
80 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate()
81 lp.setMargins(220, -220, 0, 0); in onCreate()
82 layout.addView(bitmapView, lp); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java496 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in getRecentsLayoutParams() local
505 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; in getRecentsLayoutParams()
507 lp.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND; in getRecentsLayoutParams()
508 lp.dimAmount = 0.75f; in getRecentsLayoutParams()
510 lp.gravity = Gravity.BOTTOM | Gravity.LEFT; in getRecentsLayoutParams()
511 lp.setTitle("RecentsPanel"); in getRecentsLayoutParams()
512 lp.windowAnimations = com.android.internal.R.style.Animation_RecentApplications; in getRecentsLayoutParams()
513 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED in getRecentsLayoutParams()
515 return lp; in getRecentsLayoutParams()
521 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in getSearchLayoutParams() local
[all …]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java605 LayoutParams lp = getLayoutParams(view); in getMargin1() local
607 (leading ? lp.leftMargin : lp.rightMargin) : in getMargin1()
608 (leading ? lp.topMargin : lp.bottomMargin); in getMargin1()
609 return margin == UNDEFINED ? getDefaultMarginValue(view, lp, horizontal, leading) : margin; in getMargin1()
618 LayoutParams lp = getLayoutParams(view); in getMargin() local
619 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec; in getMargin()
646 private static void setCellGroup(LayoutParams lp, int row, int rowSpan, int col, int colSpan) { in setCellGroup() argument
647 lp.setRowSpecSpan(new Interval(row, row + rowSpan)); in setCellGroup()
648 lp.setColumnSpecSpan(new Interval(col, col + colSpan)); in setCellGroup()
672 LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams(); in validateLayoutParams() local
[all …]

1234