Home
last modified time | relevance | path

Searched refs:hapticLevel (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/vibrator/
DExternalVibrationUtils.cpp67 HapticLevel hapticLevel = scale.getLevel(); in applyHapticScale() local
69 float gamma = getHapticScaleGamma(hapticLevel); in applyHapticScale()
70 float maxAmplitudeRatio = getHapticMaxAmplitudeRatio(hapticLevel); in applyHapticScale()
73 if (hapticLevel != HapticLevel::NONE) { in applyHapticScale()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp320 const os::HapticLevel hapticLevel = static_cast<os::HapticLevel>(*((int *) value + 1)); in HapticGenerator_SetParameter() local
322 const os::HapticScale hapticScale = {hapticLevel, adaptiveScaleFactor}; in HapticGenerator_SetParameter()
324 static_cast<int>(hapticLevel), adaptiveScaleFactor); in HapticGenerator_SetParameter()