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

123

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
H A DRectShape.java44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
H A DRoundRectShape.java100 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom),
/frameworks/base/core/java/android/util/
H A DFloatMath.java35 * @return the floor of value
37 public static native float floor(float value); method in class:FloatMath
/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/tools/layoutlib/bridge/src/android/util/
H A DFloatMath_Delegate.java42 * @return the floor of value
45 /*package*/ static float floor(float value) { method in class:FloatMath_Delegate
46 return (float)Math.floor(value);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_IDCT8x8blk.c77 pDst[(x * 8) + y] = (OMX_S16) floor(sum + 0.5);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java137 pos = pos - (float)Math.floor(pos);
145 int intPart = (int)Math.floor(pos);
167 pos = pos - (float)Math.floor(pos);
171 int intPart = (int)Math.floor(pos);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dresize.rs47 int startx = (int) floor(xf - 2);
48 int starty = (int) floor(yf - 2);
49 xf = xf - floor(xf);
50 yf = yf - floor(yf);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dresize.rs47 int startx = (int) floor(xf - 2);
48 int starty = (int) floor(yf - 2);
49 xf = xf - floor(xf);
50 yf = yf - floor(yf);
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp86 int startx = (int) floor(xf - 2);
87 xf = xf - floor(xf);
121 int startx = (int) floor(xf - 2);
122 xf = xf - floor(xf);
156 int startx = (int) floor(xf - 2);
157 xf = xf - floor(xf);
193 int starty = (int) floor(yf - 2);
194 yf = yf - floor(yf);
233 int starty = (int) floor(yf - 2);
234 yf = yf - floor(y
[all...]
H A DrsCpuRuntimeMathFuncs.cpp53 IMPORT_F32_FN_F32(floor)
/frameworks/av/media/libeffects/loudness/common/core/
H A Dmath.h82 return static_cast<T>(std::floor(static_cast<double>(x) + 0.5));
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp167 int x_ppem = floor(sizeX + 0.5);
168 int y_ppem = floor(sizeY + 0.5);
/frameworks/base/libs/hwui/
H A DGammaFontRenderer.cpp149 mGammaTable[i] = uint8_t((float)::floor(pow(i / 255.0f, gamma) * 255.0f + 0.5f));
178 mGammaTable[256 + i] = uint8_t((float)::floor(black * 255.0f + 0.5f));
179 mGammaTable[512 + i] = uint8_t((float)::floor(white * 255.0f + 0.5f));
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java401 int floor = (degrees / stepSize) * stepSize;
402 int ceiling = floor + stepSize;
406 if (degrees == floor) {
407 floor -= stepSize;
409 degrees = floor;
411 if ((degrees - floor) < (ceiling - degrees)) {
412 degrees = floor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java204 view.invalidate((int) Math.floor(childBounds.left),
205 (int) Math.floor(childBounds.top),
209 Log.v(TAG, "INVALIDATE(" + (int) Math.floor(childBounds.left)
210 + "," + (int) Math.floor(childBounds.top)
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h42 return floor(val * 32767.0 + 0.5);
44 return floor(val * (1UL<<31) + 0.5);
/frameworks/av/tools/resampler_tools/
H A Dfir.cpp35 v = static_cast<int64_t>(floor(x * maxval + 0.5));
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DMetaDataTest.java55 Math.floor(md.getFloat("com.android.frameworks.coretests.float") * 10 + .5));
/frameworks/support/v4/java/android/support/v4/util/
H A DTimeUtils.java101 int seconds = (int) Math.floor(duration / 1000);
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java450 * floor of top and left, and the ceiling of right and bottom.
453 dst.set((int) FloatMath.floor(left), (int) FloatMath.floor(top),
H A DRect.java621 right = (int) Math.floor(right * scale);
622 bottom = (int) Math.floor(bottom * scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewLayoutAlgorithm.java290 int pFloorIndex = (int) Math.floor(pIndex);
315 int xFloorIndex = (int) Math.floor(xIndex);
/frameworks/av/services/audioflinger/
H A DAudioResamplerFirGen.h152 double ival = floor(val + 0.5 + err*0.2);
158 return static_cast<int64_t>(floor(x * maxval + 0.5));

Completed in 615 milliseconds

123