Merge "Add an utility function to convert RotationFlags to Rotation" into sc-dev am: 6a5e8c4adb am: 5ee25eaa89

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15191746

Change-Id: I809c3b397ae2ba4ea68453c5e7f2c65279561ea8