/foundation/communication/bluetooth_service/services/bluetooth/hardware/include/ |
H A D | bt_vendor_lib.h | 145 malloc_callback alloc; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/cmd/ |
H A D | hci_cmd_le_controller.c | 452 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedAdvertisingData() 488 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedScanResponseData() 523 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedAdvertisingEnable() 599 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeSetExtendedScanParameters() 658 uint8_t *buf = MEM_MALLOC.alloc(length); in HCI_LeExtenedCreateConnection()
|
H A D | hci_cmd.c | 96 HciPacket *hciPacket = MEM_MALLOC.alloc(sizeof(HciPacket)); in HciCmdPushToTxQueue() 203 HciCmd *cmd = MEM_MALLOC.alloc(sizeof(HciCmd)); in HciAllocCmd() 207 cmd->param = MEM_MALLOC.alloc(paramLength); in HciAllocCmd()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp.c | 207 SMP_RegCbTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RegCbTask_t)); in SMP_RegisterCallback() 290 SMP_StartPairTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_StartPairTask_t)); in SMP_StartPair() 351 SMP_CancelPairTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_CancelPairTask_t)); in SMP_CancelPair() 390 SMP_AuthReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_AuthReqReplyTask_t)); in SMP_AuthenticationRequestReply() 445 SMP_RemotePairReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemotePairReqReplyTask_t)); in SMP_RemotePairRequestReply() 508 SMP_RemotePairRspReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemotePairRspReplyTask_t)); in SMP_RemotePairResponseReply() 551 SMP_RemoteSecReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_RemoteSecReqReplyTask_t)); in SMP_RemoteSecurityRequestReply() 582 SMP_LongTermKeyReqReplyTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_LongTermKeyReqReplyTask_t)); in SMP_LongTermKeyRequestReply() 653 SMP_StartEncTask_t *ctx = MEM_MALLOC.alloc(sizeof(SMP_StartEncTask_t)); in SMP_StartEncryption() 729 SMP_SendSecReqToRemoteTask_t *ctx = MEM_MALLOC.alloc(sizeo in SMP_SendSecurityRequestToRemote() [all...] |
H A D | smp_hci_event.c | 316 HciLeRandReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeRandReturnParam)); in SMP_OnLERandComplete() 355 HciLeEncryptReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeEncryptReturnParam)); in SMP_OnLEEncryptComplete() 403 HciEncryptionChangeEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciEncryptionChangeEventParam)); in SMP_OnLEEncryptionChange() 430 MEM_MALLOC.alloc(sizeof(HciEncryptionKeyRefreshCompleteEventParam)); in SMP_OnLEEncryptionKeyRefreshComplete() 462 HciLeLongTermKeyRequestEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestEventParam)); in SMP_OnLELongTermKeyRequest() 516 HciLeLongTermKeyRequestReplyReturnParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeLongTermKeyRequestReplyReturnParam)); in SMP_OnLELongTermKeyRequestReplyComplete() 573 MEM_MALLOC.alloc(sizeof(HciLeReadLocalP256PublicKeyCompleteEventParam)); in SMP_OnLEReadLocalP256PublicKeyComplete() 654 HciLeGenerateDHKeyCompleteEventParam *ctx = MEM_MALLOC.alloc(sizeof(HciLeGenerateDHKeyCompleteEventParam)); in SMP_OnLEGenerateDHKeyComplete()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/common/ |
H A D | mock_jpeg_hw_decode_flow.cpp | 45 AllocInfo alloc = { in AllocOutputBuffer() local 52 int32_t ret = bufferMgr_->AllocMem(alloc, handle); in AllocOutputBuffer() 54 JPEG_HW_LOGE("failed to alloc output buffer, err=%{public}d", ret); in AllocOutputBuffer()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_connect.c | 138 SdpConnectInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectWaitTime() 176 SdpConnectInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectTimeout() 315 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConnectReqCallback() 365 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConfigReqCallback() 398 connect = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpConnectRspCallbackTask() 434 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConnectRspCallback() 504 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpConfigRspCallback() 556 SdpConnectCallbackInfo *ctx = MEM_MALLOC.alloc(sizeof(SdpConnectCallbackInfo)); in SdpDisconnectionRspCallback() 584 connect = MEM_MALLOC.alloc(sizeof(SdpConnectInfo)); in SdpSendConnectRequest() 647 SdpReceiveConnectRequestInfo *ctx = MEM_MALLOC.alloc(sizeo in SdpReceiveConnectRequest() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/ |
H A D | hdi_wrapper.c | 31 HDILib *lib = MEM_CALLOC.alloc(sizeof(HDILib)); in LoadHdiLib()
|
H A D | hci_vendor_if.c | 32 HCIVendorEventCallbackBlock *block = MEM_MALLOC.alloc(sizeof(HCIVendorEventCallbackBlock)); in HCIVendorAllocCallbackBlock()
|
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/ |
H A D | InnerAVMuxerFunctionTest.cpp | 151 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSample() local 152 std::shared_ptr<AVBuffer> data = AVBuffer::CreateAVBuffer(alloc, BUFFER_SIZE_NUM); in WriteTrackSample() 197 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSampleShort() local 198 std::shared_ptr<AVBuffer> data = AVBuffer::CreateAVBuffer(alloc, BUFFER_SIZE_NUM); in WriteTrackSampleShort() 347 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackSampleByFdMem() local 348 avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, dataSize); in WriteTrackSampleByFdMem() 494 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteSingleTrackSampleMem() local 495 avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, dataSize); in WriteSingleTrackSampleMem() 548 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteTrackCover() local 549 std::shared_ptr<AVBuffer> avMuxerDemoBuffer = AVBuffer::CreateAVBuffer(alloc, siz in WriteTrackCover() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/ |
H A D | att_common.c | 187 TransactionTimeOutContext *transTimeOutPtr = MEM_MALLOC.alloc(sizeof(TransactionTimeOutContext)); in AttTransactionTimeOut() 386 AttClientDataCallback *attClientDataCallbackAsyncPtr = MEM_MALLOC.alloc(sizeof(AttClientDataCallback)); in ATT_ClientDataRegister() 484 AttServerDataCallback *attServerDataCallbackAsyncPtr = MEM_MALLOC.alloc(sizeof(AttServerDataCallback)); in ATT_ServerDataRegister() 976 MEM_MALLOC.alloc(sizeof(LeRecvSendDataCallbackAsyncContext)); in LeRecvSendDataCallback() 1052 MEM_MALLOC.alloc(sizeof(BREDRRecvSendDataCallbackAsyncContext)); in BREDRRecvSendDataCallback() 1272 AttRecvDataAsyncContext *attRecvDataAsyncPtr = MEM_MALLOC.alloc(sizeof(AttRecvDataAsyncContext)); in AttRecvData() 1347 AttRecvLeDataAsyncContext *attRecvLeDataAsyncPtr = MEM_MALLOC.alloc(sizeof(AttRecvLeDataAsyncContext)); in AttRecvLeData() 1429 AttConnectRegisterContext *attConnRegPtr = MEM_MALLOC.alloc(sizeof(AttConnectRegisterContext)); in ATT_ConnectRegister() 1530 MEM_MALLOC.alloc(sizeof(BREDRRecvSendDataCallbackAsyncContext)); in AttBREDRSendRespCallback() 1587 LeRecvSendDataCallbackAsyncContext *attLeSendRspPtr = MEM_MALLOC.alloc(sizeo in AttLeSendRespCallback() [all...] |
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | unordered_map.h | 577 auto alloc = buckets_.getAllocator(); in allocate() local 578 auto node = static_cast<list_node*>(alloc.alloc(alloc.instance, sizeof(list_node))); in allocate() 588 auto alloc = buckets_.getAllocator(); in release() local 589 alloc.free(alloc.instance, node); in release()
|
H A D | allocator.h | 30 void* (*alloc)(void* instance, size_type size) { nullptr }; in alloc() function
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_le_conn.c | 211 deviceInfo->paramUpdateReq = MEM_MALLOC.alloc(sizeof(LeConnParamUpdateReq)); in GapOnLeRemoteConnectionParameterRequestEvent() 437 GapGeneralPointerInfo *ctx = MEM_MALLOC.alloc(sizeof(GapGeneralPointerInfo)); in GapWaitExAdvTerminatedTimeout() 458 deviceInfo = MEM_MALLOC.alloc(sizeof(LeDeviceInfo)); in GapLeConnectionComplete() 483 LOG_ERROR("%{public}s:alloc failed.", __FUNCTION__); in GapLeConnectionComplete() 526 deviceInfo->paramUpdateReq = MEM_MALLOC.alloc(sizeof(LeConnParamUpdateReq)); in GapReceiveL2capParameterUpdateReq()
|
H A D | gap_hci_receive.c | 31 hciParam = MEM_MALLOC.alloc(ctxLen); in GapProcessHciEventInTask() 305 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResult)); in GapRecvInquiryResult() 391 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResultWithRssi)); in GapRecvInquiryResultRssi() 739 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeAdvertisingReport)); in GapRecvLeAdvertisingReportEvent() 750 hciParam.reports[index].data = MEM_MALLOC.alloc(hciParam.reports[index].lengthData); in GapRecvLeAdvertisingReportEvent() 801 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeDirectedAdvertisingReport)); in GapRecvLeDirectedAdvertisingReport() 832 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeExtendedAdvertisingReport)); in GapRecvLeExtendedAdvertisingReportEvent() 843 hciParam.reports[i].data = MEM_MALLOC.alloc(hciParam.reports[i].dataLength); in GapRecvLeExtendedAdvertisingReportEvent()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
H A D | btm_thread.c | 46 BtmTask *block = MEM_MALLOC.alloc(sizeof(BtmTask)); in AllocTask() 71 BtmProcessingQueue *block = MEM_MALLOC.alloc(sizeof(BtmProcessingQueue)); in AllocProcessingQueue()
|
H A D | btm_snoop.c | 222 char *bakPath = MEM_CALLOC.alloc(length); in BtmPrepareSnoopFile() 261 g_outputPath = (char *)MEM_MALLOC.alloc(length + 1); in BTM_SetSnoopFilePath()
|
H A D | btm_acl.c | 160 BtmAclConnection *connection = MEM_CALLOC.alloc(sizeof(BtmAclConnection)); in AllocAclConnection() 188 BtmAclCallbacksBlock *block = MEM_CALLOC.alloc(sizeof(BtmAclCallbacksBlock)); in BtmAllocAclCallbacksBlock() 665 HciLeConnectionParamSet *sets = MEM_MALLOC.alloc(sizeof(HciLeConnectionParamSet) * countOfSets); in BtmLeExtendedCreateConnection() 784 BtmWhiteListPendingAction *action = MEM_MALLOC.alloc(sizeof(BtmWhiteListPendingAction)); in BtmLeCreateConnection() 1010 *addrList = MEM_CALLOC.alloc(sizeof(BtAddr) * count); in BtmGetLeConnectingAddr() 1408 duplicated = MEM_MALLOC.alloc(sizeof(BtmRemoteDeviceSupportRequest)); in BtmGetRemoteDeviceSupportRequests() 1997 BtAddr *cancelAddr = MEM_MALLOC.alloc(sizeof(BtAddr)); in BTM_LeCancelConnect() 2004 BtmWhiteListPendingAction *action = MEM_MALLOC.alloc(sizeof(BtmWhiteListPendingAction)); in BTM_LeCancelConnect() 2042 BtmRemoteDeviceSupportRequest *request = MEM_MALLOC.alloc(sizeof(BtmRemoteDeviceSupportRequest)); in BTM_IsRemoteDeviceSupportHostSecureSimplePairing() 2079 BtmRemoteDeviceSupportRequest *request = MEM_MALLOC.alloc(sizeo in BTM_IsRemoteDeviceSupportConnectionParametersRequest() [all...] |
H A D | btm_le_sec.c | 53 BtmLePairedDeviceBlock *block = MEM_MALLOC.alloc(sizeof(BtmLePairedDeviceBlock)); in BtmAllocLePairedDeviceBlock() 459 BtmIdentityResolvingKey *devIrks = MEM_MALLOC.alloc(sizeof(BtmIdentityResolvingKey) * devCount); in BTM_GetAllRemoteIdentityResolvingKey() 498 BtmLePairedDevice *devices_ = MEM_MALLOC.alloc(sizeof(BtmLePairedDevice) * devCount); in BTM_GetAllPairedDevices()
|
H A D | btm_inq_db.c | 34 BtmInquiryDBEntity *entity = MEM_MALLOC.alloc(sizeof(BtmInquiryDBEntity)); in BtmAllocInquiryDBEntity()
|
H A D | btm_pm.c | 67 BtmPmCallbackBlock *block = MEM_MALLOC.alloc(sizeof(BtmPmCallbackBlock)); in BtmPmAllocCallbackBlock() 82 BtmConnectionMode *connectionMode = MEM_MALLOC.alloc(sizeof(BtmConnectionMode)); in BtmAllocConnectionMode()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/evt/ |
H A D | hci_evt_info_params_cmd_complete.c | 156 returnParam.supportedCodecs = MEM_MALLOC.alloc(returnParam.numberOfSupportedCodecs * sizeof(uint8_t)); in HciEventOnReadLocalSupportedCodecs() 175 MEM_MALLOC.alloc(returnParam.numberOfSupportedVendorSpecificCodecs * sizeof(HciVendorSpecificCodec)); in HciEventOnReadLocalSupportedCodecs()
|
H A D | hci_evt_le.c | 72 HciLeAdvertisingReport *reports = MEM_MALLOC.alloc(sizeof(HciLeAdvertisingReport) * eventParam.numReports); in HciEventOnLeAdvertisingReportEvent() 269 MEM_MALLOC.alloc(sizeof(HciLeDirectedAdvertisingReport) * eventParam.numReports); in HciEventOnLeDirectedAdvertisingReportCompleteEvent() 384 MEM_MALLOC.alloc(sizeof(HciLeExtendedAdvertisingReport) * eventParam.numReports); in HciEventOnLeExtendedAdvertisingReportEvent()
|
/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
H A D | avmuxer_demo_base.cpp | 343 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in ReadSampleDataInfo() local 344 buffer = AVBuffer::CreateAVBuffer(alloc, size); in ReadSampleDataInfo() 525 auto alloc = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in WriteCoverSample() local 526 std::shared_ptr<AVBuffer> avMemBuffer = AVBuffer::CreateAVBuffer(alloc, size); in WriteCoverSample()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/acl/ |
H A D | hci_acl.c | 86 HciConnectionHandleBlock *block = MEM_MALLOC.alloc(sizeof(HciConnectionHandleBlock)); in HciAllocConnectionHandleBlock() 137 HciTxPackets *entity = MEM_CALLOC.alloc(sizeof(HciTxPackets)); in AllocTxPacketsEntity() 390 HciPacket *hciPacket = MEM_MALLOC.alloc(sizeof(HciPacket)); in HciAclPushToTxQueue() 413 Packet **fargmentedPackets = MEM_MALLOC.alloc(sizeof(Packet *) * count); in HciFargment()
|