cameraservice: check performance class override in
isSessionConfigurationWithParametersSupported

The current implementation of
isSessionConfigurationWithParametersSupported simply hardcoded a
value of false for overrideForPerfClass parameter. This value
would typically for primary read and front cameras.

This CL passes the app's target SDK version to cameraservice
and uses it to calculate overrideForPerfClass based to follow suit
with all the other CameraService functions.

Bug: 332975108
Test: atest android.hardware.camera2.cts.CameraDeviceSetupTest passes
Change-Id: Ia93e1614f5fa9165383e84d8fdadd1c4dfbb42da
diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h
index c1ffc87..8dbd591 100644
--- a/services/camera/libcameraservice/CameraService.h
+++ b/services/camera/libcameraservice/CameraService.h
@@ -256,11 +256,10 @@
             hardware::camera2::impl::CameraMetadataNative* request);
 
     virtual binder::Status isSessionConfigurationWithParametersSupported(
-            const std::string& cameraId,
+            const std::string& cameraId, int targetSdkVersion,
             const SessionConfiguration& sessionConfiguration,
             int32_t deviceId, int32_t devicePolicy,
-            /*out*/
-            bool* supported);
+            /*out*/ bool* supported);
 
     virtual binder::Status getSessionCharacteristics(
             const std::string& cameraId, int targetSdkVersion, bool overrideToPortrait,