HomeSort by relevance Sort by last modified time
    Searched defs:Math (Results 26 - 50 of 71) sorted by null

12 3

  /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/smack/src/org/jivesoftware/smackx/filetransfer/
FileTransferNegotiator.java 362 buffer.append(Math.abs(randomGenerator.nextLong()));
  /frameworks/base/core/java/android/widget/
RatingBar.java 194 setProgress(Math.round(rating * getProgressPerStar()));
273 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio);
Spinner.java 485 setMeasuredDimension(Math.min(Math.max(measuredWidth,
724 int start = Math.max(0, getSelectedItemPosition());
725 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED);
727 start = Math.max(0, start - (MAX_ITEMS_MEASURED - count));
741 width = Math.max(width, itemView.getMeasuredWidth());
    [all...]
  /libcore/luni/src/main/java/java/lang/
AbstractStringBuilder.java 281 enlargeBuffer(Math.max(ourMin, min));
394 newCount = Math.max(count + size, value.length*2 + 2);
  /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/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/
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);
  /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)));
  /external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/
InBandBytestreamManager.java 469 buffer.append(Math.abs(randomGenerator.nextLong()));
  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
Socks5BytestreamManager.java 734 buffer.append(Math.abs(randomGenerator.nextLong()));
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
MenuPopupHelper.java 85 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2,
128 mPopup.setContentWidth(Math.min(measureContentWidth(mAdapter), mPopupMaxWidth));
192 width = Math.max(width, itemView.getMeasuredWidth());
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
TiledTexture.java 214 Math.min(CONTENT_SIZE, mWidth - x),
215 Math.min(CONTENT_SIZE, mHeight - y));
  /libcore/luni/src/test/java/libcore/sqlite/
OldDatabaseTest.java 568 double funcVal = Math.sin(input);
570 assertTrue(Math.round(funcVal) == Math.round(sinusVal));
629 assertSame(Math.round(Math.sin(input)), Math.round(Double.parseDouble(val)));
642 assertSame(Math.round(Math.sin(input)), Math.round(Double.parseDouble(val)));
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
KeyguardWidgetPager.java 495 return Math.min(1f, r);
545 v.setOverScrollAmount(Math.abs(scrollProgress), scrollProgress < 0);
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
SpinnerICS.java 281 setMeasuredDimension(Math.min(Math.max(measuredWidth,
493 int start = Math.max(0, getSelectedItemPosition());
494 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED);
496 start = Math.max(0, start - (MAX_ITEMS_MEASURED - count));
510 width = Math.max(width, itemView.getMeasuredWidth());
740 setContentWidth(Math.max(
  /libcore/luni/src/main/java/java/util/concurrent/
ConcurrentHashMap.java 783 this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1,
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
SuggestionStripLayoutHelper.java 193 final int width = Math.round(bounds.width() + 0.5f);
194 final int height = Math.round(bounds.height() + 0.5f);
379 wordView.setTextScaleX(Math.max(scaleX, MIN_TEXT_XSCALE));
424 final int count = Math.min(suggestedWords.size(), countInStrip);
444 final int countInStrip = Math.min(suggestedWords.size(), PUNCTUATIONS_IN_STRIP);
582 width += Math.round(widths[i] + 0.5f);
  /frameworks/base/services/java/com/android/server/wm/
WindowState.java 556 mContentFrame.set(Math.max(mContentFrame.left, mFrame.left),
557 Math.max(mContentFrame.top, mFrame.top),
558 Math.min(mContentFrame.right, mFrame.right),
559 Math.min(mContentFrame.bottom, mFrame.bottom));
561 mVisibleFrame.set(Math.max(mVisibleFrame.left, mFrame.left),
562 Math.max(mVisibleFrame.top, mFrame.top),
563 Math.min(mVisibleFrame.right, mFrame.right),
564 Math.min(mVisibleFrame.bottom, mFrame.bottom));
566 mOverscanInsets.set(Math.max(mOverscanFrame.left - mFrame.left, 0),
567 Math.max(mOverscanFrame.top - mFrame.top, 0)
    [all...]
  /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', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'exp', 'floor', 'log', 'max', 'min', 'pow', 'random', 'round', 'sin', 'sqrt', 'tan']",
130 "Math",
  /frameworks/base/core/java/com/android/internal/widget/
LockPatternUtils.java 635 setLong(PASSWORD_TYPE_KEY, Math.max(quality, computedQuality), userHandle);
659 dpm.setActivePasswordState(Math.max(quality, computedQuality),
672 setLong(PASSWORD_TYPE_ALTERNATE_KEY, Math.max(quality, computedQuality),
693 passwordHistory = passwordHistory.substring(0, Math.min(hash.length
    [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
TiledImageRenderer.java 204 mLevelCount = Math.max(0, Utils.ceilLog2(
208 int maxDim = Math.max(mImageWidth, mImageHeight);
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale);
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale);
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale);
285 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale);
288 fromLevel = Math.max(0, Math.min(fromLevel, mLevelCount - 2));
289 endLevel = Math.min(fromLevel + 2, mLevelCount);
362 double radians = Math.toRadians(-rotation)
    [all...]
  /frameworks/base/services/java/com/android/server/power/
DisplayPowerController.java 375 int screenBrightnessMinimum = Math.min(resources.getInteger(
415 mProximityThreshold = Math.min(mProximitySensor.getMaximumRange(),
659 target = Math.min(target - SCREEN_DIM_MINIMUM_REDUCTION,
    [all...]

Completed in 2235 milliseconds

12 3