Camera2: Send target SDK version to
ICameraService#isSessionConfigurationWithParametersSupported

CameraService's isSessionConfigurationWithParametersSupported function
was updated to add accept the app's target SDK version to allow it
to check for perf class override which applies to the primary
front and back cameras.

This CL passes the App's target SDK version to the above method.

Bug: 332975108
Test: atest android.hardware.camera2.cts.CameraDeviceSetupTest passes
Change-Id: I994635135570488c22503631c0968d51f60ca8ef
diff --git a/core/java/android/hardware/camera2/impl/CameraDeviceSetupImpl.java b/core/java/android/hardware/camera2/impl/CameraDeviceSetupImpl.java
index 81d0976..372839d 100644
--- a/core/java/android/hardware/camera2/impl/CameraDeviceSetupImpl.java
+++ b/core/java/android/hardware/camera2/impl/CameraDeviceSetupImpl.java
@@ -104,8 +104,8 @@
             }
 
             try {
-                return cameraService.isSessionConfigurationWithParametersSupported(
-                        mCameraId, config, mContext.getDeviceId(),
+                return cameraService.isSessionConfigurationWithParametersSupported(mCameraId,
+                        mTargetSdkVersion, config, mContext.getDeviceId(),
                         mCameraManager.getDevicePolicyFromContext(mContext));
             } catch (ServiceSpecificException e) {
                 throw ExceptionUtils.throwAsPublicException(e);