Camera2: add some logging in performance test

This is to facilitate performance profiling and debugging.
Also increase the test iteration to 10 as there are some big variations
run to run.

Change-Id: If18c3bab072c7e3d176b9a4acfe7b167e24e1c44
diff --git a/tests/camera/src/android/hardware/camera2/cts/PerformanceTest.java b/tests/camera/src/android/hardware/camera2/cts/PerformanceTest.java
index b88a80f..83e85db 100644
--- a/tests/camera/src/android/hardware/camera2/cts/PerformanceTest.java
+++ b/tests/camera/src/android/hardware/camera2/cts/PerformanceTest.java
@@ -66,7 +66,7 @@
     private static final String TAG = "PerformanceTest";
     private static final String REPORT_LOG_NAME = "CtsCameraTestCases";
     private static final boolean VERBOSE = Log.isLoggable(TAG, Log.VERBOSE);
-    private static final int NUM_TEST_LOOPS = 5;
+    private static final int NUM_TEST_LOOPS = 10;
     private static final int NUM_MAX_IMAGES = 4;
     private static final int NUM_RESULTS_WAIT = 30;
     private static final int[] REPROCESS_FORMATS = {ImageFormat.YUV_420_888, ImageFormat.PRIVATE};
@@ -205,6 +205,21 @@
             }
             counter++;
             mReportLog.submit(getInstrumentation());
+
+            if (VERBOSE) {
+                Log.v(TAG, "Camera " + id + " device open times: "
+                        + Arrays.toString(cameraOpenTimes));
+                Log.v(TAG, "Camera " + id + " configure stream times: "
+                        + Arrays.toString(configureStreamTimes));
+                Log.v(TAG, "Camera " + id + " start preview times: "
+                        + Arrays.toString(startPreviewTimes));
+                Log.v(TAG, "Camera " + id + " stop preview times: "
+                        + Arrays.toString(stopPreviewTimes));
+                Log.v(TAG, "Camera " + id + " device close times: "
+                        + Arrays.toString(cameraCloseTimes));
+                Log.v(TAG, "Camera " + id + " camera launch times: "
+                        + Arrays.toString(cameraLaunchTimes));
+            }
         }
         if (mCameraIds.length != 0) {
             String streamName = "test_camera_launch_average";