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

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/renderscript/src/android/renderscript/cts/
AsinhTest.java 73 ref[idxRef] = (float)(Math.log(x+Math.sqrt(1+Math.pow(x, 2))));
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
Layer.java 47 float twopi = (float)Math.PI *2f;
52 float sin = (float)Math.sin(angle);
53 float cos = (float)Math.cos(angle);
  /external/chromium_org/chrome/test/chromedriver/js/
get_element_region.js 38 'left': Math.max(0, centerX - radius),
39 'top': Math.max(0, centerY - radius),
53 minX = Math.min(minX, x);
54 minY = Math.min(minY, y);
55 maxX = Math.max(maxX, x);
56 maxY = Math.max(maxY, y);
  /frameworks/base/services/java/com/android/server/power/
RampAnimator.java 118 mAnimatedValue = Math.min(mAnimatedValue + amount, mTargetValue);
120 mAnimatedValue = Math.max(mAnimatedValue - amount, mTargetValue);
124 mCurrentValue = Math.round(mAnimatedValue);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
ColorfulnessFilter.java 69 float weight = (float) Math.pow(2, r);
80 colorful -= value * ((float) Math.log(value));
84 colorful /= Math.log(2);
  /development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/
Bouncer.java 95 minX = Math.min(mShapeX, minX);
96 maxX = Math.max(mShapeX + mShapeW, maxX);
108 minY = Math.min(mShapeY, minY);
109 maxY = Math.max(mShapeY + mShapeH, maxY);
Bouncer1.java 69 minX = Math.min(mShapeX, minX);
70 maxX = Math.max(mShapeX + mShapeW, maxX);
78 minY = Math.min(mShapeY, minY);
79 maxY = Math.max(mShapeY + mShapeH, maxY);
Bouncer2.java 70 minX = Math.min(mShapeX, minX);
71 maxX = Math.max(mShapeX + mShapeW, maxX);
79 minY = Math.min(mShapeY, minY);
80 maxY = Math.max(mShapeY + mShapeH, maxY);
Bouncer3.java 70 minX = Math.min(mShapeX, minX);
71 maxX = Math.max(mShapeX + mShapeW, maxX);
79 minY = Math.min(mShapeY, minY);
80 maxY = Math.max(mShapeY + mShapeH, maxY);
  /external/apache-xml/src/main/java/org/apache/xpath/functions/
FuncRound.java 49 return new XNumber(java.lang.Math.floor(val
  /external/chromium_org/third_party/WebKit/Source/core/Resources/pagepopups/
pickerCommon.js 80 var x = Math.max(rect1.x, rect2.x);
81 var maxX = Math.min(rect1.maxX, rect2.maxX);
82 var y = Math.max(rect1.y, rect2.y);
83 var maxY = Math.min(rect1.maxY, rect2.maxY);
128 availableSpaceAbove = Math.max(0, Math.min(availRect.height, availableSpaceAbove));
131 availableSpaceBelow = Math.max(0, Math.min(availRect.height, availableSpaceBelow));
134 windowRect.height = Math.min(windowRect.height, availableSpaceAbove);
135 windowRect.height = Math.max(windowRect.height, minHeight)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/
ViewportControl.js 102 this._firstVisibleIndex = Math.floor(visibleFrom / this._rowHeight);
103 this._lastVisibleIndex = Math.min(Math.ceil(visibleTo / this._rowHeight), itemCount) - 1;
127 return Math.floor(this.element.clientHeight / this._rowHeight);
  /external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/
webtreemap.js 76 dom.className = 'webtreemap-node webtreemap-level' + Math.min(level, 4);
106 dom.style.width = Math.max(width, 0) + 'px';
107 dom.style.height = Math.max(height, 0) + 'px';
137 var score = Math.max(5*space*space*rmax / (rsum*rsum),
160 var pixels_to_units = Math.sqrt(total / ((x2 - x1) * (y2 - y1)));
209 width = Math.round(width);
210 height = Math.round(height);
223 x1 += Math.round((rsum / space) / pixels_to_units);
225 y1 += Math.round((rsum / space) / pixels_to_units);
  /external/chromium_org/third_party/flot/
jquery.flot.selection.min.js 1 (function(a){function b(k){var p={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false};var m={};var r=null;function e(s){if(p.active){l(s);k.getPlaceholder().trigger("plotselecting",[g()])}}function n(s){if(s.which!=1){return}document.body.focus();if(document.onselectstart!==undefined&&m.onselectstart==null){m.onselectstart=document.onselectstart;document.onselectstart=function(){return false}}if(document.ondrag!==undefined&&m.ondrag==null){m.ondrag=document.ondrag;document.ondrag=function(){return false}}d(p.first,s);p.active=true;r=function(t){j(t)};a(document).one("mouseup",r)}function j(s){r=null;if(document.onselectstart!==undefined){document.onselectstart=m.onselectstart}if(document.ondrag!==undefined){document.ondrag=m.ondrag}p.active=false;l(s);if(f()){i()}else{k.getPlaceholder().trigger("plotunselected",[]);k.getPlaceholder().trigger("plotselecting",[null])}return false}function g(){if(!f()){return null}var u={},t=p.first,s=p.second;a.each(k.getAxes(),function(v,w){if(w.used){var y=w.c2p(t[w.direction]),x=w.c2p(s[w.direction]);u[v]={from:Math.min(y,x),to:Math.max(y,x)}}});return u}function i(){var s=g();k.getPlaceholder().trigger("plotselected",[s]);if(s.xaxis&&s.yaxis){k.getPlaceholder().trigger("selected",[{x1:s.xaxis.from,y1:s.yaxis.from,x2:s.xaxis.to,y2:s.yaxis.to}])}}function h(t,u,s){return u<t?t:(u>s?s:u)}function d(w,t){var v=k.getOptions();var u=k.getPlaceholder().offset();var s=k.getPlotOffset();w.x=h(0,t.pageX-u.left-s.left,k.width());w.y=h(0,t.pageY-u.top-s.top,k.height());if(v.selection.mode=="y"){w.x=w==p.first?0:k.width()}if(v.selection.mode=="x"){w.y=w==p.first?0:k.height()}}function l(s){if(s.pageX==null){return}d(p.second,s);if(f()){p.show=true;k.triggerRedrawOverlay()}else{q(true)}}function q(s){if(p.show){p.show=false;k.triggerRedrawOverlay();if(!s){k.getPlaceholder().trigger("plotunselected",[])}}}function c(s,w){var t,y,z,A,x=k.getAxes();for(var u in x){t=x[u];if(t.direction==w){A=w+t.n+"axis";if(!s[A]&&t.n==1){A=w+"axis"}if(s[A]){y=s[A].from;z=s[A].to;break}}}if(!s[A]){t=w=="x"?k.getXAxes()[0]:k.getYAxes()[0];y=s[w+"1"];z=s[w+"2"]}if(y!=null&&z!=null&&y>z){var v=y;y=z;z=v}return{from:y,to:z,axis:t}}function o(t,s){var v,u,w=k.getOptions();if(w.selection.mode=="y"){p.first.x=0;p.second.x=k.width()}else{u=c(t,"x");p.first.x=u.axis.p2c(u.from);p.second.x=u.axis.p2c(u.to)}if(w.selection.mode=="x"){p.first.y=0;p.second.y=k.height()}else{u=c(t,"y");p.first.y=u.axis.p2c(u.from);p.second.y=u.axis.p2c(u.to)}p.show=true;k.triggerRedrawOverlay();if(!s&&f()){i()}}function f(){var s=5;return Math.abs(p.second.x-p.first.x)>=s&&Math.abs(p.second.y-p.first.y)>=s}k.clearSelection=q;k.setSelection=o;k.getSelection=g;k.hooks.bindEvents.push(function(t,s){var u=t.getOptions();if(u.selection.mode!=null){s.mousemove(e);s.mousedown(n)}});k.hooks.drawOverlay.push(function(v,D){if(p.show&&f()){var t=v.getPlotOffset();var s=v.getOptions();D.save();D.translate(t.left,t.top);var z=a.color.parse(s.selection.color);D.strokeStyle=z.scale("a",0.8).toString();D.lineWidth=1;D.lineJoin="round";D.fillStyle=z.scale("a",0.4).toString();var B=Math.min(p.first.x,p.second.x),A=Math.min(p.first.y,p.second.y),C=Math.abs(p.second.x-p.first.x),u=Math.abs(p.second.y-p.first.y);D.fillRect(B,A,C,u);D.strokeRect(B,A,C,u);D.restore()}});k.hooks.shutdow (…)
  /external/chromium_org/v8/src/
math.js 41 var $Math = new MathConstructor();
106 // We avoid doing so for -0, because the result of Math.floor(-0)
229 %SetPrototype($Math, $Object.prototype);
230 %SetProperty(global, "Math", $Math, DONT_ENUM);
231 %FunctionSetInstanceClassName(MathConstructor, 'Math');
233 // Set up math constants.
235 %OptimizeObjectForAddingMultipleProperties($Math, 8);
236 %SetProperty($Math,
241 %SetProperty($Math,
    [all...]
  /external/chromium_org/v8/test/webkit/
parseInt.js 51 shouldBe("parseInt(Math.pow(10, 20))", '100000000000000000000');
52 shouldBe("parseInt(Math.pow(10, 21))", '1');
53 shouldBe("parseInt(Math.pow(10, -6))", '0');
54 shouldBe("parseInt(Math.pow(10, -7))", '1');
55 shouldBe("parseInt(-Math.pow(10, 20))", '-100000000000000000000');
56 shouldBe("parseInt(-Math.pow(10, 21))", '-1');
57 shouldBe("parseInt(-Math.pow(10, -6))", '-0');
58 shouldBe("parseInt(-Math.pow(10, -7))", '-1');
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
AtomicDoubleTest.java 28 -Math.PI,
35 Math.PI,
100 double prev = Math.E;
101 double unused = Math.E + Math.PI;
137 double prev = Math.E;
138 double unused = Math.E + Math.PI;
156 double prev = Math.E;
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
UVProjectionGenerator.java 5 import com.jme3.math.FastMath;
6 import com.jme3.math.Triangle;
7 import com.jme3.math.Vector3f;
62 float borderAngle = (float) Math.sqrt(2.0f) / 2.0f;
66 float dotNX = Math.abs(n.dot(x));
67 float dorNY = Math.abs(n.dot(y));
68 float dotNZ = Math.abs(n.dot(z));
143 float sgn1 = Math.signum(triangle.get1().x-cx);
144 float sgn2 = Math.signum(triangle.get2().x-cx);
145 float sgn3 = Math.signum(triangle.get3().x-cx)
    [all...]
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
HillHeightMap.java 172 int xMin = Math.round(x - radius - 1);
173 int xMax = Math.round(x + radius + 1);
175 int yMin = Math.round(y - radius - 1);
176 int yMax = Math.round(y + radius + 1);
  /external/jmonkeyengine/engine/src/test/jme3test/post/
BloomUI.java 85 filter.setExposureCutOff(Math.min(1.0f, Math.max(0.0f, filter.getExposureCutOff() + 0.001f)));
89 filter.setExposureCutOff(Math.min(1.0f, Math.max(0.0f, filter.getExposureCutOff() - 0.001f)));
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/numeric/
AbsFunction.java 23 import static java.lang.Math.abs;
MaxFunction.java 23 import static java.lang.Math.max;
MinFunction.java 23 import static java.lang.Math.min;
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
Math.java 3 public class Math {
  /external/replicaisland/src/com/replica/replicaisland/
AABoxCollisionVolume.java 111 maxX = Math.max(getMaxX(), other.getMaxX());
112 minX = Math.max(getMinX(), other.getMinX());
113 maxY = Math.max(getMaxY(), other.getMaxY());
114 minY = Math.max(getMinY(), other.getMinY());

Completed in 1200 milliseconds

1 2 3 4 5 6 7 8 91011>>