/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncPredictorTest.cpp | 65 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/ |
D | Interpolator.h | 216 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/ |
D | VSyncPredictor.cpp | 91 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()
|
D | VSyncPredictor.h | 61 nsecs_t slope; member
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | Vignette.java | 33 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/ |
D | Vignette.java | 37 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/ |
D | Vignette.java | 33 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/ |
D | lsp_lsf_tbl.cpp | 98 extern const Word16 slope[]; 99 const Word16 slope[64] = variable
|
D | lsp_lsf.cpp | 112 extern const Word16 slope[]; 375 L_tmp = (Word32)(temp - table[ind]) * slope[ind]; in Lsp_lsf()
|
/frameworks/av/media/codecs/amrwb/enc/inc/ |
D | isp_isf.tab | 43 /* 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/ |
D | rasterize.rscript | 29 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/ |
D | MagnetizedObject.kt | 556 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/ |
D | yuv.rscript | 104 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/ |
D | isp_isf.c | 52 L_tmp = vo_L_mult(vo_sub(isp[i], table[ind]), slope[ind]); in Isp_isf()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 164 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/ |
D | Filters.java | 254 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/ |
D | ThermalManagerService.java | 1243 float slope = getSlopeOf(samples); in getForecast() local 1245 currentTemperature + slope * forecastSeconds * 1000, threshold); in getForecast()
|