开机震动在哪调用的,怎样关闭
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
开机震动的调用位置以及打开关闭方法
[KEYWORD]
Bootup Vibrator Vibrate
[SOLUTION]
php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
public boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
.... ...
case HapticFeedbackConstants.SAFE_MODE_DISABLED:
return ; //正常模式启动, 如果不想震动, 直接return;
pattern = mSafeModeDisabledVibePattern;
break;
case HapticFeedbackConstants.SAFE_MODE_ENABLED:
return ; //安全模式启动, 如果不想震动, 直接return;
pattern = mSafeModeEnabledVibePattern;
break;
default:
return false;
}
}
开机震动的调用位置以及打开关闭方法
[KEYWORD]
Bootup Vibrator Vibrate
[SOLUTION]
php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
public boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
.... ...
case HapticFeedbackConstants.SAFE_MODE_DISABLED:
return ; //正常模式启动, 如果不想震动, 直接return;
pattern = mSafeModeDisabledVibePattern;
break;
case HapticFeedbackConstants.SAFE_MODE_ENABLED:
return ; //安全模式启动, 如果不想震动, 直接return;
pattern = mSafeModeEnabledVibePattern;
break;
default:
return false;
}
}
学习了~~~~~~~