Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DVibrationEffect.java101 int[] amplitudes = new int[timings.length]; in createWaveform() local
103 amplitudes[i*2 + 1] = VibrationEffect.DEFAULT_AMPLITUDE; in createWaveform()
105 return createWaveform(timings, amplitudes, repeat); in createWaveform()
130 public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) { in createWaveform() argument
131 VibrationEffect effect = new Waveform(timings, amplitudes, repeat); in createWaveform()
254 public Waveform(long[] timings, int[] amplitudes, int repeat) { in Waveform() argument
257 mAmplitudes = new int[amplitudes.length]; in Waveform()
258 System.arraycopy(amplitudes, 0, mAmplitudes, 0, amplitudes.length); in Waveform()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java813 final int[] amplitudes = mWaveform.getAmplitudes(); in playWaveform() local
821 final int amplitude = amplitudes[index]; in playWaveform()
835 getTotalOnDuration(timings, amplitudes, index - 1, repeat); in playWaveform()
868 long[] timings, int[] amplitudes, int startIndex, int repeatIndex) { in getTotalOnDuration() argument
871 while(amplitudes[i] != 0) { in getTotalOnDuration()