Home
last modified time | relevance | path

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

12

/system/bt/bta/hh/
Dbta_hh_api.cc64 (tBTA_HH_API_ENABLE*)osi_calloc(sizeof(tBTA_HH_API_ENABLE)); in BTA_HhEnable()
107 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose()
128 (tBTA_HH_API_CONN*)osi_calloc(sizeof(tBTA_HH_API_CONN)); in BTA_HhOpen()
148 (tBTA_HH_CMD_DATA*)osi_calloc(sizeof(tBTA_HH_CMD_DATA)); in bta_hh_snd_write_dev()
305 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhGetDscpInfo()
329 tBTA_HH_MAINT_DEV* p_buf = (tBTA_HH_MAINT_DEV*)osi_calloc(len); in BTA_HhAddDev()
365 (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.cc406 app_info.p_name = (char*)osi_calloc(BTIF_HD_APP_NAME_LEN); in register_app()
408 app_info.p_description = (char*)osi_calloc(BTIF_HD_APP_DESCRIPTION_LEN); in register_app()
411 app_info.p_provider = (char*)osi_calloc(BTIF_HD_APP_PROVIDER_LEN); in register_app()
/system/bt/bta/gatt/
Dbta_gattc_api.cc236 tBTA_GATTC_API_SEARCH* p_buf = (tBTA_GATTC_API_SEARCH*)osi_calloc(len); in BTA_GATTC_ServiceSearchRequest()
360 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadCharacteristic()
381 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadUsingCharUuid()
412 (tBTA_GATTC_API_READ*)osi_calloc(sizeof(tBTA_GATTC_API_READ)); in BTA_GATTC_ReadCharDescr()
440 (tBTA_GATTC_API_READ_MULTI*)osi_calloc(sizeof(tBTA_GATTC_API_READ_MULTI)); in BTA_GATTC_ReadMultiple()
473 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharValue()
510 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharDescr()
548 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_PrepareWrite()
585 (tBTA_GATTC_API_EXEC*)osi_calloc(sizeof(tBTA_GATTC_API_EXEC)); in BTA_GATTC_ExecuteWrite()
608 (tBTA_GATTC_API_CONFIRM*)osi_calloc(sizeof(tBTA_GATTC_API_CONFIRM)); in BTA_GATTC_SendIndConfirm()
Dbta_gatts_api.cc238 (tBTA_GATTS_API_INDICATION*)osi_calloc(sizeof(tBTA_GATTS_API_INDICATION)); in BTA_GATTS_HandleValueIndication()
269 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()
Dallocator.cc65 void* osi_calloc(size_t size) { in osi_calloc() function
82 const allocator_t allocator_calloc = {osi_calloc, osi_free};
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()
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()
Dthread.cc71 thread_t* ret = static_cast<thread_t*>(osi_calloc(sizeof(thread_t))); in thread_new_sized()
Dfixed_queue.cc47 static_cast<fixed_queue_t*>(osi_calloc(sizeof(fixed_queue_t))); in fixed_queue_new()
/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/main/shim/
Dhci_layer.cc114 BT_HDR* response = static_cast<BT_HDR*>(osi_calloc(data.size() + kBtHdrSize)); in OnTransmitPacketCommandComplete()
125 BT_HDR* response = static_cast<BT_HDR*>(osi_calloc(data.size() + kBtHdrSize)); in OnTransmitPacketStatus()
/system/bt/stack/avrc/
Davrc_pars_ct.cc659 tAVRC_APP_SETTING* app_sett = (tAVRC_APP_SETTING*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
684 p_result->get_app_attr_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
710 uint8_t* p_str = (uint8_t*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
737 p_result->get_app_val_txt.p_attrs = (tAVRC_APP_SETTING_TEXT*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
762 uint8_t* p_str = (uint8_t*)osi_calloc( in avrc_ctrl_pars_vendor_rsp()
789 (tAVRC_ATTR_ENTRY*)osi_calloc(num_attrs * sizeof(tAVRC_ATTR_ENTRY)); in avrc_ctrl_pars_vendor_rsp()
814 (uint8_t*)osi_calloc(p_attrs[i].name.str_len); in avrc_ctrl_pars_vendor_rsp()
/system/bt/bta/dm/
Dbta_dm_api.cc130 (tBTA_DM_API_SEARCH*)osi_calloc(sizeof(tBTA_DM_API_SEARCH)); in BTA_DmSearch()
172 (tBTA_DM_API_DISCOVER*)osi_calloc(sizeof(tBTA_DM_API_DISCOVER)); in BTA_DmDiscover()
565 tBTA_DM_API_DISCOVER* p_msg = (tBTA_DM_API_DISCOVER*)osi_calloc(len); in bta_dm_discover_send_msg()
/system/bt/bta/pan/
Dbta_pan_api.cc101 (tBTA_PAN_API_SET_ROLE*)osi_calloc(sizeof(tBTA_PAN_API_SET_ROLE)); in BTA_PanSetRole()
/system/bt/stack/gatt/
Dgatt_sr.cc139 p_buf = (BT_HDR*)osi_calloc(len); in process_read_multi_rsp()
416 tGATTS_RSP* p_msg = (tGATTS_RSP*)osi_calloc(sizeof(tGATTS_RSP)); in gatt_process_read_multi_req()
654 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_primary_service_req()
688 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_find_info()
816 BT_HDR* p_msg = (BT_HDR*)osi_calloc(msg_len); in gatts_process_read_by_type_req()
967 BT_HDR* p_msg = (BT_HDR*)osi_calloc(buf_len); in gatts_process_read_req()
/system/bt/device/src/
Dinterop.cc87 osi_calloc(sizeof(interop_addr_entry_t))); in interop_database_add()
/system/bt/hci/src/
Dhci_inject.cc137 client_t* client = (client_t*)osi_calloc(sizeof(client_t)); in accept_ready()

12