/external/chromium_org/v8/test/webkit/ |
D | dfg-sqrt-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a function that appears like Math.sqrt could potentially use value in… 29 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 30 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 31 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 32 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 33 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 34 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 35 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 36 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) 37 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5) [all …]
|
D | dfg-max-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a function that appears like Math.max could potentially use value in … 29 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 30 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 31 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 32 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 33 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 34 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 35 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 36 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) 37 PASS foo(Math.max, [1.5], 0) is Math.max(1.5, 2.5) [all …]
|
D | dfg-min-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a function that appears like Math.min could potentially use value in … 29 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 30 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 31 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 32 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 33 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 34 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 35 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 36 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) 37 PASS foo(Math.min, [1.5], 0) is Math.min(1.5, 2.5) [all …]
|
D | dfg-abs-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a function that appears like Math.abs could potentially use value in … 29 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 30 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 31 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 32 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 33 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 34 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 35 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 36 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) 37 PASS foo(Math.abs, [1.5], 0) is Math.abs(1.5) [all …]
|
D | math-expected.txt | 24 This test checks the behavior of the Math object as described in 15.8 of the language specification. 29 PASS Math.abs(NaN) is NaN 30 PASS Math.abs(0) is 0 31 PASS Math.abs(-0) is 0 32 PASS Math.abs(1) is 1 33 PASS Math.abs(-1) is 1 34 PASS Math.abs(Number.MIN_VALUE) is Number.MIN_VALUE 35 PASS Math.abs(-Number.MIN_VALUE) is Number.MIN_VALUE 36 PASS Math.abs(Number.MAX_VALUE) is Number.MAX_VALUE 37 PASS Math.abs(-Number.MAX_VALUE) is Number.MAX_VALUE [all …]
|
D | dfg-proven-sqrt-backwards-propagation-expected.txt | 24 Tests that the DFG knows that a Math.sqrt could potentially use value in arbitrary ways, and not ju… 29 PASS foo(array, 0) is Math.sqrt(1.5) 30 PASS foo(array, 0) is Math.sqrt(1.5) 31 PASS foo(array, 0) is Math.sqrt(1.5) 32 PASS foo(array, 0) is Math.sqrt(1.5) 33 PASS foo(array, 0) is Math.sqrt(1.5) 34 PASS foo(array, 0) is Math.sqrt(1.5) 35 PASS foo(array, 0) is Math.sqrt(1.5) 36 PASS foo(array, 0) is Math.sqrt(1.5) 37 PASS foo(array, 0) is Math.sqrt(1.5) [all …]
|
D | dfg-intrinsic-osr-exit-expected.txt | 29 PASS foo([Math.abs], {f:5}) is 5 30 PASS foo([Math.abs], {f:5.5}) is 5.5 31 PASS foo([Math.abs], {f:5.5}) is 5.5 32 PASS foo([Math.abs], {f:5.5}) is 5.5 33 PASS foo([Math.abs], {f:5.5}) is 5.5 34 PASS foo([Math.abs], {f:5.5}) is 5.5 35 PASS foo([Math.abs], {f:5.5}) is 5.5 36 PASS foo([Math.abs], {f:5.5}) is 5.5 37 PASS foo([Math.abs], {f:5.5}) is 5.5 38 PASS foo([Math.abs], {f:5.5}) is 5.5 [all …]
|
D | parseInt-expected.txt | 48 PASS parseInt(Math.pow(10, 20)) is 100000000000000000000 49 PASS parseInt(Math.pow(10, 21)) is 1 50 PASS parseInt(Math.pow(10, -6)) is 0 51 PASS parseInt(Math.pow(10, -7)) is 1 52 PASS parseInt(-Math.pow(10, 20)) is -100000000000000000000 53 PASS parseInt(-Math.pow(10, 21)) is -1 54 PASS parseInt(-Math.pow(10, -6)) is -0 55 PASS parseInt(-Math.pow(10, -7)) is -1
|
/external/chromium_org/v8/test/webkit/fast/js/kde/ |
D | math-expected.txt | 31 PASS String()+Math.E is '2.718281828459045' 32 PASS String()+Math.LN2 is '0.6931471805599453' 33 PASS String()+Math.LN10 is '2.302585092994046' 34 PASS String()+Math.LOG2E is '1.4426950408889634' 35 PASS String()+Math.LOG10E is '0.4342944819032518' 36 PASS String()+Math.PI is '3.141592653589793' 37 PASS String()+Math.SQRT1_2 is '0.7071067811865476' 38 PASS String()+Math.SQRT2 is '1.4142135623730951' 42 PASS Math.abs(-5) is 5 43 PASS Math.acos(0) is Math.PI/2 [all …]
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/ |
D | UNCOVERED | 63 Math.E 64 Math.LN2 65 Math.LN10 66 Math.LOG2E 67 Math.LOG10E 68 Math.SQRT1_2 69 Math.SQRT2 70 Math.acos 71 Math.asin 72 Math.atan [all …]
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
D | DeviceSensorsTest.java | 195 float alpha = (float) Math.PI / 4; in testSensorChangedgotOrientation() 196 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; in testSensorChangedgotOrientation() 199 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); in testSensorChangedgotOrientation() 242 float alpha = (float) Math.PI / 4; in testSensorChangedgotOrientationAndAcceleration() 243 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; in testSensorChangedgotOrientationAndAcceleration() 246 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); in testSensorChangedgotOrientationAndAcceleration() 268 float[] gravity = {0, (float) Math.sin(Math.PI / 4), (float) Math.cos(Math.PI / 4)}; in testOrientationAnglesFromRotationMatrix45DegreesX() 270 double[] expectedAngles = {0, Math.PI / 4, 0}; in testOrientationAnglesFromRotationMatrix45DegreesX() 277 float[] gravity = {-(float) Math.sin(Math.PI / 4), 0, (float) Math.cos(Math.PI / 4)}; in testOrientationAnglesFromRotationMatrix45DegreesY() 279 double[] expectedAngles = {0, 0, Math.PI / 4}; in testOrientationAnglesFromRotationMatrix45DegreesY() [all …]
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | DeviceSensors.java | 294 values[0] = Math.atan2(-R[1], R[4]); in computeDeviceOrientationFromRotationMatrix() 295 values[1] = Math.asin(R[7]); // beta (-pi/2, pi/2) in computeDeviceOrientationFromRotationMatrix() 296 values[2] = Math.atan2(-R[6], R[8]); // gamma (-pi/2, pi/2) in computeDeviceOrientationFromRotationMatrix() 298 values[0] = Math.atan2(R[1], -R[4]); in computeDeviceOrientationFromRotationMatrix() 299 values[1] = -Math.asin(R[7]); in computeDeviceOrientationFromRotationMatrix() 300 values[1] += (values[1] >= 0) ? -Math.PI : Math.PI; // beta [-pi,-pi/2) U (pi/2,pi) in computeDeviceOrientationFromRotationMatrix() 301 values[2] = Math.atan2(R[6], -R[8]); // gamma (-pi/2, pi/2) in computeDeviceOrientationFromRotationMatrix() 304 values[0] = Math.atan2(-R[1], R[4]); in computeDeviceOrientationFromRotationMatrix() 305 values[1] = Math.asin(R[7]); // beta [-pi/2, pi/2] in computeDeviceOrientationFromRotationMatrix() 306 values[2] = -Math.PI / 2; // gamma = -pi/2 in computeDeviceOrientationFromRotationMatrix() [all …]
|
D | RenderCoordinates.java | 167 public int getScrollXPixInt() { return (int) Math.floor(getScrollXPix()); } in getScrollXPixInt() 172 public int getScrollYPixInt() { return (int) Math.floor(getScrollYPix()); } in getScrollYPixInt() 197 public int getContentWidthPixInt() { return (int) Math.ceil(getContentWidthPix()); } in getContentWidthPixInt() 202 public int getContentHeightPixInt() { return (int) Math.ceil(getContentHeightPix()); } in getContentHeightPixInt() 232 return (int) Math.ceil(getLastFrameViewportWidthPix()); in getLastFrameViewportWidthPixInt() 239 return (int) Math.ceil(getLastFrameViewportHeightPix()); in getLastFrameViewportHeightPixInt() 287 return (int) Math.floor(getMaxHorizontalScrollPix()); in getMaxHorizontalScrollPixInt() 294 return (int) Math.floor(getMaxVerticalScrollPix()); in getMaxVerticalScrollPixInt()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowLocation.java | 250 lat1 *= Math.PI / 180.0; in computeDistanceAndBearing() 251 lat2 *= Math.PI / 180.0; in computeDistanceAndBearing() 252 lon1 *= Math.PI / 180.0; in computeDistanceAndBearing() 253 lon2 *= Math.PI / 180.0; in computeDistanceAndBearing() 262 double U1 = Math.atan((1.0 - f) * Math.tan(lat1)); in computeDistanceAndBearing() 263 double U2 = Math.atan((1.0 - f) * Math.tan(lat2)); in computeDistanceAndBearing() 265 double cosU1 = Math.cos(U1); in computeDistanceAndBearing() 266 double cosU2 = Math.cos(U2); in computeDistanceAndBearing() 267 double sinU1 = Math.sin(U1); in computeDistanceAndBearing() 268 double sinU2 = Math.sin(U2); in computeDistanceAndBearing() [all …]
|
D | ShadowFloatMath.java | 28 return (float) Math.floor(value); in floor() 33 return (float) Math.ceil(value); in ceil() 38 return (float) Math.sin(angle); in sin() 43 return (float) Math.cos(angle); in cos() 48 return (float) Math.sqrt(value); in sqrt()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
D | CSpinner.java | 210 setSelection(Math.max(m_value, m_minimum)); in setMinimum() 218 setSelection(Math.min(m_value, m_maximum)); in setMaximum() 235 newValue = Math.min(Math.max(m_minimum, newValue), m_maximum); in setSelection() 324 size.x = Math.min(size.x, wHint); in computeSize() 327 size.y = Math.min(size.y, hHint); in computeSize() 344 sSize.y = Math.min(sSize.y, Math.min(tSize.y, cRect.height)); in layout() 345 sSize.x = Math.min(sSize.x, cRect.width); in layout() 375 size.x = Math.min(size.x, wHint); in computeSize() 378 size.y = Math.min(size.y, hHint); in computeSize() 395 sSize.y = Math.min(sSize.y, Math.min(tSize.y, cRect.height)); in layout() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPDateTimeImpl.java | 139 this.year = Math.min(Math.abs(year), 9999); in setYear() 215 this.hour = Math.min(Math.abs(hour), 23); in setHour() 233 this.minute = Math.min(Math.abs(minute), 59); in setMinute() 251 this.second = Math.min(Math.abs(second), 59); in setSecond()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicDoubleTest.java | 28 -Math.PI, 35 Math.PI, 100 double prev = Math.E; in testCompareAndSet() 101 double unused = Math.E + Math.PI; in testCompareAndSet() 137 double prev = Math.E; in testWeakCompareAndSet() 138 double unused = Math.E + Math.PI; in testWeakCompareAndSet() 156 double prev = Math.E; in testGetAndSet()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | CameraSystem.java | 105 mShakeOffsetY = (float) (Math.sin(mShakeTime * SHAKE_FREQUENCY) * mShakeMagnitude); in update() 136 if (Math.abs(xDelta) > X_FOLLOW_DISTANCE) { in update() 154 mFocalPosition.x = (float) Math.floor(mCurrentCameraPosition.x); in update() 157 mFocalPosition.y = (float) Math.floor(mCurrentCameraPosition.y + mShakeOffsetY); in update() 175 if (Math.abs(mFocalPosition.x - point.x) < (width + radius)) { in pointVisible() 176 if (Math.abs(mFocalPosition.y - point.y) < (height + radius)) { in pointVisible() 193 final float worldPixelWidth = Math.max(level.getLevelWidth(), width); in snapFocalPointToWorldBoundsX() 217 …final float worldPixelHeight = Math.max(level.getLevelHeight(), sSystemRegistry.contextParameters.… in snapFocalPointToWorldBoundsY()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheStats.java | 214 Math.max(0, hitCount - other.hitCount), in minus() 215 Math.max(0, missCount - other.missCount), in minus() 216 Math.max(0, loadSuccessCount - other.loadSuccessCount), in minus() 217 Math.max(0, loadExceptionCount - other.loadExceptionCount), in minus() 218 Math.max(0, totalLoadTime - other.totalLoadTime), in minus() 219 Math.max(0, evictionCount - other.evictionCount)); in minus()
|
/external/guava/guava/src/com/google/common/hash/ |
D | BloomFilter.java | 107 return Math.pow( in computeExpectedFalsePositiveRate() 108 1 - Math.exp(-numHashFunctions * ((double) insertions / (bits.size()))), in computeExpectedFalsePositiveRate() 183 private static final double LN2 = Math.log(2); 196 return Math.max(1, (int) Math.round(m / n * LN2)); in optimalNumOfHashFunctions() 209 return (int) (-n * Math.log(p) / LN2_SQUARED); in optimalNumOfBits()
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
D | UiUtils.java | 101 final float bottomMarginDp = Math.abs(rootView.getHeight() - appRect.height()) / density; in isKeyboardShowing() 170 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 171 newWidth = (int) Math.round(originalWidth * scale); in generateScaledScreenshot() 172 newHeight = (int) Math.round(originalHeight * scale); in generateScaledScreenshot() 189 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 190 newWidth = (int) Math.round(originalWidth * scale); in generateScaledScreenshot() 191 newHeight = (int) Math.round(originalHeight * scale); in generateScaledScreenshot()
|
D | ColorPickerAdvanced.java | 221 int saturationValue = Math.round(mCurrentHsvValues[1] * 100.0f); in refreshGradientComponents() 222 saturationValue = Math.min(saturationValue, SATURATION_SEEK_BAR_MAX); in refreshGradientComponents() 223 saturationValue = Math.max(saturationValue, 0); in refreshGradientComponents() 226 int valueValue = Math.round(mCurrentHsvValues[2] * 100.0f); in refreshGradientComponents() 227 valueValue = Math.min(valueValue, VALUE_SEEK_BAR_MAX); in refreshGradientComponents() 228 valueValue = Math.max(valueValue, 0); in refreshGradientComponents()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
D | Interval.java | 111 return Interval.create(Math.min(a,other.a), Math.max(b,other.b)); in union() 116 return Interval.create(Math.max(a,other.a), Math.min(b,other.b)); in intersection() 128 diff = Interval.create(Math.max(this.a,other.b+1), in differenceNotProperlyContained()
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 60 return (x >= 0.0) ? x : Math.floor(x); in roundIntermediate() 63 return (x >= 0.0) ? Math.ceil(x) : x; in roundIntermediate() 69 return (x >= 0.0) ? Math.ceil(x) : Math.floor(x); in roundIntermediate() 72 return Math.rint(x); in roundIntermediate() 196 return Math.log(x) / LN_2; // surprisingly within 1 ulp according to tests in log2() 199 private static final double LN_2 = Math.log(2);
|