/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Double2.java | 19 import java.lang.Math;
|
Double3.java | 19 import java.lang.Math;
|
Double4.java | 19 import java.lang.Math;
|
Float2.java | 19 import java.lang.Math;
|
Float3.java | 19 import java.lang.Math;
|
Float4.java | 19 import java.lang.Math;
|
Int2.java | 19 import java.lang.Math;
|
Int3.java | 19 import java.lang.Math;
|
Int4.java | 19 import java.lang.Math;
|
Long2.java | 19 import java.lang.Math;
|
Long3.java | 19 import java.lang.Math;
|
Long4.java | 19 import java.lang.Math;
|
Short2.java | 19 import java.lang.Math;
|
Short3.java | 19 import java.lang.Math;
|
Short4.java | 19 import java.lang.Math;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ForgettingCurveTests.java | 40 assertEquals(l, Math.max(1, Math.min(i + 1, 3))); 48 assertEquals(l, Math.min(i + 1, 3)); 55 assertEquals(l, Math.max(0, 2 - i));
|
/frameworks/base/core/java/android/hardware/ |
GeomagneticField.java | 143 gdLatitudeDeg = Math.min(90.0f - 1e-5f, 144 Math.max(-90.0f + 1e-5f, gdLatitudeDeg)); 157 (float) (Math.PI / 2.0 - mGcLatitudeRad)); 160 // 0..MAX_N-2 (this is much faster than calling Math.pow MAX_N+1 times). 170 // this is much faster than calling Math.sin and Math.com MAX_N+1 times. 175 sinMLon[1] = (float) Math.sin(mGcLongitudeRad); 176 cosMLon[1] = (float) Math.cos(mGcLongitudeRad); 186 float inverseCosLatitude = 1.0f / (float) Math.cos(mGcLatitudeRad); 233 double latDiffRad = Math.toRadians(gdLatitudeDeg) - mGcLatitudeRad [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
StraightenFilter.java | 56 private static final float DEGREE_TO_RADIAN = (float) Math.PI / 180.0f; 121 float cosTheta = (float) Math.cos(mAngle * DEGREE_TO_RADIAN); 122 float sinTheta = (float) Math.sin(mAngle * DEGREE_TO_RADIAN); 140 float maxWidth = (float) Math.max(Math.abs(p0.x), Math.abs(p1.x)); 141 float maxHeight = (float) Math.max(Math.abs(p0.y), Math.abs(p1.y)); 143 float scale = 0.5f * Math.min( mWidth / maxWidth [all...] |
/external/v8/test/mjsunit/regress/ |
regress-925537.js | 30 if (Math.abs(expected - actual) > delta) { 36 assertEquals(1, Math.pow(NaN, 0)); 38 assertClose( Math.PI / 4, Math.atan2(pinf, pinf)); 39 assertClose(-Math.PI / 4, Math.atan2(ninf, pinf)); 40 assertClose( 3 * Math.PI / 4, Math.atan2(pinf, ninf)); 41 assertClose(-3 * Math.PI / 4, Math.atan2(ninf, ninf)) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.2-1.js | 142 HEX_VALUE += Math.pow(16,POWER)*15; 146 HEX_VALUE += Math.pow(16,POWER)*15; 150 HEX_VALUE += Math.pow(16,POWER)*15; 154 HEX_VALUE += Math.pow(16,POWER)*15; 158 HEX_VALUE += Math.pow(16,POWER)*15; 162 HEX_VALUE += Math.pow(16,POWER)*15; 172 HEX_VALUE += Math.pow(16,POWER)*15; 178 HEX_VALUE -= Math.pow(16,POWER)*15; 185 HEX_VALUE += Math.pow(16,POWER)*15; 189 HEX_VALUE += Math.pow(16,POWER)*15 [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.5-2.js | 77 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 81 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 83 n = ( n < -Math.pow(2,31) ) ? n + Math.pow(2,32) : n; 85 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 115 array[item++] = new TestCase( SECTION, "(Math.pow(2,31)-1) << 0", ToInt32(2147483647), (Math.pow(2,31)-1) << 0 ) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/ |
SwipeHelper.java | 170 return Math.max(mMinAlpha, result); 189 view.invalidate((int) Math.floor(childBounds.left), 190 (int) Math.floor(childBounds.top), 191 (int) Math.ceil(childBounds.right), 192 (int) Math.ceil(childBounds.bottom)); 194 Log.v(TAG, "INVALIDATE(" + (int) Math.floor(childBounds.left) 195 + "," + (int) Math.floor(childBounds.top) 196 + "," + (int) Math.ceil(childBounds.right) 197 + "," + (int) Math.ceil(childBounds.bottom)); 257 float deltaY = Math.abs(currY - mInitialTouchPosY) [all...] |
/frameworks/base/core/java/android/gesture/ |
GestureUtils.java | 42 private static final float NONUNIFORM_SCALE = (float) Math.sqrt(2); 163 xpos = (float) Math.ceil(segmentStartX); 172 xpos = (float) Math.ceil(segmentEndX); 183 ypos = (float) Math.ceil(segmentStartY); 192 ypos = (float) Math.ceil(segmentEndY); 212 int xFloor = (int) Math.floor(x); 213 int xCeiling = (int) Math.ceil(x); 214 int yFloor = (int) Math.floor(y); 215 int yCeiling = (int) Math.ceil(y); 224 final double xFloorSq = Math.pow(xFloor - x, 2) [all...] |
/external/guava/guava/src/com/google/common/cache/ |
CacheStats.java | 214 Math.max(0, hitCount - other.hitCount), 215 Math.max(0, missCount - other.missCount), 216 Math.max(0, loadSuccessCount - other.loadSuccessCount), 217 Math.max(0, loadExceptionCount - other.loadExceptionCount), 218 Math.max(0, totalLoadTime - other.totalLoadTime), 219 Math.max(0, evictionCount - other.evictionCount));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.2.2-1.js | 112 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 115 n = sign * Math.floor( Math.abs(n) ) 117 n = n % Math.pow(2,32); 120 n += Math.pow(2,32);
|