/external/skia/gm/ |
hittestpath.cpp | 20 const SkScalar MARGIN = SkIntToScalar(4); 23 for (SkScalar y = r.fTop + SK_ScalarHalf - MARGIN; y < r.fBottom + MARGIN; y += SK_Scalar1) { 24 for (SkScalar x = r.fLeft + SK_ScalarHalf - MARGIN; x < r.fRight + MARGIN; x += SK_Scalar1) {
|
dropshadowimagefilter.cpp | 105 SkScalar MARGIN = SkIntToScalar(16); 106 SkScalar DX = r.width() + MARGIN; 107 SkScalar DY = r.height() + MARGIN; 109 canvas->translate(MARGIN, MARGIN);
|
imagemakewithfilter.cpp | 67 SkScalar MARGIN = SkIntToScalar(40); 68 SkScalar DX = info.width() + MARGIN; 69 SkScalar DY = info.height() + MARGIN; 71 canvas->translate(MARGIN, MARGIN);
|
tileimagefilter.cpp | 18 #define MARGIN 12 80 x += image->width() + MARGIN; 83 y += image->height() + MARGIN;
|
xfermodeimagefilter.cpp | 18 #define MARGIN 12 89 x += fBitmap.width() + MARGIN; 92 y += fBitmap.height() + MARGIN; 98 x += fBitmap.width() + MARGIN; 101 y += fBitmap.height() + MARGIN; 106 x += fBitmap.width() + MARGIN; 109 y += fBitmap.height() + MARGIN; 127 x += fBitmap.width() + MARGIN; 130 y += fBitmap.height() + MARGIN; 138 x += fBitmap.width() + MARGIN; [all...] |
imagefilterscropexpand.cpp | 61 SkScalar MARGIN = SkIntToScalar(12); 70 canvas->translate(MARGIN, MARGIN);
|
imagefilterscropped.cpp | 155 SkScalar MARGIN = SkIntToScalar(16); 156 SkScalar DX = r.width() + MARGIN; 157 SkScalar DY = r.height() + MARGIN; 159 canvas->translate(MARGIN, MARGIN);
|
offsetimagefilter.cpp | 17 #define MARGIN 12 61 canvas->translate(SkIntToScalar(image->width() + MARGIN), 0);
|
colorfilterimagefilter.cpp | 20 #define MARGIN SkIntToScalar(10) 129 canvas->translate(FILTER_WIDTH + MARGIN, 0); 132 canvas->translate(0, FILTER_HEIGHT + MARGIN); 138 canvas->translate(FILTER_WIDTH + MARGIN, 0); 145 canvas->translate(FILTER_WIDTH + MARGIN, 0); 152 canvas->translate(FILTER_WIDTH + MARGIN, 0); 159 canvas->translate(FILTER_WIDTH + MARGIN, 0); 166 canvas->translate(FILTER_WIDTH + MARGIN, 0); 172 canvas->translate(FILTER_WIDTH + MARGIN, 0);
|
imagefiltersbase.cpp | 212 SkScalar MARGIN = SkIntToScalar(16); 213 SkScalar DX = r.width() + MARGIN; 214 SkScalar DY = r.height() + MARGIN; 216 canvas->translate(MARGIN, MARGIN);
|
/external/icu/icu4c/source/samples/layout/ |
paragraph.h | 33 #define MARGIN 10
|
paragraph.cpp | 32 #define MARGIN 10 203 float lineWidth = (float) (width - 2 * MARGIN); 231 x = MARGIN; 244 x = (fWidth - lastX - MARGIN);
|
pflow.c | 33 #define MARGIN 10 295 lineWidth = (float) (width - 2 * MARGIN); 323 x = MARGIN; 336 x = (obj->fWidth - lastX - MARGIN);
|
/external/zlib/src/examples/ |
fitblk.c | 32 complete (see the MARGIN define below). That will result in a 49 block of the third and final pass. MARGIN is chosen to be just 124 #define MARGIN 8 /* amount to back off for completion */ 208 inf.avail_in = size - MARGIN; /* assure stream will complete */ 215 assert(ret == Z_STREAM_END); /* otherwise MARGIN too small */
|
/external/skia/samplecode/ |
SampleHairline.cpp | 46 static bool check_bitmap_margin(const SkBitmap& bm, int margin) { 48 for (int i = 0; i < margin; i++) { 60 int right = bm.width() - margin + i; 71 #define MARGIN 10 81 if (!check_bitmap_margin(bm, MARGIN)) { 203 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); 204 // this will erase our margin, which we want to always stay 0 208 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes()) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
NfcTestActivity.java | 57 private static final int MARGIN = 80; 138 * Creates a Bitmap image that contains red on white text with a specified margin. 148 int w = 2 * MARGIN + rect.right - rect.left; 149 int h = 2 * MARGIN + rect.bottom - rect.top; 156 canvas.drawText(text, MARGIN - rect.left, MARGIN - rect.top, paint);
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
FlockingScene.cpp | 152 const float MARGIN = 30.0f; // So the fish dont disappear and appear at the edges. 155 b->flock((const Boid**) &mBoids, NUM_BOIDS, i, LIMIT_X + MARGIN, LIMIT_Y + MARGIN);
|
/cts/tests/tests/view/src/android/view/cts/ |
WindowManager_LayoutParamsTest.java | 53 private static final float MARGIN = 1.0f; 166 params.verticalMargin = MARGIN;
|
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/ |
GameView.java | 74 private static final int MARGIN = 4;
219 mDstRect.offsetTo(MARGIN+x, MARGIN+y);
248 canvas.drawLine(x7 + MARGIN, y, x7 + s3 - 1 - MARGIN, y, mWinPaint);
252 canvas.drawLine(x, y7 + MARGIN, x, y7 + s3 - 1 - MARGIN, mWinPaint);
257 canvas.drawLine(x7 + MARGIN, y7 + MARGIN,
258 x7 + s3 - 1 - MARGIN, y7 + s3 - 1 - MARGIN, mWinPaint); [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
FingerPrintGraph.java | 45 static final int MARGIN= 5; // margin on all four sides 224 for (int i=0, y=MARGIN; i < this.count; i++, y+=LINE_HEIGHT) { 251 int labelxpos = MARGIN + baselineBarLength; 253 this.gc.fillRectangle(MARGIN, y + (GAP/2), baselineBarLength, BAR_HEIGHT); 254 Rectangle rec = new Rectangle(MARGIN, y + (GAP/2), baselineBarLength, BAR_HEIGHT); 259 Rectangle recValue = new Rectangle(MARGIN, y + (GAP/2), wr, BAR_HEIGHT); 262 Rectangle recError = new Rectangle(MARGIN+wr, y + (GAP/2), baselineErrorLength*2, BAR_HEIGHT); 264 Rectangle rec = new Rectangle(MARGIN, y + (GAP/2), baselineBarLength+baselineErrorLength, BAR_HEIGHT); 293 this.gc.fillRectangle(MARGIN, y + (GAP/2) + BAR_HEIGHT, currentBarLength, BAR_HEIGHT) [all...] |
BarGraph.java | 25 private static final int MARGIN= 5; // margin on all four sides 75 return MARGIN + titleHeight + n * (GAP + BARHEIGHT) + GAP + textHeight + MARGIN; 101 w= width - maxNameLength - TGAP - 2 * MARGIN; 109 gc.drawString(this.fTitle, MARGIN, MARGIN, true); // draw title left aligned 112 int center= MARGIN + w / 2; 145 int y= MARGIN + vstart; 258 int x= MARGIN + w + TGAP [all...] |
/external/libpng/contrib/visupng/ |
VisualPng.c | 22 #define MARGIN 8 127 512 + 2 * MARGIN + ixBorders, 384 + 2 * MARGIN + iyBorders, 828 cxNewSize = cxWinSize - 2 * MARGIN; 829 cyNewSize = cyWinSize - 2 * MARGIN; 840 cxImgPos = MARGIN; 846 cyImgPos = MARGIN; 927 if (cxImgPos < MARGIN) 928 cxImgPos = MARGIN; 929 if (cyImgPos < MARGIN) [all...] |
/external/syslinux/com32/menu/ |
menumain.c | 42 [P_MARGIN] = {"margin", 10}, 59 #define MARGIN (cm->mparm[P_MARGIN]) 153 y, MARGIN + 1 + HSHIFT, 157 fputs(pad_line("", 0, WIDTH - 2 * MARGIN - 4), stdout); 162 WIDTH - 2 * MARGIN - 4); 315 printf("\033[%d;%dH\1#1\016l", VSHIFT + 1, HSHIFT + MARGIN + 1); 316 for (x = 2 + HSHIFT; x <= (WIDTH - 2 * MARGIN - 1) + HSHIFT; x++) 321 HSHIFT + MARGIN + 1, pad_line(cm->title, 1, WIDTH - 2 * MARGIN - 4)); 323 printf("\033[%d;%dH\1#1t", VSHIFT + 3, HSHIFT + MARGIN + 1) [all...] |
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
LeanbackLauncherStrategy.java | 423 final int MARGIN = 10; 426 if (dx < -MARGIN) { 430 if (dy < -MARGIN) { 434 if (dx > MARGIN) { 438 if (dy > MARGIN) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/ |
ImageViewer.java | 87 private static final int MARGIN = 5; 390 int margin = getZoomedPixelSize(MARGIN); local 395 mPadding.x = margin; 401 mPadding.y = margin; 420 int margin = getZoomedPixelSize(MARGIN) * 2; local 426 int max = horizontalScroll + verticalBarSize + margin; 446 int max = verticalScroll + horizontalBarSize + margin;
|