/external/skia/src/effects/ |
SkDashPathEffect.cpp | 158 SkScalar halfWidth, halfHeight; 160 halfWidth = SkScalarHalf(clampedInitialDashLength); 163 halfWidth = SkScalarHalf(rec.getWidth()); 168 results->fFirst.addRect(x - halfWidth, y - halfHeight, 169 x + halfWidth, y + halfHeight); 209 SkScalar halfWidth, halfHeight; 211 halfWidth = SkScalarHalf(temp); 214 halfWidth = SkScalarHalf(rec.getWidth()); 217 results->fLast.addRect(x - halfWidth, y - halfHeight, 218 x + halfWidth, y + halfHeight) [all...] |
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 242 final int halfWidth = width / 2; 247 && (halfWidth / inSampleSize) > reqWidth) {
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 242 final int halfWidth = width / 2; 247 && (halfWidth / inSampleSize) > reqWidth) {
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageResizer.java | 242 final int halfWidth = width / 2; 247 && (halfWidth / inSampleSize) > reqWidth) {
|
/external/chromium_org/third_party/skia/src/effects/ |
SkDashPathEffect.cpp | 278 SkScalar halfWidth, halfHeight; 280 halfWidth = SkScalarHalf(clampedInitialDashLength); 283 halfWidth = SkScalarHalf(rec.getWidth()); 288 results->fFirst.addRect(x - halfWidth, y - halfHeight, 289 x + halfWidth, y + halfHeight); 329 SkScalar halfWidth, halfHeight; 331 halfWidth = SkScalarHalf(temp); 334 halfWidth = SkScalarHalf(rec.getWidth()); 337 results->fLast.addRect(x - halfWidth, y - halfHeight, 338 x + halfWidth, y + halfHeight) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
SimpleCollisionComponent.java | 62 final float halfWidth = parentObject.width / 2.0f; 65 parentObject.getPosition().x = mHitPoint.x - halfWidth;
|
GameRenderer.java | 214 final float halfWidth = mHalfWidth; 222 x = (x - mCameraX) + halfWidth;
|
InputGameInterface.java | 99 final float halfWidth = ButtonConstants.MOVEMENT_SLIDER_BAR_WIDTH / 2.0f; 100 final float center = ButtonConstants.MOVEMENT_SLIDER_X + halfWidth; 102 float magnitudeRamp = Math.abs(offset) > halfWidth ? 1.0f : (Math.abs(offset) / halfWidth);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
QuickContactDivot.java | 158 int halfWidth = mDrawableIntrinsicWidth / 2; 160 (int)(middle - halfWidth), 162 (int)(middle + halfWidth),
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
CustomArrayAdapter.java | 127 int halfWidth = bitmap.getWidth() / 2; 130 canvas.drawCircle(halfWidth, halfHeight, Math.max(halfWidth, halfHeight), paint);
|
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/ |
CustomArrayAdapter.java | 120 int halfWidth = bitmap.getWidth()/2; 123 canvas.drawCircle(halfWidth, halfHeight, Math.max(halfWidth, halfHeight), paint);
|
/external/chromium_org/content/shell/renderer/test_runner/ |
mock_web_theme_engine.cc | 327 int halfWidth = irect.width() / 2; 341 left + halfWidth, bottom - quarterHeight, 368 left + halfWidth, top + quarterHeight, 380 int longOffset = halfWidth - gripLongIndent; 405 left + halfWidth, top + gripLongIndent, 406 left + halfWidth, bottom - gripLongIndent, 445 int longOffset = halfWidth - notchLongOffset; 542 halfWidth = irect.width() / 2; 551 irect.fLeft + halfWidth, irect.fBottom, 563 lirect.inset(halfWidth - sliderIndent, noOffset) [all...] |
/external/chromium_org/third_party/skia/tests/ |
RoundRectTest.cpp | 603 SkScalar halfWidth = SkScalarHalf(dst.width()); 608 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth));
|
/frameworks/base/libs/hwui/font/ |
Font.cpp | 245 const float halfWidth = glyph->mBitmapWidth * 0.5f; 251 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); 257 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, 258 -tangent->fY * halfWidth + tangent->fX * vOffset); 259 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, 260 tangent->fY * halfWidth + tangent->fX * vOffset);
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
ImageUtils.java | 276 int halfWidth = sourceWidth / 2; 278 scaled = new BufferedImage(halfWidth, halfHeight, imageType); 281 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, 285 sourceWidth = halfWidth;
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSGradientValue.cpp | 641 float halfWidth = size.width() / 2; 644 endCorner.set(halfWidth, halfHeight); 646 endCorner.set(halfWidth, -halfHeight); 648 endCorner.set(-halfWidth, -halfHeight); 650 endCorner.set(-halfWidth, halfHeight); 659 secondPoint.set(halfWidth + endX, halfHeight - endY); 661 firstPoint.set(halfWidth - endX, halfHeight + endY); [all...] |
/external/chromium_org/third_party/freetype/src/cff/ |
cf2hints.c | 633 CF2_Fixed halfWidth = FT_MulFix( 639 firstHintEdge->dsCoord = midpoint - halfWidth; 640 secondHintEdge->dsCoord = midpoint + halfWidth; [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_aaline.c | 48 GLfloat halfWidth; /* half of line width */ 373 xLeft = x0 - line->halfWidth; 374 xRight = x1 + line->halfWidth; 376 yBot = y0 - 3.0F * line->halfWidth; 377 yTop = y0 + line->halfWidth; 380 yBot = y0 - line->halfWidth; 381 yTop = y0 + 3.0F * line->halfWidth; 385 xLeft = x1 - line->halfWidth; 386 xRight = x0 + line->halfWidth; 388 yBot = y1 - 3.0F * line->halfWidth; [all...] |
/external/freetype/src/cff/ |
cf2hints.c | 643 CF2_Fixed halfWidth = FT_MulFix( 649 firstHintEdge->dsCoord = midpoint - halfWidth; 650 secondHintEdge->dsCoord = midpoint + halfWidth; [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_aaline.c | 48 GLfloat halfWidth; /* half of line width */ 373 xLeft = x0 - line->halfWidth; 374 xRight = x1 + line->halfWidth; 376 yBot = y0 - 3.0F * line->halfWidth; 377 yTop = y0 + line->halfWidth; 380 yBot = y0 - line->halfWidth; 381 yTop = y0 + 3.0F * line->halfWidth; 385 xLeft = x1 - line->halfWidth; 386 xRight = x0 + line->halfWidth; 388 yBot = y1 - 3.0F * line->halfWidth; [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/ |
cf2hints.c | 634 CF2_Fixed halfWidth = FT_MulFix( 640 firstHintEdge->dsCoord = midpoint - halfWidth; 641 secondHintEdge->dsCoord = midpoint + halfWidth; [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
RippleBackground.java | 113 final float halfWidth = mBounds.width() / 2.0f; 115 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); 125 final float halfWidth = mBounds.width() / 2.0f; 127 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight);
|
/external/chromium_org/third_party/skia/src/gpu/ |
GrOvalRenderer.cpp | 561 SkScalar halfWidth = 0; 564 halfWidth = SK_ScalarHalf; 566 halfWidth = SkScalarHalf(strokeWidth); 569 outerRadius += halfWidth; 571 innerRadius = radius - halfWidth; [all...] |
/external/skia/src/gpu/ |
GrOvalRenderer.cpp | 530 SkScalar halfWidth = 0; 533 halfWidth = SK_ScalarHalf; 535 halfWidth = SkScalarHalf(strokeWidth); 538 outerRadius += halfWidth; 540 innerRadius = radius - halfWidth; [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
RotarySelector.java | 475 final int halfWidth = (outerRadius - innerRadius) / 2; 476 final int middleRadius = innerRadius + halfWidth; 489 return middleRadius - triangleY + halfWidth;
|