HomeSort by relevance Sort by last modified time
    Searched refs:Math (Results 401 - 425 of 4130) sorted by null

<<11121314151617181920>>

  /packages/apps/Launcher3/src/com/android/launcher3/
LogDecelerateInterpolator.java 19 return (float) -Math.pow(base, -t) + 1 + (drift * t);
  /packages/apps/Messaging/src/com/android/messaging/util/exif/
ByteBufferInputStream.java 44 len = Math.min(len, mBuf.remaining());
  /packages/apps/Settings/src/com/android/settings/display/
DensityPreference.java 54 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels);
77 final int newSwDp = Math.max(Integer.parseInt(getText()), 320);
78 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels);
80 final int densityDpi = Math.max(newDensity, 120);
  /packages/apps/TV/src/com/android/tv/recommendation/
RoutineWatchEvaluator.java 105 - (double) Math.max(diffMs - DIFF_MS_TOLERANCE_FOR_OLD_PROGRAM, 0)
142 maxMatchedWordSeqLen = Math.max(maxMatchedWordSeqLen, matchedWordSeqLen[j]);
148 maxMatchedWordSeqLen = Math.max(maxMatchedWordSeqLen, len);
176 Math.max(
178 Math.min(t1.endTimeOfDayInSec, t2.endTimeOfDayInSec)
179 - Math.max(t1.startTimeOfDayInSec, t2.startTimeOfDayInSec));
185 Math.max(
187 Math.min(t1.endTimeOfDayInSec, t2.endTimeOfDayInSec - 24 * 60 * 60)
248 Math.min(
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
RVCVXCheckAnalyzer.java 240 rms = Math.sqrt(calcSqrErr(vrecs, srecs2, 0)+ calcSqrErr(vrecs, srecs2, 1));
258 report.roll_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 0));
259 report.pitch_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 1));
260 report.yaw_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 2));
493 fovWidth = json.getDouble("fovW")*Math.PI/180.0;
494 fovHeight = json.getDouble("fovH")*Math.PI/180.0;
603 ret[1] = Math.sqrt(sumsq/srec.size() - ret[0]*ret[0]);
652 diff = Math.abs(((4*Math.PI + ra.get(i).yaw - rb.get(i).yaw)%(2*Math.PI)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
TouchPaint.java 363 mCurX = Math.max(Math.min(mCurX + deltaX, curW - 1), 0);
364 mCurY = Math.max(Math.min(mCurY + deltaY, curH - 1), 0);
463 mPaint.setAlpha(Math.min((int)(pressure * 128), 255));
469 mPaint.setAlpha(Math.min((int)(pressure * 128), 255));
494 canvas.rotate((float) (orientation * 180 / Math.PI), x, y);
518 float nx = (float) (Math.sin(orientation) * Math.sin(tilt));
519 float ny = (float) (- Math.cos(orientation) * Math.sin(tilt))
    [all...]
  /frameworks/base/location/java/android/location/
Location.java 236 int degrees = (int) Math.floor(coordinate);
242 int minutes = (int) Math.floor(coordinate);
339 lat1 *= Math.PI / 180.0;
340 lat2 *= Math.PI / 180.0;
341 lon1 *= Math.PI / 180.0;
342 lon2 *= Math.PI / 180.0;
351 double U1 = Math.atan((1.0 - f) * Math.tan(lat1));
352 double U2 = Math.atan((1.0 - f) * Math.tan(lat2))
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
LinearLayoutCompat.java 545 mWeightSum = Math.max(0.0f, weightSum);
643 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin);
671 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin +
675 largestChildHeight = Math.max(childHeight, largestChildHeight);
709 maxWidth = Math.max(maxWidth, measuredWidth);
719 weightedMaxWidth = Math.max(weightedMaxWidth,
722 alternativeMaxWidth = Math.max(alternativeMaxWidth,
754 mTotalLength = Math.max(totalLength, totalLength + largestChildHeight +
765 heightSize = Math.max(heightSize, getSuggestedMinimumHeight());
828 maxWidth = Math.max(maxWidth, measuredWidth)
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/graphics/
PathParser.java 63 int copyLength = Math.min(resultLength, originalLength - start);
624 double thetaD = Math.toRadians(theta);
626 double cosTheta = Math.cos(thetaD);
627 double sinTheta = Math.sin(thetaD);
649 float adjust = (float) (Math.sqrt(dsq) / 1.99999);
654 double s = Math.sqrt(disc);
667 double eta0 = Math.atan2((y0p - cy), (x0p - cx));
669 double eta1 = Math.atan2((y1p - cy), (x1p - cx));
674 sweep -= 2 * Math.PI;
676 sweep += 2 * Math.PI
    [all...]
  /packages/apps/PackageInstaller/src/android/support/wearable/view/
CircledImageView.java 221 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
240 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
260 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
270 mDrawable.setAlpha(Math.round(getAlpha() * 255));
323 width = (int) Math.min(desiredWidth, widthSize);
331 height = (int) Math.min(desiredHeight, heightSize);
351 final float scaleFactor = Math.min(1f,
352 Math.min(
360 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth);
361 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight)
    [all...]
  /build/make/tools/droiddoc/templates-pdk/assets/
carousel.js 30 var i = Math.floor(droidListLength*Math.random());
157 centeringPoint = Math.ceil(slidesAtOnce/2);
185 animation.origin = Math.abs(origin);
188 var motions = Math.abs(animation.goal - animation.origin);
190 var ease_right = function (t) { return (1 - Math.cos(t * Math.PI))/2.0; };
195 var left = (ease(current_frame/animation.frames) * Math.abs(animation.goal - animation.origin)) - cp;
200 div.style.left = '-' + Math.round(left) + 'px';
298 var originpoint = Math.abs(currentStripPosition)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
SwipeDetector.java 60 public static final float SCROLL_VELOCITY_DAMPENING_RC = 1000f / (2f * (float) Math.PI * 10);
90 return Math.abs(ev.getX(pointerIndex) - downPos.x);
103 return Math.abs(ev.getY(pointerIndex) - downPos.y);
197 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop)
198 > Math.abs(mDisplacement)) {
309 mListener.onDragEnd(mVelocity, Math.abs(mVelocity) > RELEASE_VELOCITY_PX_MS);
322 if (Math.abs(mVelocity) < 0.001f) {
347 float velocityDivisor = Math.max(2f, Math.abs(0.5f * velocity));
348 float travelDistance = Math.max(0.2f, progressNeeded)
    [all...]
  /libcore/ojluni/src/main/java/java/nio/file/attribute/
FileTime.java 152 // Math.addExact() variant
175 // Math.multiplyExact() variant
177 long ax = Math.abs(secs);
251 secs = Math.floorDiv(value, MILLIS_PER_SECOND);
252 nanos = (int)Math.floorMod(value, MILLIS_PER_SECOND)
256 secs = Math.floorDiv(value, MICROS_PER_SECOND);
257 nanos = (int)Math.floorMod(value, MICROS_PER_SECOND)
261 secs = Math.floorDiv(value, NANOS_PER_SECOND);
262 nanos = (int)Math.floorMod(value, NANOS_PER_SECOND);
426 long hi = Math.floorDiv(zeroSecs, SECONDS_PER_10000_YEARS) + 1
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/touch/
SwipeDetector.java 58 public static final float SCROLL_VELOCITY_DAMPENING_RC = 1000f / (2f * (float) Math.PI * 10);
88 return Math.abs(ev.getX(pointerIndex) - downPos.x);
101 return Math.abs(ev.getY(pointerIndex) - downPos.y);
203 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop)
204 > Math.abs(mDisplacement)) {
325 mListener.onDragEnd(mVelocity, Math.abs(mVelocity) > RELEASE_VELOCITY_PX_MS);
338 if (Math.abs(mVelocity) < 0.001f) {
363 float velocityDivisor = Math.max(2f, Math.abs(0.5f * velocity));
364 float travelDistance = Math.max(0.2f, progressNeeded)
    [all...]
  /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...]
  /libcore/ojluni/src/main/java/java/time/
Duration.java 79 import java.math.BigDecimal;
80 import java.math.BigInteger;
81 import java.math.RoundingMode;
173 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0);
188 return create(Math.multiplyExact(hours, SECONDS_PER_HOUR), 0);
203 return create(Math.multiplyExact(minutes, SECONDS_PER_MINUTE), 0);
239 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND));
240 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND);
416 return Math.multiplyExact(val, multiplier)
    [all...]
  /frameworks/base/core/java/android/widget/
StackView.java 225 mFramePadding = (int) Math.ceil(density * FRAME_PADDING);
249 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity));
269 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity));
567 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight());
570 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount);
657 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
786 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
857 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
859 duration = Math.round(mStackSlider.getDurationForOffscreenPosition())
    [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...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
TrivialPlayer.java 24 import java.lang.Math;
63 (short)(((Math.random() * 2.0) - 1.0) * (double)Short.MAX_VALUE/2.0);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
VectorDrawableSizeTest.java 71 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicWidth());
72 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight());
  /cts/tests/tests/location/src/android/location/cts/psedorange/
GpsMathOperations.java 34 normSqured = Math.pow(inputVector[i], 2) + normSqured;
37 return Math.sqrt(normSqured);
  /development/samples/CrossCompatibility/src/com/example/android/touchexample/
TouchExampleView.java 77 mScaleFactor = Math.max(0.1f, Math.min(mScaleFactor, 5.0f));
  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
CubeWallpaper2.java 261 float newy = (float)(Math.sin(xrot) * z + Math.cos(xrot) * y);
262 float newz = (float)(Math.cos(xrot) * z - Math.sin(xrot) * y);
265 float newx = (float)(Math.sin(yrot) * newz + Math.cos(yrot) * x);
266 newz = (float)(Math.cos(yrot) * newz - Math.sin(yrot) * x);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/
ParametricGaussianFunction.java 18 package org.apache.commons.math.optimization.fitting;
22 import org.apache.commons.math.exception.DimensionMismatchException;
23 import org.apache.commons.math.exception.util.LocalizedFormats;
24 import org.apache.commons.math.exception.ZeroException;
25 import org.apache.commons.math.exception.NullArgumentException;
26 import org.apache.commons.math.optimization.fitting.ParametricRealFunction;
90 return a + b * Math.exp(-xMc * xMc / (2.0 * (d * d)));
133 final double exp = Math.exp(-xMc * xMc / (2 * d2));
  /external/apache-http/src/org/apache/http/impl/io/
ContentLengthInputStream.java 211 long remaining = Math.min(n, this.contentLength - this.pos);
215 int l = read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining));

Completed in 2322 milliseconds

<<11121314151617181920>>