• Home
  • Raw
  • Download

Lines Matching refs:addr

60     jbyteArray addr;  in connection_state_callback()  local
63 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in connection_state_callback() local
64 if (!addr) { in connection_state_callback()
69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in connection_state_callback()
71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state); in connection_state_callback()
73 sCallbackEnv->DeleteLocalRef(addr); in connection_state_callback()
77 jbyteArray addr; in get_protocol_mode_callback() local
86 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in get_protocol_mode_callback()
87 if (!addr) { in get_protocol_mode_callback()
92 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in get_protocol_mode_callback()
94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, addr, (jint) mode); in get_protocol_mode_callback()
96 sCallbackEnv->DeleteLocalRef(addr); in get_protocol_mode_callback()
101 jbyteArray addr; in virtual_unplug_callback() local
104 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); in virtual_unplug_callback() local
105 if (!addr) { in virtual_unplug_callback()
110 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); in virtual_unplug_callback()
112 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, addr, (jint) hh_status); in virtual_unplug_callback()
114 sCallbackEnv->DeleteLocalRef(addr); in virtual_unplug_callback()
243 jbyte *addr; in connectHidNative() local
247 addr = env->GetByteArrayElements(address, NULL); in connectHidNative()
248 if (!addr) { in connectHidNative()
253 if ((status = sBluetoothHidInterface->connect((bt_bdaddr_t *) addr)) != in connectHidNative()
258 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative()
265 jbyte *addr; in disconnectHidNative() local
269 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative()
270 if (!addr) { in disconnectHidNative()
275 if ( (status = sBluetoothHidInterface->disconnect((bt_bdaddr_t *) addr)) != in disconnectHidNative()
280 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative()
287 jbyte *addr; in getProtocolModeNative() local
292 addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative()
293 if (!addr) { in getProtocolModeNative()
298 …if ( (status = sBluetoothHidInterface->get_protocol((bt_bdaddr_t *) addr, (bthh_protocol_mode_t) p… in getProtocolModeNative()
303 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative()
310 jbyte *addr; in virtualUnPlugNative() local
314 addr = env->GetByteArrayElements(address, NULL); in virtualUnPlugNative()
315 if (!addr) { in virtualUnPlugNative()
319 if ( (status = sBluetoothHidInterface->virtual_unplug((bt_bdaddr_t *) addr)) != in virtualUnPlugNative()
324 env->ReleaseByteArrayElements(address, addr, 0); in virtualUnPlugNative()
332 jbyte *addr; in setProtocolModeNative() local
338 addr = env->GetByteArrayElements(address, NULL); in setProtocolModeNative()
339 if (!addr) { in setProtocolModeNative()
356 if ( (status = sBluetoothHidInterface->set_protocol((bt_bdaddr_t *) addr, mode)) != in setProtocolModeNative()
361 env->ReleaseByteArrayElements(address, addr, 0); in setProtocolModeNative()
370 jbyte *addr; in getReportNative() local
374 addr = env->GetByteArrayElements(address, NULL); in getReportNative()
375 if (!addr) { in getReportNative()
383 …if ( (status = sBluetoothHidInterface->get_report((bt_bdaddr_t *) addr, (bthh_report_type_t) rType… in getReportNative()
388 env->ReleaseByteArrayElements(address, addr, 0); in getReportNative()
397 jbyte *addr; in setReportNative() local
401 addr = env->GetByteArrayElements(address, NULL); in setReportNative()
402 if (!addr) { in setReportNative()
409 …if ( (status = sBluetoothHidInterface->set_report((bt_bdaddr_t *) addr, (bthh_report_type_t)rType,… in setReportNative()
415 env->ReleaseByteArrayElements(address, addr, 0); in setReportNative()
423 jbyte *addr; in sendDataNative() local
427 addr = env->GetByteArrayElements(address, NULL); in sendDataNative()
428 if (!addr) { in sendDataNative()
433 if ( (status = sBluetoothHidInterface->send_data((bt_bdaddr_t *) addr, (char*) c_report)) != in sendDataNative()
439 env->ReleaseByteArrayElements(address, addr, 0); in sendDataNative()