Home
last modified time | relevance | path

Searched refs:adaptiveScaleFactor (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/vibrator/
DExternalVibrationUtils.cpp68 float adaptiveScaleFactor = scale.getAdaptiveScaleFactor(); in applyHapticScale() local
79 if (adaptiveScaleFactor != 1.0f) { in applyHapticScale()
80 buffer[i] *= adaptiveScaleFactor; in applyHapticScale()
/frameworks/native/libs/vibrator/include/vibrator/
DExternalVibrationUtils.h37 constexpr HapticScale(HapticLevel level, float adaptiveScaleFactor) in HapticScale() argument
38 : mLevel(level), mAdaptiveScaleFactor(adaptiveScaleFactor) {} in HapticScale()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp321 const float adaptiveScaleFactor = (*((float *) value + 2)); in HapticGenerator_SetParameter() local
322 const os::HapticScale hapticScale = {hapticLevel, adaptiveScaleFactor}; in HapticGenerator_SetParameter()
324 static_cast<int>(hapticLevel), adaptiveScaleFactor); in HapticGenerator_SetParameter()