Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A 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()
H A 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()
H A DComposePwleVibratorStep.java63 + effect.getSegments().get(segmentIndex)); in play()
104 int segmentCount = effect.getSegments().size(); in unrollRampSegments()
118 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollRampSegments()
H A DSetAmplitudeVibratorStep.java94 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play()
174 List<VibrationEffectSegment> segments = effect.getSegments(); in getVibratorOnDuration()
H A DVibrationEffectAdapters.java82 List<VibrationEffectSegment> newSegments = new ArrayList<>(composed.getSegments()); in apply()
H A DVibrationStepConductor.java122 if (segmentIndex >= effect.getSegments().size()) { in nextVibrateStep()
131 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in nextVibrateStep()
H A DAbstractVibratorStep.java167 int effectSize = effect.getSegments().size(); in nextSteps()
H A DStartSequentialEffectStep.java340 VibrationEffectSegment firstSegment = effects.valueAt(i).getSegments().get(0); in calculateRequiredSyncCapabilities()
H A DVibratorManagerService.java1109 int segmentCount = composed.getSegments().size(); in fillVibrationFallbacks()
1111 VibrationEffectSegment segment = composed.getSegments().get(i); in fillVibrationFallbacks()
1198 if (composed.getSegments().size() == 1) { in extractPrebakedSegment()
1199 VibrationEffectSegment segment = composed.getSegments().get(0); in extractPrebakedSegment()
H A DVibration.java325 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DVibrationEffectTest.java645 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveOneShot()
653 assertEquals(0.4f, ((StepSegment) resolved.getSegments().get(2)).getAmplitude()); in testResolveWaveform()
675 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveComposed()
697 ((PrebakedSegment) applied.getSegments().get(0)).getEffectStrength()); in testApplyEffectStrengthPrebaked()
712 ((PrebakedSegment) applied.getSegments().get(0)).getEffectStrength()); in testApplyEffectStrengthComposed()
718 assertTrue(100 / 255f < ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude()); in testScaleOneShot()
727 assertEquals(1f, ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude(), 1e-5f); in testScaleWaveform()
730 assertTrue(1f > ((StepSegment) scaledDown.getSegments().get(0)).getAmplitude()); in testScaleWaveform()
753 assertTrue(0.5f < ((PrimitiveSegment) scaledUp.getSegments().get(0)).getScale()); in testScaleComposed()
754 assertTrue(100 / 255f < ((StepSegment) scaledUp.getSegments().get(1)).getAmplitude()); in testScaleComposed()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DDeviceVibrationEffectAdapterTest.java119 assertTrue(adaptedEffect.getSegments().size() > effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
122 for (VibrationEffectSegment adaptedSegment : adaptedEffect.getSegments()) { in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
H A DVibrationScalerTest.java273 return (T) effect.getSegments().get(0);
/aosp14/frameworks/base/core/java/android/os/
H A DVibrationEffect.java678 public List<VibrationEffectSegment> getSegments() { in getSegments() method in VibrationEffect.Composed
695 List<VibrationEffectSegment> segments = getSegments(); in computeCreateWaveformOffOnTimingsOrNull()
1176 mSegments.addAll(composed.getSegments()); in addSegments()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java1467 int segmentCount = composed.getSegments().size(); in VibrationInfo()
1473 VibrationEffectSegment segment = composed.getSegments().get(i); in VibrationInfo()
/aosp14/frameworks/base/core/api/
H A Dtest-current.txt2421 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();