Searched refs:jerkMagnitude (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | MotionPredictor_test.cpp | 74 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 76 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 78 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 80 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 82 EXPECT_TRUE(jerkTracker.jerkMagnitude()); in TEST() 84 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 86 EXPECT_FALSE(jerkTracker.jerkMagnitude()); in TEST() 107 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(10, -1)); in TEST() 121 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(-50, -18)); in TEST() 142 EXPECT_FLOAT_EQ(jerkTracker.jerkMagnitude().value(), std::hypot(.01, -.001)); in TEST() [all …]
|
/frameworks/native/libs/input/ |
D | MotionPredictor.cpp | 126 std::optional<float> JerkTracker::jerkMagnitude() const { in jerkMagnitude() function in android::JerkTracker 264 const float jerkMagnitude = mJerkTracker.jerkMagnitude().value_or(0); in predict() local 266 1 - normalizeRange(jerkMagnitude, mModel->config().lowJerk, mModel->config().highJerk); in predict() 274 jerkMagnitude, 1 - fractionKept, maxNumPredictions); in predict()
|
/frameworks/native/include/input/ |
D | MotionPredictor.h | 57 std::optional<float> jerkMagnitude() const;
|