diff options
author | xinhe <xinhe@google.com> | 2015-07-07 17:41:26 -0700 |
---|---|---|
committer | xinhe <xinhe@google.com> | 2015-07-07 17:41:26 -0700 |
commit | 9c86caa1a83f9d9c42faacc151341a09c5e538a4 (patch) | |
tree | 5bfa38e7b0e560c31c9bdba03b6a1905b16ea904 /service/jni | |
parent | b9766f51bcbd50f178d2c20d61f3d631c699b836 (diff) | |
download | android_frameworks_opt_net_wifi-9c86caa1a83f9d9c42faacc151341a09c5e538a4.tar.gz android_frameworks_opt_net_wifi-9c86caa1a83f9d9c42faacc151341a09c5e538a4.tar.bz2 android_frameworks_opt_net_wifi-9c86caa1a83f9d9c42faacc151341a09c5e538a4.zip |
AUPT: NCs in system_server caused runtime restart
b/22322272
Change-Id: If4eb9dd3fcefeef2ab26f991e8ee5dd8947a2837
Diffstat (limited to 'service/jni')
-rw-r--r-- | service/jni/com_android_server_wifi_WifiNative.cpp | 16 | ||||
-rw-r--r-- | service/jni/jni_helper.cpp | 2 |
2 files changed, 3 insertions, 15 deletions
diff --git a/service/jni/com_android_server_wifi_WifiNative.cpp b/service/jni/com_android_server_wifi_WifiNative.cpp index 5795d3561..6019f8543 100644 --- a/service/jni/com_android_server_wifi_WifiNative.cpp +++ b/service/jni/com_android_server_wifi_WifiNative.cpp @@ -1503,18 +1503,6 @@ static jobject android_net_wifi_get_tdls_capabilities(JNIEnv *env, jclass cls, j // ---------------------------------------------------------------------------- // Debug framework // ---------------------------------------------------------------------------- - -static void onRingBufferData(char * ring_name, char * buffer, -int buffer_size, wifi_ring_buffer_status *status) { - JNIEnv *env = NULL; - mVM->AttachCurrentThread(&env, NULL); - - ALOGD("onRingBufferData called, vm = %p, obj = %p, env = %p", mVM, mCls, env); - - reportEvent(env, mCls, "onDataAvailable", "(I[Landroid/net/wifi/WiFiLogger$LogData;)V", - 0, 0); -} - static jint android_net_wifi_get_supported_logger_feature(JNIEnv *env, jclass cls, jint iface){ //Not implemented yet wifi_interface_handle handle = getIfaceHandle(env, cls, iface); @@ -1686,10 +1674,10 @@ static void on_alert_data(wifi_request_id id, char *buffer, int buffer_size, int jbyteArray records = env->NewByteArray(buffer_size); jbyte *bytes = (jbyte *) buffer; env->SetByteArrayRegion(records, 0,buffer_size, bytes); - reportEvent(env, mCls,"onWifiAlert","([B;I)V", records, err_code); + reportEvent(env, mCls,"onWifiAlert","([BI)V", records, err_code); env->DeleteLocalRef(records); } else { - reportEvent(env, mCls,"onWifiAlert","([B;I)V", NULL, err_code); + reportEvent(env, mCls,"onWifiAlert","([BI)V", NULL, err_code); } } diff --git a/service/jni/jni_helper.cpp b/service/jni/jni_helper.cpp index 1463e4675..e3965137d 100644 --- a/service/jni/jni_helper.cpp +++ b/service/jni/jni_helper.cpp @@ -436,7 +436,7 @@ void reportEvent(JNIEnv *env, jclass cls, const char *method, const char *signat va_start(params, signature); jmethodID methodID = env->GetStaticMethodID(cls, method, signature); - if (method == NULL) { + if (methodID == NULL) { ALOGE("Error in getting method ID"); return; } |