Reset jpeg rotation in CameraTest.testJpegExif.

If the rotation is not reset to 0, other test methods may
accidentally use the incorrect value. For example,
testVideoSnapshot may fail because testJpegThumbnailSizeByCamera
runs after testJpegExifByCamera.

bug:7177139

Change-Id: Ie94bc5fac1eb3ab1a280ea9c68005f59239518a4
diff --git a/tests/tests/hardware/src/android/hardware/cts/CameraTest.java b/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
index d0a2bf0..05a773b 100755
--- a/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
+++ b/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
@@ -801,6 +801,9 @@
         exif = new ExifInterface(JPEG_PATH);
         checkGpsDataNull(exif);
         assertBitmapAndJpegSizeEqual(mJpegData, exif);
+        // Reset the rotation to prevent from affecting other tests.
+        parameters.setRotation(0);
+        mCamera.setParameters(parameters);
     }
 
     private void assertBitmapAndJpegSizeEqual(byte[] jpegData, ExifInterface exif) {