Home
last modified time | relevance | path

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

12345

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp103 int startx = (int) floor(xf - 1); in OneBiCubic()
104 xf = xf - floor(xf); in OneBiCubic()
138 int startx = (int) floor(xf - 1); in OneBiCubic()
139 xf = xf - floor(xf); in OneBiCubic()
173 int startx = (int) floor(xf - 1); in OneBiCubic()
174 xf = xf - floor(xf); in OneBiCubic()
254 int startx = (int) floor(xf - 1); in OneBiCubic()
255 xf = xf - floor(xf); in OneBiCubic()
277 int startx = (int) floor(xf - 1); in OneBiCubic()
278 xf = xf - floor(xf); in OneBiCubic()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp43 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom() local
44 if (floor == 0) { in nextAnticipatedVSyncTimeFrom()
47 return timePoint - floor + mPeriod; in nextAnticipatedVSyncTimeFrom()
71 auto const floor = (normalized_to_base) % mPeriod; in nextAnticipatedVSyncTimeFrom() local
72 if (floor == 0) { in nextAnticipatedVSyncTimeFrom()
75 return normalized_to_base - floor + mPeriod + mBase; in nextAnticipatedVSyncTimeFrom()
/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java153 pos = pos - (float)Math.floor(pos); in getGradientColor()
161 int intPart = (int)Math.floor(pos); in getGradientColor()
183 pos = pos - (float)Math.floor(pos); in getGradientColor()
187 int intPart = (int)Math.floor(pos); in getGradientColor()
/frameworks/base/core/java/android/util/
DFloatMath.java46 public static float floor(float value) { in floor() method in FloatMath
47 return (float) Math.floor(value); in floor()
DHalf.java565 public static @HalfFloat short floor(@HalfFloat short h) { in floor() method in Half
566 return FP16.floor(h); in floor()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline()
DRectShape.java47 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline()
DRoundRectShape.java105 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom), radius); in getOutline()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dresize.rscript47 int startx = (int) floor(xf - 1);
48 int starty = (int) floor(yf - 1);
49 xf = xf - floor(xf);
50 yf = yf - floor(yf);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dresize.rscript47 int startx = (int) floor(xf - 1);
48 int starty = (int) floor(yf - 1);
49 xf = xf - floor(xf);
50 yf = yf - floor(yf);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dresize.rscript47 int startx = (int) floor(xf - 1);
48 int starty = (int) floor(yf - 1);
49 xf = xf - floor(xf);
50 yf = yf - floor(yf);
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java116 translateX = -(int) Math.floor(shadowBounds[0]); in paintRectShadow()
117 translateY = -(int) Math.floor(shadowBounds[1]); in paintRectShadow()
139 translateX = Math.max(-(int) Math.floor(shadowBounds[0]), translateX); in paintRectShadow()
140 translateY = Math.max(-(int) Math.floor(shadowBounds[1]), translateY); in paintRectShadow()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java59 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime()
136 final int seconds = (int) Math.floor(millis / 1000); in formatRelativeTime()
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperComp.py23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java138 w = (int) Math.floor(scale * w); in renderImage()
139 h = (int) Math.floor(scale * h); in renderImage()
/frameworks/av/media/libeffects/loudness/common/core/
Dmath.h82 return static_cast<T>(std::floor(static_cast<double>(x) + 0.5)); in round()
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java62 f += FloatMath.floor(100.123f); in timeFloatMathFloor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java275 int currentPage = (int) Math.floor(area.centerX() / virtualPageWidth); in pageToImgRect()
304 (int) Math.floor(area.left * b.getWidth()), in getLocalWallpaperColors()
305 (int) Math.floor(area.top * b.getHeight()), in getLocalWallpaperColors()
/frameworks/rs/driver/runtime/
Drs_sample.c428 int32_t iPixel = floor(pixelUV); in sample_LOD_LinearPixel()
457 int32_t iPixel = floor(uv * (float)(sourceW)); in sample_LOD_NearestPixel()
475 int iPixelU = floor(pixelU); in sample_LOD_LinearPixel()
476 int iPixelV = floor(pixelV); in sample_LOD_LinearPixel()
521 int2 iPixel = convert_int2(floor(uv * dimF)); in sample_LOD_NearestPixel()
561 uint32_t lod0 = (uint32_t)floor(lod); in rsSample()
614 uint32_t lod0 = (uint32_t)floor(lod); in rsSample()
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h49 return floor(val * 32767.0 + 0.5);
51 return floor(val * (1UL<<31) + 0.5);
/frameworks/base/tests/JankBench/scripts/
Dcollect.py8 from math import log10, floor
89 return round(val , -int(floor(log10(abs(val)))) + 1)
/frameworks/minikin/include/minikin/
DLineBreaker.h68 return floor(widthSoFar / mTabWidth + 1) * mTabWidth; in nextTab()
/frameworks/av/media/codecs/amrwb/enc/inc/
Dlag_wind.tab20 | noise floor = 1.0001 = (0.9999 on r[1] ..r[16]) |
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java295 int floor = (degrees / stepSize) * stepSize; in snapOnly30s() local
296 final int ceiling = floor + stepSize; in snapOnly30s()
300 if (degrees == floor) { in snapOnly30s()
301 floor -= stepSize; in snapOnly30s()
303 degrees = floor; in snapOnly30s()
305 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s()
306 degrees = floor; in snapOnly30s()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DListGridLayout.java160 sublistIndex = (int) Math.floor(index / rows); in getParentViewIndex()

12345