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

Commit 0c9b8279 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: Do not return error for deprecated APIs"

parents 293c2999 f84183b5
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -1444,9 +1444,11 @@ public:
                                 const sp<IScreenCaptureListener>&) override;

    // TODO(b/239076119): Remove deprecated AIDL.
    [[deprecated]] binder::Status clearAnimationFrameStats() override { return deprecated(); }
    [[deprecated]] binder::Status clearAnimationFrameStats() override {
        return binder::Status::ok();
    }
    [[deprecated]] binder::Status getAnimationFrameStats(gui::FrameStats*) override {
        return deprecated();
        return binder::Status::ok();
    }

    binder::Status overrideHdrTypes(const sp<IBinder>& display,
@@ -1513,11 +1515,6 @@ public:
            const sp<gui::IWindowInfosListener>& windowInfosListener) override;

private:
    static binder::Status deprecated() {
        using binder::Status;
        return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, "Deprecated");
    }

    static const constexpr bool kUsePermissionCache = true;
    status_t checkAccessPermission(bool usePermissionCache = kUsePermissionCache);
    status_t checkControlDisplayBrightnessPermission();