Searched refs:scaleLevel (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/libs/vibrator/ |
D | ExternalVibration.cpp | 70 os::HapticLevel scaleLevel = os::HapticLevel::NONE; in externalVibrationScaleToHapticScale() local 72 switch (externalVibrationScale.scaleLevel) { in externalVibrationScaleToHapticScale() 74 scaleLevel = os::HapticLevel::MUTE; in externalVibrationScaleToHapticScale() 77 scaleLevel = os::HapticLevel::VERY_LOW; in externalVibrationScaleToHapticScale() 80 scaleLevel = os::HapticLevel::LOW; in externalVibrationScaleToHapticScale() 83 scaleLevel = os::HapticLevel::NONE; in externalVibrationScaleToHapticScale() 86 scaleLevel = os::HapticLevel::HIGH; in externalVibrationScaleToHapticScale() 89 scaleLevel = os::HapticLevel::VERY_HIGH; in externalVibrationScaleToHapticScale() 93 externalVibrationScale.scaleLevel); in externalVibrationScaleToHapticScale() 96 return {/*level=*/scaleLevel, /*adaptiveScaleFactor=*/ in externalVibrationScaleToHapticScale()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationScaler.java | 103 int scaleLevel = currentIntensity - defaultIntensity; in getScaleLevel() local 104 if (scaleLevel >= SCALE_VERY_LOW && scaleLevel <= SCALE_VERY_HIGH) { in getScaleLevel() 105 return scaleLevel; in getScaleLevel() 110 + scaleLevel + " for vibration with usage " + usageHint); in getScaleLevel() 146 ScaleLevel scaleLevel = mScaleLevels.get(getScaleLevel(usageHint)); in scale() local 149 if (scaleLevel == null) { in scale() 154 scaleLevel = SCALE_LEVEL_NONE; in scale() 165 .scale(scaleLevel.factor) in scale() 225 ScaleLevel scaleLevel = mScaleLevels.valueAt(i); in dump() local 226 pw.println(scaleLevelToString(scaleLevelKey) + " = " + scaleLevel); in dump() [all …]
|
D | Vibration.java | 228 @Nullable CombinedVibration originalEffect, int scaleLevel, in DebugInfo() argument 237 mScaleLevel = scaleLevel; in DebugInfo()
|
D | VibratorManagerService.java | 1632 scale.scaleLevel = scaler.getScaleLevel(usage); in scale() 1686 /* originalEffect= */ null, scale.scaleLevel, scale.adaptiveHapticsScale, in getDebugInfo() 1966 vibHolder.scale.scaleLevel = ExternalVibrationScale.ScaleLevel.SCALE_MUTE; in onExternalVibrationStart() 2065 vibHolder.scale.scaleLevel = ExternalVibrationScale.ScaleLevel.SCALE_MUTE; in onExternalVibrationStart()
|
/frameworks/base/core/java/android/os/ |
D | ExternalVibrationScale.aidl | 39 ScaleLevel scaleLevel = ScaleLevel.SCALE_NONE;
|
/frameworks/av/services/audioflinger/afutils/ |
D | Vibrator.cpp | 58 ALOGD("%s, start external vibration with intensity as %d", __func__, ret.scaleLevel); in onExternalVibrationStart()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 1151 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in vibrate_withOngoingLowerImportanceExternalVibration_cancelsOngoingVibration() 1848 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_ignoreVibrationFromVirtualDevices() 1853 assertEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_ignoreVibrationFromVirtualDevices() 1870 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_setsExternalControl() 1904 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, firstScale.scaleLevel); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration() 1905 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, secondScale.scaleLevel); in onExternalVibration_withOngoingExternalVibration_mutesPreviousVibration() 1943 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_withOngoingVibration_cancelsOngoingVibrationImmediately() 1971 assertEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_withOngoingHigherImportanceVibration_ignoreNewVibration() 1996 assertNotEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_withNewSameImportanceButRepeating_cancelsOngoingVibration() 2025 assertEquals(ExternalVibrationScale.ScaleLevel.SCALE_MUTE, scale.scaleLevel); in onExternalVibration_withNewSameImportanceButOngoingIsRepeating_ignoreNewVibration() [all …]
|