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

Commit 9391f86d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Updating comments for PWLE v2 APIs" into main

parents 2e977e76 64104095
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -21,7 +21,11 @@ import android.hardware.vibrator.PwleV2Primitive;
@VintfStability
parcelable CompositePwleV2 {
    /**
     * An array of primitives that represents the PWLE effect
     * Represents a PWLE (Piecewise-Linear Envelope) effect as an array of primitives.
     *
     * A PWLE effect defines a vibration waveform using amplitude and frequency points.
     * The envelope linearly interpolates both amplitude and frequency between consecutive points,
     * creating smooth transitions in the vibration pattern.
     */
    PwleV2Primitive[] pwlePrimitives;
}
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ parcelable FrequencyAccelerationMapEntry {
     *
     * This value represents the maximum safe output acceleration (in Gs) achievable at the
     * specified frequency, typically determined during calibration. The actual output acceleration
     * is assumed to scale linearly with the input amplitude within the range of [0, 1].
     * should scale linearly based on the 'amplitude' input value.
     */
    float maxOutputAccelerationGs;
}
+5 −1
Original line number Diff line number Diff line
@@ -472,7 +472,11 @@ interface IVibrator {
    int getPwleV2PrimitiveDurationMinMillis();

    /**
     * Play composed sequence of chirps with optional callback upon completion.
     * Play composed sequence of PWLEs with optional callback upon completion.
     *
     * A PWLE (Piecewise-Linear Envelope) effect defines a vibration waveform using amplitude and
     * frequency points. The envelope linearly interpolates both amplitude and frequency between
     * consecutive points, creating smooth transitions in the vibration pattern.
     *
     * This may not be supported and this support is reflected in
     * getCapabilities (CAP_COMPOSE_PWLE_EFFECTS_V2).