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

Commit e15409e6 authored by Andy Hung's avatar Andy Hung
Browse files

VolumeShaper: Make initialization consistent

Fix uninitialized enum variables for default
constructed aidl structs.

Test: compiles
Bug: 184662274
Change-Id: I5535dd6ce0648b4e02f64ce2b9ba10900d1e4b72
parent 71455ba2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import android.media.InterpolatorType;
 * {@hide}
 */
parcelable InterpolatorConfig {
    InterpolatorType type;
    InterpolatorType type = InterpolatorType.CUBIC;
    /** For cubic interpolation, the boundary conditions in slope. */
    float firstSlope;
    float lastSlope;
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import android.media.VolumeShaperConfigurationType;
 * {@hide}
 */
parcelable VolumeShaperConfiguration {
    VolumeShaperConfigurationType type;
    VolumeShaperConfigurationType type = VolumeShaperConfigurationType.ID;
    int id;
    /** Bitmask, indexed by VolumeShaperConfigurationOptionFlag. */
    int optionFlags;
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public:
    using InterpolatorType  = media::InterpolatorType;

    explicit Interpolator(
            InterpolatorType interpolatorType = InterpolatorType::LINEAR,
            InterpolatorType interpolatorType = InterpolatorType::CUBIC,
            bool cache = true)
        : mCache(cache)
        , mFirstSlope(0)