Home
last modified time | relevance | path

Searched refs:getSegments (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DPerformPrebakedVibratorStep.java49 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play()
98 List<VibrationEffectSegment> newSegments = new ArrayList<>(effect.getSegments()); in replaceCurrentSegment()
101 newSegments.addAll(segmentIndex, fallback.getSegments()); in replaceCurrentSegment()
103 newRepeatIndex += fallback.getSegments().size() - 1; in replaceCurrentSegment()
DComposePrimitivesVibratorStep.java62 + effect.getSegments().get(segmentIndex)); in play()
101 int segmentCount = effect.getSegments().size(); in unrollPrimitiveSegments()
113 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollPrimitiveSegments()
DComposePwleVibratorStep.java62 + effect.getSegments().get(segmentIndex)); in play()
103 int segmentCount = effect.getSegments().size(); in unrollRampSegments()
117 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollRampSegments()
DSetAmplitudeVibratorStep.java94 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play()
174 List<VibrationEffectSegment> segments = effect.getSegments(); in getVibratorOnDuration()
DVibrationScaler.java159 new ArrayList<>(composedEffect.getSegments()); in scale()
168 if (segments.equals(composedEffect.getSegments())) { in scale()
DDeviceAdapter.java99 List<VibrationEffectSegment> newSegments = new ArrayList<>(composed.getSegments()); in adaptToVibrator()
DAbstractVibratorStep.java167 int effectSize = effect.getSegments().size(); in nextSteps()
DVibrationStepConductor.java130 if (segmentIndex >= effect.getSegments().size()) { in nextVibrateStep()
139 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in nextVibrateStep()
DStartSequentialEffectStep.java344 VibrationEffectSegment firstSegment = effects.valueAt(i).getSegments().get(0); in calculateRequiredSyncCapabilities()
DVibratorManagerService.java1265 int segmentCount = composed.getSegments().size(); in fillVibrationFallbacks()
1267 VibrationEffectSegment segment = composed.getSegments().get(i); in fillVibrationFallbacks()
1354 if (composed.getSegments().size() == 1) { in extractPrebakedSegment()
1355 VibrationEffectSegment segment = composed.getSegments().get(0); in extractPrebakedSegment()
DVibration.java402 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DVibrationEffectXmlSerializer.java63 XmlValidator.checkSerializerCondition(!composed.getSegments().isEmpty(), in serialize()
66 VibrationEffectSegment firstSegment = composed.getSegments().get(0); in serialize()
79 List<VibrationEffectSegment> segments = effect.getSegments(); in serializePredefinedEffect()
89 List<VibrationEffectSegment> segments = effect.getSegments(); in serializePrimitiveEffect()
106 List<VibrationEffectSegment> segments = effect.getSegments(); in serializeWaveformEffect()
/frameworks/base/core/tests/vibrator/src/android/os/
DVibrationEffectTest.java638 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveOneShot()
646 assertEquals(0.4f, ((StepSegment) resolved.getSegments().get(2)).getAmplitude()); in testResolveWaveform()
668 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveComposed()
674 assertTrue(100 / 255f < ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude()); in testScaleOneShot()
677 assertTrue(100 / 255f > ((StepSegment) scaledDown.getSegments().get(0)).getAmplitude()); in testScaleOneShot()
683 assertEquals(1f, ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude(), 1e-5f); in testScaleWaveform()
686 assertTrue(1f > ((StepSegment) scaledDown.getSegments().get(0)).getAmplitude()); in testScaleWaveform()
709 assertTrue(0.5f < ((PrimitiveSegment) scaledUp.getSegments().get(0)).getScale()); in testScaleComposed()
710 assertTrue(100 / 255f < ((StepSegment) scaledUp.getSegments().get(1)).getAmplitude()); in testScaleComposed()
713 assertTrue(0.5f > ((PrimitiveSegment) scaledDown.getSegments().get(0)).getScale()); in testScaleComposed()
[all …]
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DDeviceAdapterTest.java119 assertThat(adaptedEffect.getSegments().size()).isGreaterThan(effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
122 for (VibrationEffectSegment adaptedSegment : adaptedEffect.getSegments()) { in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
DVibrationScalerTest.java375 return (T) ((VibrationEffect.Composed) effect).getSegments().get(0);
/frameworks/base/core/java/android/os/
DVibrationEffect.java733 public List<VibrationEffectSegment> getSegments() { in getSegments() method in VibrationEffect.Composed
750 List<VibrationEffectSegment> segments = getSegments(); in computeCreateWaveformOffOnTimingsOrNull()
1257 mSegments.addAll(composed.getSegments()); in addSegments()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1349 int segmentCount = composed.getSegments().size(); in VibrationInfo()
1355 VibrationEffectSegment segment = composed.getSegments().get(i); in VibrationInfo()
/frameworks/base/core/api/
Dtest-current.txt2543 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();