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

Commit 2d12b8e3 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "VolumeShaper: Fixes for updated Cts test" into oc-dev

parents ae1c19fc f370264d
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
@@ -294,12 +294,21 @@ public:

    std::string toString() const {
        std::stringstream ss;
        ss << "mInterpolatorType: " << static_cast<int32_t>(mInterpolatorType) << std::endl;
        ss << "mFirstSlope: " << mFirstSlope << std::endl;
        ss << "mLastSlope: " << mLastSlope << std::endl;
        ss << "Interpolator{mInterpolatorType=" << static_cast<int32_t>(mInterpolatorType);
        ss << ", mFirstSlope=" << mFirstSlope;
        ss << ", mLastSlope=" << mLastSlope;
        ss << ", {";
        bool first = true;
        for (const auto &pt : *this) {
            ss << pt.first << " " << pt.second << std::endl;
            if (first) {
                first = false;
                ss << "{";
            } else {
                ss << ", {";
            }
            ss << pt.first << ", " << pt.second << "}";
        }
        ss << "}}";
        return ss.str();
    }

@@ -324,7 +333,7 @@ private:

    // spline cubic polynomial coefficient cache
    std::unordered_map<S, std::tuple<S /* c1 */, S /* c2 */, S /* c3 */>> mMemo;
};
}; // Interpolator

} // namespace android