Camera: Skip invalid physical requests for depth only devices

Camera devices that do not support color output should
skip the "testInvalidPhysicalCameraRequests" test case.

Bug: 122348647
Test: Camera CTS, partner testing
Change-Id: I1d78ac4e4f11d33a70eabd6248ad665ef09dc407
Merged-In: I1d78ac4e4f11d33a70eabd6248ad665ef09dc407
diff --git a/tests/camera/src/android/hardware/camera2/cts/LogicalCameraDeviceTest.java b/tests/camera/src/android/hardware/camera2/cts/LogicalCameraDeviceTest.java
index 411747d..c3de878 100644
--- a/tests/camera/src/android/hardware/camera2/cts/LogicalCameraDeviceTest.java
+++ b/tests/camera/src/android/hardware/camera2/cts/LogicalCameraDeviceTest.java
@@ -105,6 +105,10 @@
                     Log.i(TAG, "Camera " + id + " is legacy, skipping");
                     continue;
                 }
+                if (!mStaticInfo.isColorOutputSupported()) {
+                    Log.i(TAG, "Camera " + id + " does not support color outputs, skipping");
+                    continue;
+                }
 
                 Size yuvSize = mOrderedPreviewSizes.get(0);
                 // Create a YUV image reader.