Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DRippleBackground.java113 final float halfWidth = mBounds.width() / 2.0f; in setup() local
115 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in setup()
125 final float halfWidth = mBounds.width() / 2.0f; in onHotspotBoundsChanged() local
127 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in onHotspotBoundsChanged()
DRipple.java125 final float halfWidth = mBounds.width() / 2.0f; in setup() local
127 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in setup()
160 final float halfWidth = mBounds.width() / 2.0f; in onHotspotBoundsChanged() local
162 mOuterRadius = (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in onHotspotBoundsChanged()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DImageUtils.java276 int halfWidth = sourceWidth / 2; in scale() local
278 scaled = new BufferedImage(halfWidth, halfHeight, imageType); in scale()
281 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale()
285 sourceWidth = halfWidth; in scale()
/frameworks/base/libs/hwui/font/
DFont.cpp245 const float halfWidth = glyph->mBitmapWidth * 0.5f; in drawCachedGlyph() local
251 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); in drawCachedGlyph()
257 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph()
258 -tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph()
259 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph()
260 tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph()
/frameworks/base/core/java/com/android/internal/widget/
DRotarySelector.java475 final int halfWidth = (outerRadius - innerRadius) / 2; in getYOnArc() local
476 final int middleRadius = innerRadius + halfWidth; in getYOnArc()
489 return middleRadius - triangleY + halfWidth; in getYOnArc()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java481 final int halfWidth = (finalWidth + mOriginalWidth) / 2; in startAnimation() local
486 halfWidth, halfHeight); in startAnimation()
487 mStartExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
490 halfWidth, halfHeight); in startAnimation()
491 mFinishExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
/frameworks/base/docs/html/training/displaying-bitmaps/
Dload-bitmap.jd114 final int halfWidth = width / 2;
119 && (halfWidth / inSampleSize) > reqWidth) {
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java630 final int halfWidth = width / 2; in computeAxisDuration() local
632 final float distance = halfWidth + halfWidth * in computeAxisDuration()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java814 final int halfWidth = width / 2; in smoothScrollTo() local
816 final float distance = halfWidth + halfWidth * in smoothScrollTo()
/frameworks/native/services/inputflinger/
DInputReader.cpp3397 int32_t halfWidth = virtualKeyDefinition.width / 2; in configureVirtualKeys() local
3400 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth) in configureVirtualKeys()
3402 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth) in configureVirtualKeys()