Home
last modified time | relevance | path

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

123456

/frameworks/base/libs/androidfw/tests/
DResourceTimer_test.cpp50 ASSERT_THAT(timer.pvalues.p50.floor, 0); in TEST()
58 ASSERT_THAT(timer.pvalues.p50.floor, US(49)); in TEST()
60 ASSERT_THAT(timer.pvalues.p90.floor, US(89)); in TEST()
62 ASSERT_THAT(timer.pvalues.p95.floor, US(94)); in TEST()
64 ASSERT_THAT(timer.pvalues.p99.floor, US(98)); in TEST()
74 ASSERT_THAT(timer.pvalues.p50.floor, US(0)); in TEST()
82 ASSERT_THAT(timer.pvalues.p50.floor, US(0)); in TEST()
84 ASSERT_THAT(timer.pvalues.p90.floor, US(0)); in TEST()
86 ASSERT_THAT(timer.pvalues.p95.floor, US(0)); in TEST()
88 ASSERT_THAT(timer.pvalues.p99.floor, US(0)); in TEST()
[all …]
/frameworks/rs/toolkit/
DResize.cpp129 int startx = (int) floor(xf - 1); in OneBiCubic()
130 xf = xf - floor(xf); in OneBiCubic()
164 int startx = (int) floor(xf - 1); in OneBiCubic()
165 xf = xf - floor(xf); in OneBiCubic()
199 int startx = (int) floor(xf - 1); in OneBiCubic()
200 xf = xf - floor(xf); in OneBiCubic()
282 int startx = (int) floor(xf - 1); in OneBiCubic()
283 xf = xf - floor(xf); in OneBiCubic()
305 int startx = (int) floor(xf - 1); in OneBiCubic()
306 xf = xf - floor(xf); in OneBiCubic()
[all …]
/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/rs/toolkit/test/
DReferenceResize.kt20 import kotlin.math.floor in <lambda>()
62 val startX: Int = floor(xf - 1).toInt() in bicubicU4()
63 val startY: Int = floor(yf - 1).toInt() in bicubicU4()
64 xf -= floor(xf) in bicubicU4()
65 yf -= floor(yf) in bicubicU4()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp69 auto const floor = timePoint % mPeriod; in nextAnticipatedVSyncTimeFrom() local
70 if (floor == 0) { in nextAnticipatedVSyncTimeFrom()
73 return timePoint - floor + mPeriod; in nextAnticipatedVSyncTimeFrom()
84 auto const floor = (normalized_to_base) % mPeriod; in nextAnticipatedVSyncTimeFrom() local
85 if (floor == 0) { in nextAnticipatedVSyncTimeFrom()
88 return normalized_to_base - floor + mPeriod + mBase; in nextAnticipatedVSyncTimeFrom()
/frameworks/base/core/java/android/util/
DFloatMath.java47 public static float floor(float value) { in floor() method in FloatMath
48 return (float) Math.floor(value); 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/av/media/libstagefright/include/media/stagefright/
DMediaHistogram.h32 bool setup(size_t bucketCount, T width, T floor = 0);
76 bool MediaHistogram<T>::setup(size_t bucketCount, T width, T floor) { in setup() argument
83 mFloor = floor; in setup()
84 mCeiling = floor + bucketCount * width; in setup()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextClock.kt27 import kotlin.math.floor
130 floor(metrics.descent.toDouble()).toInt() / paddingDividedOffset in initializeAttributes()
132 textDescentExtraPadding - floor(metrics.descent.toDouble()).toInt() in initializeAttributes()
/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/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/base/core/tests/coretests/src/android/util/
DFloatMathTest.java50 assertEquals((float) Math.floor(value), FloatMath.floor(value), DELTA); in testFloor()
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dcolor_grading_lut.agsl56 // Calculate the floor UVs.
57 vec3 colorFloor = floor(colorTmp) * SLICE_LAST_IDX_INV;
71 * Fetch the color from the LUT, and combine both floor and ceiling options based on the
Drain_shower.agsl56 float columnId = idGenerator(floor(gridUv.x));
61 float cellId = idGenerator(floor(gridUv));
65 float intensity = idGenerator(floor(vec2(cellId * 8.16, 27.2)));
Dglass_rain.agsl68 float cellId = idGenerator(floor(gridUv));
161 float columnId = idGenerator(floor(gridUv.x));
165 float cellId = idGenerator(floor(gridUv));
181 float circletime = floor(t / (duration + delay));
182 float delayOffset = idGenerator(floor(gridUv) + vec2(circletime, 43.14 * cellId));
Drain_shower_layer.agsl51 float columnOffset = idGenerator(floor(gridUv.x));
71 float circletime = floor(t / (duration + delay));
73 float cellId = idGenerator(floor(gridUv) + vec2(circletime, 23.14));
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryFillDrawable.kt31 import kotlin.math.floor in <lambda>()
165 floor(scaledFillRect.width() * (1 - fillFraction)).roundToInt() in <lambda>()
DBatteryLayersDrawable.kt32 import kotlin.math.floor
224 floor(scaledAttrRightCanvas.left).toInt(), in draw()
225 floor(scaledAttrRightCanvas.top).toInt(), in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/
DWallpaperLocalColorExtractor.java350 (int) Math.floor(imageArea.left * mMiniBitmap.getWidth()), in getLocalWallpaperColors()
351 (int) Math.floor(imageArea.top * mMiniBitmap.getHeight()), in getLocalWallpaperColors()
387 int currentPage = (int) Math.floor(area.centerX() / virtualPageWidth); in pageToImgRect()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java62 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime()
139 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/av/media/libeffects/loudness/common/core/
Dmath.h82 return static_cast<T>(std::floor(static_cast<double>(x) + 0.5)); in round()

123456