Home
last modified time | relevance | path

Searched refs:padding (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java94 public int getWidthMeasureSpec(final int cellWidth, final int padding) { in getWidthMeasureSpec() argument
95 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, in getWidthMeasureSpec()
99 public int getHeightMeasureSpec(final int cellHeight, final int padding) { in getHeightMeasureSpec() argument
100 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2, in getHeightMeasureSpec()
305 final int padding = getResources().getDimensionPixelOffset( in onMeasure() local
310 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
311 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
325 mPlusTextView.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
326 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
337 final int padding = getResources().getDimensionPixelOffset( in onLayout() local
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlBar.java94 int padding = getPaddingLeft(); in onLayout() local
101 mSecondLevelIcon.layout(padding, 0, padding + size, size); in onLayout()
105 mZoomControl.layout(padding + size, 0, width - padding - size, size); in onLayout()
109 mCameraPicker.layout(width - padding - size, 0, width - padding, size); in onLayout()
DSecondLevelIndicatorControlBar.java179 int padding = getPaddingLeft(); in onLayout() local
182 int offsetX = padding; in onLayout()
190 offsetX = width - iconWidth - 2 * padding; in onLayout()
191 mDivider.layout(offsetX, padding, (offsetX + mDivider.getMeasuredWidth()), in onLayout()
192 (height - padding)); in onLayout()
194 offsetX = width - iconWidth - padding; in onLayout()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css6 padding: 0;
41 padding: 0px;
80 padding-top: 10px;
81 padding-right: 10px !important;
94 padding: 0;
102 padding: 0;
156 padding: 6px 10px;
173 padding: 2px 0px;
182 padding: 2px;
189 padding: 10px 0px 20px 20px;
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java100 int padding = (previewBitmapWidth - previewSizeBeforeScale[0]) / 2; in startDrag() local
102 padding = padding * previewViewWidth / previewBitmapWidth; in startDrag()
105 previewBounds.left += padding; in startDrag()
106 previewBounds.right -= padding; in startDrag()
128 int padding = launcher.getResources() in startDrag() local
130 previewBounds.left += padding; in startDrag()
131 previewBounds.top += padding; in startDrag()
DWidgetHostViewLoader.java158 Rect padding = AppWidgetHostView.getDefaultPaddingForWidget(context, in getDefaultOptionsForWidget() local
162 int xPaddingDips = (int) ((padding.left + padding.right) / density); in getDefaultOptionsForWidget()
163 int yPaddingDips = (int) ((padding.top + padding.bottom) / density); in getDefaultOptionsForWidget()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java425 Point padding = getTotalWorkspacePadding(); in getCellSize() local
426 result.x = calculateCellWidth(availableWidthPx - padding.x in getCellSize()
428 result.y = calculateCellHeight(availableHeightPx - padding.y in getCellSize()
444 Rect padding = workspacePadding; in updateWorkspacePadding() local
446 padding.top = 0; in updateWorkspacePadding()
447 padding.bottom = edgeMarginPx; in updateWorkspacePadding()
449 padding.left = hotseatBarSizePx; in updateWorkspacePadding()
450 padding.right = verticalDragHandleSizePx; in updateWorkspacePadding()
452 padding.left = verticalDragHandleSizePx; in updateWorkspacePadding()
453 padding.right = hotseatBarSizePx; in updateWorkspacePadding()
[all …]
DHotseat.java99 Rect padding = grid.getHotseatLayoutPadding(); in setInsets() local
100 setPadding(padding.left, padding.top, padding.right, padding.bottom); in setInsets()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAbstractSlotRenderer.java114 protected static void drawFrame(GLCanvas canvas, Rect padding, Texture frame, in drawFrame() argument
116 frame.draw(canvas, x - padding.left, y - padding.top, width + padding.left + padding.right, in drawFrame()
117 height + padding.top + padding.bottom); in drawFrame()
DSlotView.java474 int[] padding) { in initLayoutParameters() argument
483 padding[0] = (minorLength - usedMinorLength) / 2; in initLayoutParameters()
491 padding[1] = Math.max(0, (majorLength - mContentLength) / 2); in initLayoutParameters()
511 int[] padding = new int[2]; in initLayoutParameters() local
513 initLayoutParameters(mWidth, mHeight, mSlotWidth, mSlotHeight, padding); in initLayoutParameters()
514 mVerticalPadding.startAnimateTo(padding[0]); in initLayoutParameters()
515 mHorizontalPadding.startAnimateTo(padding[1]); in initLayoutParameters()
517 initLayoutParameters(mHeight, mWidth, mSlotHeight, mSlotWidth, padding); in initLayoutParameters()
518 mVerticalPadding.startAnimateTo(padding[1]); in initLayoutParameters()
519 mHorizontalPadding.startAnimateTo(padding[0]); in initLayoutParameters()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionAdapter.java68 int padding = resources.getDimensionPixelSize(R.dimen.users_checkbox_padding); in createCheckBox() local
69 checkBox.setPadding(padding, padding, padding, padding); in createCheckBox()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java310 mAH[i].padding.bottom = insets.bottom; in setInsets()
311 mAH[i].padding.left = mAH[i].padding.right = leftRightPadding; in setInsets()
472 int padding = mHeader.getMaxTranslation(); in setupHeader() local
474 mAH[i].padding.top = padding; in setupHeader()
573 final Rect padding = new Rect(); field in AllAppsContainerView.AdapterHolder
603 recyclerView.setPadding(padding.left, padding.top, padding.right, padding.bottom); in applyPadding()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSnackbar.java69 int padding = res.getDimensionPixelSize(R.dimen.snackbar_padding); in show() local
70 snackbar.setPadding(padding, padding, padding, padding); in show()
97 + padding * 2; in show()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DMultiTargetSwitchPreference.java57 final int padding = (int) ((holder.itemView.getMeasuredHeight() in onBindViewHolder() local
59 switchView.setPaddingRelative(padding, padding, 0, padding); in onBindViewHolder()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java103 int padding = (int) DpUtil.dpToPx(context, 16); in newTextViewItem() local
104 textView.setPadding(padding, padding, padding, padding); in newTextViewItem()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java66 final int padding = res.getDimensionPixelSize(com.android.internal.R.dimen.default_gap); in onCreate() local
67 view.setPadding(padding, padding, padding, padding); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPublicVolumeSettings.java141 final int padding = resources.getDimensionPixelSize( in onActivityCreated() local
145 buttonBar.setPadding(padding, padding, padding, padding); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPublicVolumeSettings.java141 final int padding = resources.getDimensionPixelSize( in onActivityCreated() local
145 buttonBar.setPadding(padding, padding, padding, padding); in onActivityCreated()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java367 final Rect padding = mKeyBackgroundPadding; in onDrawKeyBackground() local
368 bgWidth = keyWidth + padding.left + padding.right; in onDrawKeyBackground()
369 bgHeight = keyHeight + padding.top + padding.bottom; in onDrawKeyBackground()
370 bgX = -padding.left; in onDrawKeyBackground()
371 bgY = -padding.top; in onDrawKeyBackground()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java739 final Rect padding = mPadding; in onBufferDraw() local
843 (key.width - padding.left - padding.right) / 2 in onBufferDraw()
844 + padding.left, in onBufferDraw()
845 (key.height - padding.top - padding.bottom) / 2 in onBufferDraw()
846 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, in onBufferDraw()
851 final int drawableX = (key.width - padding.left - padding.right in onBufferDraw()
852 - key.icon.getIntrinsicWidth()) / 2 + padding.left; in onBufferDraw()
853 final int drawableY = (key.height - padding.top - padding.bottom in onBufferDraw()
854 - key.icon.getIntrinsicHeight()) / 2 + padding.top; in onBufferDraw()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationPagerController.java282 final int padding = c.getResources().getDimensionPixelOffset( in setupPageMargin() local
284 final Drawable gutterDrawable = new PageMarginDrawable(divider, padding, 0, padding, 0, in setupPageMargin()
286 mPager.setPageMargin(gutterDrawable.getIntrinsicWidth() + 2 * padding); in setupPageMargin()
DConversationItemViewCoordinates.java409 final int padding = res.getDimensionPixelSize(useFullPadding ? in setFramePadding() local
415 frame.setPaddingRelative(frame.getPaddingStart(), padding, in setFramePadding() local
416 frame.getPaddingEnd(), padding); in setFramePadding() local
418 frame.setPadding(frame.getPaddingLeft(), padding, frame.getPaddingRight(), padding); in setFramePadding() local
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java138 final int padding = mLabelStart != null ? mLabelStart.getHeight() / 8 : 0; in onDraw() local
143 canvas.translate(0, height + padding); in onDraw()
151 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw() local
159 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartGridView.java138 final int padding = mLabelStart != null ? mLabelStart.getHeight() / 8 : 0; in onDraw() local
143 canvas.translate(0, height + padding); in onDraw()
151 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw() local
159 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java264 Rect padding = grid.workspacePadding; in setInsets() local
265 lp.leftMargin = padding.left + grid.workspaceCellPaddingXPx; in setInsets()
266 lp.rightMargin = padding.right + grid.workspaceCellPaddingXPx; in setInsets()
267 lp.bottomMargin = padding.bottom; in setInsets()

12