Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/inputmethodservice/
DSoftInputWindow.java37 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setToken() local
38 lp.token = token; in setToken()
39 getWindow().setAttributes(lp); in setToken()
77 WindowManager.LayoutParams lp = getWindow().getAttributes(); in getSize() local
79 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in getSize()
80 return lp.height; in getSize()
82 return lp.width; in getSize()
96 WindowManager.LayoutParams lp = getWindow().getAttributes(); in setSize() local
98 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in setSize()
99 lp.width = -1; in setSize()
[all …]
/frameworks/base/core/java/android/widget/
DLinearLayout.java224 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams(); in getBaseline() local
225 return childTop + lp.topMargin + childBaseline; in getBaseline()
360 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) child.getLayoutParams(); in measureVertical() local
362 totalWeight += lp.weight; in measureVertical()
364 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { in measureVertical()
369 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin); in measureVertical()
373 if (lp.height == 0 && lp.weight > 0) { in measureVertical()
379 lp.height = LayoutParams.WRAP_CONTENT; in measureVertical()
391 lp.height = oldHeight; in measureVertical()
396 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
[all …]
DTableRow.java193 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in measureChildBeforeLayout() local
198 final int span = lp.span; in measureChildBeforeLayout()
204 final int gravity = lp.gravity; in measureChildBeforeLayout()
215 Math.max(0, columnWidth - lp.leftMargin - lp.rightMargin), measureMode in measureChildBeforeLayout()
218 mPaddingTop + mPaddingBottom + lp.topMargin + in measureChildBeforeLayout()
219 lp .bottomMargin + totalHeight, lp.height); in measureChildBeforeLayout()
225 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout()
232 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT]; in measureChildBeforeLayout()
235lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] / 2; in measureChildBeforeLayout()
239 lp.mOffset[LayoutParams.LOCATION] = lp.mOffset[LayoutParams.LOCATION_NEXT] = 0; in measureChildBeforeLayout()
DViewSwitcher.java81 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in obtainView() local
82 if (lp == null) { in obtainView()
83 lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); in obtainView()
85 addView(child, lp); in obtainView()
DFrameLayout.java293 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout() local
301 final int gravity = lp.gravity; in onLayout()
309 childLeft = parentLeft + lp.leftMargin; in onLayout()
313 lp.leftMargin - lp.rightMargin; in onLayout()
316 childLeft = parentRight - width - lp.rightMargin; in onLayout()
319 childLeft = parentLeft + lp.leftMargin; in onLayout()
324 childTop = parentTop + lp.topMargin; in onLayout()
328 lp.topMargin - lp.bottomMargin; in onLayout()
331 childTop = parentBottom - height - lp.bottomMargin; in onLayout()
334 childTop = parentTop + lp.topMargin; in onLayout()
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()
DZoomButtonsController.java242 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); in createContainer() local
244 lp.gravity = Gravity.TOP | Gravity.LEFT; in createContainer()
245 lp.flags = LayoutParams.FLAG_NOT_TOUCHABLE | in createContainer()
249 lp.height = LayoutParams.WRAP_CONTENT; in createContainer()
250 lp.width = LayoutParams.MATCH_PARENT; in createContainer()
251 lp.type = LayoutParams.TYPE_APPLICATION_PANEL; in createContainer()
252 lp.format = PixelFormat.TRANSLUCENT; in createContainer()
253 lp.windowAnimations = com.android.internal.R.style.Animation_ZoomButtons; in createContainer()
254 mContainerLayoutParams = lp; in createContainer()
257 container.setLayoutParams(lp); in createContainer()
DSpinner.java212 ViewGroup.LayoutParams lp = child.getLayoutParams(); in setUpChild() local
213 if (lp == null) { in setUpChild()
214 lp = generateDefaultLayoutParams(); in setUpChild()
217 addViewInLayout(child, 0, lp); in setUpChild()
223 mSpinnerPadding.top + mSpinnerPadding.bottom, lp.height); in setUpChild()
225 mSpinnerPadding.left + mSpinnerPadding.right, lp.width); in setUpChild()
DTabWidget.java388 final LinearLayout.LayoutParams lp = new LayoutParams( in addView() local
391 lp.setMargins(0, 0, 0, 0); in addView()
392 child.setLayoutParams(lp); in addView()
403 final LinearLayout.LayoutParams lp = new LayoutParams( in addView() local
406 lp.setMargins(0, 0, 0, 0); in addView()
407 divider.setLayoutParams(lp); in addView()
/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()
DListItemsExpandOnSelection.java46 final AbsListView.LayoutParams lp = new AbsListView.LayoutParams( in createView() local
49 result.setLayoutParams(lp); in createView()
DAdjacentListsWithAdjacentISVsInside.java92 final LinearLayout.LayoutParams lp = in combineAdjacent() local
96 ll.addView(view, lp); in combineAdjacent()
/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 …]
DScrollViewScenario.java175 final LinearLayout.LayoutParams lp = in addVerticalLLOfButtons()
181 ll.addView(button, lp); in addVerticalLLOfButtons()
242 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate() local
245 mLinearLayout.addView(viewFactory.create(this), lp); in onCreate() local
/frameworks/base/policy/src/com/android/internal/policy/impl/
DKeyguardViewManager.java111 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in show() local
114 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN; in show()
115 lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen; in show()
116 lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; in show()
117 lp.setTitle("Keyguard"); in show()
118 mWindowLayoutParams = lp; in show()
120 mViewManager.addView(mKeyguardHost, lp); in show()
129 final ViewGroup.LayoutParams lp = new FrameLayout.LayoutParams( in show() local
133 mKeyguardHost.addView(mKeyguardView, lp); in show()
/frameworks/base/core/java/android/webkit/
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()
DWebTextView.java797 LayoutParams lp = (LayoutParams) getLayoutParams(); in setRect() local
798 if (null == lp) { in setRect()
799 lp = new LayoutParams(width, height, x, y); in setRect()
801 lp.x = x; in setRect()
802 lp.y = y; in setRect()
803 lp.width = width; in setRect()
804 lp.height = height; in setRect()
807 mWebView.addView(this, lp); in setRect()
809 setLayoutParams(lp); in setRect()
/frameworks/base/voip/java/com/android/server/sip/
DSipHelper.java125 ListeningPoint lp = mSipProvider.getListeningPoint(ListeningPoint.UDP); in getListeningPoint() local
126 if (lp == null) lp = mSipProvider.getListeningPoint(ListeningPoint.TCP); in getListeningPoint()
127 if (lp == null) { in getListeningPoint()
129 if ((lps != null) && (lps.length > 0)) lp = lps[0]; in getListeningPoint()
131 if (lp == null) { in getListeningPoint()
134 return lp; in getListeningPoint()
140 ListeningPoint lp = getListeningPoint(); in createViaHeaders() local
141 ViaHeader viaHeader = mHeaderFactory.createViaHeader(lp.getIPAddress(), in createViaHeaders()
142 lp.getPort(), lp.getTransport(), null); in createViaHeaders()
150 ListeningPoint lp = getListeningPoint(); in createContactHeader() local
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java79 WindowManager.LayoutParams lp = mDialog.getWindow().getAttributes(); in show() local
80 lp.type = WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; in show()
82 lp.token = windowToken; in show()
84 lp.flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; in show()
DIconMenuItemView.java253 IconMenuView.LayoutParams lp = (IconMenuView.LayoutParams) getLayoutParams(); in getTextAppropriateLayoutParams() local
254 if (lp == null) { in getTextAppropriateLayoutParams()
256 lp = new IconMenuView.LayoutParams( in getTextAppropriateLayoutParams()
261 lp.desiredWidth = (int) Layout.getDesiredWidth(getText(), getPaint()); in getTextAppropriateLayoutParams()
263 return lp; in getTextAppropriateLayoutParams()
DIconMenuView.java270 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in doItemsFit() local
271 if (lp.maxNumItemsOnRow < numItemsOnRow) { in doItemsFit()
722 LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams(); in calculateItemFittingMetadata() local
724 lp.maxNumItemsOnRow = 1; in calculateItemFittingMetadata()
728 if (lp.desiredWidth < width / curNumItemsPerRow) { in calculateItemFittingMetadata()
730 lp.maxNumItemsOnRow = curNumItemsPerRow; in calculateItemFittingMetadata()
/frameworks/base/core/tests/coretests/src/android/view/
DIncludeTest.java75 final ViewGroup.LayoutParams lp = button1.getLayoutParams(); in testIncludedWithSize() local
76 assertEquals("Included button should be 23dip x 23dip", 23, lp.width); in testIncludedWithSize()
77 assertEquals("Included button should be 23dip x 23dip", 23, lp.height); in testIncludedWithSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarService.java330 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in addStatusBarView() local
337 lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL; in addStatusBarView()
338 lp.setTitle("StatusBar"); in addStatusBarView()
339 lp.windowAnimations = com.android.internal.R.style.Animation_StatusBar; in addStatusBarView()
341 WindowManagerImpl.getDefault().addView(view, lp); in addStatusBarView()
1193 WindowManager.LayoutParams lp;
1204 lp = new WindowManager.LayoutParams(
1213 lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL;
1214 lp.setTitle("TrackingView");
1215 lp.y = mTrackingPosition;
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java633 LogPrinter lp = new LogPrinter(Log.VERBOSE, TAG); in replaceText() local
634 lp.println("Current text:"); in replaceText()
635 TextUtils.dumpSpans(content, lp, " "); in replaceText()
636 lp.println("Composing text:"); in replaceText()
637 TextUtils.dumpSpans(text, lp, " "); in replaceText()
657 LogPrinter lp = new LogPrinter(Log.VERBOSE, TAG); in replaceText() local
658 lp.println("Final text:"); in replaceText()
659 TextUtils.dumpSpans(content, lp, " "); in replaceText()
/frameworks/base/core/tests/coretests/src/android/widget/expandablelistview/
DInflatedExpandableListView.java67 AbsListView.LayoutParams lp = new AbsListView.LayoutParams( in getGenericView() local
71 textView.setLayoutParams(lp); in getGenericView()

12