Searched
full:math (Results
326 -
350 of
2517) sorted by null
<<11121314151617181920>>
/frameworks/base/core/java/android/view/ |
WindowOrientationListener.java | 115 private static final float RADIANS_TO_DEGREES = (float) (180 / Math.PI); 237 return (float) Math.sqrt(x*x + y*y + z*z); 245 return Math.abs((float) Math.asin(z / magnitude) * RADIANS_TO_DEGREES); 255 float deviation = Math.abs(magnitude - SensorManager.STANDARD_GRAVITY); 277 float orientationAngle = (float) Math.atan2(-x, y) * RADIANS_TO_DEGREES; 278 int orientation = Math.round(orientationAngle); 283 calculateNewRotation(orientation, Math.round(tiltAngle));
|
/frameworks/base/core/java/android/widget/ |
AbsSeekBar.java | 147 setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20))); 193 int trackHeight = Math.min(mMaxHeight, h - mPaddingTop - mPaddingBottom); 271 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth())); 272 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight())); 273 dh = Math.max(thumbHeight, dh);
|
/dalvik/tests/003-omnibus-opcodes/src/ |
IntMath.java | 115 * doesn't do the math for us. (x=70000, y=-3) 255 * doesn't do the math for us. (x=70000000000, y=-3) 436 * Test some java.lang.Math functions. 443 assert(Math.abs(ii) == ii); 444 assert(Math.abs(-ii) == ii); 445 assert(Math.min(ii, -5) == -5); 446 assert(Math.max(ii, -5) == ii); 448 assert(Math.abs(ll) == ll); 449 assert(Math.abs(-ll) == ll); 450 assert(Math.min(ll, -5L) == -5L) [all...] |
/external/webkit/SunSpider/tests/sunspider-0.9/ |
3d-raytrace.js | 35 return Math.sqrt(self[0] * self[0] + self[1] * self[1] + self[2] * self[2]); 60 var len = Math.sqrt(self[0] * self[0] + self[1] * self[1] + self[2] * self[2]); 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2])) 427 this.fillStyle = "rgb("+[Math.floor(r * 255), Math.floor(g * 255), Math.floor(b * 255)]+")";\n [all...] |
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
3d-raytrace.js | 35 return Math.sqrt(self[0] * self[0] + self[1] * self[1] + self[2] * self[2]); 60 var len = Math.sqrt(self[0] * self[0] + self[1] * self[1] + self[2] * self[2]); 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2])) 427 this.fillStyle = "rgb("+[Math.floor(r * 255), Math.floor(g * 255), Math.floor(b * 255)]+")";\n [all...] |
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 254 (int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels)); 256 (int) Math.min(Math.floor(w / minSideLength), 257 Math.floor(h / minSideLength)); 357 int deltaXHalf = Math.max(0, deltaX / 2); 358 int deltaYHalf = Math.max(0, deltaY / 2); 362 deltaXHalf + Math.min(targetWidth, source.getWidth()), 363 deltaYHalf + Math.min(targetHeight, source.getHeight())); 412 int dx1 = Math.max(0, b1.getWidth() - targetWidth) [all...] |
/bionic/libm/src/ |
e_gamma.c | 25 #include "math.h"
|
e_gamma_r.c | 26 #include "math.h"
|
e_gammaf.c | 26 #include "math.h"
|
e_gammaf_r.c | 27 #include "math.h"
|
e_ldexpf.c | 15 #include "math.h"
|
e_lgamma.c | 25 #include "math.h"
|
e_lgammaf.c | 26 #include "math.h"
|
s_copysign.c | 23 #include "math.h"
|
s_fabs.c | 21 #include "math.h"
|
s_fabsf.c | 24 #include "math.h"
|
s_finite.c | 22 #include "math.h"
|
s_finitef.c | 25 #include "math.h"
|
s_significand.c | 23 #include "math.h"
|
s_significandf.c | 20 #include "math.h"
|
/cts/tests/core/math/ |
AndroidManifest.xml | 19 package="android.core.tests.math">
|
/cts/tools/annotation-helper/src/spechelper/ |
Test.java | 39 Math.sin(0d);
|
/cts/tools/vm-tests/src/dot/junit/opcodes/invoke_static/d/ |
T_invoke_static_1.d | 30 invoke-static {v1}, java/lang/Math/abs(I)I
|
T_invoke_static_11.d | 30 invoke-static {}, java/lang/Math/abs(I)I
|
T_invoke_static_16.d | 29 invoke-static {v3}, java/lang/Math/abs(I)I
|
Completed in 58 milliseconds
<<11121314151617181920>>