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/wm/
DWindowOrientationListener.java793 int orientationAngle = (int) Math.round( in onSensorChanged() local
795 if (orientationAngle < 0) { in onSensorChanged()
797 orientationAngle += 360; in onSensorChanged()
801 int nearestRotation = (orientationAngle + 45) / 90; in onSensorChanged()
809 orientationAngle)) { in onSensorChanged()
814 + ", orientationAngle=" + orientationAngle in onSensorChanged()
824 + ", orientationAngle=" + orientationAngle); in onSensorChanged()
919 private boolean isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) { in isOrientationAngleAcceptableLocked() argument
934 if (orientationAngle >= 315 && orientationAngle < lowerBound + 360) { in isOrientationAngleAcceptableLocked()
938 if (orientationAngle < lowerBound) { in isOrientationAngleAcceptableLocked()
[all …]