/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapShader_Delegate.java | 197 int x = getCoordinate(Math.round(fx), mImage.getWidth(), mTileModeX); 198 int y = getCoordinate(Math.round(fy), mImage.getHeight(), mTileModeY);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
TargetDrawable.java | 63 mRealDrawable.setAlpha((int) Math.round(mAlpha * 255f)); 255 mDrawable.setAlpha((int) Math.round(mAlpha * 255f));
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetConfigure.java | 148 int widgetWidth = Math.round(width * scale); 149 int widgetHeight = Math.round(height * scale);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
TileImageView.java | 225 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); 226 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); 231 mOffsetX = Math.round(width / 2f - centerX * scale); 232 mOffsetY = Math.round(height / 2f - centerY * scale); 351 center.x = Math.round(viewW / 2f + distW * mScale); 352 center.y = Math.round(viewH / 2f + distH * mScale); 445 Math.round(mImageWidth * mScale), 446 Math.round(mImageHeight * mScale));
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
MediaCacheUtils.java | 106 int targetWidth = Math.round(scale * inBitmap.getWidth()); 107 int targetHeight = Math.round(scale * inBitmap.getHeight());
|
/external/llvm/lib/CodeGen/ |
RegAllocPBQP.cpp | 76 cl::desc("Dump graphs for each function/round in the compilation unit."), 511 // We need another round if spill intervals were added. 582 unsigned round = 0; local 585 DEBUG(dbgs() << " PBQP Regalloc round " << round << ":\n"); 593 rs << round; local 597 DEBUG(dbgs() << "Dumping graph for round " << round << " to \"" 609 ++round;
|
/external/webkit/Source/WebCore/inspector/front-end/ |
TimelineOverviewPane.js | 143 var end = Math.round(percentages.end); 145 for (var j = Math.round(percentages.start); j <= end; ++j) 186 var dividerPosition = Math.round(positions.start * 10); 553 var x = Math.round((r.endTime - minTime) * xFactor); 554 var y = Math.round(r.usedHeapSize * yFactor);
|
/external/webkit/Source/WebCore/xml/ |
XPathFunctions.cpp | 230 static double round(double); 506 long pos = static_cast<long>(FunRound::round(doublePos)); 513 len = static_cast<long>(FunRound::round(doubleLen)); 659 double FunRound::round(double val) function in class:WebCore::XPath::FunRound 672 return round(arg(0)->evaluate().toNumber()); 700 { "round", { &createFunRound, 1 } },
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
Util.java | 109 return Math.round(sPixelDensity * dp); 173 * request is 3. So we round up the sample size to avoid OOM. 570 rect.left = Math.round(rectF.left); 571 rect.top = Math.round(rectF.top); 572 rect.right = Math.round(rectF.right); 573 rect.bottom = Math.round(rectF.bottom);
|
/bionic/tests/ |
math_test.cpp | 836 TEST(math, round) { 837 fesetround(FE_TOWARDZERO); // round ignores the rounding mode and always rounds away from zero. 838 ASSERT_FLOAT_EQ(1.0, round(0.5)); 839 ASSERT_FLOAT_EQ(-1.0, round(-0.5)); 840 ASSERT_FLOAT_EQ(0.0, round(0.0)); 841 ASSERT_FLOAT_EQ(-0.0, round(-0.0)); 842 ASSERT_TRUE(isnan(round(nan("")))); 843 ASSERT_FLOAT_EQ(HUGE_VAL, round(HUGE_VAL));
|
/frameworks/base/core/java/android/webkit/ |
ZoomManager.java | 491 int tx = Math.round(scale * (mInitialScrollX + mZoomCenterX) - mZoomCenterX); 492 tx = -WebViewClassic.pinLoc(tx, mWebView.getViewWidth(), Math.round(mWebView.getContentWidth() 495 int ty = Math.round(scale 499 - titleHeight, mWebView.getViewHeight(), Math.round(mWebView.getContentHeight() 595 int scrollX = mWebView.pinLocX(Math.round(sx)); 596 int scrollY = mWebView.pinLocY(Math.round(sy)); [all...] |
/system/core/libpixelflinger/ |
pixelflinger.cpp | 230 // it is very important to round the iterated value here because 234 const int32_t round = 0x8000; local 235 c->shade.r0 = grad[ 0] + round; 238 c->shade.g0 = grad[ 3] + round; 241 c->shade.b0 = grad[ 6] + round; 244 c->shade.a0 = grad[ 9] + round; 254 const uint32_t round = 0x8000; local 255 c->shade.z0 = grad[0] + round;
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
ImageSkia.cpp | 179 // We will always draw in integer sizes, so round the destination rect. 181 destRect.round(&destRectRounded); 191 destRectTransformed.round(&destRectTransformedRounded); 209 destBitmapSubsetTransformed.round(&destBitmapSubsetTransformedRounded); 213 // causes the bounds to be outside of the resized bitmap. We round outward
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
NinePatchLab.java | 132 final int gapSize = Math.round(mScale * 8);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
SensorTest.java | 89 diff[i] = Math.round(mScale[i] * (event.values[i] - mPrev[i]) * 0.45f);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
SimpleBigDecimal.java | 159 public BigInteger round() method in class:SimpleBigDecimal
|
Tnaf.java | 166 public static ZTauElement round(SimpleBigDecimal lambda0, method in class:Tnaf 181 BigInteger f0 = lambda0.round(); 182 BigInteger f1 = lambda1.round(); 299 // round up 629 ZTauElement q = round(lambda0, lambda1, mu);
|
/external/doclava/src/com/google/doclava/ |
TodoFile.java | 63 return "" + Math.round((((b - a) / (float) b)) * 100) + "%";
|
/external/guava/guava/src/com/google/common/hash/ |
BloomFilter.java | 196 return Math.max(1, (int) Math.round(m / n * LN2));
|
/external/icu4c/i18n/ |
decContext.h | 37 /* round -- must be one of the enumerated rounding modes */ 76 DEC_ROUND_CEILING, /* round towards +infinity */ 77 DEC_ROUND_UP, /* round away from 0 */ 81 DEC_ROUND_DOWN, /* round towards 0 (truncate) */ 82 DEC_ROUND_FLOOR, /* round towards -infinity */ 83 DEC_ROUND_05UP, /* round for reround */ 92 enum rounding round; /* rounding mode */ member in struct:__anon8658
|
/external/libvpx/libvpx/vp8/common/arm/neon/ |
bilinearpredict8x4_neon.asm | 65 vqrshrn.u16 d22, q6, #7 ;shift/round/saturate to u8 97 vqrshrn.u16 d2, q1, #7 ;shift/round/saturate to u8
|
/external/libvpx/libvpx/vp8/encoder/x86/ |
quantize_sse4.asm | 98 ; round 106 ; x + round
|
/external/qemu/ |
d3des.c | 325 register int round; local 347 for( round = 0; round < 8; round++ ) {
|
/external/skia/legacy/src/effects/ |
Sk2DPathEffect.cpp | 40 tmp.getBounds().round(&ir);
|
/external/skia/src/effects/ |
Sk2DPathEffect.cpp | 29 tmp.getBounds().round(&ir);
|