setOrientation
Rotates the display to orientation geometry, whatever the device's natural orientation, and freezes it there until unfreezeRotation. Fails only when Android refuses the request; the call then waits briefly for the display to turn. The foreground app may pin its own orientation and keep the display where it wants it: assert with info (orientation, displayRotation). The rotation settings the device had before the session's first rotation call are restored when the device is detached.