Loading camera/Camera.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -69,12 +69,11 @@ Camera::~Camera() // deadlock if we call any method of ICamera here. } sp<Camera> Camera::connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, sp<Camera> Camera::connect(int cameraId, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, int32_t devicePolicy) { return CameraBaseT::connect(cameraId, clientPackageName, targetSdkVersion, rotationOverride, return CameraBaseT::connect(cameraId, targetSdkVersion, rotationOverride, forceSlowJpegMode, clientAttribution, devicePolicy); } Loading camera/CameraBase.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -161,7 +161,6 @@ const sp<::android::hardware::ICameraService> CameraBase<TCam, TCamTraits>::getC template <typename TCam, typename TCamTraits> sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, Loading @@ -177,7 +176,7 @@ sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, TCamConnectService fnConnectService = TCamTraits::fnConnectService; ALOGI("Connect camera (legacy API) - rotationOverride %d, forceSlowJpegMode %d", rotationOverride, forceSlowJpegMode); ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, targetSdkVersion, ret = (cs.get()->*fnConnectService)(cl, cameraId, targetSdkVersion, rotationOverride, forceSlowJpegMode, clientAttribution, devicePolicy, /*out*/ &c->mCamera); } Loading camera/aidl/android/hardware/ICameraService.aidl +0 −5 Original line number Diff line number Diff line Loading @@ -120,7 +120,6 @@ interface ICameraService * Open a camera device through the old camera API. * * @param cameraId The ID of the camera to open. * @param opPackageName The package name to report for the app-ops. * @param targetSdkVersion the target sdk level of the application calling this function. * @param rotationOverride Whether to override the sensor orientation information to * correspond to portrait: {@link ICameraService#ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT} Loading @@ -136,7 +135,6 @@ interface ICameraService */ ICamera connect(ICameraClient client, int cameraId, @utf8InCpp String opPackageName, int targetSdkVersion, int rotationOverride, boolean forceSlowJpegMode, Loading @@ -148,7 +146,6 @@ interface ICameraService * Only supported for device HAL versions >= 3.2. * * @param cameraId The ID of the camera to open. * @param opPackageName The package name to report for the app-ops. * @param targetSdkVersion the target sdk level of the application calling this function. * @param rotationOverride Whether to override the sensor orientation information to * correspond to portrait: {@link ICameraService#ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT} Loading @@ -163,8 +160,6 @@ interface ICameraService */ ICameraDeviceUser connectDevice(ICameraDeviceCallbacks callbacks, @utf8InCpp String cameraId, @utf8InCpp String opPackageName, @nullable @utf8InCpp String featureId, int oomScoreOffset, int targetSdkVersion, int rotationOverride, Loading camera/include/camera/Camera.h +1 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ struct CameraTraits<Camera> typedef ::android::hardware::ICameraClient TCamCallbacks; typedef ::android::binder::Status (::android::hardware::ICameraService::*TCamConnectService) (const sp<::android::hardware::ICameraClient>&, int, const std::string&, int, int, bool, const AttributionSourceState&, int32_t, int, int, int, bool, const AttributionSourceState&, int32_t, /*out*/ sp<::android::hardware::ICamera>*); static TCamConnectService fnConnectService; Loading @@ -81,7 +81,6 @@ public: // construct a camera client from an existing remote static sp<Camera> create(const sp<::android::hardware::ICamera>& camera); static sp<Camera> connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, int32_t devicePolicy = 0); Loading camera/include/camera/CameraBase.h +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ public: typedef typename TCamTraits::TCamConnectService TCamConnectService; static sp<TCam> connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState &clientAttribution, int32_t devicePolicy); Loading Loading
camera/Camera.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -69,12 +69,11 @@ Camera::~Camera() // deadlock if we call any method of ICamera here. } sp<Camera> Camera::connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, sp<Camera> Camera::connect(int cameraId, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, int32_t devicePolicy) { return CameraBaseT::connect(cameraId, clientPackageName, targetSdkVersion, rotationOverride, return CameraBaseT::connect(cameraId, targetSdkVersion, rotationOverride, forceSlowJpegMode, clientAttribution, devicePolicy); } Loading
camera/CameraBase.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -161,7 +161,6 @@ const sp<::android::hardware::ICameraService> CameraBase<TCam, TCamTraits>::getC template <typename TCam, typename TCamTraits> sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, Loading @@ -177,7 +176,7 @@ sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, TCamConnectService fnConnectService = TCamTraits::fnConnectService; ALOGI("Connect camera (legacy API) - rotationOverride %d, forceSlowJpegMode %d", rotationOverride, forceSlowJpegMode); ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, targetSdkVersion, ret = (cs.get()->*fnConnectService)(cl, cameraId, targetSdkVersion, rotationOverride, forceSlowJpegMode, clientAttribution, devicePolicy, /*out*/ &c->mCamera); } Loading
camera/aidl/android/hardware/ICameraService.aidl +0 −5 Original line number Diff line number Diff line Loading @@ -120,7 +120,6 @@ interface ICameraService * Open a camera device through the old camera API. * * @param cameraId The ID of the camera to open. * @param opPackageName The package name to report for the app-ops. * @param targetSdkVersion the target sdk level of the application calling this function. * @param rotationOverride Whether to override the sensor orientation information to * correspond to portrait: {@link ICameraService#ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT} Loading @@ -136,7 +135,6 @@ interface ICameraService */ ICamera connect(ICameraClient client, int cameraId, @utf8InCpp String opPackageName, int targetSdkVersion, int rotationOverride, boolean forceSlowJpegMode, Loading @@ -148,7 +146,6 @@ interface ICameraService * Only supported for device HAL versions >= 3.2. * * @param cameraId The ID of the camera to open. * @param opPackageName The package name to report for the app-ops. * @param targetSdkVersion the target sdk level of the application calling this function. * @param rotationOverride Whether to override the sensor orientation information to * correspond to portrait: {@link ICameraService#ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT} Loading @@ -163,8 +160,6 @@ interface ICameraService */ ICameraDeviceUser connectDevice(ICameraDeviceCallbacks callbacks, @utf8InCpp String cameraId, @utf8InCpp String opPackageName, @nullable @utf8InCpp String featureId, int oomScoreOffset, int targetSdkVersion, int rotationOverride, Loading
camera/include/camera/Camera.h +1 −2 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ struct CameraTraits<Camera> typedef ::android::hardware::ICameraClient TCamCallbacks; typedef ::android::binder::Status (::android::hardware::ICameraService::*TCamConnectService) (const sp<::android::hardware::ICameraClient>&, int, const std::string&, int, int, bool, const AttributionSourceState&, int32_t, int, int, int, bool, const AttributionSourceState&, int32_t, /*out*/ sp<::android::hardware::ICamera>*); static TCamConnectService fnConnectService; Loading @@ -81,7 +81,6 @@ public: // construct a camera client from an existing remote static sp<Camera> create(const sp<::android::hardware::ICamera>& camera); static sp<Camera> connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState& clientAttribution, int32_t devicePolicy = 0); Loading
camera/include/camera/CameraBase.h +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ public: typedef typename TCamTraits::TCamConnectService TCamConnectService; static sp<TCam> connect(int cameraId, const std::string& clientPackageName, int targetSdkVersion, int rotationOverride, bool forceSlowJpegMode, const AttributionSourceState &clientAttribution, int32_t devicePolicy); Loading