/cts/tests/tests/util/src/android/util/cts/ |
FloatMathTest.java | 19 import android.util.FloatMath; 24 assertEquals(8.0f, FloatMath.ceil(7.2f)); 25 assertEquals(-6.0f, FloatMath.ceil(-6.3f)); 28 assertEquals(7.0f, FloatMath.floor(7.2f)); 29 assertEquals(-7.0f, FloatMath.floor(-6.3f)); 32 assertEquals(-0.26237485f, FloatMath.sin(50)); 33 assertEquals(-0.71487643f, FloatMath.sin(150)); 34 assertEquals(0.26237485f, FloatMath.sin(-50)); 37 assertEquals(0.964966f, FloatMath.cos(50)); 38 assertEquals(0.69925081f, FloatMath.cos(150)) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
FloatMathTest.java | 26 assertEquals(7, FloatMath.sqrt(49), 0); 27 assertEquals(10, FloatMath.sqrt(100), 0); 28 assertEquals(0, FloatMath.sqrt(0), 0); 29 assertEquals(1, FloatMath.sqrt(1), 0); 34 assertEquals(78, FloatMath.floor(78.89f), 0); 35 assertEquals(-79, FloatMath.floor(-78.89f), 0); 40 assertEquals(79, FloatMath.ceil(78.89f), 0); 41 assertEquals(-78, FloatMath.ceil(-78.89f), 0); 46 assertEquals(0.0, FloatMath.sin(0), 0); 47 assertEquals(0.8414709848078965f, FloatMath.sin(1), 0) [all...] |
/frameworks/base/core/java/android/util/ |
FloatMath.java | 25 public class FloatMath { 28 private FloatMath() {}
|
/frameworks/base/services/java/com/android/server/ |
TwilightCalculator.java | 20 import android.util.FloatMath; 78 final float trueAnomaly = meanAnomaly + C1 * FloatMath.sin(meanAnomaly) + C2 79 * FloatMath.sin(2 * meanAnomaly) + C3 * FloatMath.sin(3 * meanAnomaly); 87 double solarTransitJ2000 = n + J0 + arcLongitude + 0.0053f * FloatMath.sin(meanAnomaly) 88 + -0.0069f * FloatMath.sin(2 * solarLng); 91 double solarDec = Math.asin(FloatMath.sin(solarLng) * FloatMath.sin(OBLIQUITY)); 95 double cosHourAngle = (FloatMath.sin(ALTIDUTE_CORRECTION_CIVIL_TWILIGHT) - Math.sin(latRad)
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowFloatMath.java | 19 import android.util.FloatMath; 24 @Implements(FloatMath.class)
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 25 import android.util.FloatMath; 47 private static final float USER_ANGEL_COS = FloatMath.cos(USER_ANGEL); 48 private static final float USER_ANGEL_SIN = FloatMath.sin(USER_ANGEL); 131 float length = FloatMath.sqrt(tx * tx + ty * ty + tz * tz); 132 float glength = FloatMath.sqrt(temp); 140 mZ = -FloatMath.sqrt( 178 mZ = -FloatMath.sqrt(
|
/art/test/003-omnibus-opcodes/src/ |
Main.java | 41 FloatMath.run();
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
StringTexture.java | 26 import android.util.FloatMath; 75 int width = (int) FloatMath.ceil(paint.measureText(text));
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
PointCloud.java | 25 import android.util.FloatMath; 154 float x = r * FloatMath.cos(eta); 155 float y = r * FloatMath.sin(eta); 171 return FloatMath.sqrt(x*x + y*y); 183 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); 192 float cosf = FloatMath.cos(PI * 0.5f * distanceToWaveRing / waveManager.radius);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
PointCloud.java | 23 import android.util.FloatMath; 154 float x = r * FloatMath.cos(eta); 155 float y = r * FloatMath.sin(eta); 171 return FloatMath.sqrt(x*x + y*y); 184 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); 193 float cosf = FloatMath.cos(PI * 0.25f * distanceToWaveRing / waveManager.width);
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
PointCloud.java | 23 import android.util.FloatMath; 154 float x = r * FloatMath.cos(eta); 155 float y = r * FloatMath.sin(eta); 171 return FloatMath.sqrt(x*x + y*y); 184 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); 193 float cosf = FloatMath.cos(PI * 0.25f * distanceToWaveRing / waveManager.width);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
BitmapUtils.java | 26 import android.util.FloatMath; 75 (int) FloatMath.ceil(FloatMath.sqrt((float) (w * h) / maxNumOfPixels)); 99 int initialSize = (int) FloatMath.floor(1f / scale); 110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 26 import android.util.FloatMath; 75 (int) FloatMath.ceil(FloatMath.sqrt((float) (w * h) / maxNumOfPixels)); 99 int initialSize = (int) FloatMath.floor(1f / scale); 110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));
|
Scroller.java | 22 import android.util.FloatMath; 375 float hyp = FloatMath.sqrt(dx * dx + dy * dy); 392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
BitmapUtils.java | 26 import android.util.FloatMath; 75 (int) FloatMath.ceil(FloatMath.sqrt((float) (w * h) / maxNumOfPixels)); 99 int initialSize = (int) FloatMath.floor(1f / scale); 110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));
|
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrix.java | 19 import android.util.FloatMath; 122 float cosine = FloatMath.cos(radians); 123 float sine = FloatMath.sin(radians);
|
PointF.java | 21 import android.util.FloatMath; 112 return FloatMath.sqrt(x * x + y * y);
|
RectF.java | 23 import android.util.FloatMath; 453 dst.set((int) FloatMath.floor(left), (int) FloatMath.floor(top), 454 (int) FloatMath.ceil(right), (int) FloatMath.ceil(bottom));
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 20 import android.util.FloatMath; 107 v[0] = FloatMath.sin(angleRadians); 108 v[1] = -FloatMath.cos(angleRadians);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
BitmapMesh.java | 25 import android.util.FloatMath; 95 float d = FloatMath.sqrt(dd);
|
/dalvik/tests/003-omnibus-opcodes/src/ |
Main.java | 50 FloatMath.run();
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
WindowOrientationListener.java | 26 import android.util.FloatMath; 404 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z)); 431 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z)); 445 final float magnitude = FloatMath.sqrt(x * x + y * y + z * z); [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
CropFilter.java | 23 import android.util.FloatMath; 93 int[] croppedDims = { (int)FloatMath.ceil(mCropRect.xEdge().length() * inDims[0]), 94 (int)FloatMath.ceil(mCropRect.yEdge().length() * inDims[1]) };
|
/frameworks/base/core/java/android/text/ |
BoringLayout.java | 23 import android.util.FloatMath; 214 mMax = (int) FloatMath.ceil(line.metrics(null)); 308 fm.width = (int) FloatMath.ceil(line.metrics(fm));
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
CropView.java | 24 import android.util.FloatMath; 303 adjustment[1] = FloatMath.ceil(edges.top / scale); 308 if (coef[dim] > 0) adjustment[dim] = FloatMath.ceil(adjustment[dim]);
|