Camera: Add cancelAutofocus test case.

Test cancelling autofocus when not running preview.

Bug: 6579941
Change-Id: Ib1fcd41c67294ff133be5dffaad772d7a2f06588
diff --git a/tests/tests/hardware/src/android/hardware/cts/CameraTest.java b/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
index c66f0a7..939a6c2 100755
--- a/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
+++ b/tests/tests/hardware/src/android/hardware/cts/CameraTest.java
@@ -1372,6 +1372,10 @@
 
         mCamera.setParameters(parameters);
 
+        // Valid to call outside of preview; should just reset lens or
+        // be a no-op.
+        mCamera.cancelAutoFocus();
+
         mCamera.startPreview();
 
         // No op if autofocus is not in progress.