Searched refs:getSegments (Results 1 – 11 of 11) sorted by relevance
199 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 …]
308 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 …]
82 List<VibrationEffectSegment> newSegments = new ArrayList<>(composed.getSegments()); in apply()
830 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()
337 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
102 assertTrue(adaptedEffect.getSegments().size() > effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()105 for (VibrationEffectSegment adaptedSegment : adaptedEffect.getSegments()) { in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
272 return (T) effect.getSegments().get(0);
369 if (composed.getSegments().size() == 1) { in extractPrebakedSegment()370 VibrationEffectSegment segment = composed.getSegments().get(0); in extractPrebakedSegment()
577 public List<VibrationEffectSegment> getSegments() { in getSegments() method in VibrationEffect.Composed894 mSegments.addAll(composed.getSegments()); in addSegments()
1989 int segmentCount = composed.getSegments().size(); in VibrationInfo()1995 VibrationEffectSegment segment = composed.getSegments().get(i); in VibrationInfo()
1820 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();