Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c159 int orientation_angle) in isOrientationAngleAcceptable() argument
167 (int)current_rotation, (int)rotation, (int)orientation_angle); in isOrientationAngleAcceptable()
180 if ((orientation_angle >= 315) in isOrientationAngleAcceptable()
181 && (orientation_angle < lower_bound + 360)) { in isOrientationAngleAcceptable()
185 if (orientation_angle < lower_bound) { in isOrientationAngleAcceptable()
200 if ((orientation_angle <= 45) in isOrientationAngleAcceptable()
201 && (orientation_angle > upper_bound)) { in isOrientationAngleAcceptable()
205 if (orientation_angle > upper_bound) { in isOrientationAngleAcceptable()
387 int orientation_angle, nearest_rotation; in add_samples() local
499 orientation_angle = (int)(-atan2f(-x, y) * RADIANS_TO_DEGREES); in add_samples()
[all …]