/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
RendererCommonTest.java | 95 private static double[] round(float[] array) { method in class:RendererCommonTest 99 doubleArray[i] = Math.round(100 * array[i]) / 100.0; 120 0, 0, 0, 1}, round(layoutMatrix)); 133 1, 0, 0, 1}, round(layoutMatrix)); 148 0.25, 0, 0, 1}, round(layoutMatrix)); 161 MoreAsserts.assertEquals(round(matrix), round(rotatedMatrix)); method 174 1, 0, 0, 1}, round(samplingMatrix)); 187 1, 1, 0, 1}, round(samplingMatrix));
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
HorizontalGroup.java | 39 private boolean reverse, round = true; field in class:HorizontalGroup 71 if (round) { 72 prefWidth = Math.round(prefWidth); 73 prefHeight = Math.round(prefHeight); 80 boolean reverse = this.reverse, round = this.round; 112 if (round) 113 child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)) [all...] |
VerticalGroup.java | 35 private boolean reverse, round = true; field in class:VerticalGroup 67 if (round) { 68 prefWidth = Math.round(prefWidth); 69 prefHeight = Math.round(prefHeight); 76 boolean reverse = this.reverse, round = this.round; 108 if (round) 109 child.setBounds(Math.round(x), Math.round(y), Math.round(width), Math.round(height)) [all...] |
/external/chromium-trace/catapult/experimental/heatmap/ |
color.js | 39 r = Math.round(r); 40 g = Math.round(g); 41 b = Math.round(b);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
FlingScroller.java | 69 return (int)Math.round(mCurrV * mCosAngle); 73 return (int)Math.round(mCurrV * mSinAngle); 96 mDuration = (int)Math.round(FLING_DURATION_PARAM 100 mDistance = (int)Math.round( 117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); 127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle);
|
/external/v8/test/webkit/fast/js/kde/ |
math.js | 57 shouldBe("Math.round(0)", "0"); 58 shouldBeFalse("isNegativeZero(Math.round(0))"); 59 shouldBeTrue("isNegativeZero(Math.round(negativeZero))"); 60 shouldBe("Math.round(0.2)", "0"); 61 shouldBeTrue("isNegativeZero(Math.round(-0.2))"); 62 shouldBeTrue("isNegativeZero(Math.round(-0.5))"); 63 shouldBe("Math.round(1.1)", "1"); 64 shouldBe("Math.round(1.6)", "2"); 65 shouldBe("Math.round(-3.5)", "-3"); 66 shouldBe("Math.round(-3.6)", "-4") [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/surfaceview/ |
RatioResolutionStrategy.java | 50 height = Math.round(width / desiredRatio);
53 width = Math.round(height * desiredRatio);
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
ldt0028.py | 62 stars_to_print = int(round(average / SCALE_FACTOR)) 63 print '(' + repr(int(round(average))).rjust(4) + ') |', '*' * stars_to_print
|
/external/v8/test/webkit/ |
math.js | 207 shouldBe("Math.round(NaN)", "NaN"); 208 shouldBe("Math.round(0)", "0"); 209 shouldBe("Math.round(-0)", "-0"); 210 shouldBe("Math.round(0.4)", "0"); 211 shouldBe("Math.round(-0.4)", "-0"); 212 shouldBe("Math.round(0.5)", "1"); 213 shouldBe("Math.round(-0.5)", "-0"); 214 shouldBe("Math.round(0.6)", "1"); 215 shouldBe("Math.round(-0.6)", "-1"); 216 shouldBe("Math.round(1)", "1") [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
Throughput.java | 50 return Math.round(getFramesPerSecond()) + " FPS";
|
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
grovetemp.js | 39 Math.round(fahrenheit) + " degrees Fahrenheit");
|
/external/skia/bench/ |
BigPathBench.cpp | 29 BigPathBench(Align align, bool round) : fAlign(align), fRound(round) { 31 if (round) {
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalArithmeticTest.java | 36 a.round(mc).toString()); 38 b.round(mc).toString()); 40 a.round(mc).add(b.round(mc)).toString()); 61 a.round(mc).subtract(b.round(mc)).toString()); 83 res = a.round(mc).multiply(b.round(mc)); 85 res = res.round(mc); 131 a.round(mc).pow(1000).round(mc).toString()) [all...] |
/external/valgrind/none/tests/mips32/ |
round_fpu64.stdout.exp | 395 round.l.s 0 0.000000 397 round.l.s 456 456.250000 399 round.l.s 3 3.000000 401 round.l.s -1 -1.000000 403 round.l.s 1384 1384.500000 405 round.l.s -7 -7.250000 407 round.l.s 1000000000 1000000000.000000 409 round.l.s -5786 -5786.250000 411 round.l.s 1752 1752.000000 413 round.l.s 0 0.01562 [all...] |
/frameworks/base/core/java/android/transition/ |
TranslationAnimationCreator.java | 62 int startPosX = viewPosX + Math.round(startX - terminalX); 63 int startPosY = viewPosY + Math.round(startY - terminalY); 102 mStartX = startX - Math.round(mMovingView.getTranslationX()); 103 mStartY = startY - Math.round(mMovingView.getTranslationY()); 117 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 118 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
|
CircularPropagation.java | 83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) 85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) 97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction);
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
TranslationAnimationCreator.java | 50 int startPosX = viewPosX + Math.round(startX - terminalX); 51 int startPosY = viewPosY + Math.round(startY - terminalY); 90 mStartX = startX - Math.round(mMovingView.getTranslationX()); 91 mStartY = startY - Math.round(mMovingView.getTranslationY()); 105 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); 106 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY());
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
DrawerArrowDrawable.java | 76 // round this because having this floating may cause bad measurements 77 mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0)); 78 // round this because having this floating may cause bad measurements 79 mTopBottomArrowSize = Math.round(typedArray.getDimension( 82 // round this because having this floating may cause bad measurements 83 mBarGap = Math.round(typedArray.getDimension( 120 final float middleBarCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); 126 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation)); 127 final float arrowHeight = Math.round(arrowSize * Math.sin(rotation));
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
TwilightCalculator.java | 100 float n = Math.round(daysSince2000 - J0 - arcLongitude); 127 sunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; 128 sunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_lround.c | 35 #define roundit round
|
/external/icu/icu4c/source/test/intltest/ |
dcfmtest.h | 53 const UnicodeString &round,
|