Lines Matching refs:address

127 static void jstr2bdaddr(JNIEnv* env, bt_bdaddr_t *bda, jstring address)  in jstr2bdaddr()  argument
129 const char* c_bda = env->GetStringUTFChars(address, NULL); in jstr2bdaddr()
132 bd_addr_str_to_addr(c_bda, bda->address); in jstr2bdaddr()
133 env->ReleaseStringUTFChars(address, c_bda); in jstr2bdaddr()
231 bda->address[0], bda->address[1], bda->address[2], in btgattc_scan_result_cb()
232 bda->address[3], bda->address[4], bda->address[5]); in btgattc_scan_result_cb()
234 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_scan_result_cb() local
239 , address, rssi, jb); in btgattc_scan_result_cb()
241 sCallbackEnv->DeleteLocalRef(address); in btgattc_scan_result_cb()
252 bda->address[0], bda->address[1], bda->address[2], in btgattc_open_cb()
253 bda->address[3], bda->address[4], bda->address[5]); in btgattc_open_cb()
255 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_open_cb() local
257 clientIf, conn_id, status, address); in btgattc_open_cb()
258 sCallbackEnv->DeleteLocalRef(address); in btgattc_open_cb()
267 bda->address[0], bda->address[1], bda->address[2], in btgattc_close_cb()
268 bda->address[3], bda->address[4], bda->address[5]); in btgattc_close_cb()
270 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_close_cb() local
272 clientIf, conn_id, status, address); in btgattc_close_cb()
273 sCallbackEnv->DeleteLocalRef(address); in btgattc_close_cb()
299 p_data->bda.address[0], p_data->bda.address[1], p_data->bda.address[2], in btgattc_notify_cb()
300 p_data->bda.address[3], p_data->bda.address[4], p_data->bda.address[5]); in btgattc_notify_cb()
302 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_notify_cb() local
307 , conn_id, address, p_data->handle, p_data->is_notify, jb); in btgattc_notify_cb()
309 sCallbackEnv->DeleteLocalRef(address); in btgattc_notify_cb()
387 bda->address[0], bda->address[1], bda->address[2], in btgattc_remote_rssi_cb()
388 bda->address[3], bda->address[4], bda->address[5]); in btgattc_remote_rssi_cb()
389 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_remote_rssi_cb() local
391 client_if, address, rssi, status); in btgattc_remote_rssi_cb()
392 sCallbackEnv->DeleteLocalRef(address); in btgattc_remote_rssi_cb()
513 p_adv_track_info->bd_addr.address[0], p_adv_track_info->bd_addr.address[1], in btgattc_track_adv_event_cb()
514 p_adv_track_info->bd_addr.address[2], p_adv_track_info->bd_addr.address[3], in btgattc_track_adv_event_cb()
515 p_adv_track_info->bd_addr.address[4], p_adv_track_info->bd_addr.address[5]); in btgattc_track_adv_event_cb()
517 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_track_adv_event_cb() local
532 address, p_adv_track_info->addr_type, p_adv_track_info->tx_power, in btgattc_track_adv_event_cb()
539 sCallbackEnv->DeleteLocalRef(address); in btgattc_track_adv_event_cb()
669 bda->address[0], bda->address[1], bda->address[2], in btgatts_connection_cb()
670 bda->address[3], bda->address[4], bda->address[5]); in btgatts_connection_cb()
672 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgatts_connection_cb() local
674 address, connected, conn_id, server_if); in btgatts_connection_cb()
675 sCallbackEnv->DeleteLocalRef(address); in btgatts_connection_cb()
751 bda->address[0], bda->address[1], bda->address[2], in btgatts_request_read_cb()
752 bda->address[3], bda->address[4], bda->address[5]); in btgatts_request_read_cb()
754 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgatts_request_read_cb() local
756 address, conn_id, trans_id, attr_handle, in btgatts_request_read_cb()
758 sCallbackEnv->DeleteLocalRef(address); in btgatts_request_read_cb()
771 bda->address[0], bda->address[1], bda->address[2], in btgatts_request_write_cb()
772 bda->address[3], bda->address[4], bda->address[5]); in btgatts_request_write_cb()
774 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgatts_request_write_cb() local
779 address, conn_id, trans_id, attr_handle, in btgatts_request_write_cb()
781 sCallbackEnv->DeleteLocalRef(address); in btgatts_request_write_cb()
793 bda->address[0], bda->address[1], bda->address[2], in btgatts_request_exec_write_cb()
794 bda->address[3], bda->address[4], bda->address[5]); in btgatts_request_exec_write_cb()
796 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgatts_request_exec_write_cb() local
798 address, conn_id, trans_id, exec_write); in btgatts_request_exec_write_cb()
799 sCallbackEnv->DeleteLocalRef(address); in btgatts_request_exec_write_cb()
983 static int gattClientGetDeviceTypeNative(JNIEnv* env, jobject object, jstring address) in gattClientGetDeviceTypeNative() argument
987 jstr2bdaddr(env, &bda, address); in gattClientGetDeviceTypeNative()
1014 jstring address, jboolean isDirect, jint transport) in gattClientConnectNative() argument
1019 jstr2bdaddr(env, &bda, address); in gattClientConnectNative()
1024 jstring address, jint conn_id) in gattClientDisconnectNative() argument
1028 jstr2bdaddr(env, &bda, address); in gattClientDisconnectNative()
1033 jstring address) in gattClientRefreshNative() argument
1038 jstr2bdaddr(env, &bda, address); in gattClientRefreshNative()
1120 jint clientIf, jstring address, jint handle, jboolean enable) in gattClientRegisterForNotificationsNative() argument
1125 const char *c_address = env->GetStringUTFChars(address, NULL); in gattClientRegisterForNotificationsNative()
1126 bd_addr_str_to_addr(c_address, bd_addr.address); in gattClientRegisterForNotificationsNative()
1135 jstring address) in gattClientReadRemoteRssiNative() argument
1140 jstr2bdaddr(env, &bda, address); in gattClientReadRemoteRssiNative()
1263 jlong uuid_mask_msb, jstring name, jstring address, jbyte addr_type, in gattClientScanFilterAddRemoveNative() argument
1271 jstr2bdaddr(env, &bda, address); in gattClientScanFilterAddRemoveNative()
1341 jstring name, jstring address, jbyte addr_type, jbyteArray data, jbyteArray mask) in gattClientScanFilterAddNative() argument
1347 name, address, addr_type, data, mask); in gattClientScanFilterAddNative()
1354 jstring name, jstring address, jbyte addr_type, jbyteArray data, jbyteArray mask) in gattClientScanFilterDeleteNative() argument
1360 name, address, addr_type, data, mask); in gattClientScanFilterDeleteNative()
1385 jstring address, jint min_interval, jint max_interval, jint latency, jint timeout) in gattConnectionParameterUpdateNative() argument
1389 jstr2bdaddr(env, &bda, address); in gattConnectionParameterUpdateNative()
1493 … jint server_if, jstring address, jboolean is_direct, jint transport) in gattServerConnectNative() argument
1498 const char *c_address = env->GetStringUTFChars(address, NULL); in gattServerConnectNative()
1499 bd_addr_str_to_addr(c_address, bd_addr.address); in gattServerConnectNative()
1505 jstring address, jint conn_id) in gattServerDisconnectNative() argument
1509 jstr2bdaddr(env, &bda, address); in gattServerDisconnectNative()