Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java98 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in faceDownFor2Seconds_withMotion_DoesNotTriggerFaceDown()
103 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f * i, 0.0f, -10.0f)); in faceDownFor2Seconds_withMotion_DoesNotTriggerFaceDown()
115 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in faceDownForHalfSecond_DoesNotTriggerFaceDown()
119 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, -10.0f)); in faceDownForHalfSecond_DoesNotTriggerFaceDown()
222 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 1.0f, 0.0f)); in triggerUnflip()
229 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, 10.0f)); in triggerFaceDown()
233 mFaceDownDetector.onSensorChanged(createTestEvent(0.5f, 0.0f, -10.0f)); in triggerFaceDown()
253 private SensorEvent createTestEvent(float x, float y, float gravity) throws Exception { in createTestEvent() method in FaceDownDetectorTest