Searched defs:padding (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImagePoint.java39 public static void setTouchPadding(float padding) { argument
40 mTouchPadding = padding;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBaseContainerView.java41 // The computed padding to apply to the container to achieve the container bounds
91 * Update the backgrounds and padding in response to a change in the bounds or insets.
94 Rect padding;
98 padding = new Rect(mInsets.left + mContainerBoundsInset,
111 padding = new Rect(mFixedSearchBarBounds.left,
120 // If either the computed container padding has changed, or the computed search bar bounds
122 if (!padding.equals(mContentPadding) || !searchBarBounds.equals(mSearchBarBounds)) {
123 mContentPadding.set(padding);
124 mContentBounds.set(padding.left, padding
135 onUpdateBackgroundAndPaddings(Rect searchBarBounds, Rect padding) argument
[all...]
H A DBorderCropDrawable.java66 public boolean getPadding(Rect padding) { argument
67 padding.set(mPadding);
68 return (padding.left | padding.top | padding.right | padding.bottom) != 0;
H A DBaseRecyclerView.java174 public void updateBackgroundPadding(Rect padding) { argument
175 mBackgroundPadding.set(padding);
253 // view padding, while the scrollBarY is drawn right up to the background padding (ignoring
254 // padding)
H A DWorkspace.java585 // We want no padding on the custom content
2122 * @param padding the horizontal and vertical padding to use when drawing
2124 private static void drawDragView(View v, Canvas destCanvas, int padding) { argument
2134 clipRect.set(0, 0, bounds.width() + padding, bounds.height() + padding);
2135 destCanvas.translate(padding / 2 - bounds.left, padding / 2 - bounds.top);
2146 destCanvas.translate(-v.getScrollX() + padding / 2, -v.getScrollY() + padding /
2190 createDragOutline(View v, int padding) argument
2206 createDragOutline(Bitmap orig, int padding, int w, int h, boolean clipAlpha) argument
[all...]
/packages/apps/FMRadio/src/com/android/fmradio/views/
H A DFmVisualizerView.java96 * Set the padding between visualizer columns
98 * @param padding The padding between visualizer columns
100 public void setColumnPadding(int padding) { argument
101 mColumnPadding = padding;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAbstractSlotRenderer.java114 protected static void drawFrame(GLCanvas canvas, Rect padding, Texture frame, argument
116 frame.draw(canvas, x - padding.left, y - padding.top, width + padding.left + padding.right,
117 height + padding.top + padding.bottom);
H A DSlotView.java463 // (3) padding[]: the vertical and horizontal padding we need in order
474 int[] padding) {
479 // We put extra padding above and below the column.
483 padding[0] = (minorLength - usedMinorLength) / 2;
490 // extra padding in left and right.
491 padding[1] = Math.max(0, (majorLength - mContentLength) / 2);
511 int[] padding = new int[2];
513 initLayoutParameters(mWidth, mHeight, mSlotWidth, mSlotHeight, padding);
514 mVerticalPadding.startAnimateTo(padding[
471 initLayoutParameters( int majorLength, int minorLength, int majorUnitSize, int minorUnitSize, int[] padding) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DBubbleTextView.java168 * @param padding the horizontal and vertical padding to use when drawing
170 private void drawWithPadding(Canvas destCanvas, int padding) { argument
183 (getWidth() + padding) / 2, (getHeight() + padding) / 2);
184 destCanvas.translate(-getScrollX() + padding / 2, -getScrollY() + padding / 2);
195 final int padding = HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS;
197 getWidth() + padding, getHeight() + padding, Bitma
[all...]
H A DWorkspace.java1764 * @param padding the horizontal and vertical padding to use when drawing
1766 private void drawDragView(View v, Canvas destCanvas, int padding, boolean pruneToDrawable) { argument
1775 clipRect.set(0, 0, d.getIntrinsicWidth() + padding, d.getIntrinsicHeight() + padding);
1776 destCanvas.translate(padding / 2, padding / 2);
1795 destCanvas.translate(-v.getScrollX() + padding / 2, -v.getScrollY() + padding / 2);
1811 public Bitmap createDragBitmap(View v, Canvas canvas, int padding) { argument
1834 createDragOutline(View v, Canvas canvas, int padding) argument
1850 createDragOutline(Bitmap orig, Canvas canvas, int padding, int w, int h, boolean clipAlpha) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetsContainerView.java232 // The icon has extra padding around it.
233 int padding = (icon.getWidth() - previewSizeBeforeScale[0]) / 2;
235 padding = padding * image.getWidth() / icon.getWidth();
238 bounds.left += padding;
239 bounds.right -= padding;
338 protected void onUpdateBackgroundAndPaddings(Rect searchBarBounds, Rect padding) { argument
339 // Apply the top-bottom padding to the content itself so that the launcher transition is
341 mContent.setPadding(0, padding.top, 0, padding
[all...]
/packages/apps/Settings/src/com/android/settings/drawable/
H A DDrawableWrapper.java144 public boolean getPadding(Rect padding) { argument
145 return mDrawable.getPadding(padding);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DMultiAttachmentLayout.java94 public int getWidthMeasureSpec(final int cellWidth, final int padding) { argument
95 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2,
99 public int getHeightMeasureSpec(final int cellHeight, final int padding) { argument
100 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2,
305 final int padding = getResources().getDimensionPixelOffset(
310 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding),
311 imageTile.getHeightMeasureSpec(cellHeight, padding));
325 mPlusTextView.measure(imageTile.getWidthMeasureSpec(cellWidth, padding),
326 imageTile.getHeightMeasureSpec(cellHeight, padding));
337 final int padding
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMoreKeysKeyboard.java299 final float padding = context.getResources().getDimension(
303 keyWidth = getMaxKeyWidth(key, mParams.mDefaultKeyWidth, padding, paintToMeasure);
319 final float padding, final Paint paint) {
326 (int)(TypefaceUtils.getStringWidth(label, paint) + padding));
318 getMaxKeyWidth(final Key parentKey, final int minKeyWidth, final float padding, final Paint paint) argument
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsContainerView.java363 * Update the background and padding of the Apps view and children. Instead of insetting the
364 * container view, we inset the background and padding of the recycler view to allow for the
368 protected void onUpdateBackgroundAndPaddings(Rect searchBarBounds, Rect padding) { argument
373 getResources().getDrawable(R.drawable.quantum_panel_shape), padding.left, 0,
374 padding.right, 0);
382 // Hack: We are going to let the recycler view take the full width, so reset the padding on
383 // the container to zero after setting the background and apply the top-bottom padding to
385 mContent.setPadding(0, padding.top, 0, padding.bottom);
388 // Pad the recycler view by the background padding plu
[all...]
H A DAllAppsGridAdapter.java428 * Notifies the adapter of the background padding so that it can draw things correctly in the
431 public void updateBackgroundPadding(Rect padding) { argument
432 mBackgroundPadding.set(padding);
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java285 * Set padding displayed on both ends of dividers.
287 * @param padding Padding value in pixels that will be applied to each end
293 public void setDividerPadding(int padding) { argument
294 mDividerPadding = padding;
298 * Get the padding size used to inset dividers in pixels
805 // Add in our padding
908 // Add in our padding
1130 // mTotalLength contains the padding already
1134 // mTotalLength contains the padding already
1242 // mTotalLength contains the padding alread
[all...]
/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 518 milliseconds