Searched refs:mBackgroundPadding (Results 1 - 7 of 7) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
H A DBaseRecyclerView.java49 protected Rect mBackgroundPadding = new Rect(); field in class:BaseRecyclerView
160 mBackgroundPadding.set(padding);
164 return mBackgroundPadding;
179 int visibleHeight = getHeight() - mBackgroundPadding.top - mBackgroundPadding.bottom;
245 int scrollBarY = mBackgroundPadding.top +
257 return mBackgroundPadding.left;
259 return getWidth() - mBackgroundPadding.right - mScrollbar.getThumbWidth();
H A DAppWidgetResizeFrame.java47 private final int mBackgroundPadding; field in class:AppWidgetResizeFrame
147 mBackgroundPadding = getResources()
149 mTouchTargetWidth = 2 * mBackgroundPadding;
420 int newWidth = mWidgetView.getWidth() + 2 * mBackgroundPadding
422 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding
429 int newX = mTmpPt[0] - mBackgroundPadding + mWidgetPadding.left;
430 int newY = mTmpPt[1] - mBackgroundPadding + mWidgetPadding.top;
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetsRecyclerView.java81 canvas.clipRect(mBackgroundPadding.left, mBackgroundPadding.top,
82 getWidth() - mBackgroundPadding.right,
83 getHeight() - mBackgroundPadding.bottom);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyPreviewView.java42 private final Rect mBackgroundPadding = new Rect(); field in class:KeyPreviewView
84 background.getPadding(mBackgroundPadding);
85 final int maxWidth = background.getIntrinsicWidth() - mBackgroundPadding.left
86 - mBackgroundPadding.right;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsRecyclerView.java176 canvas.clipRect(mBackgroundPadding.left, mBackgroundPadding.top,
177 getWidth() - mBackgroundPadding.right,
178 getHeight() - mBackgroundPadding.bottom);
186 c.clipRect(mBackgroundPadding.left, mBackgroundPadding.top,
187 getWidth() - mBackgroundPadding.right,
188 getHeight() - mBackgroundPadding.bottom);
327 int scrollBarY = mBackgroundPadding.top +
H A DAllAppsGridAdapter.java181 c.drawRect(mBackgroundPadding.left, 0, mBackgroundPadding.left + mSectionNamesMargin,
222 parent.getWidth() - mBackgroundPadding.left - mSectionNamesMargin :
223 mBackgroundPadding.left;
334 private final Rect mBackgroundPadding = new Rect(); field in class:AllAppsGridAdapter
428 mBackgroundPadding.set(padding);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAppWidgetResizeFrame.java53 private int mBackgroundPadding; field in class:AppWidgetResizeFrame
136 mBackgroundPadding = (int) Math.ceil(density * BACKGROUND_PADDING);
137 mTouchTargetWidth = 2 * mBackgroundPadding;
407 int newWidth = mWidgetView.getWidth() + 2 * mBackgroundPadding - mWidgetPaddingLeft -
409 int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding - mWidgetPaddingTop -
412 int newX = mWidgetView.getLeft() - mBackgroundPadding + xOffset + mWidgetPaddingLeft;
413 int newY = mWidgetView.getTop() - mBackgroundPadding + yOffset + mWidgetPaddingTop;

Completed in 223 milliseconds