HomeSort by relevance Sort by last modified time
    Searched defs:Math (Results 51 - 75 of 86) sorted by null

1 23 4

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
SuggestionStripLayoutHelper.java 192 final int width = Math.round(bounds.width() + 0.5f);
193 final int height = Math.round(bounds.height() + 0.5f);
448 wordView.setTextScaleX(Math.max(scaleX, MIN_TEXT_XSCALE));
527 final int countInStrip = Math.min(punctuationSuggestions.size(), PUNCTUATIONS_IN_STRIP);
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
WindowState.java 603 mContentFrame.set(Math.max(mContentFrame.left, mFrame.left),
604 Math.max(mContentFrame.top, mFrame.top),
605 Math.min(mContentFrame.right, mFrame.right),
606 Math.min(mContentFrame.bottom, mFrame.bottom));
608 mVisibleFrame.set(Math.max(mVisibleFrame.left, mFrame.left),
609 Math.max(mVisibleFrame.top, mFrame.top),
610 Math.min(mVisibleFrame.right, mFrame.right),
611 Math.min(mVisibleFrame.bottom, mFrame.bottom));
613 mStableFrame.set(Math.max(mStableFrame.left, mFrame.left),
614 Math.max(mStableFrame.top, mFrame.top)
    [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', '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",
  /frameworks/base/core/java/android/app/
ActivityTransitionCoordinator.java 482 view.setRight(Math.round(width));
483 view.setBottom(Math.round(height));
494 int x = Math.round(left);
495 int y = Math.round(top);
496 int width = Math.round(right) - x;
497 int height = Math.round(bottom) - y;
    [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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
GLES11Canvas.java 580 return Math.abs(matrix[MSKEW_X]) > eps
581 || Math.abs(matrix[MSKEW_Y]) > eps
659 Math.round(((color >> 16) & 0xFF) * prealpha),
660 Math.round(((color >> 8) & 0xFF) * prealpha),
661 Math.round((color & 0xFF) * prealpha),
662 Math.round(255 * prealpha));
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
TileImageView.java 225 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale);
226 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale);
231 mOffsetX = Math.round(width / 2f - centerX * scale);
232 mOffsetY = Math.round(height / 2f - centerY * scale);
235 fromLevel = Math.max(0, Math.min(fromLevel, mLevelCount - 2));
236 endLevel = Math.min(fromLevel + 2, mLevelCount);
305 double radians = Math.toRadians(-rotation);
309 double cos = Math.cos(radians);
310 double sin = Math.sin(radians)
    [all...]
  /packages/apps/Gallery2/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...]
  /packages/apps/Launcher3/WallpaperPicker/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...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
Key.java 247 mX = Math.round(keyXPos + horizontalGap / 2);
249 mWidth = Math.round(keyWidth - horizontalGap);
250 mHitBox.set(Math.round(keyXPos), keyYPos, Math.round(keyXPos + keyWidth) + 1,
259 final int visualInsetsLeft = Math.round(keyAttr.getFraction(
261 final int visualInsetsRight = Math.round(keyAttr.getFraction(
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
PagedView.java 547 validatedPage = Math.max(mTempVisiblePagesRange[0],
548 Math.min(newPage, mTempVisiblePagesRange[1]));
551 validatedPage = Math.max(0, Math.min(validatedPage, getPageCount() - 1));
657 x = Math.min(x, mFreeScrollMaxScrollX);
658 x = Math.max(x, mFreeScrollMinScrollX);
827 int maxSize = Math.max(dm.widthPixels + mInsets.left + mInsets.right,
    [all...]
  /frameworks/base/core/java/android/view/
MotionEvent.java     [all...]
  /frameworks/base/core/java/com/android/internal/widget/
LockPatternUtils.java 736 if (categoryCurrent != category || Math.abs(currentDiff) > maxDiffCategory(category)) {
737 maxLength = Math.max(maxLength, current - startSequence);
744 maxLength = Math.max(maxLength, current - startSequence);
752 maxLength = Math.max(maxLength, string.length() - startSequence);
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
ForkJoinPool.java     [all...]
  /frameworks/base/media/java/android/media/
MediaCodecInfo.java 824 * {@code Math.min(getSupportedWidths().getUpper(),
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
PagedView.java 351 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
455 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
551 maxChildHeight = Math.max(maxChildHeight, child.getMeasuredHeight());
578 int spacing = Math.max(offset, widthSize - offset -
695 float alpha = 1 - Math.abs(scrollProgress);
807 range[0] = Math.min(leftScreen, rightScreen);
808 range[1] = Math.max(leftScreen, rightScreen);
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
PagedView.java 461 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
597 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
639 int maxSize = Math.max(dm.widthPixels, dm.heightPixels);
722 int spacing = Math.max(offset, widthSize - offset -
    [all...]
  /frameworks/base/core/java/android/widget/
TextView.java     [all...]
  /external/chromium_org/third_party/libaddressinput/src/java/
android.jar 
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 

Completed in 3541 milliseconds

1 23 4