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

Commit c2787b22 authored by Lais Andrade's avatar Lais Andrade Committed by Android (Google) Code Review
Browse files

Merge "Extract vibration settings and scaling code from VibratorService"

parents 3a6a6483 6b83aec2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -413,7 +413,7 @@ public abstract class VibrationEffect implements Parcelable {
     *
     * @hide
     */
    public abstract VibrationEffect resolve(int defaultAmplitude);
    public abstract <T extends VibrationEffect> T resolve(int defaultAmplitude);

    /**
     * Scale the vibration effect intensity with the given constraints.
@@ -425,7 +425,7 @@ public abstract class VibrationEffect implements Parcelable {
     *
     * @hide
     */
    public abstract VibrationEffect scale(float scaleFactor);
    public abstract <T extends VibrationEffect> T scale(float scaleFactor);

    /**
     * Scale given vibration intensity by the given factor.
+46 −252

File changed.

Preview size limit exceeded, changes collapsed.

+158 −0

File added.

Preview size limit exceeded, changes collapsed.

+284 −0

File added.

Preview size limit exceeded, changes collapsed.

+55 −27

File changed.

Preview size limit exceeded, changes collapsed.

Loading