HomeSort by relevance Sort by last modified time
    Searched refs:Math (Results 451 - 475 of 2489) sorted by null

<<11121314151617181920>>

  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetUtils.java 63 scale = Math.max((float) sStackPhotoWidth / w,
66 scale = Math.max((float) sStackPhotoWidth / h,
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
ProgressSpinner.java 41 mWidth = Math.max(mOuter.getWidth(), mInner.getWidth());
42 mHeight = Math.max(mOuter.getHeight(), mInner.getHeight());
  /packages/apps/Launcher3/src/com/android/launcher3/
CropView.java 78 imageDims[0] = Math.abs(imageDims[0]);
79 imageDims[1] = Math.abs(imageDims[1]);
167 mMinScale = Math.max(w / imageWidth, h / imageHeight);
168 mRenderer.scale = Math.max(mMinScale, mRenderer.scale);
183 mRenderer.scale = Math.max(mMinScale, mRenderer.scale);
205 mCenterX += Math.ceil(edges.left / scale);
210 mRenderer.centerX = Math.round(mCenterX);
211 mRenderer.centerY = Math.round(mCenterY);
WallpaperCropActivity.java 156 int maxDim = Math.max(maxDims.x, maxDims.y);
157 int minDim = Math.max(minDims.x, minDims.y);
162 maxDim = Math.max(realSize.x, realSize.y);
163 minDim = Math.min(realSize.x, realSize.y);
174 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim);
280 int maxDim = Math.max(maxDims.x, maxDims.y);
281 final int minDim = Math.min(minDims.x, minDims.y);
287 defaultWallpaperWidth = Math.max((int)
298 portraitHeight = Math.max(maxDims.x, maxDims.y);
304 portraitHeight = Math.max(realSize.x, realSize.y)
    [all...]
  /packages/experimental/Bummer/src/com/android/dreams/bummer/
BummerView.java 52 final float newx = (float) (Math.random() * (framew - textw));
53 final float newy = (float) (Math.random() * (frameh - texth));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
TextRange.java 91 spanStart = Math.min(spanStart, text.getSpanStart(spans[i]));
92 spanEnd = Math.max(spanEnd, text.getSpanEnd(spans[i]));
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
BummerView.java 52 final float newx = (float) (Math.random() * (framew - textw));
53 final float newy = (float) (Math.random() * (frameh - texth));
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
StretchesViewer.java 205 ratio = Math.min(wRatio, ratio);
207 ratio = Math.min(hRatio, ratio);
209 int width = Math.round(mSize.x * ratio);
210 int height = Math.round(mSize.y * ratio);
247 dest.x = (int) Math.ceil(p.dest.x * ratio);
248 dest.y = (int) Math.ceil(p.dest.y * ratio);
249 dest.width = (int) Math.ceil(p.dest.width * ratio);
250 dest.height = (int) Math.ceil(p.dest.height * ratio);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
WindowSurface.java 103 x = (float)((width-1)*Math.random());
104 y = (float)((height-1)*Math.random());
105 dx = (float)(Math.random()*minStep*2) + 1;
106 dy = (float)(Math.random()*minStep*2) + 1;
110 cur += (Math.random()*minStep) - (minStep/2);
167 int dist = Math.abs(mBrightLine-index);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
CustomLayout.java 101 mLeftWidth += Math.max(maxWidth,
104 mRightWidth += Math.max(maxWidth,
107 maxWidth = Math.max(maxWidth,
110 maxHeight = Math.max(maxHeight,
120 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight());
121 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
BitSet.cs 39 using Math = System.Math;
96 BitSet s = new BitSet(Math.Max(a, b) + 1);
142 int newSize = Math.Max(_bits.Length << 1, NumWordsToHold(bit));
154 int min = Math.Min(_bits.Length, a._bits.Length);
202 int n = Math.Min(this._bits.Length, otherSet._bits.Length);
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
BitSet.cs 40 using Math = System.Math;
105 BitSet s = new BitSet( Math.Max( a, b ) + 1 );
158 int newSize = Math.Max( _bits.Length << 1, NumWordsToHold( bit ) );
173 int min = Math.Min( _bits.Length, a._bits.Length );
233 int n = Math.Min( this._bits.Length, otherSet._bits.Length );
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/
TimelineGrid.js 95 var logGridSliceTime = Math.ceil(Math.log(gridSliceTime) / Math.log(10));
96 gridSliceTime = Math.pow(10, logGridSliceTime);
102 var firstDividerTime = Math.ceil((calculator.minimumBoundary() - calculator.zeroTime()) / gridSliceTime) * gridSliceTime + calculator.zeroTime();
108 dividersCount = Math.ceil((lastDividerTime - firstDividerTime) / gridSliceTime);
  /external/chromium_org/v8/test/mjsunit/compiler/
regress-1085.js 31 // This test relies on specific type feedback for Math.min.
32 function f(x) { return 1 / Math.min(1, x); }
36 %OptimizeFunctionOnNextCall(Math.min);
  /external/chromium_org/v8/test/mjsunit/regress/
regress-1898.js 31 Math.log(Math.min(0.1, Math.abs(x)));
regress-2451.js 31 assertEquals(-1.0, Math.round(-1.5));
32 assertEquals(-2.0, Math.round(-2.5));
33 assertEquals(-1.0, Math.round(-0.5000000000000001));
  /external/chromium_org/v8/test/webkit/
dfg-intrinsic-osr-exit.js 33 foo([Math.abs], {f:5});
35 shouldBe("foo([Math.abs], {f:5})", "5");
38 shouldBe("foo([Math.abs], {f:5.5})", "5.5");
dfg-intrinsic-unused-this-method-check.js 29 return this.f + Math.max(a, b);
36 var functionToCall = Math.max;
48 shouldBe("baz(object, " + i + ", " + (i * 2) + ")", "" + (offset + Math.max(i, i * 2)));
  /external/v8/test/mjsunit/compiler/
regress-1085.js 31 // This test relies on specific type feedback for Math.min.
32 function f(x) { return 1 / Math.min(1, x); }
36 %OptimizeFunctionOnNextCall(Math.min);
  /external/v8/test/mjsunit/regress/
regress-1898.js 31 Math.log(Math.min(0.1, Math.abs(x)));
  /frameworks/base/services/java/com/android/server/power/
WirelessChargerDetector.java 93 private static final double MOVEMENT_ANGLE_COS_THRESHOLD = Math.cos(5 * Math.PI / 180);
315 final double mag1 = Math.sqrt((x1 * x1) + (y1 * y1) + (z1 * z1));
316 final double mag2 = Math.sqrt((x2 * x2) + (y2 * y2) + (z2 * z2));
329 + ", angle=" + (Math.acos(dotProduct / mag1 / mag2) * 180 / Math.PI)
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ErrorCalculator.java 95 int interestingPixels = Math.max(1, regionCount) * REGION_SIZE * REGION_SIZE;
149 int interestingPixels = Math.max(1, interestingRegions) * REGION_SIZE * REGION_SIZE;
162 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor));
163 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor));
164 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor));
165 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
PagedView.java 468 mCurrentPage = Math.max(0, Math.min(currentPage, getPageCount() - 1));
616 mCurrentPage = Math.max(0, Math.min(mNextPage, getPageCount() - 1));
658 int maxSize = Math.max(dm.widthPixels, dm.heightPixels);
741 int spacing = Math.max(offset, widthSize - offset -
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/Dromaeo/resources/dromaeo/web/
webrunner.js 175 (times[Math.floor(num/2)] + times[Math.ceil(num/2)]) / 2 :
176 times[Math.round(num/2)];
182 results.variance += Math.pow(times[i] - results.mean, 2);
187 results.deviation = Math.sqrt( results.variance );
190 results.sem = (results.deviation / Math.sqrt(results.runs)) * tDistribution;
370 var summary = (runStyle === "runs/s" ? Math.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2);
406 $("#timebar").html("<span><strong>" + (runStyle === "runs/s" ? Math.pow(Math.E, maxTotal / maxTotalNum) : maxTotal).toFixed(2) + "</strong>" + runStyle + " (Total)</span>")
    [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...]

Completed in 1634 milliseconds

<<11121314151617181920>>