Searched refs:halfWidth (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleBackground.java113 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);
H A DRipple.java125 final float halfWidth = mBounds.width() / 2.0f;
127 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight);
160 final float halfWidth = mBounds.width() / 2.0f;
162 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java276 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;
/frameworks/base/libs/hwui/font/
H A DFont.cpp245 const float halfWidth = glyph->mBitmapWidth * 0.5f; local
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/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java481 final int halfWidth = (finalWidth + mOriginalWidth) / 2;
486 halfWidth, halfHeight);
487 mStartExitAnimation.initialize(halfWidth, halfHeight,
490 halfWidth, halfHeight);
491 mFinishExitAnimation.initialize(halfWidth, halfHeight,
/frameworks/base/core/java/com/android/internal/widget/
H A DRotarySelector.java475 final int halfWidth = (outerRadius - innerRadius) / 2;
476 final int middleRadius = innerRadius + halfWidth;
489 return middleRadius - triangleY + halfWidth;
/frameworks/support/v4/java/android/support/v4/widget/
H A DViewDragHelper.java630 final int halfWidth = width / 2;
632 final float distance = halfWidth + halfWidth *
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java814 final int halfWidth = width / 2;
816 final float distance = halfWidth + halfWidth *
/frameworks/native/services/inputflinger/
H A DInputReader.cpp3397 int32_t halfWidth = virtualKeyDefinition.width / 2; local
3400 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth)
3402 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth)

Completed in 1035 milliseconds