/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 37 * @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 D | FloatMath.java | 39 * @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 D | FloatMathTest.java | 34 assertEquals(78, FloatMath.floor(78.89f), 0); 35 assertEquals(-79, FloatMath.floor(-78.89f), 0);
|
/frameworks/base/awt/java/awt/font/ |
H A D | GlyphVector.java | 103 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 D | AndroidLineMetrics.java | 72 lUnderlineOffset = (int)Math.floor(underlineOffset); 80 lStrikethroughOffset = (int)Math.floor(strikethroughOffset);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | GradientShader.java | 130 // 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 D | MathPerformanceTest.java | 236 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 D | MathTest.java | 280 * @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 D | StrictMathTest.java | 275 * @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 D | RectangularShape.java | 277 int x1 = (int)Math.floor(getMinX()); 278 int y1 = (int)Math.floor(getMinY());
|
H A D | Arc2D.java | 1023 double n = Math.floor(angle / 360.0);
|
/frameworks/base/awt/java/awt/ |
H A D | Rectangle.java | 304 int x1 = (int)Math.floor(x); 305 int y1 = (int)Math.floor(y);
|
H A D | Color.java | 893 float H = (hue - (float)Math.floor(hue)) * 6; 894 int I = (int)Math.floor(H);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | RectF.java | 393 * 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 D | JavaArcRasterizer.java | 194 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 D | Location.java | 184 int degrees = (int) Math.floor(coordinate); 190 int minutes = (int) Math.floor(coordinate);
|
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 256 (int) Math.min(Math.floor(w / minSideLength), 257 Math.floor(h / minSideLength));
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | MetaDataTest.java | 56 Math.floor(md.getFloat("com.android.frameworks.coretests.float") * 10 + .5));
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureUtils.java | 212 int xFloor = (int) Math.floor(x); 214 int yFloor = (int) Math.floor(y);
|
/frameworks/base/awt/org/apache/harmony/awt/gl/ |
H A D | CommonGraphics2D.java | 264 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 D | WebView.java | 2139 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 D | TextView.java | 3559 * 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 D | BluetoothService.java | 231 int pin = (int) Math.floor(Math.random() * 10000);
|