Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c134 int8_t current_rotation; member
162 static bool isOrientationAngleAcceptable(int current_rotation, int rotation, in isOrientationAngleAcceptable() argument
171 (int)current_rotation, (int)rotation, (int)orientation_angle); in isOrientationAngleAcceptable()
173 if (current_rotation >= 0) { in isOrientationAngleAcceptable()
179 if ((rotation == current_rotation) in isOrientationAngleAcceptable()
180 || (rotation == (current_rotation + 1) % 4)) { in isOrientationAngleAcceptable()
199 if ((rotation == current_rotation) in isOrientationAngleAcceptable()
200 || (rotation == (current_rotation + 3) % 4)) { in isOrientationAngleAcceptable()
516 && isOrientationAngleAcceptable(mTask.current_rotation, in add_samples()
546 mTask.current_rotation = proposed_rotation; in add_samples()
[all …]