Searched refs:Math (Results 176 - 200 of 959) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/javax/management/remote/
H A DJMXConnectionNotification.java165 Math.max(0, sequenceNumber),
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/
H A DExtendedPanAction.java121 viewPosition.x = Math.max(viewPosition.x, 0);
122 viewPosition.y = Math.max(viewPosition.y, 0);
123 viewPosition.x = Math.min(viewPosition.x, scrollPane.getViewport().getView().getSize().width - scrollPane.getViewport().getSize().width);
124 viewPosition.y = Math.min(viewPosition.y, scrollPane.getViewport().getView().getSize().height - scrollPane.getViewport().getSize().height);
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DSubImageInputStream.java60 len = Math.min(len, length);
/openjdk7/hotspot/test/compiler/6603011/
H A DTest.java90 if (java.lang.Math.abs(rem) >= java.lang.Math.abs(divisor())) {
120 if (java.lang.Math.abs(rem) >= java.lang.Math.abs(divisor())) {
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DThreadCpuTime.java190 double r = Math.random();
191 double x = Math.pow(3, r);
209 double r = Math.random();
210 double x = Math.pow(3, r);
H A DThreadUserTime.java190 double r = Math.random();
191 double x = Math.pow(3, r);
208 double r = Math.random();
209 double x = Math.pow(3, r);
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/
H A DGraphicsTests.java311 ctx.maxX = Math.max(Math.min(32, w - ctx.outdim.width), 3);
321 ctx.maxX = Math.max(ctx.maxX, 3);
322 ctx.maxY = Math.max(ctx.maxY, 1);
352 scale = Math.min(scale, xorig / (xorig - x));
354 scale = Math.min(scale, (w - xorig) / (x - xorig));
357 scale = Math.min(scale, yorig / (yorig - y));
359 scale = Math.min(scale, (h - yorig) / (y - yorig));
378 scalex = Math.min(scaleForPoint(at, ox, oy, w, 0, w, h), scalex);
379 scaley = Math
[all...]
/openjdk7/jdk/test/java/text/Format/MessageFormat/
H A DBug7003643.java43 int max = (int) (Math.pow((double)elements.length, (double)N)/0.52);
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftSynthesizer/
H A DGetMicrosecondPosition.java60 assertTrue(Math.abs(synth.getMicrosecondPosition()-1000000) < 10000);
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftTuning/
H A DLoad8.java63 assertTrue(Math.abs(tunings[i]-(i*100 + (oct[i%12]-64))) < 0.00001);
H A DNewSoftTuningByteArray.java61 assertTrue(Math.abs(tunings[i]-(i*100 + (oct[i%12]-64))) < 0.00001);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DIOUtils.java58 bytesToRead = Math.min(length - pos, output.length + 1024);
/openjdk7/jdk/src/solaris/classes/sun/font/
H A DXRTextRenderer.java107 posX = (int) Math.floor(x);
108 posY = (int) Math.floor(y);
120 posX = (int) Math.floor(advX);
121 posY = (int) Math.floor(advY);
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DGrowableByteArray.java120 int newSize = Math.max(array.length * 2, 10);
H A DGrowableIntArray.java107 int newSize = Math.max(array.length * 2, 10);
H A DXRPMBlitLoops.java252 double minX = Math.min(compBounds[0], Math.min(compBounds[2], Math.min(compBounds[4], compBounds[6])));
253 double minY = Math.min(compBounds[1], Math.min(compBounds[3], Math.min(compBounds[5], compBounds[7])));
254 double maxX = Math.max(compBounds[0], Math.max(compBounds[2], Math.max(compBounds[4], compBounds[6])));
255 double maxY = Math
[all...]
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DPixelToParallelogramConverter.java168 return ((x == 0) ? Math.abs(y)
169 : ((y == 0) ? Math.abs(x)
170 : Math.sqrt(x * x + y * y)));
174 return Math.floor(v + normRoundingBias) + normPosition;
238 int ix1 = (int) Math.floor(x1 - sg2d.transX);
239 int iy1 = (int) Math.floor(y1 - sg2d.transY);
240 int ix2 = (int) Math.floor(x2 - sg2d.transX);
241 int iy2 = (int) Math.floor(y2 - sg2d.transY);
264 lw = Math.max(lw, minPenSize);
361 lw1 = Math
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/functions/
H A DFuncSubstring.java72 start = Math.round(start);
79 int end = (int) (Math.round(len) + start) - 1;
/openjdk7/jdk/src/share/classes/sun/awt/geom/
H A DCurveLink.java59 this.ytop = Math.min(ytop, ystart);
60 this.ybot = Math.max(ybot, yend);
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DRoundRectangle2D.java529 double aw = Math.min(getWidth(), Math.abs(getArcWidth())) / 2.0;
530 double ah = Math.min(getHeight(), Math.abs(getArcHeight())) / 2.0;
576 double aw = Math.min(getWidth(), Math.abs(getArcWidth())) / 2.0;
577 double ah = Math.min(getHeight(), Math.abs(getArcHeight())) / 2.0;
/openjdk7/jdk/src/share/classes/java/io/
H A DLineNumberReader.java230 int nn = (int) Math.min(n, maxSkipBufferSize);
236 int nc = read(skipBuffer, 0, (int) Math.min(r, nn));
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DSoftChorus.java139 double g = (Math.PI * 2) * (rate / controlrate);
161 while(phase > (Math.PI * 2)) phase -= (Math.PI * 2);
162 vdelay.setDelay((float) (depth * 0.5 * (Math.cos(phase) + 2)));
168 while(phase > (Math.PI * 2)) phase -= (Math.PI * 2);
169 vdelay.setDelay((float) (depth * 0.5 * (Math.cos(phase) + 2)));
199 vdelay1L.setPhase(0.5 * Math.PI);
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDHKeyPairGenerator.java160 lSize = Math.max(384, pSize >> 1);
162 lSize = Math.min(lSize, pSize);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/util/
H A DEditDistance.java111 return Math.min(a,Math.min(b,c));
/openjdk7/jdk/test/java/io/FileInputStream/
H A DLargeFileAvailable.java45 long filesize = Math.min(spaceavailable, 7405576182L);
59 long bigSkip = Math.min(filesize/2, 3110608882L);

Completed in 65 milliseconds

1234567891011>>