framework: fix screenshot and rotation animation for devices with abnormal hw rotation

Change-Id: I42694931cb1a754aa6c7652c0a96304ef1f88492
(cherry picked from commit 5cf5ea6d46badaca7ee2ce62b610e3a28d76186e)
3 files changed