CtsVerifier / Camera FOV test: Apply a rotation to the photo bitmap when necessary.

Foldable devices break assumptions made by the camera FOV test regarding the camera orientation.
It is possible on a foldable device to change from portrait to landscape while the camera sensor
orientation remains the same, for example by unfolding the device. This patch introduces a new
matrix transformation to the determine FOV activity so that the image is correctly rotated. It
also correctly selects the preview size in the photo capture activity based on rotation.

Bug: 205503030
Test: Ran the Camera FOV tests on camera 0 on all orientations.
Change-Id: Ibbd785fb838b376920f5d9c418ace66e03d61b0d
2 files changed