Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java84 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_rotationResolverDisabled_useSensorResult()
91 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_callbackNotTheLatest_IgnoreResult()
95 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_callbackNotTheLatest_IgnoreResult()
109 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_normalCase1()
118 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testSensorChanged_normalCase2()
164 mWindowOrientationListener.mOrientationJudge.onSensorChanged(mFakeSensorEvent); in testOnSensorChanged_inLockScreen_doNotCallRotationResolver()
175 this.mOrientationJudge = new OrientationSensorJudge(); in TestableWindowOrientationListener()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowOrientationListener.java81 OrientationJudge mOrientationJudge; field in WindowOrientationListener
144 mOrientationJudge = new OrientationSensorJudge(); in WindowOrientationListener()
147 if (mOrientationJudge == null) { in WindowOrientationListener()
152 mOrientationJudge = new AccelSensorJudge(context); in WindowOrientationListener()
185 mOrientationJudge.resetLocked(clearCurrentRotation); in enable()
188 mOrientationJudge, mSensor, mRate, DEFAULT_BATCH_LATENCY, mHandler); in enable()
190 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable()
209 mSensorManager.unregisterListener(mOrientationJudge); in disable()
217 if (mOrientationJudge != null) { in onTouchStart()
218 mOrientationJudge.onTouchStartLocked(); in onTouchStart()
[all …]