Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 17 of 17) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp65 EXPECT_THAT(model.slope, Eq(mPeriod)); in TEST_F()
71 EXPECT_THAT(model.slope, Eq(changedPeriod)); in TEST_F()
174 auto [slope, intercept] = tracker.getVSyncPredictionModel(); in TEST_F()
175 EXPECT_THAT(slope, IsCloseTo(expectedPeriod, mMaxRoundingError)); in TEST_F()
193 auto [slope, intercept] = tracker.getVSyncPredictionModel(); in TEST_F()
194 EXPECT_THAT(slope, IsCloseTo(expectedPeriod, mMaxRoundingError)); in TEST_F()
220 auto [slope, intercept] = tracker.getVSyncPredictionModel(); in TEST_F()
221 EXPECT_THAT(slope, IsCloseTo(expectedPeriod, mMaxRoundingError)); in TEST_F()
247 auto [slope, intercept] = tracker.getVSyncPredictionModel(); in TEST_F()
248 EXPECT_THAT(slope, IsCloseTo(expectedPeriod, mMaxRoundingError)); in TEST_F()
[all …]
/frameworks/av/include/media/
DInterpolator.h216 void setFirstSlope(T slope) { in setFirstSlope() argument
217 mFirstSlope = slope; in setFirstSlope()
224 void setLastSlope(T slope) { in setLastSlope() argument
225 mLastSlope = slope; in setLastSlope()
311 static S constrainSlope(S slope, S maxSlope) { in constrainSlope() argument
313 slope = std::min(slope, maxSlope); in constrainSlope()
314 slope = std::max(slope, S(0)); // not globally monotonic in constrainSlope()
316 slope = std::max(slope, maxSlope); in constrainSlope()
317 slope = std::min(slope, S(0)); // not globally monotonic in constrainSlope()
319 return slope; in constrainSlope()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp91 return mRateMap.find(mIdealPeriod)->second.slope; in currentPeriod()
150 auto const currentPeriod = it->second.slope; in addVsyncTimestamp()
205 auto const [slope, intercept] = getVSyncPredictionModelLocked(); in nextAnticipatedVSyncTimeFromLocked()
218 auto const ordinalRequest = (timePoint - zeroPoint + slope) / slope; in nextAnticipatedVSyncTimeFromLocked()
219 auto const prediction = (ordinalRequest * slope) + intercept + oldest; in nextAnticipatedVSyncTimeFromLocked()
225 auto const printer = [&, slope = slope, intercept = intercept] { in nextAnticipatedVSyncTimeFromLocked()
228 << prediction - timePoint << ") slope: " << slope << " intercept: " << intercept in nextAnticipatedVSyncTimeFromLocked()
268 const nsecs_t period = mRateMap[mIdealPeriod].slope; in isVSyncInPhase()
304 return {model.slope, model.intercept}; in getVSyncPredictionModel()
360 idealPeriod / 1e6f, periodInterceptTuple.slope / 1e6f, in dump()
DVSyncPredictor.h61 nsecs_t slope; member
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DVignette.java33 private float slope = 20.0f; field in Vignette
81 slope = (float)progress; in onBar3Changed()
104 center_y, scale, shade, slope); in do_init() local
109 center_y, scale, shade, slope); in do_init() local
114 scale, shade, slope); in do_init() local
119 scale, shade, slope); in do_init() local
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DVignette.java37 private float slope = 20.0f; field in Vignette
84 slope = (float)progress; in onBar3Changed()
102 center_y, scale, shade, slope); in do_init() local
107 center_y, scale, shade, slope); in do_init() local
112 scale, shade, slope); in do_init() local
117 scale, shade, slope); in do_init() local
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DVignette.java33 private float slope = 20.0f; field in Vignette
81 slope = (float)progress; in onBar3Changed()
104 center_y, scale, shade, slope); in do_init() local
109 center_y, scale, shade, slope); in do_init() local
114 scale, shade, slope); in do_init() local
119 scale, shade, slope); in do_init() local
/frameworks/av/media/codecs/amrnb/common/src/
Dlsp_lsf_tbl.cpp98 extern const Word16 slope[];
99 const Word16 slope[64] = variable
Dlsp_lsf.cpp112 extern const Word16 slope[];
375 L_tmp = (Word32)(temp - table[ind]) * slope[ind]; in Lsp_lsf()
/frameworks/av/media/codecs/amrwb/enc/inc/
Disp_isf.tab43 /* slope in Q11 used to compute y = acos(x) */
45 static const Word16 slope[128] = {
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript29 static float2 slope[12];
57 slope[total].x = (-(f1.y * (f3.z - f2.z) - f2.y * f3.z + f3.y * f2.z + (f2.y - f3.y) * f1.z)
59 slope[total].y = ((f1.x * (f3.z - f2.z) - f2.x * f3.z + f3.x * f2.z + (f2.x - f3.x) * f1.z)
117 float2 delta = slope[i] * loc;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt556 val slope = velY / velX in <lambda>() constant
558 val yIntercept = rawY - slope * rawX in <lambda>()
561 targetCenterXIntercept = (target.centerOnScreen.y - yIntercept) / slope in <lambda>()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
Dyuv.rscript104 const float slope = 20.0f;
108 … float lumen = vignetteShade / (1.0f + exp((sqrt(f) - range) * slope)) + (1.0f - vignetteShade);
/frameworks/av/media/codecs/amrwb/enc/src/
Disp_isf.c52 L_tmp = vo_L_mult(vo_sub(isp[i], table[ind]), slope[ind]); in Isp_isf()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java164 float slope = (segmentEndY - segmentStartY) / in spatialSampling() local
167 ypos = slope * (xpos - segmentStartX) + segmentStartY; in spatialSampling()
173 float slope = (segmentEndY - segmentStartY) / in spatialSampling() local
176 ypos = slope * (xpos - segmentStartX) + segmentStartY; in spatialSampling()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
DFilters.java254 private final float slope = 20.0f; field in Filters.VignetteFilter
261 center_y, scale, shade, slope); in init() local
270 scale, shade, slope); in prepInit()
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java1243 float slope = getSlopeOf(samples); in getForecast() local
1245 currentTemperature + slope * forecastSeconds * 1000, threshold); in getForecast()