Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java136 pos = pos - (float)Math.floor(pos); in getGradientColor()
144 int intPart = (int)Math.floor(pos); in getGradientColor()
166 pos = pos - (float)Math.floor(pos); in getGradientColor()
170 int intPart = (int)Math.floor(pos); in getGradientColor()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DFloatMath_Delegate.java45 /*package*/ static float floor(float value) { in floor() method in FloatMath_Delegate
46 return (float)Math.floor(value); in floor()
/frameworks/base/core/tests/coretests/src/android/util/
DFloatMathTest.java34 assertEquals(78, FloatMath.floor(78.89f), 0); in testFloor()
35 assertEquals(-79, FloatMath.floor(-78.89f), 0); in testFloor()
/frameworks/base/tests/RenderScriptTests/ShadersTest/res/raw/
Dvignette_fs.glsl23 int channel = int(floor(mod(gl_FragCoord.x, 3.0)));
25 crt *= clamp(floor(mod(vShift, 4.0)), 0.0, 1.0);
/frameworks/base/libs/hwui/
DGammaFontRenderer.cpp76 mBlackGamma[i] = uint8_t((float)::floor(black * 255.0f + 0.5f)); in GammaFontRenderer()
77 mWhiteGamma[i] = uint8_t((float)::floor(white * 255.0f + 0.5f)); in GammaFontRenderer()
/frameworks/base/core/java/android/util/
DFloatMath.java39 public static native float floor(float value); in floor() method in FloatMath
DTimeUtils.java209 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java155 view.invalidate((int) Math.floor(childBounds.left), in invalidateGlobalRegion()
156 (int) Math.floor(childBounds.top), in invalidateGlobalRegion()
160 Log.v(TAG, "INVALIDATE(" + (int) Math.floor(childBounds.left) in invalidateGlobalRegion()
161 + "," + (int) Math.floor(childBounds.top) in invalidateGlobalRegion()
/frameworks/base/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DomxVCM4P2_IDCT8x8blk.c77 pDst[(x * 8) + y] = (OMX_S16) floor(sum + 0.5); in omxVCM4P2_IDCT8x8blk()
/frameworks/base/media/libstagefright/codecs/amrwbenc/inc/
Dlag_wind.tab20 | noise floor = 1.0001 = (0.9999 on r[1] ..r[16]) |
/frameworks/base/graphics/java/android/graphics/
DRectF.java427 dst.set((int) FloatMath.floor(left), (int) FloatMath.floor(top), in roundOut()
/frameworks/support/v4/java/android/support/v4/util/
DTimeUtils.java98 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java271 (int) Math.min(Math.floor(w / minSideLength), in computeInitialSampleSize()
272 Math.floor(h / minSideLength)); in computeInitialSampleSize()
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DPlaybackActivity.java60 int intComponent = (int) Math.floor(Math.abs(mDist)); in onScroll()
DPlaybackGraphs.java112 int intIndex = (int) Math.floor(index); in getPercentile()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java55 Math.floor(md.getFloat("com.android.frameworks.coretests.float") * 10 + .5)); in checkMetaData()
/frameworks/base/location/java/android/location/
DLocation.java184 int degrees = (int) Math.floor(coordinate); in convert()
190 int minutes = (int) Math.floor(coordinate); in convert()
/frameworks/base/libs/rs/driver/
DrsdRuntimeMath.cpp36 int i = (int)floor(v); in SC_fract()
266 int i = (int)floor(v); in SC_frac()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs100 TEST_FUNC_1(floor);
/frameworks/base/core/java/android/gesture/
DGestureUtils.java212 int xFloor = (int) Math.floor(x); in plot()
214 int yFloor = (int) Math.floor(y); in plot()
/frameworks/base/media/java/android/media/videoeditor/
DMediaImageItem.java958 bitmapHeight = (float)Math.floor(nativeHeight / dx); in scaleImage()
963 bitmapWidth = (float)Math.floor(nativeWidth / dy); in scaleImage()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DMultiWaveView.java372 view.invalidate((int) Math.floor(childBounds.left), in invalidateGlobalRegion()
373 (int) Math.floor(childBounds.top), in invalidateGlobalRegion()
/frameworks/base/libs/rs/scriptc/
Drs_cl.rsh343 extern float __attribute__((overloadable)) floor(float);
344 FN_FUNC_FN(floor)
387 * @param iptr iptr[0] will be set to the floor of the input value.
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java431 final int lineLeft = (int) Math.floor(layout.getLineLeft(line)); in getScrollBoundsLeft()
/frameworks/compile/libbcc/lib/ScriptCRT/
Drs_cl.c406 extern float __attribute__((overloadable)) floor(float);
407 FN_FUNC_FN(floor)
424 int i = (int)floor(v); in FN_FUNC_FN_FN()

12