static jboolean vibratorExists(JNIEnv *env, jobject clazz) { #if defined(MTK_VIBSPK_OPTION_SUPPORT) if(IsJNISupportVibSpk()) return JNI_TRUE; else return vibrator_exists() > 0 ? JNI_TRUE : JNI_FALSE; #else return vibrator_exists() > 0 ? JNI_TRUE : JNI_FALSE; #endif }
int vibrator_off() { /* checks if the device is vibrating, if it's vibrating stop, if not, do nothing */ return (vibrator_exists() == 0) ? 0 : 1; }
static jboolean vibratorExists(JNIEnv *env, jobject clazz) { return vibrator_exists() > 0 ? JNI_TRUE : JNI_FALSE; }
static jboolean vibratorExists(JNIEnv* /* env */, jobject /* clazz */) { return vibrator_exists() > 0 ? JNI_TRUE : JNI_FALSE; }