commit | 601a944e4581f00c35bd491afff1868f56427cbf | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Thu Mar 04 20:00:39 2021 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Thu Mar 18 18:06:45 2021 +0000 |
tree | 1bdb273551873b5179724a992f28f5a15dd0fb3c | |
parent | bd992109e08d0435a474f6350a4c39098a3f6e40 [diff] |
Introduce WaveformBuilder to VibrationEffect Create a new parcelable RampSegment and introduce VibrationEffect.startWaveform() method that returns a WaveformBuilder that allows creating step/ramp waveforms that changes amplitude and frequency of the effect. Implementations of VibrationThread and InputManagerService for now just ignore the new segments and keep existing behavior. Bug: 167947076 Test: VibrationEffectTest Change-Id: Ibac895b63196e779457efc297f1f5497a7814ae9