/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | PerformPrebakedVibratorStep.java | 49 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()
|
D | ComposePrimitivesVibratorStep.java | 62 + effect.getSegments().get(segmentIndex)); in play() 101 int segmentCount = effect.getSegments().size(); in unrollPrimitiveSegments() 113 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollPrimitiveSegments()
|
D | ComposePwleVibratorStep.java | 62 + effect.getSegments().get(segmentIndex)); in play() 103 int segmentCount = effect.getSegments().size(); in unrollRampSegments() 117 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollRampSegments()
|
D | SetAmplitudeVibratorStep.java | 94 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play() 174 List<VibrationEffectSegment> segments = effect.getSegments(); in getVibratorOnDuration()
|
D | VibrationScaler.java | 159 new ArrayList<>(composedEffect.getSegments()); in scale() 168 if (segments.equals(composedEffect.getSegments())) { in scale()
|
D | DeviceAdapter.java | 99 List<VibrationEffectSegment> newSegments = new ArrayList<>(composed.getSegments()); in adaptToVibrator()
|
D | AbstractVibratorStep.java | 167 int effectSize = effect.getSegments().size(); in nextSteps()
|
D | VibrationStepConductor.java | 130 if (segmentIndex >= effect.getSegments().size()) { in nextVibrateStep() 139 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in nextVibrateStep()
|
D | StartSequentialEffectStep.java | 344 VibrationEffectSegment firstSegment = effects.valueAt(i).getSegments().get(0); in calculateRequiredSyncCapabilities()
|
D | VibratorManagerService.java | 1265 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()
|
D | Vibration.java | 402 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
|
/frameworks/base/core/java/com/android/internal/vibrator/persistence/ |
D | VibrationEffectXmlSerializer.java | 63 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/ |
D | VibrationEffectTest.java | 638 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/ |
D | DeviceAdapterTest.java | 119 assertThat(adaptedEffect.getSegments().size()).isGreaterThan(effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps() 122 for (VibrationEffectSegment adaptedSegment : adaptedEffect.getSegments()) { in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
|
D | VibrationScalerTest.java | 375 return (T) ((VibrationEffect.Composed) effect).getSegments().get(0);
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 733 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/ |
D | InputManagerService.java | 1349 int segmentCount = composed.getSegments().size(); in VibrationInfo() 1355 VibrationEffectSegment segment = composed.getSegments().get(i); in VibrationInfo()
|
/frameworks/base/core/api/ |
D | test-current.txt | 2543 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();
|