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

<<31323334353637383940>>

  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
ShadowGenerator.java 93 float minSide = Math.min(Math.min(bounds.left, bounds.right), bounds.top);
100 scale = Math.min(scale, (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom));
131 int centerX = Math.round(width / 2 + shadowBlur);
132 int centerY = Math.round(radius + shadowBlur + keyShadowDistance);
133 int center = Math.max(centerX, centerY);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
StackScrollAlgorithm.java 149 previousNotificationEnd = Math.max(drawStart, previousNotificationEnd);
150 previousNotificationStart = Math.max(drawStart, previousNotificationStart);
251 scrollY = Math.max(0, scrollY);
406 childViewState.yTranslation = Math.min(childViewState.yTranslation,
464 childState.yTranslation = Math.max(childState.yTranslation, mHeadsUpInset);
465 childState.height = Math.max(row.getIntrinsicHeight(), childState.height);
485 float newTranslation = Math.max(ambientState.getTopPadding()
487 childState.height = (int) Math.max(childState.height - (newTranslation
498 maxHeadsUpTranslation = Math.min(maxHeadsUpTranslation, maxShelfPosition);
500 newTranslation = Math.min(childState.yTranslation, bottomPosition)
    [all...]
StackStateAnimator.java 184 longerDurationFactor = (float) Math.pow(longerDurationFactor, 0.7f);
248 int difference = Math.abs(ownIndex - changingIndex);
249 difference = Math.max(0, Math.min(DELAY_EFFECT_MAX_INDEX_DIFFERENCE,
252 minDelay = Math.max(delay, minDelay);
276 int difference = Math.abs(ownIndex - nextIndex);
277 difference = Math.max(0, Math.min(DELAY_EFFECT_MAX_INDEX_DIFFERENCE,
280 minDelay = Math.max(delay, minDelay);
296 diff = (float) Math.pow(diff, 0.7f)
    [all...]
  /frameworks/support/wear/src/main/java/androidx/wear/widget/
CircledImageView.java 246 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
270 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha()));
280 mDrawable.setAlpha(Math.round(getAlpha() * 255));
334 width = (int) Math.min(desiredWidth, widthSize);
342 height = (int) Math.min(desiredHeight, heightSize);
375 Math.min(
377 Math.min(
388 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth);
389 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight);
394 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth)
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
AbstractChronology.java 521 yoe = Math.toIntExact(yoeLong);
554 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1);
555 long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1);
574 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1);
584 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1);
585 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1);
586 long days = Math.subtractExact(fieldValues.remove(ALIGNED_DAY_OF_WEEK_IN_MONTH), 1);
602 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1);
603 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1);
604 long dow = Math.subtractExact(fieldValues.remove(DAY_OF_WEEK), 1)
    [all...]
ChronoLocalDateTimeImpl.java 357 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY);
358 long newNoD = Math.floorMod(totNanos, NANOS_PER_DAY);
379 case NANOS: amount = Math.multiplyExact(amount, NANOS_PER_DAY); break;
380 case MICROS: amount = Math.multiplyExact(amount, MICROS_PER_DAY); break;
381 case MILLIS: amount = Math.multiplyExact(amount, MILLIS_PER_DAY); break;
382 case SECONDS: amount = Math.multiplyExact(amount, SECONDS_PER_DAY); break;
383 case MINUTES: amount = Math.multiplyExact(amount, MINUTES_PER_DAY); break;
384 case HOURS: amount = Math.multiplyExact(amount, HOURS_PER_DAY); break;
385 case HALF_DAYS: amount = Math.multiplyExact(amount, 2); break;
387 return Math.addExact(amount, time.until(end.toLocalTime(), unit))
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKZoneOffset.java 197 String str = (i < 0 ? "-" : "+") + Math.abs(i);
206 String str = (i < 0 ? "-" : "+") + Integer.toString(Math.abs(i) + 100).substring(1);
218 Integer.toString(Math.abs(i) + 100).substring(1) +
219 Integer.toString(Math.abs(j) + 100).substring(1);
237 Integer.toString(Math.abs(i) + 100).substring(1) + ":" +
238 Integer.toString(Math.abs(j) + 100).substring(1);
258 Integer.toString(Math.abs(i) + 100).substring(1) +
259 Integer.toString(Math.abs(j) + 100).substring(1) +
260 Integer.toString(Math.abs(k) + 100).substring(1);
281 Integer.toString(Math.abs(i) + 100).substring(1) + ":"
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
GCWrapper.java 400 width = Math.max(width, extent.x);
545 if (x1 == x2 && Math.abs(y1 - y2) < MIN_LENGTH) {
546 int delta = (MIN_LENGTH - Math.abs(y1 - y2)) / 2;
555 } else if (y1 == y2 && Math.abs(x1 - x2) < MIN_LENGTH) {
556 int delta = (MIN_LENGTH - Math.abs(x1 - x2)) / 2;
592 double angle = Math.atan2(dy, dx);
593 double lineLength = Math.sqrt(dy * dy + dx * dx);
602 int rx = (int) (Math.cos(angle) * (ax-x1) - Math.sin(angle) * (ay-y1) + x1);
603 int ry = (int) (Math.sin(angle) * (ax-x1) + Math.cos(angle) * (ay-y1) + y1)
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/
SensorManagerStaticTest.java 31 private static final float FLOAT_PI = (float) Math.PI;
83 float t2 = 44330.f*(1.0f- (float) Math.pow(p/p0, coef));
221 c = (float) Math.cos(xyzth[3]);
222 s = (float) Math.sin(xyzth[3]);
280 gm[4] = magStrength * (float) Math.cos(-incline); // positive means rotate downwards
281 gm[7] = magStrength * (float) Math.sin(-incline);
371 c = (float) Math.cos(xyzth[3]);
372 s = (float) Math.sin(xyzth[3]);
422 c = (float) Math.cos(halfTheta);
423 s = (float) Math.sin(halfTheta)
    [all...]
  /frameworks/support/percent/src/main/java/androidx/percentlayout/widget/
PercentLayoutHelper.java 470 params.width = Math.round(widthHint * widthPercent);
474 params.height = Math.round(heightHint * heightPercent);
479 params.width = Math.round(params.height * aspectRatio);
484 params.height = Math.round(params.width / aspectRatio);
526 params.leftMargin = Math.round(widthHint * leftMarginPercent);
529 params.topMargin = Math.round(heightHint * topMarginPercent);
532 params.rightMargin = Math.round(widthHint * rightMarginPercent);
535 params.bottomMargin = Math.round(heightHint * bottomMarginPercent);
540 Math.round(widthHint * startMarginPercent));
545 Math.round(widthHint * endMarginPercent))
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
PagedViewCellLayout.java 189 mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0);
190 mHeightGap = Math.min(mMaxGap,numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0);
230 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap);
237 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap);
260 int numRows = (int) Math.ceil((float) getPageChildCount() / getCellCountX());
294 int smallerSize = Math.min(mCellWidth, mCellHeight);
322 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap));
337 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap));
352 mCellCountX = Math.min(maxCellCountX, estimateCellHSpan(width));
353 mCellCountY = Math.min(maxCellCountY, estimateCellVSpan(height))
    [all...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoSource.java 171 int rawLongSide = Math.max(options.outWidth, options.outHeight);
172 int rawShortSide = Math.min(options.outWidth, options.outHeight);
176 float insideRatio = Math.max((float) longSide / (float) rawLongSide,
178 float outsideRatio = Math.max((float) longSide / (float) rawLongSide,
200 rawLongSide = Math.max(options.outWidth, options.outHeight);
201 rawShortSide = Math.max(options.outWidth, options.outHeight);
203 ratio = Math.max((float) longSide / (float) rawLongSide,
206 if (Math.abs(ratio - 1.0f) > 0.001) {
220 (float) Math.floor(image.getWidth() / 2f),
221 (float) Math.floor(image.getHeight() / 2f))
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
PagedView.java 886 final int xDist = Math.abs(mScroller.getFinalX() - mScroller.getCurrX());
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/widget/
MultiShrinkScroller.java 693 return 1.0f - Math.max(Math.min(1.0f, heightRatio), 0f);
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowLocationManager.java 446 double latDifference = Math.toRadians(location2.getLatitude() - location1.getLatitude());
447 double lonDifference = Math.toRadians(location2.getLongitude() - location1.getLongitude());
448 double a = Math.sin(latDifference/2) * Math.sin(latDifference/2) +
449 Math.cos(Math.toRadians(location1.getLatitude())) * Math.cos(Math.toRadians(location2.getLatitude())) *
450 Math.sin(lonDifference/2) * Math.sin(lonDifference/2)
    [all...]
  /frameworks/base/core/java/android/transition/
ChangeBounds.java 74 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
117 int right = Math.round(bottomRight.x);
118 int bottom = Math.round(bottomRight.y);
132 int left = Math.round(topLeft.x);
133 int top = Math.round(topLeft.y);
149 int left = Math.round(topLeft.x);
150 int top = Math.round(topLeft.y);
387 int maxWidth = Math.max(startWidth, endWidth);
388 int maxHeight = Math.max(startHeight, endHeight)
    [all...]
  /frameworks/support/transition/src/main/java/androidx/transition/
ChangeBounds.java 75 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
118 int right = Math.round(bottomRight.x);
119 int bottom = Math.round(bottomRight.y);
133 int left = Math.round(topLeft.x);
134 int top = Math.round(topLeft.y);
150 int left = Math.round(topLeft.x);
151 int top = Math.round(topLeft.y);
342 int maxWidth = Math.max(startWidth, endWidth);
343 int maxHeight = Math.max(startHeight, endHeight)
    [all...]
  /libcore/ojluni/src/main/java/java/time/temporal/
WeekFields.java     [all...]
  /cts/tests/sensor/src/android/hardware/cts/helpers/
SensorCtsHelper.java 63 int lowArrayIndex = Math.min(arrayCopy.size() - 1,
71 int highArrayIndex = Math.max(lowArrayIndex, (int)(arrayCopy.size() * highPercentile - 1));
103 squaredDiffs.add(Math.pow(difference, 2));
133 return Math.sqrt(getVariance(collection));
155 return Math.min(max.doubleValue(), Math.max(min.doubleValue(), val.doubleValue()));
166 double magnitude = Math.sqrt(sumOfSquares);
  /external/guava/guava/src/com/google/common/hash/
BloomFilter.java 180 return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
366 return Math.max(1, (int) Math.round((double) m / n * Math.log(2)));
383 return (long) (-n * Math.log(p) / (Math.log(2) * Math.log(2)));
  /external/replicaisland/src/com/replica/replicaisland/
AnimationComponent.java 219 } else if (Math.abs(velocityX) > 300.0f) {
230 final float wave = (float)Math.cos(pressedTime * (float)Math.PI * 2.0f);
240 if (Math.abs(velocityX) < 100.0f && velocityY > 10.0f) {
242 } else if (Math.abs(velocityX) > 300.0f) {
251 } else if (Math.abs(velocityX) > 300.0f) {
265 (float)(Math.random() * 0.5f) + 0.75f);
  /frameworks/base/packages/SystemUI/src/com/android/keyguard/
KeyguardSecurityViewFlipper.java 231 maxWidth = Math.max(0, maxWidth - wPadding);
232 maxHeight = Math.max(0, maxHeight - hPadding);
245 width = Math.max(width, Math.min(child.getMeasuredWidth(), widthSize - wPadding));
246 height = Math.max(height, Math.min(child.getMeasuredHeight(), heightSize - hPadding));
265 size = Math.min(maxSize, childDimen);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
WifiAwareMetrics.java 226 data.mMaxConcurrentAttaches = Math.max(data.mMaxConcurrentAttaches,
318 mMaxPublishInApp = Math.max(mMaxPublishInApp, numPublishesOnUid);
319 mMaxSubscribeInApp = Math.max(mMaxSubscribeInApp, numSubscribesOnUid);
320 mMaxDiscoveryInApp = Math.max(mMaxDiscoveryInApp,
322 mMaxPublishInSystem = Math.max(mMaxPublishInSystem, numPublishesInSystem);
323 mMaxSubscribeInSystem = Math.max(mMaxSubscribeInSystem, numSubscribesInSystem);
324 mMaxDiscoveryInSystem = Math.max(mMaxDiscoveryInSystem,
327 mMaxPublishWithRangingInApp = Math.max(mMaxPublishWithRangingInApp,
329 mMaxSubscribeWithRangingInApp = Math.max(mMaxSubscribeWithRangingInApp,
331 mMaxPublishWithRangingInSystem = Math.max(mMaxPublishWithRangingInSystem
    [all...]
  /frameworks/support/customview/src/main/java/androidx/customview/widget/
ViewDragHelper.java 619 final int absDx = Math.abs(dx);
620 final int absDy = Math.abs(dy);
621 final int absXVel = Math.abs(xvel);
622 final int absYVel = Math.abs(yvel);
644 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width);
649 velocity = Math.abs(velocity);
651 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
653 final float range = (float) Math.abs(delta) / motionRange
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/util/
IslamicCalendar.java 565 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0);
594 ms = (long)Math.ceil(29.5*realMonth)
595 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0);
    [all...]

Completed in 987 milliseconds

<<31323334353637383940>>