/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiLayoutParams.java | 64 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 D | ShortcutAndWidgetContainer.java | 64 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 D | PagedViewCellLayoutChildren.java | 92 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 D | AppWidgetResizeFrame.java | 95 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 D | CellLayout.java | 617 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 D | PagedViewCellLayout.java | 103 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/apps/Launcher3/src/com/android/launcher3/ |
H A D | ShortcutAndWidgetContainer.java | 68 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); 70 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && 71 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { 94 public void setupLp(CellLayout.LayoutParams lp) { argument 95 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), 124 CellLayout.LayoutParams lp [all...] |
H A D | InsettableFrameLayout.java | 31 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 35 } else if (!lp.ignoreInsets) { 36 lp.topMargin += (newInsets.top - oldInsets.top); 37 lp.leftMargin += (newInsets.left - oldInsets.left); 38 lp.rightMargin += (newInsets.right - oldInsets.right); 39 lp.bottomMargin += (newInsets.bottom - oldInsets.bottom); 41 child.setLayoutParams(lp); 95 public LayoutParams(ViewGroup.LayoutParams lp) { argument 96 super(lp);
|
H A D | AppWidgetResizeFrame.java | 101 LayoutParams lp; 104 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 106 lp.leftMargin = handleMargin; 107 addView(mLeftHandle, lp); 111 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 113 lp.rightMargin = handleMargin; 114 addView(mRightHandle, lp); 118 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 120 lp.topMargin = handleMargin; 121 addView(mTopHandle, lp); [all...] |
H A D | DeviceProfile.java | 464 FrameLayout.LayoutParams lp; 471 lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams(); 472 lp.width = searchBarBounds.x; 473 lp.height = searchBarBounds.y; 474 lp.topMargin = mInsets.top + edgeMarginPx; 475 searchBar.setLayoutParams(lp); 485 lp = (FrameLayout.LayoutParams) qsbContainer.getLayoutParams(); 486 lp.topMargin = mInsets.top + workspacePadding.top; 487 qsbContainer.setLayoutParams(lp); 491 lp [all...] |
H A D | LauncherRootView.java | 57 MarginLayoutParams lp = (MarginLayoutParams) mAlignedView.getLayoutParams(); 58 if (lp.leftMargin != insets.left || lp.rightMargin != insets.right) { 59 lp.leftMargin = insets.left; 60 lp.rightMargin = insets.right; 61 mAlignedView.setLayoutParams(lp);
|
H A D | CellLayout.java | 630 final LayoutParams lp = params; 643 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { 646 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX; 647 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY; 653 mShortcutsAndWidgets.addView(child, index, lp); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ViewLayoutUtils.java | 49 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 D | TimeListAdapter.java | 76 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 D | CheckBoxItem.java | 49 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 D | CalculatorPadLayout.java | 78 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 D | MaxWidthLayout.java | 77 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 D | MatchParentShrinkingLinearLayout.java | 337 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/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorColorBorderTabletUI.java | 93 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 D | EditorDrawTabletUI.java | 89 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/Launcher3/src/com/android/launcher3/allapps/ |
H A D | HeaderElevationController.java | 54 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( 57 lp.topMargin = ((FrameLayout.LayoutParams) header.getLayoutParams()).height; 59 ((ViewGroup) header.getParent()).addView(mShadow, lp); 71 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mShadow.getLayoutParams(); 72 lp.leftMargin = bgPadding.left; 73 lp.rightMargin = bgPadding.right;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | BaseScrollAdapterFragment.java | 192 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 D | Bummer.java | 54 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( 59 mFrame.addView(mApology, lp);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | TvViewUiManager.java | 493 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 D | CarDrawerLayout.java | 419 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...] |