summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorvenkata Jagadeesh <vjagad@codeaurora.org>2015-09-08 15:03:21 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:25:53 -0600
commit2954fcc82c577c6f3431ef7fe084c066470dfe61 (patch)
treef2864fc42d186d1077f900e917fd41d170318d31 /jni
parenta130361384f86ebf1c92940659b85a165030862b (diff)
downloadandroid_packages_apps_Bluetooth-2954fcc82c577c6f3431ef7fe084c066470dfe61.tar.gz
android_packages_apps_Bluetooth-2954fcc82c577c6f3431ef7fe084c066470dfe61.tar.bz2
android_packages_apps_Bluetooth-2954fcc82c577c6f3431ef7fe084c066470dfe61.zip
Bluetooth: Correcting the timer implementation
Correcting the timer implementation and set setwakealarm callbacks properly.Without this fix alarm call backs never get fired from java space. Change-Id: Iec2b6c2588a015f3bcd6759ead5e0eec0fe144a5 CRs-fixed: 903932
Diffstat (limited to 'jni')
-rw-r--r--jni/com_android_bluetooth_btservice_AdapterService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/jni/com_android_bluetooth_btservice_AdapterService.cpp b/jni/com_android_bluetooth_btservice_AdapterService.cpp
index bb8979f0a..2544eb8d4 100644
--- a/jni/com_android_bluetooth_btservice_AdapterService.cpp
+++ b/jni/com_android_bluetooth_btservice_AdapterService.cpp
@@ -536,13 +536,14 @@ static bool set_wake_alarm_callout(uint64_t delay_millis, bool should_wake,
jboolean jshould_wake = should_wake ? JNI_TRUE : JNI_FALSE;
if (sJniAdapterServiceObj) {
- jboolean ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_setWakeAlarm,
+ ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_setWakeAlarm,
(jlong)delay_millis, jshould_wake);
} else {
ALOGE("JNI ERROR : JNI reference already cleaned : set_wake_alarm_callout", __FUNCTION__);
}
if (!ret) {
+ ALOGE("%s setWakeAlarm failed:ret= %d ", __func__,ret);
sAlarmCallback = NULL;
sAlarmCallbackData = NULL;
}