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.java739 int orientationAngle = (int) Math.round( in onSensorChanged() local
741 if (orientationAngle < 0) { in onSensorChanged()
743 orientationAngle += 360; in onSensorChanged()
747 int nearestRotation = (orientationAngle + 45) / 90; in onSensorChanged()
755 orientationAngle)) { in onSensorChanged()
760 + ", orientationAngle=" + orientationAngle in onSensorChanged()
770 + ", orientationAngle=" + orientationAngle); in onSensorChanged()
865 private boolean isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) { in isOrientationAngleAcceptableLocked() argument
880 if (orientationAngle >= 315 && orientationAngle < lowerBound + 360) { in isOrientationAngleAcceptableLocked()
884 if (orientationAngle < lowerBound) { in isOrientationAngleAcceptableLocked()
[all …]