Home
last modified time | relevance | path

Searched refs:amplitudes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/os/
DVibrationEffect.java203 int[] amplitudes = new int[timings.length]; in createWaveform() local
205 amplitudes[i*2 + 1] = VibrationEffect.DEFAULT_AMPLITUDE; in createWaveform()
207 return createWaveform(timings, amplitudes, repeat); in createWaveform()
232 public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) { in createWaveform() argument
233 VibrationEffect effect = new Waveform(timings, amplitudes, repeat); in createWaveform()
521 public Waveform(long[] timings, int[] amplitudes, int repeat) { in Waveform() argument
524 mAmplitudes = new int[amplitudes.length]; in Waveform()
525 System.arraycopy(amplitudes, 0, mAmplitudes, 0, amplitudes.length); in Waveform()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java1401 final int[] amplitudes = mWaveform.getAmplitudes(); in playWaveform() local
1409 final int amplitude = amplitudes[index]; in playWaveform()
1422 onDuration = getTotalOnDuration(timings, amplitudes, index - 1, in playWaveform()
1459 long[] timings, int[] amplitudes, int startIndex, int repeatIndex) { in getTotalOnDuration() argument
1462 while(amplitudes[i] != 0) { in getTotalOnDuration()
1798 int[] amplitudes = in runWaveform() local
1800 effect = VibrationEffect.createWaveform(timings, amplitudes, repeat); in runWaveform()