/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
Math.java | 3 public class Math {
|
/external/chromium_org/v8/test/mjsunit/ |
math-min-max.js | 30 // Test Math.min(). 32 assertEquals(Infinity, Math.min()); 33 assertEquals(1, Math.min(1)); 34 assertEquals(1, Math.min(1, 2)); 35 assertEquals(1, Math.min(2, 1)); 36 assertEquals(1, Math.min(1, 2, 3)); 37 assertEquals(1, Math.min(3, 2, 1)); 38 assertEquals(1, Math.min(2, 3, 1)); 39 assertEquals(1.1, Math.min(1.1, 2.2, 3.3)); 40 assertEquals(1.1, Math.min(3.3, 2.2, 1.1)) [all...] |
/dalvik/dx/src/com/android/dx/ssa/back/ |
InterferenceGraph.java | 55 ensureCapacity(Math.max(regV, regW) + 1);
|
/external/dexmaker/src/dx/java/com/android/dx/ssa/back/ |
InterferenceGraph.java | 65 ensureCapacity(Math.max(regV, regW) + 1);
|
/external/droiddriver/src/com/google/android/droiddriver/base/ |
DefaultPoller.java | 87 SystemClock.sleep(Math.min(intervalMillis, remainingMillis));
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelper.java | 52 int arrayIndex = (int) Math.round(arrayCopy.size() * 0.95 + .5) - 1; 84 squaredDiffs.add(Math.pow(difference, 2)); 114 return Math.sqrt(getVariance(collection)); 139 double magnitude = Math.sqrt(sumOfSquares);
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ |
api_implementation.js | 11 goog.provide('cvox.ApiImplementation.Math'); 102 case 'Math.defineRule': 103 method = cvox.ApiImplementation.Math.defineRule; break; 421 cvox.ApiImplementation.Math = function() {}; 424 * Defines a math speech rule. 427 * math rule it consists of a domain.style string. 432 cvox.ApiImplementation.Math.defineRule =
|
api.js | 12 goog.provide('cvox.Api.Math'); 527 * Exports the ChromeVox math API. 532 cvox.Api.Math = function() {}; 534 // TODO(dtseng, sorge): This need not be specific to math; once speech engine 540 * Defines a math speech rule. 543 * math rule it consists of a domain.style string. 548 cvox.Api.Math.defineRule = 556 implementation_.Math.defineRule.apply(implementation_.Math, args); 558 var msg = {'cmd': 'Math.defineRule', args: args} [all...] |
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
CSpinner.java | 210 setSelection(Math.max(m_value, m_minimum)); 218 setSelection(Math.min(m_value, m_maximum)); 235 newValue = Math.min(Math.max(m_minimum, newValue), m_maximum); 324 size.x = Math.min(size.x, wHint); 327 size.y = Math.min(size.y, hHint); 344 sSize.y = Math.min(sSize.y, Math.min(tSize.y, cRect.height)); 345 sSize.x = Math.min(sSize.x, cRect.width); 375 size.x = Math.min(size.x, wHint) [all...] |
CTableCombo.java | 391 select(Math.max(oldIndex - 1, 0)); 393 select(Math.min(oldIndex + 1, getItemCount() - 1)); 419 select(Math.max(index, 0)); 515 //int width = Math.max(comboSize.x, tableRect.width + 2); 527 Math.min( 554 height = Math.max(hHint, Math.max(textSize.y, arrowSize.y) + 2 * borderWidth); 555 width = Math.max(wHint, Math.max(textSize.x + arrowSize.x, tableWidth) + 2 * borderWidth);
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
PathAnimations.java | 55 return new Point(Math.round(v.getX()), Math.round(v.getY())); 253 mPoint.set(Math.round(value.x), Math.round(value.y));
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
metafunctions.cpp | 69 namespace Math {
|
/art/test/003-omnibus-opcodes/src/ |
IntMath.java | 162 * doesn't do the math for us. (x=70000, y=-3) 376 * doesn't do the math for us. (x=70000000000, y=-3) 557 * Test some java.lang.Math functions. 564 Main.assertTrue(Math.abs(ii) == ii); 565 Main.assertTrue(Math.abs(-ii) == ii); 566 Main.assertTrue(Math.min(ii, -5) == -5); 567 Main.assertTrue(Math.max(ii, -5) == ii); 569 Main.assertTrue(Math.abs(ll) == ll); 570 Main.assertTrue(Math.abs(-ll) == ll); 571 Main.assertTrue(Math.min(ll, -5L) == -5L) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioManagerTest.java | 390 assertEquals(Math.max(0, volume - volumeDelta), 403 assertEquals(Math.min(volume + volumeDelta, maxVolume), 443 assertEquals(Math.min(volumeDelta, maxMusicVolume), 451 assertEquals(Math.max(0, maxMusicVolume - volumeDelta),
|
/cts/tests/tests/widget/src/android/widget/cts/ |
VideoViewTest.java | 285 assertEquals(Math.min(desiredSize, specSize), resolvedSize); 304 assertTrue(Math.abs(mVideoView.getDuration() - TEST_VIDEO_DURATION) < DURATION_DELTA);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PresentationActivity.java | 436 drawable.setGradientRadius(Math.max(p.x, p.y) / 2); 465 ((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000, 466 ((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000 };
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/widget/accessibility/ |
AccessibilityTabModelListItem.java | 359 if (Math.abs(getTranslationX()) > mSwipeCommitDistance) { 428 setAlpha(1 - Math.abs(getTranslationX() / getWidth())); 435 if (Math.abs(getTranslationX()) < mFlingCommitDistance) return false; 437 double velocityMagnitude = Math.sqrt(velocityX * velocityX + velocityY * velocityY); 438 long closeTime = (long) Math.abs((getWidth() / velocityMagnitude)) * 440 runSwipeAnimation(Math.min(closeTime, mDefaultAnimationDurationMs)); 476 set.setDuration(Math.min(time, mDefaultAnimationDurationMs));
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DeviceSensors.java | 294 values[0] = Math.atan2(-R[1], R[4]); 295 values[1] = Math.asin(R[7]); // beta (-pi/2, pi/2) 296 values[2] = Math.atan2(-R[6], R[8]); // gamma (-pi/2, pi/2) 298 values[0] = Math.atan2(R[1], -R[4]); 299 values[1] = -Math.asin(R[7]); 300 values[1] += (values[1] >= 0) ? -Math.PI : Math.PI; // beta [-pi,-pi/2) U (pi/2,pi) 301 values[2] = Math.atan2(R[6], -R[8]); // gamma (-pi/2, pi/2) 304 values[0] = Math.atan2(-R[1], R[4]); 305 values[1] = Math.asin(R[7]); // beta [-pi/2, pi/2 [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
DeviceSensorsTest.java | 195 float alpha = (float) Math.PI / 4; 196 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; 199 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); 242 float alpha = (float) Math.PI / 4; 243 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; 246 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); 268 float[] gravity = {0, (float) Math.sin(Math.PI / 4), (float) Math.cos(Math.PI / 4)} [all...] |
/external/guava/guava-tests/test/com/google/common/math/ |
IntMathTest.java | 17 package com.google.common.math; 19 import static com.google.common.math.MathTesting.ALL_INTEGER_CANDIDATES; 20 import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES; 21 import static com.google.common.math.MathTesting.ALL_SAFE_ROUNDING_MODES; 22 import static com.google.common.math.MathTesting.EXPONENTS; 23 import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES; 24 import static com.google.common.math.MathTesting.NONZERO_INTEGER_CANDIDATES; 25 import static com.google.common.math.MathTesting.POSITIVE_INTEGER_CANDIDATES; 26 import static java.math.BigInteger.valueOf; 27 import static java.math.RoundingMode.FLOOR [all...] |
/external/lzma/Java/SevenZip/Compression/LZMA/ |
Decoder.java | 161 m_DictionarySizeCheck = Math.max(m_DictionarySize, 1);
162 m_OutWindow.Create(Math.max(m_DictionarySizeCheck, (1 << 12)));
|
/cts/tests/tests/view/src/android/view/cts/ |
MotionEventTest.java | 340 final float PI_180 = (float) (Math.PI / 180); 353 c.x = (float) (Math.sin(angle) * RADIUS + 3); 354 c.y = (float) (- Math.cos(angle) * RADIUS + 2); 387 assertEquals(Math.sin(angle) * RADIUS, c.x, 0.001); 388 assertEquals(- Math.cos(angle) * RADIUS, c.y, 0.001); 389 assertEquals(Math.tan(angle), Math.tan(c.orientation), 0.1); 407 .append(ev.getOrientation(i) * 180 / Math.PI).append(" deg\n");
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
InteractiveLineGraphView.java | 176 * The simple math function Y = fun(X) to draw on the chart. 181 return (float) Math.pow(x, 3) - x / 4; 248 mLabelHeight = (int) Math.abs(mLabelTextPaint.getFontMetrics().top); 282 Math.max(getSuggestedMinimumWidth(), 286 Math.max(getSuggestedMinimumHeight(), 362 mAxisXLinesBuffer[i * 4 + 0] = (float) Math.floor(mAxisXPositionsBuffer[i]); 364 mAxisXLinesBuffer[i * 4 + 2] = (float) Math.floor(mAxisXPositionsBuffer[i]); 371 mAxisYLinesBuffer[i * 4 + 1] = (float) Math.floor(mAxisYPositionsBuffer[i]); 373 mAxisYLinesBuffer[i * 4 + 3] = (float) Math.floor(mAxisYPositionsBuffer[i]); 411 final float d = (float) Math.ceil((float) Math.log10(num < 0 ? -num : num)) [all...] |
/external/chromium_org/v8/test/webkit/fast/js/ |
Object-getOwnPropertyNames.js | 92 "Math": "['E', 'LN10', 'LN2', 'LOG10E', 'LOG2E', 'PI', 'SQRT1_2', 'SQRT2', 'abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'cbrt', 'ceil', 'clz32', 'cos', 'cosh', 'exp', 'expm1', 'floor', 'fround', 'hypot', 'imul', 'log', 'log10', 'log1p', 'log2', 'max', 'min', 'pow', 'random', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc']", 130 "Math",
|
/external/chromium_org/third_party/libaddressinput/src/java/ |
android.jar | |