Converts an Android display rotation into the corresponding device Orientation.
Pass the value returned by Display.rotation — one of Surface.ROTATION_0,
Surface.ROTATION_90, Surface.ROTATION_180, or Surface.ROTATION_270.
Any unrecognized value maps to UNKNOWN.
This produces the device/UI orientation expected by
FrameData.screenOrientation and by the orientationProvider of
createLiveDataSource. It is the inverse-free, sensor-agnostic mapping;
renderers that need the flipped landscape convention should additionally
apply their own rendering transform rather than swapping here.
Converts an Android display rotation into the corresponding device
Orientation.Pass the value returned by
Display.rotation— one ofSurface.ROTATION_0,Surface.ROTATION_90,Surface.ROTATION_180, orSurface.ROTATION_270.Any unrecognized value maps to
UNKNOWN.This produces the device/UI orientation expected by
FrameData.screenOrientationand by theorientationProviderofcreateLiveDataSource. It is the inverse-free, sensor-agnostic mapping;renderers that need the flipped landscape convention should additionally
apply their own rendering transform rather than swapping here.