/frameworks/base/graphics/java/android/graphics/drawable/ |
ShapeDrawable.java | 132 mShapeState.mPadding = null; 134 if (mShapeState.mPadding == null) { 135 mShapeState.mPadding = new Rect(); 137 mShapeState.mPadding.set(left, top, right, bottom); 148 mShapeState.mPadding = null; 150 if (mShapeState.mPadding == null) { 151 mShapeState.mPadding = new Rect(); 153 mShapeState.mPadding.set(padding); 190 if (mShapeState.mPadding != null) { 191 padding.set(mShapeState.mPadding); [all...] |
GradientDrawable.java | 117 private Rect mPadding; 168 if (mPadding != null) { 169 padding.set(mPadding); [all...] |
NinePatchDrawable.java | 59 private Rect mPadding; 127 mPadding = state.mPadding; 204 if (mNinePatchState.mPadding != null && mPadding != null) { 205 Rect dest = mPadding; 206 Rect src = mNinePatchState.mPadding; 208 mPadding = dest = new Rect(src); 243 padding.set(mPadding.right, mPadding.top, mPadding.left, mPadding.bottom) [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
CertificateViewer.java | 40 private final int mPadding; 58 mPadding = (int) context.getResources().getDimension( 173 t.setPadding(mPadding, mPadding / 2, mPadding, 0); 183 t.setPadding(mPadding, 0, mPadding, mPadding / 2);
|
WebsiteSettingsPopup.java | 41 private final int mPadding; 61 mPadding = (int) context.getResources().getDimension(R.dimen.certificate_viewer_padding); 62 mContainer.setPadding(mPadding, 0, mPadding, 0); 100 mCertificateViewer.setPadding(0, 0, 0, mPadding); 114 mMoreInfoLink.setPadding(0, mPadding, 0, mPadding);
|
NavigationPopup.java | 159 int mPadding; 176 mPadding = (int) (density * PADDING_DP); 188 view.setCompoundDrawablePadding(mPadding); 190 view.setPadding(mPadding, 0, mPadding + mFadePadding , 0); 192 view.setPadding(mPadding + mFadePadding, 0, mPadding, 0);
|
/frameworks/base/graphics/java/android/graphics/ |
Atlas.java | 243 private final int mPadding; 267 mPadding = (flags & FLAG_ADD_PADDING) != 0 ? 1 : 0; 271 first.x = first.y = mPadding; 272 first.width = width - 2 * mPadding; 273 first.height = height - 2 * mPadding; 393 first.x = cell.x + width + mPadding; 395 first.width = deltaWidth - mPadding; 398 second.y = cell.y + height + mPadding; 399 second.height = deltaHeight - mPadding;
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableContainerStateTest.java | 251 private Rect mPadding; 290 if (mPadding == null) { 291 mPadding = new Rect(); 293 mPadding.left = rect.left; 294 mPadding.right = rect.right; 295 mPadding.top = rect.top; 296 mPadding.bottom = rect.bottom; 304 if (mPadding == null) { 307 padding.left = mPadding.left; 308 padding.top = mPadding.top [all...] |
DrawableContainerTest.java | 773 private Rect mPadding; 800 if (mPadding == null) { 801 mPadding = new Rect(); 803 mPadding.set(rect); 808 if (padding == null || mPadding == null) { 811 padding.set(mPadding); [all...] |
LayerDrawableTest.java | 735 Rect mPadding = null; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
ExplodedRenderingHelper.java | 56 private final int[] mPadding = new int[] { 0, 0 }; 77 computePadding(root, mPadding); 90 computePadding(root, mPadding); 98 return mPadding[0]; 106 return mPadding[1];
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
SimpleWeekView.java | 111 protected int mPadding = 0; 369 int dayStart = mShowWeekNum ? (mWidth - mPadding * 2) / mNumCells + mPadding : mPadding; 370 if (x < dayStart || x > mWidth - mPadding) { 374 int dayPosition = (int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding)); 415 r.left = mPadding; 419 r.right = mWidth - mPadding; 441 int x = (mWidth - mPadding * 2) / divisor + mPadding; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/ |
StretchesViewer.java | 165 private final Rectangle mPadding = new Rectangle(0, 0, 0, 0); 187 mPadding.x = (canvasSize.x - width) / 2; 188 mPadding.y = (canvasSize.y - height) / 2; 190 mPadding.width = width; 191 mPadding.height = height; 254 (mPadding.x + dest.x), (mPadding.y + dest.y), 260 (mPadding.x + dest.x), (mPadding.y + dest.y),
|
ImageViewer.java | 109 private final Rectangle mPadding = new Rectangle(0, 0, 0, 0); 317 return Math.round((x - mPadding.x + mHorizontalScroll) / ((float) mZoom / 100)); 321 return Math.round((y - mPadding.y + mVerticalScroll) / ((float) mZoom / 100)); 387 mPadding.width = getZoomedPixelSize(width); 388 mPadding.height = getZoomedPixelSize(height); 392 if (mPadding.width < canvasSize.x) { 393 mPadding.x = (canvasSize.x - mPadding.width) / 2; 395 mPadding.x = margin; 398 if (mPadding.height < canvasSize.y) [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
SimpleMonthView.java | 124 protected int mPadding = 0; 417 int x = (mWidth + 2 * mPadding) / 2; 424 int dayWidthHalf = (mWidth - mPadding * 2) / (mNumDays * 2); 428 int x = (2 * i + 1) * dayWidthHalf + mPadding; 445 int dayWidthHalf = (mWidth - mPadding * 2) / (mNumDays * 2); 448 int x = (2 * j + 1) * dayWidthHalf + mPadding; 482 int dayStart = mPadding; 483 if (x < dayStart || x > mWidth - mPadding) { 488 int column = (int) ((x - dayStart) * mNumDays / (mWidth - dayStart - mPadding)); 628 final int offsetX = mPadding; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripLayoutHelper.java | 64 public final int mPadding; 116 mPadding = wordView.getCompoundPaddingLeft() + wordView.getCompoundPaddingRight(); 313 layoutWord(mCenterPositionInStrip, availableStripWidth - mPadding); 400 final int paddings = mPadding * mSuggestionsCountInStrip; 468 final int width = stripWidth - mDividerWidth - mPadding * 2;
|
/frameworks/base/core/java/android/inputmethodservice/ |
KeyboardView.java | 191 private Rect mPadding; 367 mPadding = new Rect(0, 0, 0, 0); 369 mKeyBackground.getPadding(mPadding); 659 final Rect padding = mPadding; [all...] |
/frameworks/wilhelm/src/ |
itfstruct.h | 54 SLuint8 mPadding;
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
KeyboardView.java | 193 private Rect mPadding; 368 mPadding = new Rect(0, 0, 0, 0); 370 mKeyBackground.getPadding(mPadding); 693 final Rect padding = mPadding; [all...] |