Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowOrientationListener.java801 int nearestRotation = (orientationAngle + 45) / 90; in onSensorChanged() local
802 if (nearestRotation == 4) { in onSensorChanged()
803 nearestRotation = 0; in onSensorChanged()
807 if (isTiltAngleAcceptableLocked(nearestRotation, tiltAngle) in onSensorChanged()
808 && isOrientationAngleAcceptableLocked(nearestRotation, in onSensorChanged()
810 updatePredictedRotationLocked(now, nearestRotation); in onSensorChanged()