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

/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleComponent.java89 final float halfWidth = bounds.width() / 2.0f;
91 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight);
262 final float halfWidth = mBounds.width() / 2.0f;
264 final float targetRadius = (float) Math.sqrt(halfWidth * halfWidth
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java280 int halfWidth = sourceWidth / 2;
282 scaled = new BufferedImage(halfWidth, halfHeight, imageType);
285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight,
289 sourceWidth = halfWidth;
/frameworks/base/libs/hwui/font/
H A DFont.cpp239 const float halfWidth = glyph->mBitmapWidth * 0.5f; local
245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
251 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset,
252 -tangent->fY * halfWidth + tangent->fX * vOffset);
253 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset,
254 tangent->fY * halfWidth + tangent->fX * vOffset);
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java490 final int halfWidth = (finalWidth + mOriginalWidth) / 2;
495 halfWidth, halfHeight);
496 mStartExitAnimation.initialize(halfWidth, halfHeight,
499 halfWidth, halfHeight);
500 mFinishExitAnimation.initialize(halfWidth, halfHeight,
H A DAppTransition.java744 int halfWidth = mTmpRect.width() / 2;
746 int clipStartX = centerX - halfWidth - appFrame.left;
759 if (appFrame.left > centerX - halfWidth) {
760 translationX = (centerX - halfWidth) - appFrame.left;
764 if (appFrame.right < centerX + halfWidth) {
765 translationX = (centerX + halfWidth) - appFrame.right;
/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;
H A DViewPager.java812 final int halfWidth = width / 2;
814 final float distance = halfWidth + halfWidth *
/frameworks/support/v4/java/android/support/v4/widget/
H A DViewDragHelper.java631 final int halfWidth = width / 2;
633 final float distance = halfWidth + halfWidth *
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java975 final int halfWidth = width / 2;
977 final float distance = halfWidth + halfWidth *
/frameworks/native/services/inputflinger/
H A DInputReader.cpp3707 int32_t halfWidth = virtualKeyDefinition.width / 2; local
3710 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth)
3712 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth)

Completed in 597 milliseconds