Searched refs:predictor (Results 1 – 2 of 2) sorted by relevance
| /cts/tests/input/src/android/input/cts/ |
| D | MotionPredictorTest.kt | 126 val predictor = MotionPredictor(context) in testFeatureDisabled() constant 127 assumeFalse(predictor.isPredictionAvailable(STYLUS_DEVICE_ID, SOURCE_STYLUS)) in testFeatureDisabled() 131 predictor.record(getStylusMotionEvent(eventTime, ACTION_DOWN, x = 10f, y = 20f)) in testFeatureDisabled() 135 predictor.record(getStylusMotionEvent(eventTime, ACTION_MOVE, x = 11f, y = 24f)) in testFeatureDisabled() 138 assertNull(predictor.predict(Duration.ofMillis(10).toNanos())) in testFeatureDisabled() 146 val predictor = MotionPredictor(context) in testNoMotion() constant 147 assumeTrue(predictor.isPredictionAvailable(STYLUS_DEVICE_ID, SOURCE_STYLUS)) in testNoMotion() 151 predictor.record(getStylusMotionEvent(eventTime, ACTION_DOWN, x = 10f, y = 20f)) in testNoMotion() 156 predictor.record(getStylusMotionEvent(eventTime, ACTION_MOVE, x = 10f, y = 20f)) in testNoMotion() 159 predictor.record(getStylusMotionEvent(eventTime, ACTION_MOVE, x = 10f, y = 20f)) in testNoMotion() [all …]
|
| /cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
| D | AppPredictionServiceTest.java | 275 AppPredictor predictor = createTestPredictor(createTestPredictionContext()); in testSuccessWithPermission() local 276 predictor.destroy(); in testSuccessWithPermission()
|