Home
last modified time | relevance | path

Searched refs:predictor (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/input/tests/
DMotionPredictor_test.cpp175 MotionPredictor predictor(/*predictionTimestampOffsetNanos=*/0, in TEST() local
177 ASSERT_TRUE(predictor.isPredictionAvailable(/*deviceId=*/1, AINPUT_SOURCE_STYLUS)); in TEST()
178 ASSERT_FALSE(predictor.isPredictionAvailable(/*deviceId=*/1, AINPUT_SOURCE_TOUCHSCREEN)); in TEST()
182 MotionPredictor predictor(/*predictionTimestampOffsetNanos=*/1, in TEST() local
184 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
185 predictor.record(getMotionEvent(MOVE, 0, 1, 35ms)); // No movement. in TEST()
186 std::unique_ptr<MotionEvent> predicted = predictor.predict(40 * NSEC_PER_MSEC); in TEST()
191 MotionPredictor predictor(/*predictionTimestampOffsetNanos=*/1, in TEST() local
193 predictor.record(getMotionEvent(DOWN, 0, 1, 30ms)); in TEST()
194 predictor.record(getMotionEvent(MOVE, 0, 5, 35ms)); // Move enough to overcome the noise floor. in TEST()
[all …]
/frameworks/base/core/jni/
Dandroid_view_MotionPredictor.cpp49 MotionPredictor* predictor = reinterpret_cast<MotionPredictor*>(ptr); in android_view_MotionPredictor_nativeRecord() local
52 android::base::Result<void> result = predictor->record(*motionEvent); in android_view_MotionPredictor_nativeRecord()
61 MotionPredictor* predictor = reinterpret_cast<MotionPredictor*>(ptr); in android_view_MotionPredictor_nativePredict() local
63 predictor->predict(static_cast<nsecs_t>( in android_view_MotionPredictor_nativePredict()
71 MotionPredictor* predictor = reinterpret_cast<MotionPredictor*>(ptr); in android_view_MotionPredictor_nativeIsPredictionAvailable() local
72 return predictor->isPredictionAvailable(static_cast<int32_t>(deviceId), in android_view_MotionPredictor_nativeIsPredictionAvailable()
/frameworks/base/tests/MotionPrediction/src/test/motionprediction/
DDrawingView.kt51 private val predictor = MotionPredictor(getContext()) constant
70 predictor.record(event) in addEvent()
75 isPredictionAvailable = predictor.isPredictionAvailable(event.getDeviceId(), in onTouchEvent()
100 val prediction = predictor.predict(eventTime * 1000000 + 20000000) in onDraw()
/frameworks/base/apct-tests/perftests/core/src/android/input/
DMotionPredictorBenchmark.kt102 val predictor = MotionPredictor(/*isPredictionEnabled=*/true, offset.toNanos().toInt()) in timeRecordAndPredict() constant
104 predictor.record(getStylusMotionEvent( in timeRecordAndPredict()
115 predictor.record(moveEvent) in timeRecordAndPredict()
117 val predicted = checkNotNull(predictor.predict(predictionTime.toNanos())) in timeRecordAndPredict()
/frameworks/base/tests/Input/src/com/android/test/input/
DMotionPredictorTest.kt115 val predictor = MotionPredictor(context) in testPredictedCoordinatesAndTime() constant
119 predictor.record(downEvent) in testPredictedCoordinatesAndTime()
124 predictor.record(moveEvent) in testPredictedCoordinatesAndTime()
126 val predicted = predictor.predict(Duration.ofMillis(8).toNanos()) in testPredictedCoordinatesAndTime()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DPredictorTest.cpp455 Predictor predictor; in TEST_F() local
456 EXPECT_FALSE(predictor.getPredictedPlan({}, 0)); in TEST_F()
472 Predictor predictor; in TEST_F() local
476 predictor.recordResult(std::nullopt, hash, {&layerStateOne}, false, plan); in TEST_F()
478 auto predictedPlan = predictor.getPredictedPlan({}, hash); in TEST_F()
511 Predictor predictor; in TEST_F() local
516 predictor.recordResult(std::nullopt, hashOne, {&layerStateOne}, false, plan); in TEST_F()
518 auto predictedPlan = predictor.getPredictedPlan({&layerStateTwo}, hashTwo); in TEST_F()
551 Predictor predictor; in TEST_F() local
556 predictor.recordResult(std::nullopt, hashOne, {&layerStateOne}, false, plan); in TEST_F()
[all …]
/frameworks/av/media/libheadtracking/
DPosePredictor.cpp128 for (const auto& predictor : mPredictors) { in predict() local
129 predictor->reset(); in predict()
138 for (const auto& predictor : mPredictors) { in predict() local
139 predictor->add(timestampNs, pose, twist); in predict()