/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/third_party/WebKit/Source/testing/runner/ |
WebTestThemeControlWin.cpp | 263 int halfWidth = m_width / 2; 343 int longOffset = halfWidth - notchLongOffset; 351 int longOffset = halfWidth - notchLongOffset; 375 int longOffset = halfWidth - gripLongIndent; 385 line(m_left + halfWidth, m_top + gripLongIndent, m_left + halfWidth, m_bottom - gripLongIndent, m_fgColor); 406 triangle(m_left + quarterWidth, m_bottom - quarterHeight, m_left + halfWidth, m_top + quarterHeight, m_right - quarterWidth, m_bottom - quarterHeight, m_fgColor); 412 triangle(m_left + quarterWidth, m_top + quarterHeight, m_right - quarterWidth, m_top + quarterHeight, m_left + halfWidth, m_bottom - quarterHeight, m_fgColor); 430 lirect.inset(halfWidth - sliderIndent, noOffset); 440 triangle(m_left + quarterWidth, m_top, m_right - quarterWidth, m_top, m_left + halfWidth, m_bottom, m_fgColor) [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkDashPathEffect.cpp | 462 SkScalar halfWidth, halfHeight; 464 halfWidth = SkScalarHalf(clampedInitialDashLength); 467 halfWidth = SkScalarHalf(rec.getWidth()); 472 results->fFirst.addRect(x - halfWidth, y - halfHeight, 473 x + halfWidth, y + halfHeight); 513 SkScalar halfWidth, halfHeight; 515 halfWidth = SkScalarHalf(temp); 518 halfWidth = SkScalarHalf(rec.getWidth()); 521 results->fLast.addRect(x - halfWidth, y - halfHeight, 522 x + halfWidth, y + halfHeight) [all...] |
/external/skia/src/effects/ |
SkDashPathEffect.cpp | 462 SkScalar halfWidth, halfHeight; 464 halfWidth = SkScalarHalf(clampedInitialDashLength); 467 halfWidth = SkScalarHalf(rec.getWidth()); 472 results->fFirst.addRect(x - halfWidth, y - halfHeight, 473 x + halfWidth, y + halfHeight); 513 SkScalar halfWidth, halfHeight; 515 halfWidth = SkScalarHalf(temp); 518 halfWidth = SkScalarHalf(rec.getWidth()); 521 results->fLast.addRect(x - halfWidth, y - halfHeight, 522 x + halfWidth, y + halfHeight) [all...] |
/frameworks/base/libs/hwui/font/ |
Font.cpp | 231 const float halfWidth = glyph->mBitmapWidth * 0.5f; 237 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); 243 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, 244 -tangent->fY * halfWidth + tangent->fX * vOffset); 245 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, 246 tangent->fY * halfWidth + tangent->fX * vOffset);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
OverlayView.java | 226 final int halfWidth = getWidth() / 2; 227 mArrowLeft.setBounds(halfWidth - 4 - mArrowLeft.getIntrinsicWidth(), getPaddingTop(), 228 halfWidth - 4, getPaddingTop() + mArrowLeft.getIntrinsicHeight()); 231 mArrowRight.setBounds(halfWidth + 4, getPaddingTop(), halfWidth + 4
|
TransitionView.java | 265 final int halfWidth = getWidth() / 2; 269 canvas.clipRect(getPaddingLeft(), getPaddingTop(), halfWidth, 281 canvas.clipRect(halfWidth, getPaddingTop(), 292 canvas.drawLine(halfWidth, getPaddingTop(), halfWidth,
|
ZoomControl.java | 125 final int halfWidth = mThumb.getIntrinsicWidth() / 2; 127 mThumb.setBounds(mThumbX - halfWidth, mThumbY - halfHeight, mThumbX + halfWidth,
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSGradientValue.cpp | 618 float halfWidth = size.width() / 2; 621 endCorner.set(halfWidth, halfHeight); 623 endCorner.set(halfWidth, -halfHeight); 625 endCorner.set(-halfWidth, -halfHeight); 627 endCorner.set(-halfWidth, halfHeight); 636 secondPoint.set(halfWidth + endX, halfHeight - endY); 638 firstPoint.set(halfWidth - endX, halfHeight + endY); [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/chromium_org/third_party/skia/src/gpu/ |
GrOvalRenderer.cpp | 368 SkScalar halfWidth = 0; 371 halfWidth = SK_ScalarHalf; 373 halfWidth = SkScalarHalf(strokeWidth); 376 outerRadius += halfWidth; 378 innerRadius = radius - halfWidth; 676 SkScalar halfWidth = 0; 679 halfWidth = SK_ScalarHalf; 681 halfWidth = SkScalarHalf(scaledStroke.fX); 685 innerRadius = xRadius - halfWidth; 688 outerRadius += halfWidth; [all...] |
/external/freetype/src/cff/ |
cf2hints.c | 633 CF2_Fixed halfWidth = FT_MulFix( 639 firstHintEdge->dsCoord = midpoint - halfWidth; 640 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/skia/src/gpu/ |
GrOvalRenderer.cpp | 368 SkScalar halfWidth = 0; 371 halfWidth = SK_ScalarHalf; 373 halfWidth = SkScalarHalf(strokeWidth); 376 outerRadius += halfWidth; 378 innerRadius = radius - halfWidth; 676 SkScalar halfWidth = 0; 679 halfWidth = SK_ScalarHalf; 681 halfWidth = SkScalarHalf(scaledStroke.fX); 685 innerRadius = xRadius - halfWidth; 688 outerRadius += halfWidth; [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
RotarySelector.java | 468 final int halfWidth = (outerRadius - innerRadius) / 2; 469 final int middleRadius = innerRadius + halfWidth; 482 return middleRadius - triangleY + halfWidth;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtils.java | [all...] |
/system/core/libpixelflinger/ |
trap.cpp | 361 GGLcoord halfWidth = TRI_ROUND(width) >> 1; 362 if (halfWidth == 0) 363 halfWidth = TRI_HALF; 365 ((dx > dy) ? ny : nx) = halfWidth; [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
EncodeDecodeTest.java | [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
ScreenRotationAnimation.java | 475 final int halfWidth = (finalWidth + mOriginalWidth) / 2; 480 halfWidth, halfHeight); 481 mStartExitAnimation.initialize(halfWidth, halfHeight, 484 halfWidth, halfHeight); 485 mFinishExitAnimation.initialize(halfWidth, halfHeight, [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
ViewPager.java | 809 final int halfWidth = width / 2; 811 final float distance = halfWidth + halfWidth * [all...] |