Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java686 int orientationAngle = (int) Math.round( in onSensorChanged() local
688 if (orientationAngle < 0) { in onSensorChanged()
690 orientationAngle += 360; in onSensorChanged()
694 int nearestRotation = (orientationAngle + 45) / 90; in onSensorChanged()
702 orientationAngle)) { in onSensorChanged()
707 + ", orientationAngle=" + orientationAngle in onSensorChanged()
717 + ", orientationAngle=" + orientationAngle); in onSensorChanged()
810 private boolean isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) { in isOrientationAngleAcceptableLocked() argument
825 if (orientationAngle >= 315 && orientationAngle < lowerBound + 360) { in isOrientationAngleAcceptableLocked()
829 if (orientationAngle < lowerBound) { in isOrientationAngleAcceptableLocked()
[all …]