/openjdk7/jdk/src/share/classes/javax/management/remote/ |
H A D | JMXConnectionNotification.java | 165 Math.max(0, sequenceNumber),
|
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/ |
H A D | ExtendedPanAction.java | 121 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 D | SubImageInputStream.java | 60 len = Math.min(len, length);
|
/openjdk7/hotspot/test/compiler/6603011/ |
H A D | Test.java | 90 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 D | ThreadCpuTime.java | 190 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 D | ThreadUserTime.java | 190 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 D | GraphicsTests.java | 311 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 D | Bug7003643.java | 43 int max = (int) (Math.pow((double)elements.length, (double)N)/0.52);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftSynthesizer/ |
H A D | GetMicrosecondPosition.java | 60 assertTrue(Math.abs(synth.getMicrosecondPosition()-1000000) < 10000);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftTuning/ |
H A D | Load8.java | 63 assertTrue(Math.abs(tunings[i]-(i*100 + (oct[i%12]-64))) < 0.00001);
|
H A D | NewSoftTuningByteArray.java | 61 assertTrue(Math.abs(tunings[i]-(i*100 + (oct[i%12]-64))) < 0.00001);
|
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | IOUtils.java | 58 bytesToRead = Math.min(length - pos, output.length + 1024);
|
/openjdk7/jdk/src/solaris/classes/sun/font/ |
H A D | XRTextRenderer.java | 107 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 D | GrowableByteArray.java | 120 int newSize = Math.max(array.length * 2, 10);
|
H A D | GrowableIntArray.java | 107 int newSize = Math.max(array.length * 2, 10);
|
H A D | XRPMBlitLoops.java | 252 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 D | PixelToParallelogramConverter.java | 168 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 D | FuncSubstring.java | 72 start = Math.round(start); 79 int end = (int) (Math.round(len) + start) - 1;
|
/openjdk7/jdk/src/share/classes/sun/awt/geom/ |
H A D | CurveLink.java | 59 this.ytop = Math.min(ytop, ystart); 60 this.ybot = Math.max(ybot, yend);
|
/openjdk7/jdk/src/share/classes/java/awt/geom/ |
H A D | RoundRectangle2D.java | 529 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 D | LineNumberReader.java | 230 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 D | SoftChorus.java | 139 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 D | DHKeyPairGenerator.java | 160 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 D | EditDistance.java | 111 return Math.min(a,Math.min(b,c));
|
/openjdk7/jdk/test/java/io/FileInputStream/ |
H A D | LargeFileAvailable.java | 45 long filesize = Math.min(spaceavailable, 7405576182L); 59 long bigSkip = Math.min(filesize/2, 3110608882L);
|