/packages/apps/Launcher3/src/com/android/launcher3/ |
D | BaseContainerView.java | 110 Rect padding; in updateBackgroundAndPaddings() local 111 padding = new Rect( in updateBackgroundAndPaddings() 119 if (!padding.equals(mContentPadding)) { in updateBackgroundAndPaddings() 120 mContentPadding.set(padding); in updateBackgroundAndPaddings() 121 onUpdateBackgroundAndPaddings(padding); in updateBackgroundAndPaddings() 125 private void onUpdateBackgroundAndPaddings(Rect padding) { in onUpdateBackgroundAndPaddings() argument 128 setPadding(0, padding.top, 0, padding.bottom); in onUpdateBackgroundAndPaddings() 131 padding.left, 0, padding.right, 0); in onUpdateBackgroundAndPaddings() 141 onUpdateBgPadding(padding, bgPadding); in onUpdateBackgroundAndPaddings() 144 protected abstract void onUpdateBgPadding(Rect padding, Rect bgPadding); in onUpdateBgPadding() argument
|
D | DeviceProfile.java | 182 float padding = res.getInteger(R.integer.config_allAppsButtonPaddingPercent) / 100f; in computeAllAppsButtonSize() local 183 allAppsButtonVisualSize = (int) (hotseatIconSizePx * (1 - padding)) - context.getResources() in computeAllAppsButtonSize() 332 Rect padding = new Rect(); in getWorkspacePadding() local 336 padding.set(normalHotseatBarHeightPx, edgeMarginPx, in getWorkspacePadding() 339 padding.set(searchBarBounds.width(), edgeMarginPx, in getWorkspacePadding() 358 padding.set(availablePaddingX / 2, paddingTop + availablePaddingY / 2, in getWorkspacePadding() 362 padding.set(desiredWorkspaceLeftRightMarginPx - defaultWidgetPadding.left, in getWorkspacePadding() 368 return padding; in getWorkspacePadding() 480 Rect padding = getWorkspacePadding(isLayoutRtl); in layout() local 482 workspace.setPadding(padding.left, padding.top, padding.right, padding.bottom); in layout() [all …]
|
D | BorderCropDrawable.java | 66 public boolean getPadding(Rect padding) { in getPadding() argument 67 padding.set(mPadding); in getPadding() 68 return (padding.left | padding.top | padding.right | padding.bottom) != 0; in getPadding()
|
D | Workspace.java | 2238 private static void drawDragView(View v, Canvas destCanvas, int padding) { in drawDragView() argument 2248 clipRect.set(0, 0, bounds.width() + padding, bounds.height() + padding); in drawDragView() 2249 destCanvas.translate(padding / 2 - bounds.left, padding / 2 - bounds.top); in drawDragView() 2260 destCanvas.translate(-v.getScrollX() + padding / 2, -v.getScrollY() + padding / 2); in drawDragView() 2281 int padding = expectedPadding.get(); in createDragBitmap() local 2285 b = Bitmap.createBitmap(bounds.width() + padding, in createDragBitmap() 2286 bounds.height() + padding, Bitmap.Config.ARGB_8888); in createDragBitmap() 2287 expectedPadding.set(padding - bounds.left - bounds.top); in createDragBitmap() 2290 v.getWidth() + padding, v.getHeight() + padding, Bitmap.Config.ARGB_8888); in createDragBitmap() 2294 drawDragView(v, mCanvas, padding); in createDragBitmap() [all …]
|
D | AppWidgetResizeFrame.java | 129 int padding = r.getDimensionPixelSize(R.dimen.default_widget_padding); in AppWidgetResizeFrame() local 130 mWidgetPadding = new Rect(padding, padding, padding, padding); in AppWidgetResizeFrame()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlBar.java | 94 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()
|
D | SecondLevelIndicatorControlBar.java | 179 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/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 94 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/Gallery2/src/com/android/gallery3d/ui/ |
D | AbstractSlotRenderer.java | 114 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()
|
D | SlotView.java | 474 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/apps/Launcher2/src/com/android/launcher2/ |
D | BubbleTextView.java | 170 private void drawWithPadding(Canvas destCanvas, int padding) { in drawWithPadding() argument 183 (getWidth() + padding) / 2, (getHeight() + padding) / 2); in drawWithPadding() 184 destCanvas.translate(-getScrollX() + padding / 2, -getScrollY() + padding / 2); in drawWithPadding() 195 final int padding = HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS; in createGlowingOutline() local 197 getWidth() + padding, getHeight() + padding, Bitmap.Config.ARGB_8888); in createGlowingOutline() 200 drawWithPadding(canvas, padding); in createGlowingOutline()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/ |
D | doxygenextra.css | 6 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 693 final Rect padding = mPadding; in onBufferDraw() local 753 (key.width - padding.left + 7 - padding.right) / 2 in onBufferDraw() 754 + padding.left, in onBufferDraw() 755 (key.height - padding.top + 7 - padding.bottom) / 2 in onBufferDraw() 756 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, in onBufferDraw() 760 (key.width - padding.left - padding.right) / 2 in onBufferDraw() 761 + padding.left, in onBufferDraw() 762 (key.height - padding.top - padding.bottom) / 2 in onBufferDraw() 763 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, in onBufferDraw() 771 drawableX = (key.width - padding.left + 12 - padding.right in onBufferDraw() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetHostViewLoader.java | 158 Rect padding = AppWidgetHostView.getDefaultPaddingForWidget(launcher, 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()
|
D | WidgetsContainerView.java | 207 int padding = (icon.getWidth() - previewSizeBeforeScale[0]) / 2; in beginDraggingWidget() local 209 padding = padding * image.getWidth() / icon.getWidth(); in beginDraggingWidget() 212 bounds.left += padding; in beginDraggingWidget() 213 bounds.right -= padding; in beginDraggingWidget() 314 protected void onUpdateBgPadding(Rect padding, Rect bgPadding) { in onUpdateBgPadding() argument
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PublicVolumeSettings.java | 133 final int padding = resources.getDimensionPixelSize( in onActivityCreated() local 137 buttonBar.setPadding(padding, padding, padding, padding); in onActivityCreated()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationPagerController.java | 282 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()
|
D | ConversationItemViewCoordinates.java | 409 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/ |
D | ChartGridView.java | 138 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/allapps/ |
D | AllAppsContainerView.java | 369 protected void onUpdateBgPadding(Rect padding, Rect bgPadding) { in onUpdateBgPadding() argument 380 mAppsRecyclerView.setPadding(padding.left + maxScrollBarWidth, in onUpdateBgPadding() 381 topBottomPadding, padding.right + startInset, topBottomPadding); in onUpdateBgPadding() 383 mAppsRecyclerView.setPadding(padding.left + startInset, topBottomPadding, in onUpdateBgPadding() 384 padding.right + maxScrollBarWidth, topBottomPadding); in onUpdateBgPadding() 388 lp.leftMargin = padding.left; in onUpdateBgPadding() 389 lp.rightMargin = padding.right; in onUpdateBgPadding()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 367 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()
|
D | MoreKeysKeyboard.java | 299 final float padding = context.getResources().getDimension( in Builder() local 303 keyWidth = getMaxKeyWidth(key, mParams.mDefaultKeyWidth, padding, paintToMeasure); in Builder() 319 final float padding, final Paint paint) { in getMaxKeyWidth() argument 326 (int)(TypefaceUtils.getStringWidth(label, paint) + padding)); in getMaxKeyWidth()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | LabelDialogFragment.java | 106 final int padding = getResources().getDimensionPixelSize(R.dimen.label_edittext_padding); in onCreateDialog() local 108 .setView(mLabelBox, padding, 0, padding, 0) in onCreateDialog()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImagePoint.java | 39 public static void setTouchPadding(float padding) { in setTouchPadding() argument 40 mTouchPadding = padding; in setTouchPadding()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ModePicker.java | 261 int padding = (viewWidth - iconWidth) / 2; in onLayout() local 263 mCurrentModeBar.layout((l + padding), in onLayout() 265 (l + padding + iconWidth), in onLayout()
|