/packages/apps/Camera/src/com/android/camera/ui/ |
D | IndicatorControlBar.java | 98 int padding = getPaddingTop(); in onLayout() local 105 mCameraPicker.layout(0, padding, size, padding + size); in onLayout() 110 mZoomControl.layout(0, padding + size, size, in onLayout() 111 height - padding - size); in onLayout() 114 mSecondLevelIcon.layout(0, height - padding - size, size, in onLayout() 115 height - padding); in onLayout() 119 int padding = getPaddingLeft(); in onLayout() local 124 mSecondLevelIcon.layout(padding, 0, padding + size, size); in onLayout() 128 mZoomControl.layout(padding + size, 0, width - padding - size, size); in onLayout() 133 mCameraPicker.layout(width - padding - size, 0, width - padding, size); in onLayout()
|
D | SecondLevelIndicatorControlBar.java | 213 int padding = getPaddingTop(); in onLayout() local 215 int offset = padding; in onLayout() 218 offset += (iconSize + padding); in onLayout() 219 mDivider.layout(padding, offset, (width - padding), in onLayout() 222 int startY = height - iconSize - padding; in onLayout() 230 int padding = getPaddingLeft(); in onLayout() local 232 int offset = padding; in onLayout() 239 offset = width - iconSize - 2 * padding; in onLayout() 240 mDivider.layout(offset, padding, in onLayout() 241 (offset + mDivider.getMeasuredWidth()), (height - padding)); in onLayout() [all …]
|
/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/Gallery2/src/com/android/gallery3d/ui/ |
D | AbstractSlotRenderer.java | 115 protected static void drawFrame(GLCanvas canvas, Rect padding, Texture frame, in drawFrame() argument 117 frame.draw(canvas, x - padding.left, y - padding.top, width + padding.left + padding.right, in drawFrame() 118 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 | 159 private void drawWithPadding(Canvas destCanvas, int padding) { in drawWithPadding() argument 172 (getWidth() + padding) / 2, (getHeight() + padding) / 2); in drawWithPadding() 173 destCanvas.translate(-getScrollX() + padding / 2, -getScrollY() + padding / 2); in drawWithPadding() 184 final int padding = HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS; in createGlowingOutline() local 186 getWidth() + padding, getHeight() + padding, Bitmap.Config.ARGB_8888); in createGlowingOutline() 189 drawWithPadding(canvas, padding); in createGlowingOutline()
|
D | HolographicViewHelper.java | 71 final int padding = HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS; in createPressImage() local 73 v.getWidth() + padding, v.getHeight() + padding, Bitmap.Config.ARGB_8888); in createPressImage()
|
D | Workspace.java | 1741 private void drawDragView(View v, Canvas destCanvas, int padding, boolean pruneToDrawable) { 1750 clipRect.set(0, 0, d.getIntrinsicWidth() + padding, d.getIntrinsicHeight() + padding); 1751 destCanvas.translate(padding / 2, padding / 2); 1770 destCanvas.translate(-v.getScrollX() + padding / 2, -v.getScrollY() + padding / 2); 1786 public Bitmap createDragBitmap(View v, Canvas canvas, int padding) { 1791 b = Bitmap.createBitmap(d.getIntrinsicWidth() + padding, 1792 d.getIntrinsicHeight() + padding, Bitmap.Config.ARGB_8888); 1795 v.getWidth() + padding, v.getHeight() + padding, Bitmap.Config.ARGB_8888); 1799 drawDragView(v, canvas, padding, true); 1809 private Bitmap createDragOutline(View v, Canvas canvas, int padding) { [all …]
|
D | CellLayout.java | 319 final int padding = icon.getPressedOrFocusedBackgroundPadding(); in invalidateBubbleTextView() local 320 invalidate(icon.getLeft() + getPaddingLeft() - padding, in invalidateBubbleTextView() 321 icon.getTop() + getPaddingTop() - padding, in invalidateBubbleTextView() 322 icon.getRight() + getPaddingLeft() + padding, in invalidateBubbleTextView() 323 icon.getBottom() + getPaddingTop() + padding); in invalidateBubbleTextView() 415 final int padding = mPressedOrFocusedIcon.getPressedOrFocusedBackgroundPadding(); in onDraw() local 419 mPressedOrFocusedIcon.getLeft() + getPaddingLeft() - padding, in onDraw() 420 mPressedOrFocusedIcon.getTop() + getPaddingTop() - padding, in onDraw()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BookmarkUtils.java | 72 int padding = res.getDimensionPixelSize(R.dimen.list_favicon_padding); in createListFaviconBackground() local 73 faviconBackground.setPadding(padding, padding, padding, padding); in createListFaviconBackground() 202 float padding = (faviconPaddedRectDimension - faviconDimension) / 2; in drawFaviconToCanvas() local 209 y -= padding; in drawFaviconToCanvas() 218 r.inset(padding, padding); in drawFaviconToCanvas()
|
D | BrowserBookmarksAdapter.java | 81 int padding = context.getResources() in bindGridView() local 83 view.setPadding(padding, view.getPaddingTop(), in bindGridView() 84 padding, view.getPaddingBottom()); in bindGridView()
|
/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/Camera/src/com/android/camera/ |
D | ModePicker.java | 286 int padding = (viewWidth - iconWidth) / 2; in onLayout() local 288 mCurrentModeBar.layout((l + padding), in onLayout() 290 (l + padding + iconWidth), in onLayout() 297 int padding = (viewHeight - iconHeight) / 2; in onLayout() local 300 (l + padding), in onLayout() 302 (l + padding + iconHeight)); in onLayout()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SoftKeyboard.java | 238 Rect padding = getPadding(); in getSkbTotalWidth() local 239 return mSkbCoreWidth + padding.left + padding.right; in getSkbTotalWidth() 243 Rect padding = getPadding(); in getSkbTotalHeight() local 244 return mSkbCoreHeight + padding.top + padding.bottom; in getSkbTotalHeight()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartGridView.java | 120 final int padding = mLayoutStart != null ? mLayoutStart.getHeight() / 8 : 0; in onDraw() local 125 canvas.translate(0, height + padding); in onDraw() 133 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AndroidBeam.java | 53 final int padding = activity.getResources().getDimensionPixelSize( in onCreate() local 55 mActionBarSwitch.setPadding(0, 0, padding, 0); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/drawable/ |
D | DrawableWrapper.java | 144 public boolean getPadding(Rect padding) { in getPadding() argument 145 return mDrawable.getPadding(padding); in getPadding()
|
/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()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DreamSettings.java | 75 final int padding = activity.getResources().getDimensionPixelSize( in onActivityCreated() local 77 mEnableSwitch.setPadding(0, 0, padding, 0); in onActivityCreated()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MovieControllerOverlay.java | 177 int padding = (int) (getMeasuredWidth() * ERROR_MESSAGE_RELATIVE_PADDING); in showErrorMessage() local 178 errorView.setPadding(padding, errorView.getPaddingTop(), padding, errorView.getPaddingBottom()); in showErrorMessage()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GalleryPicker.java | 642 final int padding = 4; in makeMiniThumbBitmap() local 648 imageWidth = (imageWidth - padding) / 2; // 2 here because we show two in makeMiniThumbBitmap() 650 imageHeight = (imageHeight - padding) / 2; // per row and column in makeMiniThumbBitmap() 717 placeImage(thumb, c, pdpaint, imageWidth, padding, imageHeight, in makeMiniThumbBitmap() 718 padding, offsetWidth, offsetHeight, i); in makeMiniThumbBitmap()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 60 final int padding = (int) res.getDimension( in layout() local 70 mWidths[pos] = (int)view.getLabelWidth(word, paint) + padding; in layout()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboard.java | 304 final int padding = (int)(view.getResources() in getMaxKeyWidth() local 316 final int width = (int)view.getLabelWidth(label, paint) + padding; in getMaxKeyWidth()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothSettings.java | 120 final int padding = activity.getResources().getDimensionPixelSize( in addPreferencesForActivity() local 122 actionBarSwitch.setPadding(0, 0, padding, 0); in addPreferencesForActivity()
|