Searched refs:lp (Results 51 - 75 of 101) sorted by relevance

12345

/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragLayer.java414 final LayoutParams lp = (LayoutParams) flp;
415 if (lp.customPosition) {
416 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height);
445 LayoutParams lp = new LayoutParams(-1, -1);
446 lp
[all...]
H A DWorkspace.java548 CellLayout.LayoutParams lp;
550 lp = new CellLayout.LayoutParams(x, y, spanX, spanY);
552 lp = (CellLayout.LayoutParams) genericLp;
553 lp.cellX = x;
554 lp.cellY = y;
555 lp.cellHSpan = spanX;
556 lp.cellVSpan = spanY;
560 lp.isLockedToGrid = false;
566 if (!layout.addViewToCellLayout(child, insert ? 0 : -1, childId, lp, markCellsAsOccupied)) {
570 Log.w(TAG, "Failed to add to item at (" + lp
[all...]
H A DAppsCustomizePagedView.java624 DragLayer.LayoutParams lp = new DragLayer.LayoutParams(unScaledSize[0],
626 lp.x = lp.y = 0;
627 lp.customPosition = true;
628 hostView.setLayoutParams(lp);
1226 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(
1229 lp.width = cellWidth;
1230 lp.height = cellHeight;
1231 lp.setGravity(Gravity.TOP | Gravity.START);
1232 if (ix > 0) lp
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorGrad.java154 LinearLayout lp = (LinearLayout) inflater.inflate(
158 lp, MODE_CONTRAST);
160 lp, MODE_BRIGHTNESS);
162 lp, MODE_SATURATION);
163 lp.findViewById(R.id.gradAddButton).setOnClickListener(new OnClickListener() {
169 lp.findViewById(R.id.gradDelButton).setOnClickListener(new OnClickListener() {
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java490 public LayoutParams(ViewGroup.LayoutParams lp) { argument
491 super(lp);
534 final LayoutParams lp = (LayoutParams) flp;
535 if (lp.customPosition) {
536 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolderPagedView.java219 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) view.getLayoutParams();
220 lp.cellX = item.cellX;
221 lp.cellY = item.cellY;
223 view, -1, mFolder.mLauncher.getViewIdForItem(item), lp, true);
331 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) v.getLayoutParams();
344 lp.cellX = info.cellX;
345 lp.cellY = info.cellY;
347 v, -1, mFolder.mLauncher.getViewIdForItem(info), lp, true);
H A DFolder.java443 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
444 if (lp == null) {
445 lp = new DragLayer.LayoutParams(0, 0);
446 lp.customPosition = true;
447 setLayoutParams(lp);
1040 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
1090 lp.width = width;
1091 lp.height = height;
1092 lp.x = left;
1093 lp
[all...]
H A DFolderIcon.java190 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) icon.mFolderName.getLayoutParams();
191 lp.topMargin = grid.iconSizePx + grid.iconDrawablePaddingPx;
246 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) getLayoutParams();
249 mBackground.animateToAccept(cl, lp.cellX, lp.cellY);
1144 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) getLayoutParams();
1146 lp.canReorder = false;
1149 cl.setFolderLeaveBehindCell(lp.cellX, lp.cellY);
/packages/apps/Settings/src/com/android/settings/widget/
H A DSwitchBar.java109 ViewGroup.MarginLayoutParams lp = (MarginLayoutParams) mTextView.getLayoutParams();
110 lp.setMarginStart(switchBarMarginStart);
117 lp = (MarginLayoutParams) mSwitch.getLayoutParams();
118 lp.setMarginEnd(switchBarMarginEnd);
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DSchedulesHeaderRowPresenter.java233 ViewGroup.LayoutParams lp = mSelector.getLayoutParams();
246 lp.width = targetWidth;
251 final float deltaWidth = lp.width - targetWidth;
258 lp.width = targetWidth + Math.round(
/packages/apps/Launcher3/src/com/android/launcher3/
H A DHotseat.java160 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(x, y, 1, 1);
161 lp.canReorder = false;
162 mContent.addViewToCellLayout(allAppsButton, -1, allAppsButton.getId(), lp, true);
H A DWorkspace.java632 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);
633 lp.canReorder = false;
634 if (!firstPage.addViewToCellLayout(qsb, 0, getEmbeddedQsbId(), lp, true)) {
653 ViewGroup.LayoutParams lp = qsbContainer.getLayoutParams();
654 if (cellHeight > 0 && lp.height != cellHeight) {
655 lp.height = cellHeight;
656 qsbContainer.setLayoutParams(lp);
777 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, spanX, spanY);
778 lp.canReorder = false;
779 lp
[all...]
H A DPagedView.java650 LayoutParams lp = generateDefaultLayoutParams();
651 lp.isFullScreenPage = true;
652 super.addView(page, 0, lp);
722 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
729 if (!lp.isFullScreenPage) {
730 if (lp.width == LayoutParams.WRAP_CONTENT) {
736 if (lp.height == LayoutParams.WRAP_CONTENT) {
790 LayoutParams lp = (LayoutParams) getChildAt(startIndex).getLayoutParams();
793 int childLeft = offsetX + (lp.isFullScreenPage ? 0 : getPaddingLeft());
801 lp
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DUtilsTest.java64 LinkProperties lp = new LinkProperties();
65 lp.addLinkAddress(address);
66 when(connectivityManager.getLinkProperties(network)).thenReturn(lp);
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DPagedScrollBarView.java142 final ViewGroup.LayoutParams lp = mScrollThumb.getLayoutParams();
143 if (lp.height != thumbLength) {
144 lp.height = thumbLength;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseContentFragment.java298 LayoutParams lp = iconView.getLayoutParams();
300 lp.height = lp.width * iconView.getDrawable().getIntrinsicHeight()
304 lp.height = lp.width;
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
H A DLauncherAccessibilityDelegate.java273 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) host.getLayoutParams();
281 lp.cellX --;
284 lp.cellHSpan ++;
287 lp.cellHSpan --;
291 lp.cellY --;
294 lp.cellVSpan ++;
297 lp.cellVSpan --;
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
H A DAppChooserActivity.java258 ViewGroup.LayoutParams lp = holder.icon.getLayoutParams();
259 lp.width = lp.height = mIconSize;
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DDetailsContentPresenter.java296 ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
297 lp.topMargin = topMargin;
298 view.setLayoutParams(lp);
H A DSeriesDeletionFragment.java207 LayoutParams lp = vh.itemView.getLayoutParams();
209 lp.height = mOneLineActionHeight;
212 new LayoutParams(lp.width, LayoutParams.WRAP_CONTENT));
/packages/apps/TV/src/com/android/tv/ui/
H A DChannelBannerView.java518 RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) view.getLayoutParams();
520 if (lp.topMargin != topMargin) {
521 lp.topMargin = topMargin;
522 view.setLayoutParams(lp);
636 ViewGroup.LayoutParams lp = mProgramTextView.getLayoutParams();
637 lp.width = width;
638 mProgramTextView.setLayoutParams(lp);
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DSearchFragment.java371 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) mSpacer.getLayoutParams();
372 lp.height = spacerHeight;
373 mSpacer.setLayoutParams(lp);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsGridAdapter.java133 ViewGroup.LayoutParams lp = host.getLayoutParams();
135 if (!(lp instanceof LayoutParams) || (cic == null)) {
138 LayoutParams glp = (LayoutParams) lp;
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListFragment.java403 final MarginLayoutParams lp =
406 + lp.leftMargin + lp.rightMargin;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DTwoPaneLayout.java747 final ViewGroup.LayoutParams lp = pane.getLayoutParams();
748 if (lp.width == w) {
751 lp.width = w;
752 pane.setLayoutParams(lp);

Completed in 2411 milliseconds

12345