Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java747 int nearestRotation = (orientationAngle + 45) / 90; in onSensorChanged() local
748 if (nearestRotation == 4) { in onSensorChanged()
749 nearestRotation = 0; in onSensorChanged()
753 if (isTiltAngleAcceptableLocked(nearestRotation, tiltAngle) in onSensorChanged()
754 && isOrientationAngleAcceptableLocked(nearestRotation, in onSensorChanged()
756 updatePredictedRotationLocked(now, nearestRotation); in onSensorChanged()