Home
last modified time | relevance | path

Searched refs:effectStrength (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/vibrator/
DPrebakedSegment.java46 public PrebakedSegment(int effectId, boolean shouldFallback, int effectStrength) { in PrebakedSegment() argument
49 mEffectStrength = effectStrength; in PrebakedSegment()
90 public PrebakedSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
91 if (effectStrength != mEffectStrength && isValidEffectStrength(effectStrength)) { in applyEffectStrength()
92 return new PrebakedSegment(mEffectId, mFallback, effectStrength); in applyEffectStrength()
DVibrationEffectSegment.java91 public abstract <T extends VibrationEffectSegment> T applyEffectStrength(int effectStrength); in applyEffectStrength() argument
DPrimitiveSegment.java91 public PrimitiveSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
DStepSegment.java118 public StepSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
DRampSegment.java126 public RampSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
/frameworks/base/core/java/android/os/
DVibrationEffect.java475 public <T extends VibrationEffect> T applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
537 public static String effectStrengthToString(int effectStrength) { in effectStrengthToString() argument
538 switch (effectStrength) { in effectStrengthToString()
546 return Integer.toString(effectStrength); in effectStrengthToString()
657 public Composed applyEffectStrength(int effectStrength) { in applyEffectStrength() argument
661 scaledSegments.add(mSegments.get(i).applyEffectStrength(effectStrength)); in applyEffectStrength()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorControllerTest.java310 private PrebakedSegment createPrebaked(int effectId, int effectStrength) { in createPrebaked() argument
311 return new PrebakedSegment(effectId, /* shouldFallback= */ false, effectStrength); in createPrebaked()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp274 aidl::EffectStrength effectStrength = static_cast<aidl::EffectStrength>(strength); in vibratorPerformEffect() local
276 auto performEffectFn = [effectType, effectStrength, &callback](vibrator::HalWrapper* hal) { in vibratorPerformEffect()
277 return hal->performEffect(effectType, effectStrength, callback); in vibratorPerformEffect()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp556 V1_0::EffectStrength effectStrength = static_cast<V1_0::EffectStrength>(strength); in performInternal() local
557 auto result = std::invoke(performFn, handle, effect, effectStrength, effectCallback); in performInternal()