Fix orientation and move it to the util class so we can use it elsewhere.

  Bug: 16948752

Change-Id: Ic7bf2f01176d8f6f1e1a70940c35531e1a5a1cbc
2 files changed