Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1573aa27 authored by Michael Bestas's avatar Michael Bestas
Browse files

Merge tag 'android-13.0.0_r35' into staging/lineage-20.0_merge-android-13.0.0_r35

Android 13.0.0 release 35

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZA9jxwAKCRDorT+BmrEO
# eNh4AJ9p0xVPyDH21bE1HzYD/ofpqRAnJwCeK1I+iBwv9kn00awiXHvonmDItow=
# =TO5/
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon Mar 13 19:56:23 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 1579 signatures in the past
#      16 months.  Encrypted 4 messages in the past 14 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Eric Laurent (10) and others
# Via Automerger Merge Worker (98) and others
* tag 'android-13.0.0_r35': (54 commits)
  C2BqBuffer: Clear a cached buffer if reallocation is needed
  Fix an issue that the syncTimestampToDisplayLocked incorrect
  C2SurfaceSyncObj: prevent OOB read in Import
  C2SurfaceSyncObj: prevent OOB read in Import
  C2SurfaceSyncObj: prevent OOB read in Import
  C2SurfaceSyncObj: prevent OOB read in Import
  C2SurfaceSyncObj: prevent OOB read in Import
  Camera: Fix parameter misalignment in getDeviceVersion
  Spatializer: Raise Spatializer-looper priority to RT
  audio policy: fix BT SCO mute
  suppress end-of-process destruction of several static variables
  RotateAndCropMapper - reverse rotation direction.
  aaudio: fix command thread busy loop.
  audioserver: Ensure minimum binder priority set
  Modify hdr metrics
  move MediaCodec metrics processing to looper thread
  DO NOT MERGE libcameraservice: Provide flag for overriding camera output to portrait.
  move MediaCodec metrics processing to looper thread
  Camera: memcpy Blob header rather than directly writing fields
  move MediaCodec metrics processing to looper thread
  ...

 Conflicts:
	media/libheadtracking/SensorPoseProvider.cpp
	media/libstagefright/MediaCodec.cpp
	services/audioflinger/Threads.cpp
	services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp

Change-Id: Id0565d4289b6aba271359fb0fbfc452497025f3e
parents 4e4fd6dd 594b9644
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ cc_library_shared {
        "libgui",
        "libcamera_metadata",
        "libnativewindow",
        "lib-platform-compat-native-api",
    ],

    include_dirs: [
+2 −2
Original line number Diff line number Diff line
@@ -71,10 +71,10 @@ Camera::~Camera()
}

sp<Camera> Camera::connect(int cameraId, const String16& clientPackageName,
        int clientUid, int clientPid, int targetSdkVersion)
        int clientUid, int clientPid, int targetSdkVersion, bool overrideToPortrait)
{
    return CameraBaseT::connect(cameraId, clientPackageName, clientUid,
            clientPid, targetSdkVersion);
            clientPid, targetSdkVersion, overrideToPortrait);
}

status_t Camera::reconnect()
+7 −3
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
#include <cutils/properties.h>

#include <android/hardware/ICameraService.h>
#include <com/android/internal/compat/IPlatformCompatNative.h>

#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
@@ -161,7 +162,8 @@ const sp<::android::hardware::ICameraService> CameraBase<TCam, TCamTraits>::getC
template <typename TCam, typename TCamTraits>
sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId,
                                               const String16& clientPackageName,
                                               int clientUid, int clientPid, int targetSdkVersion)
                                               int clientUid, int clientPid, int targetSdkVersion,
                                               bool overrideToPortrait)
{
    ALOGV("%s: connect", __FUNCTION__);
    sp<TCam> c = new TCam(cameraId);
@@ -171,8 +173,9 @@ sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId,
    binder::Status ret;
    if (cs != nullptr) {
        TCamConnectService fnConnectService = TCamTraits::fnConnectService;
        ALOGI("Connect camera (legacy API) - overrideToPortrait %d", overrideToPortrait);
        ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid,
                                               clientPid, targetSdkVersion, /*out*/ &c->mCamera);
                clientPid, targetSdkVersion, overrideToPortrait, /*out*/ &c->mCamera);
    }
    if (ret.isOk() && c->mCamera != nullptr) {
        IInterface::asBinder(c->mCamera)->linkToDeath(c);
@@ -273,10 +276,11 @@ int CameraBase<TCam, TCamTraits>::getNumberOfCameras() {
// this can be in BaseCamera but it should be an instance method
template <typename TCam, typename TCamTraits>
status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId,
        bool overrideToPortrait,
        struct hardware::CameraInfo* cameraInfo) {
    const sp<::android::hardware::ICameraService> cs = getCameraService();
    if (cs == 0) return UNKNOWN_ERROR;
    binder::Status res = cs->getCameraInfo(cameraId, cameraInfo);
    binder::Status res = cs->getCameraInfo(cameraId, overrideToPortrait, cameraInfo);
    return res.isOk() ? OK : res.serviceSpecificErrorCode();
}

+7 −4
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ interface ICameraService
    /**
     * Fetch basic camera information for a camera device
     */
    CameraInfo getCameraInfo(int cameraId);
    CameraInfo getCameraInfo(int cameraId, boolean overrideToPortrait);

    /**
     * Default UID/PID values for non-privileged callers of
@@ -83,7 +83,8 @@ interface ICameraService
            int cameraId,
            String opPackageName,
            int clientUid, int clientPid,
            int targetSdkVersion);
            int targetSdkVersion,
            boolean overrideToPortrait);

    /**
     * Open a camera device through the new camera API
@@ -94,7 +95,8 @@ interface ICameraService
            String opPackageName,
            @nullable String featureId,
            int clientUid, int oomScoreOffset,
            int targetSdkVersion);
            int targetSdkVersion,
            boolean overrideToPortrait);

    /**
     * Add listener for changes to camera device and flashlight state.
@@ -135,7 +137,8 @@ interface ICameraService
     * Read the static camera metadata for a camera device.
     * Only supported for device HAL versions >= 3.2
     */
    CameraMetadataNative getCameraCharacteristics(String cameraId, int targetSdkVersion);
    CameraMetadataNative getCameraCharacteristics(String cameraId, int targetSdkVersion,
            boolean overrideToPortrait);

    /**
     * Read in the vendor tag descriptors from the camera module HAL.
+3 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct CameraTraits<Camera>
    typedef ::android::hardware::ICameraClient TCamCallbacks;
    typedef ::android::binder::Status(::android::hardware::ICameraService::*TCamConnectService)
        (const sp<::android::hardware::ICameraClient>&,
        int, const String16&, int, int, int,
        int, const String16&, int, int, int, bool,
        /*out*/
        sp<::android::hardware::ICamera>*);
    static TCamConnectService     fnConnectService;
@@ -81,7 +81,8 @@ public:
    static  sp<Camera>  create(const sp<::android::hardware::ICamera>& camera);
    static  sp<Camera>  connect(int cameraId,
                                const String16& clientPackageName,
                                int clientUid, int clientPid, int targetSdkVersion);
                                int clientUid, int clientPid, int targetSdkVersion,
                                bool overrideToPortrait);

            virtual     ~Camera();

Loading