Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DSerializedAmplitudeStepWaveform.java141 Builder waveformBuilder = new Builder(); in parseNext() local
147 parseWaveformEntry(parser, waveformBuilder); in parseNext()
152 parseRepeating(parser, waveformBuilder); in parseNext()
156 XmlValidator.checkParserCondition(waveformBuilder.hasNonZeroDuration(), in parseNext()
162 return waveformBuilder.build(); in parseNext()
165 private static void parseRepeating(TypedXmlPullParser parser, Builder waveformBuilder) in parseRepeating() argument
170 waveformBuilder.setRepeatIndexToCurrentEntry(); in parseRepeating()
175 parseWaveformEntry(parser, waveformBuilder); in parseRepeating()
186 private static void parseWaveformEntry(TypedXmlPullParser parser, Builder waveformBuilder) in parseWaveformEntry() argument
199 waveformBuilder.addDurationAndAmplitude(durationMs, amplitude); in parseWaveformEntry()
/frameworks/base/services/core/java/com/android/server/notification/
DVibratorHelper.java121 VibrationEffect.WaveformBuilder waveformBuilder = VibrationEffect.startWaveform(); in createPwleWaveformVibration() local
123 waveformBuilder.addTransition(Duration.ofMillis((int) values[i + 2]), in createPwleWaveformVibration()
127 VibrationEffect effect = waveformBuilder.build(); in createPwleWaveformVibration()