Searched refs:Math (Results 226 - 250 of 959) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DFormatter.java180 int exp = (int)Math.log10((double)vMax);
185 s = Resources.format(Messages.SIZE_KB, trimDouble(v / Math.pow(10.0, 3)));
187 s = Resources.format(Messages.SIZE_MB, trimDouble(v / Math.pow(10.0, 6)));
189 s = Resources.format(Messages.SIZE_GB, trimDouble(v / Math.pow(10.0, 9)));
220 size = Math.max(size, strings[i].length());
H A DOverviewTab.java136 columnWidth = Math.max(columnWidth, c.getPreferredSize().width);
140 int maxCols = Math.min(n, parentWidth / columnWidth);
/openjdk7/jdk/test/java/util/ResourceBundle/Control/
H A DStressTest.java66 threadsFactor = Math.max(2, Integer.parseInt(args[0]));
70 duration = Math.max(5, Integer.parseInt(args[1]));
84 intervalForCounterCheck = Math.max(tasks.length / nProcessors, 1);
134 min = Math.min(min, counter);
135 max = Math.max(max, counter);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DLoweredBorder.java197 return new Color(Math.min((int)(c.getRed()/factor), 255),
198 Math.min((int)(c.getGreen()/factor), 255),
199 Math.min((int)(c.getBlue()/factor), 255));
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifLookAndFeel.java294 return new ColorUIResource(Math.max((int)(c.getRed()*.85),0),
295 Math.max((int)(c.getGreen()*.85),0),
296 Math.max((int)(c.getBlue()*.85),0));
303 return new ColorUIResource(Math.max((int)(c.getRed()*.85),0),
304 Math.max((int)(c.getGreen()*.85),0),
305 Math.max((int)(c.getBlue()*.85),0));
312 Color base = new Color(Math.max((int)(c.getRed()*.85),0),
313 Math.max((int)(c.getGreen()*.85),0),
314 Math.max((int)(c.getBlue()*.85),0));
322 Color base = new Color(Math
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DToolkit.java77 float dB = (float) (Math.log((double)((linear==0.0)?0.0001:linear))/Math.log(10.0) * 20.0);
87 float linear = (float) Math.pow(10.0, dB/20.0);
/openjdk7/jdk/src/macosx/classes/sun/java2d/
H A DCompositeCRenderer.java255 double newX = Math.floor(compositingBounds.getX() + sg2d.transX);
256 double newY = Math.floor(compositingBounds.getY() + sg2d.transY);
257 double newW = Math.ceil(compositingBounds.getWidth()) + (newX < compositingBounds.getX() ? 1 : 0);
258 double newH = Math.ceil(compositingBounds.getHeight()) + (newY < compositingBounds.getY() ? 1 : 0);
263 double newX = Math.floor(compositingBounds.getX());
264 double newY = Math.floor(compositingBounds.getY());
265 double newW = Math.ceil(compositingBounds.getWidth()) + (newX < compositingBounds.getX() ? 1 : 0);
266 double newH = Math.ceil(compositingBounds.getHeight()) + (newY < compositingBounds.getY() ? 1 : 0);
320 double newX = Math.floor(bounds.getX());
321 double newY = Math
[all...]
/openjdk7/jdk/test/java/lang/Math/
H A DLog1pTests.java27 * @summary Tests for {Math, StrictMath}.log1p
135 double pc = StrictMath.pow(Math.E, i) - 1;
144 pcNeighborsLog1p[j] = Math.log1p(pcNeighbors[j]);
151 System.err.println("Monotonicity failure for Math.log1p on " +
185 failures += Tests.testUlpDiff("Math.lop1p(double",
186 input, Math.log1p(input),
/openjdk7/jdk/src/solaris/classes/sun/font/
H A DXRGlyphCacheEntry.java51 xOff = (int) Math.round(getXAdvance());
52 yOff = (int) Math.round(getYAdvance());
185 return isGrayscale(listContainsLCDGlyphs) ? (int) Math.ceil(width / 4.0) * 4 : width;
/openjdk7/jdk/src/share/classes/java/awt/
H A DPolygon.java237 boundsMinX = Math.min(boundsMinX, x);
238 boundsMaxX = Math.max(boundsMaxX, x);
240 boundsMinY = Math.min(boundsMinY, y);
241 boundsMaxY = Math.max(boundsMaxY, y);
258 bounds.width = Math.max(bounds.width, x - bounds.x);
267 bounds.height = Math.max(bounds.height, y - bounds.y);
/openjdk7/jdk/src/macosx/classes/sun/java2d/opengl/
H A DCGLSurfaceData.java190 x = (int) Math.ceil(coords[0] - 0.5);
191 y = (int) Math.ceil(coords[1] - 0.5);
192 w = ((int) Math.ceil(coords[2] - 0.5)) - x;
193 h = ((int) Math.ceil(coords[3] - 0.5)) - y;
194 dx = ((int) Math.ceil(coords[4] - 0.5)) - x;
195 dy = ((int) Math.ceil(coords[5] - 0.5)) - y;
/openjdk7/jdk/src/share/demo/applets/MoleculeViewer/
H A DMatrix3D.java100 double ct = Math.cos(theta);
101 double st = Math.sin(theta);
126 double ct = Math.cos(theta);
127 double st = Math.sin(theta);
152 double ct = Math.cos(theta);
153 double st = Math.sin(theta);
/openjdk7/jdk/src/share/demo/applets/WireFrame/
H A DMatrix3D.java100 double ct = Math.cos(theta);
101 double st = Math.sin(theta);
126 double ct = Math.cos(theta);
127 double st = Math.sin(theta);
152 double ct = Math.cos(theta);
153 double st = Math.sin(theta);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DDragRecognitionSupport.java164 int dx = Math.abs(me.getX() - dndArmedEvent.getX());
165 int dy = Math.abs(me.getY() - dndArmedEvent.getY());
/openjdk7/jdk/src/share/classes/sun/awt/
H A DHorizBagLayout.java85 dim.height = Math.max(d.height, dim.height);
111 dim.height = Math.max(dim.height, d.height);
H A DVerticalBagLayout.java86 dim.width = Math.max(d.width, dim.width);
113 dim.width = Math.max(d.width, dim.width);
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketInputStream.java228 int buflen = (int) Math.min(1024, n);
231 int r = read(data, 0, (int) Math.min((long) buflen, n));
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaOptionPaneUI.java130 maxSize.width = Math.max(maxSize.width, sizes.width);
131 maxSize.height = Math.max(maxSize.height, sizes.height);
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCMouseDragGestureRecognizer.java135 int dx = Math.abs(origin.x - current.x);
136 int dy = Math.abs(origin.y - current.y);
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWMouseDragGestureRecognizer.java213 int dx = Math.abs(origin.x - current.x);
214 int dy = Math.abs(origin.y - current.y);
/openjdk7/jdk/src/share/demo/applets/NervousText/
H A DNervousText.java162 int px = (int) (10 * Math.random() + x);
163 int py = (int) (10 * Math.random() + ht);
/openjdk7/jdk/test/java/text/Bidi/
H A DBug6665028.java56 duration = Math.max(1, Math.min(Integer.parseInt(args[0]), 45));
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftChannel/
H A DSoftTestUtils.java46 data[i] = (float)Math.sin(i*fr*2*Math.PI);
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftCubicResampler/
H A DInterpolate.java41 return (float)Math.sin(i / 10.0);
90 ac_error += Math.abs(testbuffer2[i] - testbuffer3[i]);
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftLanczosResampler/
H A DInterpolate.java41 return (float)Math.sin(i / 10.0);
90 ac_error += Math.abs(testbuffer2[i] - testbuffer3[i]);

Completed in 679 milliseconds

1234567891011>>