Home | History | Annotate | Download | only in jv

Lines Matching refs:handle

71   /* set handle to invalid value by default */
73 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR;
224 tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t handle) {
227 do_in_bta_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle));
290 tBTA_JV_STATUS BTA_JvL2capClose(uint32_t handle) {
293 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback)
297 FROM_HERE, Bind(&bta_jv_l2cap_close, handle, &bta_jv_cb.l2c_cb[handle]));
312 tBTA_JV_STATUS BTA_JvL2capCloseLE(uint32_t handle) {
315 do_in_bta_thread(FROM_HERE, Bind(&bta_jv_l2cap_close_fixed, handle));
421 tBTA_JV_STATUS BTA_JvL2capRead(uint32_t handle, uint32_t req_id,
425 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback)
430 evt_data.handle = handle;
436 GAP_ConnReadData((uint16_t)handle, p_data, len, &evt_data.len)) {
439 bta_jv_cb.l2c_cb[handle].p_cback(BTA_JV_L2CAP_READ_EVT, (tBTA_JV*)&evt_data,
440 bta_jv_cb.l2c_cb[handle].l2cap_socket_id);
455 tBTA_JV_STATUS BTA_JvL2capReady(uint32_t handle, uint32_t* p_data_size) {
458 VLOG(2) << __func__ << ": handle=" << handle;
459 if (p_data_size && handle < BTA_JV_MAX_L2C_CONN &&
460 bta_jv_cb.l2c_cb[handle].p_cback) {
462 if (BT_PASS == GAP_GetRxQueueCnt((uint16_t)handle, p_data_size)) {
485 tBTA_JV_STATUS BTA_JvL2capWrite(uint32_t handle, uint32_t req_id, BT_HDR* msg,
489 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) {
494 do_in_bta_thread(FROM_HERE, Bind(&bta_jv_l2cap_write, handle, req_id, msg,
495 user_id, &bta_jv_cb.l2c_cb[handle]));
560 tBTA_JV_STATUS BTA_JvRfcommClose(uint32_t handle, uint32_t rfcomm_slot_id) {
561 uint32_t hi = ((handle & BTA_JV_RFC_HDL_MASK) & ~BTA_JV_RFCOMM_MASK) - 1;
562 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle);
571 Bind(&bta_jv_rfcomm_close, handle, rfcomm_slot_id));
622 tBTA_JV_STATUS BTA_JvRfcommStopServer(uint32_t handle,
627 Bind(&bta_jv_rfcomm_stop_server, handle, rfcomm_slot_id));
635 * Description This function fetches the rfcomm port handle
641 uint16_t BTA_JvRfcommGetPortHdl(uint32_t handle) {
642 uint32_t hi = ((handle & BTA_JV_RFC_HDL_MASK) & ~BTA_JV_RFCOMM_MASK) - 1;
643 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle);
662 tBTA_JV_STATUS BTA_JvRfcommWrite(uint32_t handle, uint32_t req_id) {
663 uint32_t hi = ((handle & BTA_JV_RFC_HDL_MASK) & ~BTA_JV_RFCOMM_MASK) - 1;
664 uint32_t si = BTA_JV_RFC_HDL_TO_SIDX(handle);
668 VLOG(2) << __func__ << "handle=" << loghex(handle) << ", hi=" << hi
678 do_in_bta_thread(FROM_HERE, Bind(&bta_jv_rfcomm_write, handle, req_id, p_cb,
690 * Parameters: handle, JV handle from RFCOMM or L2CAP
693 * BTA_JV_PM_ID_CLEAR: removes pm management on the handle. init_st
706 tBTA_JV_STATUS BTA_JvSetPmProfile(uint32_t handle, tBTA_JV_PM_ID app_id,
708 VLOG(2) << __func__ << " handle=" << loghex(handle) << ", app_id:" << app_id;
711 Bind(&bta_jv_set_pm_profile, handle, app_id, init_st));