/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.5-2.js | 131 for ( var mag = 1; Math.pow(16,mag) <= n ; mag++ ) { 136 hex[index] = Math.floor( n / Math.pow(16,mag) ); 137 n -= Math.pow(16,mag) * Math.floor( n/Math.pow(16,mag) );
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
VUMeter.java | 75 final float minAngle = (float)Math.PI/8; 76 final float maxAngle = (float)Math.PI*7/8; 85 mCurrentAngle = Math.max(angle, mCurrentAngle - DROPOFF_STEP); 87 mCurrentAngle = Math.min(maxAngle, mCurrentAngle); 94 float sin = (float) Math.sin(mCurrentAngle); 95 float cos = (float) Math.cos(mCurrentAngle);
|
/external/replicaisland/tools/ |
ExtractPoints.js | 86 var normalLength = Math.sqrt((normalX * normalX) + (normalY * normalY)); 97 var normalLength2 = Math.sqrt((normalX * normalX) + (normalY * normalY)); 119 var column = Math.floor(tile.centerX / tileSizeX); 120 var row = Math.floor(tile.centerY / tileSizeY); 128 var tileIndex = Math.floor(row * tilesPerRow + column); 157 if (Math.abs(edge.centerX - tile.centerX) > 158 Math.abs((edge.centerX + edge.normalX) - tile.centerX)) { 163 if (Math.abs(edge.centerY - tile.centerY) > 164 Math.abs((edge.centerY + edge.normalY) - tile.centerY)) { 176 outputString += x + ":" + Math.floor(edge.startX) + "," + [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TextureGeneratorMagic.java | 34 import com.jme3.math.FastMath; 55 xyz[1] = -(float) Math.cos(xyz[0] - xyz[1] + xyz[2]) * turbulence; 61 xyz[0] = (float) Math.cos(xyz[0] - xyz[1] - xyz[2]) * turbulence; 67 xyz[2] = (float) Math.sin(-xyz[0] - xyz[1] - xyz[2]) * turbulence; 73 xyz[0] = -(float) Math.cos(-xyz[0] + xyz[1] - xyz[2]) * turbulence; 79 xyz[1] = -(float) Math.sin(-xyz[0] + xyz[1] + xyz[2]) * turbulence; 85 xyz[1] = -(float) Math.cos(-xyz[0] + xyz[1] + xyz[2]) * turbulence; 91 xyz[0] = (float) Math.cos(xyz[0] + xyz[1] + xyz[2]) * turbulence; 97 xyz[2] = (float) Math.sin(xyz[0] + xyz[1] - xyz[2]) * turbulence; 103 xyz[0] = -(float) Math.cos(-xyz[0] - xyz[1] + xyz[2]) * turbulence [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureStrokeWithPreviewPoints.java | 61 return (double)degree / 180.0d * Math.PI; 105 mDistanceFromLastSample += Math.hypot(x - mLastX, y - mLastY); 172 final double m1 = Math.atan2(mInterpolator.mSlope1Y, mInterpolator.mSlope1X); 173 final double m2 = Math.atan2(mInterpolator.mSlope2Y, mInterpolator.mSlope2X); 174 final double deltaAngle = Math.abs(angularDiff(m2, m1)); 175 final int segmentsByAngle = (int)Math.ceil( 177 final double deltaDistance = Math.hypot(mInterpolator.mP1X - mInterpolator.mP2X, 179 final int segmentsByDistance = (int)Math.ceil(deltaDistance 181 final int segments = Math.min(mPreviewParams.mMaxInterpolationSegments, 182 Math.max(segmentsByAngle, segmentsByDistance)) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TouchPaint.java | 330 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0); 331 mCurY = Math.max(Math.min(mCurY + deltaY, curH - 1), 0); 430 mPaint.setAlpha(Math.min((int)(pressure * 128), 255)); 436 mPaint.setAlpha(Math.min((int)(pressure * 128), 255)); 461 canvas.rotate((float) (orientation * 180 / Math.PI), x, y); 485 float nx = (float) (Math.sin(orientation) * Math.sin(tilt)); 486 float ny = (float) (- Math.cos(orientation) * Math.sin(tilt)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
EclipseControl.java | 93 float dist = (float) Math.sqrt(dx * dx + dy * dy); 140 float raddx = mDownRadiusY - Math.abs(mDownX - mDownCenterY); 141 oval.setRadiusY(Math.abs(x - oval.getCenterY() + sign * raddx)); 143 float raddy = mDownRadiusY - Math.abs(mDownY - mDownCenterY); 144 oval.setRadiusY(Math.abs(y - oval.getCenterY() + sign * raddy)); 151 float raddy = mDownRadiusX - Math.abs(mDownY - mDownCenterX); 152 oval.setRadiusX(Math.abs(y - oval.getCenterX() + sign * raddy)); 154 float raddx = mDownRadiusX - Math.abs(mDownX - mDownCenterX); 155 oval.setRadiusX(Math.abs(x - oval.getCenterX() - sign * raddx)); 162 float sin45 = (float) Math.sin(45) [all...] |
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
Coordinate.java | 79 minsDecMins = Double.parseDouble(form.format((Math.abs(decCoordinate) - Math.abs(deg)) * 60)); 142 str = su.padNumZero(Math.abs(deg), 2); 143 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; 151 str = su.padNumZero(Math.abs(deg), 3); 152 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; 191 if (Math.abs(decCoordinate) > 90.0) { 197 if (Math.abs(decCoordinate) > 180) {
|
/external/v8/test/mjsunit/ |
in.js | 109 o[Math.pow(2,30)-1] = 0; 110 o[Math.pow(2,31)-1] = 0; 115 assertFalse(Math.pow(2,30)-2 in o); 116 assertTrue(Math.pow(2,30)-1 in o); 117 assertFalse(Math.pow(2,30)-0 in o); 118 assertTrue(Math.pow(2,31)-1 in o); 134 a[Math.pow(2,30)-1] = 0; 135 a[Math.pow(2,31)-1] = 0; 140 assertFalse(Math.pow(2,30)-2 in a, "Math.pow(2,30)-2 in a") [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8-1.js | 24 ECMA Section: 15.8 The Math Object 28 The Math object is merely a single object that has some named properties, 31 The value of the internal [[Prototype]] property of the Math object is the 34 The Math object does not have a [[Construct]] property; it is not possible 35 to use the Math object as a constructor with the new operator. 37 The Math object does not have a [[Call]] property; it is not possible to 38 invoke the Math object as a function. 51 var TITLE = "The Math Object"; 62 "Math.__proto__ == Object.prototype", 64 Math.__proto__ == Object.prototype ) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Statements/ |
try-008.js | 39 if ( Math.floor(value) != value || isNaN(value) ) { 53 new Integer( Math.LN2, true );
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 139 this.year = Math.min(Math.abs(year), 9999); 215 this.hour = Math.min(Math.abs(hour), 23); 233 this.minute = Math.min(Math.abs(minute), 59); 251 this.second = Math.min(Math.abs(second), 59);
|
/frameworks/base/core/java/android/widget/ |
OverScroller.java | 228 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); 439 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 440 Math.signum(velocityY) == Math.signum(oldVelocityY)) { 526 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); 536 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && 537 Math.signum(yvel) == Math.signum(dy) [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
SnapshotGridView.java | 46 widthSize = Math.min( 47 Math.min(numCols, MAX_COLUMNS) * mColWidth,
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
OverScroller.java | 230 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); 441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 442 Math.signum(velocityY) == Math.signum(oldVelocityY)) { 528 final long startTime = Math.min(mScrollerX.mStartTime, mScrollerY.mStartTime); 538 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && 539 Math.signum(yvel) == Math.signum(dy) [all...] |
/dalvik/tests/002-sleep/src/ |
Main.java | 14 long offBy = Math.abs(elapsed - millis);
|
/development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/ |
LayoutTransChanging.java | 69 container.removeViewAt(Math.min(1, container.getChildCount() - 1)); 101 int red = (int)(Math.random() * 128 + 127); 102 int green = (int)(Math.random() * 128 + 127); 103 int blue = (int)(Math.random() * 128 + 127);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Misc/ |
Stats.cs | 37 using Math = System.Math; 75 return Math.Sqrt(s2); 88 return Math.Sqrt(s2);
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/Misc/ |
Stats.cs | 40 using Math = System.Math; 83 return Math.Sqrt( s2 ); 99 return Math.Sqrt( s2 );
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncCeiling.java | 45 return new XNumber(Math.ceil(m_arg0.execute(xctxt).num()));
|
FuncFloor.java | 45 return new XNumber(java.lang.Math.floor(m_arg0.execute(xctxt).num()));
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
ShaderUtils.java | 181 return (float) Math.pow(x, 1 / gamma);
185 return (float) Math.pow(x, Math.log(b) / Math.log(0.5));
197 value += Math.sin(2 * Math.PI * f * s) / f;
200 value += fade * Math.sin(2 * Math.PI * f * s) / f;
205 return (float) Math.sqrt(x * x + y * y + z * z);
217 float cax = (float) Math.cos(ax); [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Types/ |
8.4.js | 80 if ( n >= Math.pow(16, i) ){ 81 var t = Math.floor( n / Math.pow(16, i)); 82 n -= t * Math.pow(16, i);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Exceptions/ |
exception-001.js | 30 Math(); 37 "Math() [ exception is " + exception +" ]",
|
exception-002.js | 30 result = new Math(); 37 "new Math() [ exception is " + exception +" ]",
|