Home
last modified time | relevance | path

Searched refs:getRepeatIndex (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DVibratorHelperTest.java111 assertTrue(getRepeatIndex(effect) >= 0); in assertRepeatingVibration()
115 assertEquals(-1, getRepeatIndex(effect)); in assertSingleVibration()
118 private static int getRepeatIndex(VibrationEffect effect) { in getRepeatIndex() method in VibratorHelperTest
121 return ((VibrationEffect.Composed) effect).getRepeatIndex(); in getRepeatIndex()
DNotificationAttentionHelperTest.java2803 && ((VibrationEffect.Composed) actual).getRepeatIndex() == mRepeatIndex) { in matches()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DVibrationEffectXmlSerializer.java80 XmlValidator.checkSerializerCondition(effect.getRepeatIndex() == -1, in serializePredefinedEffect()
90 XmlValidator.checkSerializerCondition(effect.getRepeatIndex() == -1, in serializePrimitiveEffect()
112 if (effect.getRepeatIndex() == i) { in serializeWaveformEffect()
/frameworks/base/services/core/java/com/android/server/vibrator/
DPerformPrebakedVibratorStep.java99 int newRepeatIndex = effect.getRepeatIndex(); in replaceCurrentSegment()
102 if (segmentIndex < effect.getRepeatIndex()) { in replaceCurrentSegment()
DSetAmplitudeVibratorStep.java176 int repeatIndex = effect.getRepeatIndex(); in getVibratorOnDuration()
198 if (i == segmentCount && effect.getRepeatIndex() < 0) { in getVibratorOnDuration()
DDeviceAdapter.java100 int newRepeatIndex = composed.getRepeatIndex(); in adaptToVibrator()
DComposePrimitivesVibratorStep.java102 int repeatIndex = effect.getRepeatIndex(); in unrollPrimitiveSegments()
DComposePwleVibratorStep.java104 int repeatIndex = effect.getRepeatIndex(); in unrollRampSegments()
DAbstractVibratorStep.java168 int repeatIndex = effect.getRepeatIndex(); in nextSteps()
DVibrationScaler.java173 new VibrationEffect.Composed(segments, composedEffect.getRepeatIndex()); in scale()
DVibrationStepConductor.java131 segmentIndex = effect.getRepeatIndex(); in nextVibrateStep()
DVibration.java405 proto.write(VibrationEffectProto.REPEAT, composed.getRepeatIndex()); in dumpEffect()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DDeviceAdapterTest.java120 assertThat(adaptedEffect.getRepeatIndex()).isAtLeast(effect.getRepeatIndex()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
/frameworks/base/core/java/android/os/
DVibrationEffect.java737 public int getRepeatIndex() { in getRepeatIndex() method in VibrationEffect.Composed
745 if (getRepeatIndex() >= 0) { in computeCreateWaveformOffOnTimingsOrNull()
1253 if (composed.getRepeatIndex() >= 0) { in addSegments()
1255 mRepeatIndex = mSegments.size() + composed.getRepeatIndex(); in addSegments()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1337 public int getRepeatIndex() { in getRepeatIndex() method in InputManagerService.VibrationInfo
1352 patternRepeatIndex = composed.getRepeatIndex(); in VibrationInfo()
1356 if (composed.getRepeatIndex() == i) { in VibrationInfo()
1421 info.getRepeatIndex(), v.mTokenValue); in vibrate()
1453 info.getRepeatIndex(), v.mTokenValue); in vibrateCombined()
1467 repeat = info.getRepeatIndex(); in vibrateCombined()
/frameworks/base/core/api/
Dtest-current.txt2542 method public int getRepeatIndex();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt39503 Landroid/os/VibrationEffect$Waveform;->getRepeatIndex()I