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

<<21222324252627282930>>

  /packages/apps/Launcher3/src/com/android/launcher3/
Utilities.java 173 coord[0] = Math.round(sPoint[0]);
174 coord[1] = Math.round(sPoint[1]);
196 coord[0] = Math.round(sPoint[0]);
197 coord[1] = Math.round(sPoint[1]);
255 r.left = Math.min(r.right, r.left + insets.left);
256 r.top = Math.min(r.bottom, r.top + insets.top);
257 r.right = Math.max(r.left, r.right - insets.right);
258 r.bottom = Math.max(r.top, r.bottom - insets.bottom);
262 float scale = Math.min(Math.min(scaleX, scaleY), 1.0f)
    [all...]
  /frameworks/base/core/java/android/widget/
LinearLayout.java 698 mWeightSum = Math.max(0.0f, weightSum);
808 mTotalLength = Math.max(totalLength, totalLength + lp.topMargin + lp.bottomMargin);
838 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin +
842 largestChildHeight = Math.max(childHeight, largestChildHeight);
876 maxWidth = Math.max(maxWidth, measuredWidth)
    [all...]
  /frameworks/layoutlib/bridge/src/android/util/
PathParser_Delegate.java 705 double thetaD = theta * Math.PI / 180.0f;
707 double cosTheta = Math.cos(thetaD);
708 double sinTheta = Math.sin(thetaD);
731 float adjust = (float) (Math.sqrt(dsq) / 1.99999);
736 double s = Math.sqrt(disc);
749 double eta0 = Math.atan2((y0p - cy), (x0p - cx));
750 LOGGER.log(Level.FINE, "eta0 = Math.atan2( " + (y0p - cy) + " , "
751 + (x0p - cx) + ") = " + Math.toDegrees(eta0));
753 double eta1 = Math.atan2((y1p - cy), (x1p - cx));
754 LOGGER.log(Level.FINE, "eta1 = Math.atan2( " + (y1p - cy) + " ,
    [all...]
  /packages/apps/ExactCalculator/src/com/android/calculator2/
CalculatorResult.java 236 final float deltaX = Math.abs(x - mInitialDownX);
237 final float deltaY = Math.abs(y - mInitialDownY);
274 maxWidth = Math.max(x, maxWidth);
316 final float minusExtraWidth = Math.max(minusWidth - newCharWidth, 0.0f);
318 final float ellipsisExtraWidth = Math.max(ellipsisWidth - newCharWidth, 0.0f);
320 final float expExtraWidth = Math.max(expWidth - newCharWidth, 0.0f);
323 final float extraWidth = Math.max(type1Extra, type2Extra);
324 final int intExtraWidth = (int) Math.ceil(extraWidth) + 1 /* to cover rounding sins */;
332 float noExponentCredit = extraWidth - Math.max(ellipsisExtraWidth, minusExtraWidth);
334 final float decimalCredit = Math.max(newCharWidth - decimalSeparatorWidth, 0.0f)
    [all...]
  /libcore/luni/src/main/java/java/math/
Logical.java 18 package java.math;
113 int resLength = Math.min(val.numberLength, that.numberLength);
114 int i = Math.max(val.getFirstNonzeroDigit(), that.getFirstNonzeroDigit());
143 int i = Math.max(iPos, iNeg);
148 int limit = Math.min(negative.numberLength, positive.numberLength);
177 int i = Math.max(iShorter, iLonger);
254 int limit = Math.min(val.numberLength, that.numberLength);
276 int resLength = Math.min(positive.numberLength, negative.numberLength);
312 resLength = Math.max(negative.numberLength, positive.numberLength);
316 limit = Math.min(negative.numberLength, iPos)
    [all...]
  /art/test/1919-vminit-thread-start-timing/src/art/
Test1919.java 44 Event[] es = new Event[Math.min(ns.length, ts.length)];
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
Correlation.java 71 rms = Math.sqrt(rms/mDataAutocorrelated.length);
84 mEstimatedLatencyConfidence = Math.max(Math.min(raw, 1.0),0.0);
126 double value = Math.abs(data[i]);
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
GestureUtils.java 114 return (float) Math.hypot(a.x - b.x, a.y - b.y);
138 return (float) Math.hypot(p.x, p.y);
142 return new PointF((float) Math.ceil(p.x), (float) Math.ceil(p.y));
  /dalvik/dx/src/com/android/dex/
EncodedValue.java 46 int size = Math.min(data.length, other.data.length);
  /developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
WelcomeActivity.java 25 import static java.lang.Math.toIntExact;
  /developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DefaultCardStreamAnimator.java 79 float deltaXAbs = Math.abs(deltaX);
82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
103 float deltaXAbs = Math.abs(deltaX);
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
  /developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /developers/samples/android/common/src/java/com/example/android/common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
WelcomeActivity.java 25 import static java.lang.Math.toIntExact;
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
SensorTest.java 89 diff[i] = Math.round(mScale[i] * (event.values[i] - mPrev[i]) * 0.45f);
90 if (Math.abs(diff[i]) > 0) {
111 boolean gestX = Math.abs(x) > 3;
112 boolean gestY = Math.abs(y) > 3;
  /development/samples/ApiDemos/src/com/example/android/apis/view/
GameView.java 280 if (Math.abs(value) > flat) {
447 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
450 float velocityX = (float) Math.cos(direction) * speed;
451 float velocityY = (float) Math.sin(direction) * speed;
486 return (float) Math.hypot(x, y);
534 && distanceTo(other) <= Math.max(mSize, other.mSize)
535 + Math.min(mSize, other.mSize) * 0.5f;
590 private static final float CORNER_ANGLE = (float) Math.PI * 2 / 3;
591 private static final float TO_DEGREES = (float) (180.0 / Math.PI);
611 mPath.lineTo((float)Math.cos(-CORNER_ANGLE) * mSize
    [all...]
  /development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DefaultCardStreamAnimator.java 79 float deltaXAbs = Math.abs(deltaX);
82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
103 float deltaXAbs = Math.abs(deltaX);
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
  /development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
Cheeses.java 178 count = Math.min(count, CHEESES.length);
  /external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
LimitedInputStream.java 66 int maxRead = (int) Math.min(len, numToRead);
  /external/autotest/frontend/client/src/autotest/common/table/
MultipleListFilter.java 41 int visibleSize = Math.min(select.getItemCount(), maxVisibleSize);
  /external/brotli/js/
polyfill.js 23 var count = Math.min(Math.min(end | 0, len) - from, len - to);

Completed in 657 milliseconds

<<21222324252627282930>>