Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c101 int8_t current_rotation; member
129 static bool isOrientationAngleAcceptable(int current_rotation, int rotation, in isOrientationAngleAcceptable() argument
137 if (current_rotation >= 0) { in isOrientationAngleAcceptable()
143 if ((rotation == current_rotation) in isOrientationAngleAcceptable()
144 || (rotation == (current_rotation + 1) % 4)) { in isOrientationAngleAcceptable()
163 if ((rotation == current_rotation) in isOrientationAngleAcceptable()
164 || (rotation == (current_rotation + 3) % 4)) { in isOrientationAngleAcceptable()
453 && isOrientationAngleAcceptable(mTask.current_rotation, in add_samples()
479 mTask.current_rotation = proposed_rotation; in add_samples()
515 mTask.current_rotation = -1; in windowOrientationSetRate()
[all …]