/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 130 orientation = 90 - (int)Math.round(angle);
|
WindowOrientationListener.java | 278 int orientation = Math.round(orientationAngle); 283 calculateNewRotation(orientation, Math.round(tiltAngle));
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
StrictMath.java | 382 * 754 rules. The result is {@code x-round(x/p)*p} where {@code round(x/p)} 735 * <li>{@code round(+0.0) = +0.0}</li> 736 * <li>{@code round(-0.0) = +0.0}</li> 737 * <li>{@code round((anything > Long.MAX_VALUE) = Long.MAX_VALUE}</li> 738 * <li>{@code round((anything < Long.MIN_VALUE) = Long.MIN_VALUE}</li> 739 * <li>{@code round(+infinity) = Long.MAX_VALUE}</li> 740 * <li>{@code round(-infinity) = Long.MIN_VALUE}</li> 741 * <li>{@code round(NaN) = +0.0}</li> 748 public static long round(double d) method in class:StrictMath 774 public static int round(float f) { method in class:StrictMath [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorPickerDialog.java | 100 int n = java.lang.Math.round(x); 113 return s + java.lang.Math.round(p * (d - s));
|
SensorTest.java | 90 diff[i] = Math.round(mScale[i] * (values[i] - mPrev[i]) * 0.45f);
|
/external/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/ |
Android.mk | 54 src/round.cpp \
|
/external/v8/test/mjsunit/regress/ |
regress-1919169.js | 32 // Crashes in round i==1 with IllegalAccess in %StringAdd(x,y)
|
/frameworks/base/core/java/android/text/method/ |
ScrollingMovementMethod.java | 38 int em = Math.round(layout.getPaint().getFontSpacing()); 68 int em = Math.round(layout.getPaint().getFontSpacing());
|
/frameworks/base/core/java/android/widget/ |
ScrollBarDrawable.java | 125 int length = Math.round((float) size * extent / range); 126 int offset = Math.round((float) (size - length) * mOffset / (range - extent));
|
RatingBar.java | 109 // than 1 so boundaries round up). 188 setProgress(Math.round(rating * getProgressPerStar()));
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 171 int premul = Math.round(alpha * comp / 255.f); 172 int unpre = Math.round(255.0f * premul / alpha);
|
/frameworks/base/media/libstagefright/codecs/amrnb/common/ |
Android.mk | 54 src/round.cpp \
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap.java | 163 neww = Math.round(deviceR.width()); 164 newh = Math.round(deviceR.height());
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
StrictMathTest.java | [all...] |
MathTest.java | [all...] |
/external/webkit/WebCore/xml/ |
XPathFunctions.cpp | 230 static double round(double); 503 long pos = static_cast<long>(FunRound::round(arg(1)->evaluate().toNumber())); 510 len = static_cast<long>(FunRound::round(doubleLen)); 654 double FunRound::round(double val) function in class:WebCore::XPath::FunRound 667 return round(arg(0)->evaluate().toNumber()); 695 { "round", { &createFunRound, 1 } },
|
/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;
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
NinePatchLab.java | 132 final int gapSize = Math.round(mScale * 8);
|
/external/qemu/ |
d3des.c | 325 register int round; local 347 for( round = 0; round < 8; round++ ) {
|
/external/webkit/SunSpider/tests/sunspider-0.9/ |
crypto-aes.js | 9 * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage 22 for (var round=1; round<Nr; round++) { 26 state = AddRoundKey(state, w, round, Nb); 75 function AddRoundKey(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] 141 // Rcon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] 185 // generate key schedule - an expansion of the key into distinct Key Rounds for each round
|
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
crypto-aes.js | 9 * applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage 22 for (var round=1; round<Nr; round++) { 26 state = AddRoundKey(state, w, round, Nb); 75 function AddRoundKey(state, w, rnd, Nb) { // xor Round Key into state S [§5.1.4] 141 // Rcon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] 185 // generate key schedule - an expansion of the key into distinct Key Rounds for each round
|
/external/webkit/WebCore/inspector/front-end/ |
TimelineGrid.js | 60 var dividerCount = Math.round(this._dividersElement.offsetWidth / 64);
|
/external/webkit/WebCore/platform/graphics/android/ |
android_graphics.cpp | 86 r.round(&ir);
|
ImageAndroid.cpp | 158 static void round(SkIRect* dst, const WebCore::FloatRect& src) function in namespace:WebCore 284 round(&srcR, srcRect);
|
/external/webkit/WebKitTools/DumpRenderTree/qt/ |
ImageDiff.cpp | 121 difference = round(difference * 100) / 100;
|