Searched refs:lp (Results 1 - 25 of 92) sorted by relevance

1234

/packages/apps/Launcher3/src/com/android/launcher3/
H A DShortcutAndWidgetContainer.java71 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
73 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
74 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
91 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
93 canvas.drawRect(lp.x, lp
115 setupLp(CellLayout.LayoutParams lp) argument
[all...]
H A DInsettableFrameLayout.java22 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
26 } else if (!lp.ignoreInsets) {
27 lp.topMargin += (newInsets.top - oldInsets.top);
28 lp.leftMargin += (newInsets.left - oldInsets.left);
29 lp.rightMargin += (newInsets.right - oldInsets.right);
30 lp.bottomMargin += (newInsets.bottom - oldInsets.bottom);
32 child.setLayoutParams(lp);
82 public LayoutParams(ViewGroup.LayoutParams lp) { argument
83 super(lp);
H A DAppWidgetResizeFrame.java95 LayoutParams lp;
98 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
100 lp.leftMargin = handleMargin;
101 addView(mLeftHandle, lp);
105 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
107 lp.rightMargin = handleMargin;
108 addView(mRightHandle, lp);
112 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
114 lp.topMargin = handleMargin;
115 addView(mTopHandle, lp);
[all...]
H A DLauncherRootView.java50 MarginLayoutParams lp = (MarginLayoutParams) mAlignedView.getLayoutParams();
51 if (lp.leftMargin != insets.left || lp.rightMargin != insets.right) {
52 lp.leftMargin = insets.left;
53 lp.rightMargin = insets.right;
54 mAlignedView.setLayoutParams(lp);
H A DDeviceProfile.java448 FrameLayout.LayoutParams lp;
455 lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams();
456 lp.width = searchBarBounds.width();
457 lp.height = searchBarBounds.height();
458 lp.topMargin = searchBarTopExtraPaddingPx;
462 lp.gravity = Gravity.LEFT;
472 lp.gravity = Gravity.TOP|Gravity.CENTER_HORIZONTAL;
474 searchBar.setLayoutParams(lp);
478 lp = (FrameLayout.LayoutParams) workspace.getLayoutParams();
479 lp
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiLayoutParams.java64 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) vp.getLayoutParams();
65 lp.height = mEmojiKeyboardHeight;
66 lp.bottomMargin = mEmojiPagerBottomMargin;
67 vp.setLayoutParams(lp);
71 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) v.getLayoutParams();
72 lp.height = mEmojiCategoryPageIdViewHeight;
73 v.setLayoutParams(lp);
81 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams();
82 lp.height = getActionBarHeight();
83 ll.setLayoutParams(lp);
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DShortcutAndWidgetContainer.java64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
66 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
67 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
84 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
86 canvas.drawRect(lp.x, lp
104 setupLp(CellLayout.LayoutParams lp) argument
[all...]
H A DPagedViewCellLayoutChildren.java92 PagedViewCellLayout.LayoutParams lp =
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
98 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width,
100 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height,
121 PagedViewCellLayout.LayoutParams lp =
123 minRowX = Math.min(minRowX, lp.x);
124 maxRowX = Math.max(maxRowX, lp.x + lp.width);
134 PagedViewCellLayout.LayoutParams lp =
137 int childLeft = offsetX + lp
[all...]
H A DAppWidgetResizeFrame.java95 LayoutParams lp;
98 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
100 addView(mLeftHandle, lp);
104 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
106 addView(mRightHandle, lp);
110 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
112 addView(mTopHandle, lp);
116 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
118 addView(mBottomHandle, lp);
203 DragLayer.LayoutParams lp
[all...]
H A DCellLayout.java617 final LayoutParams lp = params;
636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
639 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX;
640 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY;
644 mShortcutsAndWidgets.addView(child, index, lp);
[all...]
H A DPagedViewCellLayout.java103 final PagedViewCellLayout.LayoutParams lp = params;
107 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) &&
108 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) {
111 if (lp.cellHSpan < 0) lp.cellHSpan = mCellCountX;
112 if (lp.cellVSpan < 0) lp.cellVSpan = mCellCountY;
115 mChildren.addView(child, index, lp);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DViewLayoutUtils.java49 final ViewGroup.LayoutParams lp = view.getLayoutParams();
50 if (lp instanceof MarginLayoutParams) {
51 final MarginLayoutParams marginLayoutParams = (MarginLayoutParams)lp;
75 final ViewGroup.LayoutParams lp = view.getLayoutParams();
76 if (lp instanceof LinearLayout.LayoutParams) {
77 final LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)lp;
82 } else if (lp instanceof FrameLayout.LayoutParams) {
83 final FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)lp;
90 + lp.getClass().getName());
/packages/apps/TV/src/com/android/tv/guide/
H A DTimeListAdapter.java76 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) itemView.getLayoutParams();
77 lp.width = GuideUtils.convertMillisToPixel(startTime, endTime);
80 lp.setMarginStart(sRowHeaderOverlapping - lp.width / 2);
82 lp.setMarginStart(0);
84 itemView.setLayoutParams(lp);
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DCheckBoxItem.java49 LinearLayout.LayoutParams lp =
51 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
52 lp.topMargin = view.getResources().getDimensionPixelOffset(
54 checkBox.setLayoutParams(lp);
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorPadLayout.java78 final MarginLayoutParams lp = (MarginLayoutParams) childView.getLayoutParams();
80 final int childTop = paddingTop + lp.topMargin + rowIndex * rowHeight;
81 final int childBottom = childTop - lp.topMargin - lp.bottomMargin + rowHeight;
82 final int childLeft = paddingLeft + lp.leftMargin +
84 final int childRight = childLeft - lp.leftMargin - lp.rightMargin + columnWidth;
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DMaxWidthLayout.java77 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
78 if (lp.width == LayoutParams.MATCH_PARENT) {
85 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
88 mMaxChildrenWidth - lp.leftMargin - lp.rightMargin, MeasureSpec.EXACTLY);
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java337 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
338 final int top = child.getTop() - lp.topMargin - mDividerHeight;
350 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
351 bottom = child.getBottom() + lp.bottomMargin;
365 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
368 position = child.getRight() + lp.rightMargin;
370 position = child.getLeft() - lp.leftMargin - mDividerWidth;
387 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
389 position = child.getLeft() - lp.leftMargin - mDividerWidth;
391 position = child.getRight() + lp
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DHeaderElevationController.java52 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
55 lp.topMargin = ((FrameLayout.LayoutParams) header.getLayoutParams()).height;
57 ((ViewGroup) header.getParent()).addView(mShadow, lp);
69 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mShadow.getLayoutParams();
70 lp.leftMargin = bgPadding.left;
71 lp.rightMargin = bgPadding.right;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorColorBorderTabletUI.java93 LinearLayout lp = (LinearLayout) inflater.inflate(
98 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles);
100 mCBCornerSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderCornerSizeSeekBar);
101 mCBCornerSizeValue = (TextView) lp.findViewById(R.id.colorBorderCornerValue);
102 mCBSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderSizeSeekBar);
104 mCBSizeValue = (TextView) lp.findViewById(R.id.colorBorderSizeValue);
105 setupCBSizeSeekBar(lp);
106 setupCBCornerSizeSeekBar(lp);
107 setupColor(lp, res);
110 private void setupCBSizeSeekBar(LinearLayout lp) { argument
130 setupCBCornerSizeSeekBar(LinearLayout lp) argument
150 setupColor(LinearLayout lp, Resources res) argument
[all...]
H A DEditorDrawTabletUI.java89 public EditorDrawTabletUI(EditorDraw editorDraw, Context context, LinearLayout lp) { argument
95 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles);
97 mdrawSizeSeekBar = (SeekBar) lp.findViewById(R.id.drawSizeSeekBar);
98 mDrawSizeValue = (TextView) lp.findViewById(R.id.drawSizeValue);
100 Button clearButton = (Button) lp.findViewById(R.id.clearButton);
157 final LinearLayout ctls = (LinearLayout) lp.findViewById(R.id.controls);
158 final LinearLayout pick = (LinearLayout) lp.findViewById(R.id.colorPicker);
159 Button b = (Button) lp.findViewById(R.id.draw_color_popupbutton);
175 mColorButton[i] = (Button) lp.findViewById(ids[i]);
210 mHueView = (ColorHueView) lp
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseScrollAdapterFragment.java192 LayoutParams lp = mSelectorView.getLayoutParams();
193 lp.height = selectorHeight = mFragment.getActivity().getResources()
195 mSelectorView.setLayoutParams(lp);
215 LayoutParams lp = mSelectorView.getLayoutParams();
216 lp.height = 0;
217 mSelectorView.setLayoutParams(lp);
/packages/experimental/Bummer/src/com/android/dreams/bummer/
H A DBummer.java54 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
59 mFrame.addView(mApology, lp);
/packages/apps/TV/src/com/android/tv/ui/
H A DTvViewUiManager.java493 FrameLayout.LayoutParams lp;
497 if (lp == null) {
498 lp = new FrameLayout.LayoutParams(0, 0);
499 lp.gravity = startValue.gravity;
501 interpolateMarginsRelative(lp, startValue, endValue, fraction);
502 return lp;
627 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mPipView.getLayoutParams();
628 if (lp.width != width || lp.height != height || lp
[all...]
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
H A DCarDrawerLayout.java419 LayoutParams lp = (LayoutParams) findDrawerView().getLayoutParams();
420 setDrawerLockMode(lockMode, lp.gravity);
540 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
541 if (lp.knownOpen) {
542 lp.knownOpen = false;
550 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
551 if (!lp.knownOpen) {
552 lp.knownOpen = true;
582 LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
583 lp
[all...]
/packages/apps/Settings/src/com/android/settings/wfd/
H A DWifiDisplaySettings.java388 ListPreference lp = new ListPreference(getPrefContext());
389 lp.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
410 lp.setKey("wps");
411 lp.setTitle(R.string.wifi_display_wps_config);
412 lp.setEntries(wpsEntries);
413 lp.setEntryValues(wpsValues);
414 lp.setValue("" + mWpsConfig);
415 lp.setSummary("%1$s");
416 mCertCategory.addPreference(lp);
419 lp
[all...]

Completed in 552 milliseconds

1234