Searched refs:halfWidth (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleBackground.java | 113 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()
|
D | Ripple.java | 125 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/ |
D | ImageUtils.java | 276 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/ |
D | Font.cpp | 245 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/ |
D | RotarySelector.java | 475 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/ |
D | ScreenRotationAnimation.java | 481 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/ |
D | load-bitmap.jd | 114 final int halfWidth = width / 2; 119 && (halfWidth / inSampleSize) > reqWidth) {
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 630 final int halfWidth = width / 2; in computeAxisDuration() local 632 final float distance = halfWidth + halfWidth * in computeAxisDuration()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 814 final int halfWidth = width / 2; in smoothScrollTo() local 816 final float distance = halfWidth + halfWidth * in smoothScrollTo()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 3397 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()
|