Searched refs:floor (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/core/java/android/util/
H A DFloatMath.java37 * @return the floor of value
39 public static native float floor(float value); method in class:FloatMath
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DFloatMath.java39 * @return the floor of value
41 public static float floor(float value) { method in class:FloatMath
42 return (float)Math.floor(value);
/frameworks/base/core/tests/coretests/src/android/util/
H A DFloatMathTest.java34 assertEquals(78, FloatMath.floor(78.89f), 0);
35 assertEquals(-79, FloatMath.floor(-78.89f), 0);
/frameworks/base/awt/java/awt/font/
H A DGlyphVector.java103 int minX = (int)Math.floor(visualRect.getMinX() + x);
104 int minY = (int)Math.floor(visualRect.getMinY() + y);
129 int minX = (int)Math.floor(visualRect.getMinX() + x);
130 int minY = (int)Math.floor(visualRect.getMinY() + y);
/frameworks/base/awt/org/apache/harmony/awt/gl/font/
H A DAndroidLineMetrics.java72 lUnderlineOffset = (int)Math.floor(underlineOffset);
80 lStrikethroughOffset = (int)Math.floor(strikethroughOffset);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradientShader.java130 // careful: this is a negative value, so use ceil instead of floor
135 // careful: this is a negative value, so use ceil instead of floor
158 pos = pos - (float)Math.floor(pos);
162 int intPart = (int)Math.floor(pos);
/frameworks/base/tests/CoreTests/android/core/
H A DMathPerformanceTest.java236 result = Math.floor(sDouble1);
237 result = Math.floor(sDouble1);
238 result = Math.floor(sDouble1);
239 result = Math.floor(sDouble1);
240 result = Math.floor(sDouble1);
241 result = Math.floor(sDouble1);
242 result = Math.floor(sDouble1);
243 result = Math.floor(sDouble1);
244 result = Math.floor(sDouble1);
245 result = Math.floor(sDouble
[all...]
H A DMathTest.java280 * @tests java.lang.Math#floor(double)
284 // Test for method double java.lang.Math.floor(double)
285 assertEquals("Incorrect floor for double",
286 78, Math.floor(78.89), 0);
287 assertEquals("Incorrect floor for double",
288 -79, Math.floor(-78.89), 0);
H A DStrictMathTest.java275 * @tests java.lang.StrictMath#floor(double)
279 // Test for method double java.lang.StrictMath.floor(double)
280 assertEquals("Incorrect floor for double",
281 78, StrictMath.floor(78.89), 0.0);
282 assertEquals("Incorrect floor for double",
283 -79, StrictMath.floor(-78.89), 0.0);
/frameworks/base/awt/java/awt/geom/
H A DRectangularShape.java277 int x1 = (int)Math.floor(getMinX());
278 int y1 = (int)Math.floor(getMinY());
H A DArc2D.java1023 double n = Math.floor(angle / 360.0);
/frameworks/base/awt/java/awt/
H A DRectangle.java304 int x1 = (int)Math.floor(x);
305 int y1 = (int)Math.floor(y);
H A DColor.java893 float H = (hue - (float)Math.floor(hue)) * 6;
894 int I = (int)Math.floor(H);
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java393 * floor of top and left, and the ceiling of right and bottom.
396 dst.set((int) FloatMath.floor(left), (int) FloatMath.floor(top),
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DJavaArcRasterizer.java194 angle -= Math.floor(angle / 360) * 360;
396 ycount = (int)Math.floor(b * b / c);
398 xcount = (int)Math.floor(a * a / c);
/frameworks/base/location/java/android/location/
H A DLocation.java184 int degrees = (int) Math.floor(coordinate);
190 int minutes = (int) Math.floor(coordinate);
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java256 (int) Math.min(Math.floor(w / minSideLength),
257 Math.floor(h / minSideLength));
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DMetaDataTest.java56 Math.floor(md.getFloat("com.android.frameworks.coretests.float") * 10 + .5));
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java212 int xFloor = (int) Math.floor(x);
214 int yFloor = (int) Math.floor(y);
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DCommonGraphics2D.java264 x1 = (int)Math.floor(points[0]);
265 y1 = (int)Math.floor(points[1]);
270 int x2 = (int)Math.floor(points[0]);
271 int y2 = (int)Math.floor(points[1]);
/frameworks/base/core/java/android/webkit/
H A DWebView.java2139 This liberal calculation calls floor() for the top/left, and ceil() for
2149 invalidate((int)Math.floor(l * scale),
2150 (int)Math.floor(t * scale) + dy,
2161 (int)Math.floor(l * scale),
2162 (int)Math.floor(t * scale) + dy,
2415 // to avoid rounding error caused unnecessary scrollbar, use floor
2416 return (int) Math.floor(mContentWidth * mActualScale);
2429 // to avoid rounding error caused unnecessary scrollbar, use floor
2430 return (int) Math.floor(mContentHeight * mActualScale);
/frameworks/base/core/java/android/widget/
H A DTextView.java3559 * cursor and doing the floor/ceil on the coordinates is that
3579 invalidate((int) FloatMath.floor(left + sTempRect.left - thick),
3580 (int) FloatMath.floor(top + sTempRect.top - thick),
5406 int left = (int) FloatMath.floor(mLayout.getLineLeft(line));
5427 scrollx = (int) FloatMath.floor(mLayout.getLineLeft(line));
5435 scrollx = (int) FloatMath.floor(mLayout.getLineLeft(line));
5474 int left = (int) FloatMath.floor(mLayout.getLineLeft(line));
/frameworks/base/core/java/android/server/
H A DBluetoothService.java231 int pin = (int) Math.floor(Math.random() * 10000);

Completed in 587 milliseconds