Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java199 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveOneShot()
207 assertEquals(0.4f, ((StepSegment) resolved.getSegments().get(2)).getAmplitude()); in testResolveWaveform()
229 assertEquals(0.2f, ((StepSegment) resolved.getSegments().get(0)).getAmplitude()); in testResolveComposed()
251 ((PrebakedSegment) applied.getSegments().get(0)).getEffectStrength()); in testApplyEffectStrengthPrebaked()
266 ((PrebakedSegment) applied.getSegments().get(0)).getEffectStrength()); in testApplyEffectStrengthComposed()
272 assertTrue(100 / 255f < ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude()); in testScaleOneShot()
275 assertTrue(100 / 255f > ((StepSegment) scaledDown.getSegments().get(0)).getAmplitude()); in testScaleOneShot()
281 assertEquals(1f, ((StepSegment) scaledUp.getSegments().get(0)).getAmplitude(), 1e-5f); in testScaleWaveform()
284 assertTrue(1f > ((StepSegment) scaledDown.getSegments().get(0)).getAmplitude()); in testScaleWaveform()
307 assertTrue(0.5f < ((PrimitiveSegment) scaledUp.getSegments().get(0)).getScale()); in testScaleComposed()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationThread.java308 if (segmentIndex >= effect.getSegments().size()) { in nextVibrateStep()
317 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in nextVibrateStep()
994 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play()
1038 List<VibrationEffectSegment> newSegments = new ArrayList<>(effect.getSegments()); in replaceCurrentSegment()
1041 newSegments.addAll(segmentIndex, fallback.getSegments()); in replaceCurrentSegment()
1043 newRepeatIndex += fallback.getSegments().size(); in replaceCurrentSegment()
1073 ? Math.min(effect.getSegments().size(), segmentIndex + limit) in play()
1074 : effect.getSegments().size(); in play()
1077 VibrationEffectSegment segment = effect.getSegments().get(i); in play()
1087 + effect.getSegments().get(segmentIndex)); in play()
[all …]
DVibrationEffectAdapters.java82 List<VibrationEffectSegment> newSegments = new ArrayList<>(composed.getSegments()); in apply()
DVibratorManagerService.java830 int segmentCount = composed.getSegments().size(); in fillVibrationFallbacks()
832 VibrationEffectSegment segment = composed.getSegments().get(i); in fillVibrationFallbacks()
907 if (composed.getSegments().size() == 1) { in extractPrebakedSegment()
908 VibrationEffectSegment segment = composed.getSegments().get(0); in extractPrebakedSegment()
DVibration.java337 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DDeviceVibrationEffectAdapterTest.java102 assertTrue(adaptedEffect.getSegments().size() > effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
105 for (VibrationEffectSegment adaptedSegment : adaptedEffect.getSegments()) { in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
DVibrationScalerTest.java272 return (T) effect.getSegments().get(0);
/frameworks/base/core/java/android/os/
DVibrationAttributes.java369 if (composed.getSegments().size() == 1) { in extractPrebakedSegment()
370 VibrationEffectSegment segment = composed.getSegments().get(0); in extractPrebakedSegment()
DVibrationEffect.java577 public List<VibrationEffectSegment> getSegments() { in getSegments() method in VibrationEffect.Composed
894 mSegments.addAll(composed.getSegments()); in addSegments()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1989 int segmentCount = composed.getSegments().size(); in VibrationInfo()
1995 VibrationEffectSegment segment = composed.getSegments().get(i); in VibrationInfo()
/frameworks/base/core/api/
Dtest-current.txt1820 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();