Home
last modified time | relevance | path

Searched refs:osi_calloc (Results 1 – 25 of 48) sorted by relevance

12

/system/bt/bta/hh/
Dbta_hh_api.cc60 (tBTA_HH_API_ENABLE*)osi_calloc(sizeof(tBTA_HH_API_ENABLE)); in BTA_HhEnable()
100 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose()
120 (tBTA_HH_API_CONN*)osi_calloc(sizeof(tBTA_HH_API_CONN)); in BTA_HhOpen()
140 (tBTA_HH_CMD_DATA*)osi_calloc(sizeof(tBTA_HH_CMD_DATA)); in bta_hh_snd_write_dev()
289 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhGetDscpInfo()
313 tBTA_HH_MAINT_DEV* p_buf = (tBTA_HH_MAINT_DEV*)osi_calloc(len); in BTA_HhAddDev()
349 (tBTA_HH_MAINT_DEV*)osi_calloc(sizeof(tBTA_HH_MAINT_DEV)); in BTA_HhRemoveDev()
/system/bt/btif/src/
Dbtif_uid.cc42 uid_set_t* set = (uid_set_t*)osi_calloc(sizeof(uid_set_t)); in uid_set_create()
67 node = (uid_set_node_t*)osi_calloc(sizeof(uid_set_node_t)); in uid_set_find_or_create_node()
105 (bt_uid_traffic_t*)osi_calloc(sizeof(bt_uid_traffic_t) * (len + 1)); in uid_set_read_and_clear()
Dbtif_hd.cc403 app_info.p_name = (char*)osi_calloc(BTIF_HD_APP_NAME_LEN); in register_app()
405 app_info.p_description = (char*)osi_calloc(BTIF_HD_APP_DESCRIPTION_LEN); in register_app()
408 app_info.p_provider = (char*)osi_calloc(BTIF_HD_APP_PROVIDER_LEN); in register_app()
/system/bt/bta/gatt/
Dbta_gattc_api.cc243 tBTA_GATTC_API_SEARCH* p_buf = (tBTA_GATTC_API_SEARCH*)osi_calloc(len); in BTA_GATTC_ServiceSearchRequest()
367 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadCharacteristic()
388 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadUsingCharUuid()
419 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadCharDescr()
447 (tBTA_GATTC_API_READ_MULTI*)osi_calloc(sizeof(tBTA_GATTC_API_READ_MULTI)); in BTA_GATTC_ReadMultiple()
480 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharValue()
517 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharDescr()
555 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_PrepareWrite()
592 (tBTA_GATTC_API_EXEC*)osi_calloc(sizeof(tBTA_GATTC_API_EXEC)); in BTA_GATTC_ExecuteWrite()
615 (tBTA_GATTC_API_CONFIRM*)osi_calloc(sizeof(tBTA_GATTC_API_CONFIRM)); in BTA_GATTC_SendIndConfirm()
Dbta_gatts_api.cc244 (tBTA_GATTS_API_INDICATION*)osi_calloc(sizeof(tBTA_GATTS_API_INDICATION)); in BTA_GATTS_HandleValueIndication()
275 tBTA_GATTS_API_RSP* p_buf = (tBTA_GATTS_API_RSP*)osi_calloc(len); in BTA_GATTS_SendRsp()
/system/bt/osi/src/
Dfuture.cc39 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); in future_new()
55 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); in future_new_immediate()
Dbuffer.cc40 static_cast<buffer_t*>(osi_calloc(sizeof(buffer_t) + size)); in buffer_new()
59 buffer_t* ret = static_cast<buffer_t*>(osi_calloc(sizeof(buffer_t))); in buffer_new_slice()
Dallocator.cc65 void* osi_calloc(size_t size) { in osi_calloc() function
82 const allocator_t allocator_calloc = {osi_calloc, osi_free};
Dsocket.cc52 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new()
78 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new_from_fd()
124 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_accept()
Dringbuffer.cc35 static_cast<ringbuffer_t*>(osi_calloc(sizeof(ringbuffer_t))); in ringbuffer_init()
37 p->base = static_cast<uint8_t*>(osi_calloc(size)); in ringbuffer_init()
Darray.cc46 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS)); in array_new()
Dreactor.cc70 reactor_t* ret = (reactor_t*)osi_calloc(sizeof(reactor_t)); in reactor_new()
144 (reactor_object_t*)osi_calloc(sizeof(reactor_object_t)); in reactor_register()
/system/bt/stack/avrc/
Davrc_opt.cc54 p_cmd = (BT_HDR*)osi_calloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
94 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd()
137 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_SubCmd()
Davrc_pars_ct.cc311 player->name.p_str = (uint8_t*)osi_calloc( in avrc_pars_browse_rsp()
339 folder->name.p_str = (uint8_t*)osi_calloc( in avrc_pars_browse_rsp()
498 (uint8_t*)osi_calloc((folder_name->str_len + 1) * sizeof(uint8_t)); in avrc_pars_browse_rsp()
666 tAVRC_APP_SETTING* app_sett = (tAVRC_APP_SETTING*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
691 p_result->get_app_attr_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
717 uint8_t* p_str = (uint8_t*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
744 p_result->get_app_val_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
769 uint8_t* p_str = (uint8_t*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
796 (tAVRC_ATTR_ENTRY*)osi_calloc(num_attrs * sizeof(tAVRC_ATTR_ENTRY)); in avrc_ctrl_pars_vendor_rsp()
821 (uint8_t*)osi_calloc(p_attrs[i].name.str_len); in avrc_ctrl_pars_vendor_rsp()
Davrc_api.cc239 BT_HDR* p_pkt_copy = (BT_HDR*)osi_calloc(BT_HDR_SIZE + offset + pkt_len); in avrc_copy_packet()
318 p_pkt = (BT_HDR*)osi_calloc(AVRC_PACKET_LEN + offset_len + BT_HDR_SIZE); in avrc_send_continue_frag()
428 p_rsp = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command()
489 p_rcb->p_rmsg = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_far_msg()
925 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in avrc_pass_msg()
1220 (BT_HDR*)osi_calloc(AVRC_PACKET_LEN + offset_len + BT_HDR_SIZE); in AVRC_MsgReq()
/system/bt/btcore/src/
Dproperty.cc35 static_cast<bt_property_t*>(osi_calloc(sizeof(bt_property_t) * count)); in property_copy_array()
39 clone[i].val = osi_calloc(clone[i].len); in property_copy_array()
220 static_cast<bt_property_t*>(osi_calloc(sizeof(bt_property_t))); in property_new_()
222 property->val = osi_calloc(len + 1); in property_new_()
/system/bt/osi/include/
Dallocator.h41 void* osi_calloc(size_t size);
/system/bt/stack/test/a2dp/
Da2dp_vendor_ldac_decoder_test.cc57 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
/system/bt/osi/test/fuzzers/allocator/
Dfuzz_allocator.cc46 ptr = osi_calloc(size); in callArbitraryFunction()
/system/bt/hci/test/
Dhci_layer_test.cc80 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
/system/bt/bta/pan/
Dbta_pan_api.cc102 (tBTA_PAN_API_SET_ROLE*)osi_calloc(sizeof(tBTA_PAN_API_SET_ROLE)); in BTA_PanSetRole()
/system/bt/bta/dm/
Dbta_dm_api.cc82 (tBTA_DM_API_SEARCH*)osi_calloc(sizeof(tBTA_DM_API_SEARCH)); in BTA_DmSearch()
139 (tBTA_DM_API_DISCOVER*)osi_calloc(sizeof(tBTA_DM_API_DISCOVER)); in BTA_DmDiscover()
/system/bt/device/src/
Dinterop.cc87 osi_calloc(sizeof(interop_addr_entry_t))); in interop_database_add()
/system/bt/stack/gatt/
Dgatt_sr.cc144 BT_HDR* p_buf = (BT_HDR*)osi_calloc(len); in build_read_multi_rsp()
468 tGATTS_RSP* p_msg = (tGATTS_RSP*)osi_calloc(sizeof(tGATTS_RSP)); in gatt_process_read_multi_req()
713 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_primary_service_req()
749 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_find_info()
880 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_read_by_type_req()
1036 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_read_req()
/system/bt/hci/src/
Dhci_inject.cc137 client_t* client = (client_t*)osi_calloc(sizeof(client_t)); in accept_ready()

12