/base/hiviewdfx/hiview/base/event_raw/base/ |
D | raw_data.cpp | 41 RawData::RawData(size_t dataLen) in RawData() argument 43 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 47 capacity_ = dataLen; in RawData() 51 RawData::RawData(uint8_t* data, size_t dataLen) in RawData() argument 53 if (data == nullptr || dataLen == 0) { in RawData() 62 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 66 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 71 capacity_ = dataLen; in RawData() 72 len_ = dataLen; in RawData() 77 auto dataLen = data.GetDataLength(); in RawData() local [all …]
|
/base/telephony/ril_adapter/services/vendor/include/ |
D | at_sms.h | 22 void ReqSendGsmSms(const ReqDataInfo *requestInfo, const char *const *data, size_t dataLen); 23 void ReqSendSmsAck(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 24 void ReqSendCdmaSms(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 25 void ReqSendCdmaSmsAck(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 26 void ReqWriteSimMessage(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen… 27 void ReqDelSimMessage(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 28 …qSetSmscAddr(const ReqDataInfo *requestInfo, const HRilServiceCenterAddress *data, size_t dataLen); 30 void ReqSetCBConfig(const ReqDataInfo *requestInfo, const HRilCBConfigInfo *data, size_t dataLen); 33 …qSetCdmaCBConfig(const ReqDataInfo *requestInfo, const HRilCdmaCBConfigInfo *data, size_t dataLen); 34 …AddCdmaSimMessage(const ReqDataInfo *requestInfo, const HRilSmsWriteCdmaSms *data, size_t dataLen); [all …]
|
D | at_sim.h | 87 void ReqGetSimIO(const ReqDataInfo *requestInfo, const HRilSimIO *data, size_t dataLen); 89 void ReqGetSimLockStatus(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 90 void ReqSetSimLock(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 91 … ReqChangeSimPassword(const ReqDataInfo *requestInfo, const HRilSimPassword *data, size_t dataLen); 108 …SimTransmitApduLogicalChannel(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen); 109 …entication(const ReqDataInfo *requestInfo, HRilSimAuthenticationRequestInfo *data, size_t dataLen); 111 …SimMatchedOperatorInfo(const ReqDataInfo *requestInfo, HRilNcfgOperatorInfo *data, size_t dataLen);
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | raw_data.cpp | 46 RawData::RawData(uint8_t* data, size_t dataLen) in RawData() argument 48 if (data == nullptr || dataLen == 0) { in RawData() 57 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 61 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 66 capacity_ = dataLen; in RawData() 67 len_ = dataLen; in RawData() 72 auto dataLen = data.GetDataLength(); in RawData() local 74 if (dataLen == 0 || rawData == nullptr) { in RawData() 83 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 87 auto ret = memcpy_s(data_, dataLen, rawData, dataLen); in RawData() [all …]
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril_vendor_sms_defs.h | 214 void (*SendGsmSms)(const ReqDataInfo *requestInfo, const char *const *data, size_t dataLen); 215 void (*SendSmsAck)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 216 void (*SendCdmaSms)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 217 void (*SendCdmaAck)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 218 …void (*AddSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen); 219 void (*DelSimMessage)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 220 …d (*UpdateSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen); 221 …SetSmscAddr)(const ReqDataInfo *requestInfo, const HRilServiceCenterAddress *data, size_t dataLen); 223 … void (*SetCBConfig)(const ReqDataInfo *requestInfo, const HRilCBConfigInfo *data, size_t dataLen); 226 …SetCdmaCBConfig)(const ReqDataInfo *requestInfo, const HRilCdmaCBConfigInfo *data, size_t dataLen); [all …]
|
D | hril.h | 49 …(*OnCallReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen); 50 …(*OnDataReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen); 51 …*OnModemReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen); 52 …nNetworkReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen); 53 … (*OnSimReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen); 54 … (*OnSmsReport)(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *data, size_t dataLen);
|
D | hril_vendor_sim_defs.h | 359 void (*GetSimIO)(const ReqDataInfo *requestInfo, const HRilSimIO *data, size_t dataLen); 361 …void (*GetSimLockStatus)(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 362 void (*SetSimLock)(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 363 … (*ChangeSimPassword)(const ReqDataInfo *requestInfo, const HRilSimPassword *data, size_t dataLen); 380 …imTransmitApduLogicalChannel)(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen); 381 …*SimTransmitApduBasicChannel)(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen); 382 …ntication)(const ReqDataInfo *requestInfo, HRilSimAuthenticationRequestInfo *data, size_t dataLen); 384 …imMatchedOperatorInfo)(const ReqDataInfo *requestInfo, HRilNcfgOperatorInfo *data, size_t dataLen);
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_sm3_cipher.cpp | 88 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 90 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 92 for (uint32_t ii = 0; ii < dataLen; ii++) { 110 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 112 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 114 for (uint32_t ii = 0; ii < dataLen; ii++) { 132 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 134 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 136 for (uint32_t ii = 0; ii < dataLen; ii++) {
|
/base/useriam/user_auth_framework/services/remote_connect/src/ |
D | soft_bus_socket_listener.cpp | 46 void SoftBusSocketListener::OnClientBytes(int32_t socketId, const void *data, uint32_t dataLen) in OnClientBytes() argument 48 IAM_LOGI("socket fd %{public}d, recv len %{public}u.", socketId, dataLen); in OnClientBytes() 53 SoftBusManager::GetInstance().OnClientBytes(socketId, data, dataLen); in OnClientBytes() 56 void SoftBusSocketListener::OnServerBytes(int32_t socketId, const void *data, uint32_t dataLen) in OnServerBytes() argument 58 IAM_LOGI("socket fd %{public}d, recv len %{public}u.", socketId, dataLen); in OnServerBytes() 63 SoftBusManager::GetInstance().OnServerBytes(socketId, data, dataLen); in OnServerBytes()
|
/base/telephony/sms_mms/utils/ |
D | sms_common_utils.cpp | 37 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen) in Pack7bitChar() argument 40 if (userData == nullptr || packData == nullptr || dataLen > MAX_GSM_7BIT_DATA_LEN) { in Pack7bitChar() 50 while (srcIdx < dataLen && dstIdx < packLen) { in Pack7bitChar() 56 if (srcIdx >= dataLen) { in Pack7bitChar() 76 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… in Unpack7bitChar() argument 81 …if (unpackData == nullptr || tpdu == nullptr || dataLen == 0 || unpackDataLen == 0 || dataLen > un… in Unpack7bitChar() 88 for (; srcIdx < dataLen && dstIdx < unpackDataLen; dstIdx++) { in Unpack7bitChar() 94 if (dstIdx >= dataLen) { in Unpack7bitChar() 99 if (shift > 0 && srcIdx < dataLen && dstIdx < unpackDataLen) { in Unpack7bitChar() 112 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… in Unpack7bitCharForCBPdu() argument [all …]
|
D | sms_common_utils.h | 28 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen); 30 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… 32 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL…
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_socket_listener.cpp | 89 void SoftBusSocketListener::OnClientBytes(int32_t socket, const void *data, uint32_t dataLen) in OnClientBytes() argument 91 ACCESSTOKEN_LOG_INFO(LABEL, "socket fd %{public}d, recv len %{public}d.", socket, dataLen); in OnClientBytes() 94 (dataLen == 0) || (dataLen > MAX_ONBYTES_RECEIVED_DATA_LEN)) { in OnClientBytes() 111 …annel->HandleDataReceived(socket, static_cast<unsigned char *>(const_cast<void *>(data)), dataLen); in OnClientBytes() 114 void SoftBusSocketListener::OnServiceBytes(int32_t socket, const void *data, uint32_t dataLen) in OnServiceBytes() argument 116 ACCESSTOKEN_LOG_INFO(LABEL, "socket fd %{public}d, recv len %{public}d.", socket, dataLen); in OnServiceBytes() 119 (dataLen == 0) || (dataLen > MAX_ONBYTES_RECEIVED_DATA_LEN)) { in OnServiceBytes() 132 …annel->HandleDataReceived(socket, static_cast<unsigned char *>(const_cast<void *>(data)), dataLen); in OnServiceBytes()
|
/base/startup/appspawn/interfaces/innerkits_new/client/ |
D | appspawn_msg.c | 105 static int AddAppDataToBlock(AppSpawnMsgBlock *block, const uint8_t *data, uint32_t dataLen, int32_… in AddAppDataToBlock() argument 110 …alDataLen = (dataType == DATA_TYPE_STRING) ? APPSPAWN_ALIGN(dataLen + 1) : APPSPAWN_ALIGN(dataLen); in AddAppDataToBlock() 112 int ret = memcpy_s(block->buffer + block->currentIndex, reminderLen, data, dataLen); in AddAppDataToBlock() 115 *((char *)block->buffer + block->currentIndex + dataLen) = '\0'; in AddAppDataToBlock() 121 static int AddAppDataToTail(AppSpawnReqMsgNode *reqNode, const uint8_t *data, uint32_t dataLen, int… in AddAppDataToTail() argument 126 uint32_t realDataLen = (dataType == DATA_TYPE_STRING) ? dataLen + 1 : dataLen; in AddAppDataToTail() 154 tlv.tlvLen = APPSPAWN_ALIGN(data->dataLen + 1) + sizeof(AppSpawnTlvExt); in AddAppDataEx() 156 tlv.tlvLen = APPSPAWN_ALIGN(data->dataLen) + sizeof(AppSpawnTlvExt); in AddAppDataEx() 159 tlv.dataLen = data->dataLen; in AddAppDataEx() 167 name, tlv.tlvLen, data->dataLen, reqNode->msg->msgLen); in AddAppDataEx() [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/mock/ |
D | dlp_credential_service.c | 187 .dataLen = taskParams->packParams->dataLen, in PackPolicyCallbackTask() 191 …if (CheckAccount(taskParams->packParams->data, taskParams->packParams->dataLen, taskParams->packPa… in PackPolicyCallbackTask() 218 outParams.dataLen = 0; in RestorePolicyCallbackTask() 227 …if (CheckAccount(taskParams->encData->data, taskParams->encData->dataLen, taskParams->encData->acc… in RestorePolicyCallbackTask() 234 outParams.dataLen = taskParams->encData->dataLen; in RestorePolicyCallbackTask() 261 taskParams->packParams->data = (uint8_t*)calloc(1, params->dataLen); in TransPackPolicyParams() 265 …if (memcpy_s(taskParams->packParams->data, params->dataLen, params->data, params->dataLen) != EOK)… in TransPackPolicyParams() 268 taskParams->packParams->dataLen = params->dataLen; in TransPackPolicyParams() 285 requestId == NULL || params->dataLen == 0 || params->dataLen > MAX_CERT_LEN) { in DLP_PackPolicy() 337 taskParams->encData->data = (uint8_t*)calloc(1, params->dataLen); in TransEncPolicyData() [all …]
|
/base/telephony/sms_mms/services/sms/ |
D | gsm_cb_umts_codec.cpp | 177 uint16_t dataLen = tpdu[pageLenOffset]; in Decode3g7Bit() local 179 if (dataLen > MAX_PAGE_PDU_LEN) { in Decode3g7Bit() 180 TELEPHONY_LOGE("CB Msg Size is over MAX [%{pulbic}d]", dataLen); in Decode3g7Bit() 187 &tpdu[offset], dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT); in Decode3g7Bit() 221 uint16_t dataLen = 0; in Decode3gUCS2() local 225 dataLen = tpdu[pageLenOffset] - HEX_VALUE_02; in Decode3gUCS2() 229 dataLen = tpdu[pageLenOffset]; in Decode3gUCS2() 232 if (dataLen > 0 && dataLen <= MAX_PAGE_PDU_LEN && dataLen < tpduLen) { in Decode3gUCS2() 233 for (uint8_t position = offset; position < offset + dataLen; position++) { in Decode3gUCS2()
|
D | gsm_cb_gsm_codec.cpp | 185 uint16_t dataLen = cbPduBuffer_->GetSize() - cbPduBuffer_->GetCurPosition(); in Decode2gCbMsg() local 188 if (!Decode2gCbMsg7bit(dataLen)) { in Decode2gCbMsg() 196 if (dataLen < HEX_VALUE_02) { in Decode2gCbMsg() 203 dataLen -= HEX_VALUE_02; in Decode2gCbMsg() 206 if (dataLen == 0 || cbPduBuffer_->pduBuffer_ == nullptr || in Decode2gCbMsg() 207 (cbPduBuffer_->GetCurPosition() + dataLen) > cbPduBuffer_->GetSize()) { in Decode2gCbMsg() 223 bool GsmCbGsmCodec::Decode2gCbMsg7bit(uint16_t dataLen) in Decode2gCbMsg7bit() argument 234 … dataPdu.data(), dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT + 1); in Decode2gCbMsg7bit()
|
/base/sensors/medical_sensor/utils/src/ |
D | report_data_cache.cpp | 66 .dataLen = event->dataLen in CacheData() 68 uint32_t len = (event->dataLen < SENSOR_DATA_LENGHT) ? event->dataLen : SENSOR_DATA_LENGHT; in CacheData() 70 …:Info(LABEL, "%{public}s dataLength: %{public}d, len = %{public}d", __func__, event->dataLen, len); in CacheData() 71 if (memcpy_s(eventCopy.data, len, event->data, event->dataLen) != EOK) { in CacheData()
|
/base/security/device_auth/frameworks/src/lite/ |
D | ipc_dev_auth_proxy.c | 65 int32_t dataLen; in FinalCallRequest() local 68 dataLen = GetIpcIoDataLength((const IpcIo *)(dataCtx->tmpData)); in FinalCallRequest() 69 if (dataLen <= 0) { in FinalCallRequest() 70 LOGE("data invalid, dataLen %d", dataLen); in FinalCallRequest() 75 methodId, dataCtx->paramCnt, dataLen, ioPtr->flag, dataCtx->ioBuffOffset); in FinalCallRequest() 78 WriteInt32(ioPtr, dataLen + sizeof(int32_t)); in FinalCallRequest() 80 WriteUint32(ioPtr, dataLen); in FinalCallRequest() 81 …iteBuffer(ioPtr, (const uint8_t *)(dataCtx->tmpData->bufferBase + dataCtx->ioBuffOffset), dataLen); in FinalCallRequest()
|
/base/update/sys_installer_lite/frameworks/source/verify/ |
D | hota_verify.c | 74 static int32 HotaCalcImageHash(uint8 *dataAddr, uint32 dataLen, uint8 *hash, uint32 hashLen) in HotaCalcImageHash() argument 79 if ((dataAddr == NULL) || (hash == NULL) || (dataLen == 0) || (hashLen < HASH_LENGTH)) { in HotaCalcImageHash() 91 while (dataLen > 0) { in HotaCalcImageHash() 92 count = (dataLen > BUFFR_LENGTH) ? BUFFR_LENGTH : dataLen; in HotaCalcImageHash() 94 dataLen -= count; in HotaCalcImageHash()
|
/base/security/device_security_level/baselib/msglib/src/utils/ |
D | messenger_utils.c | 31 uint32_t dataLen = sizeof(QueueMsgData) + msgLen; in CreateQueueMsgData() local 32 QueueMsgData *queueData = MALLOC(dataLen); in CreateQueueMsgData() 50 *queueDataLen = dataLen; in CreateQueueMsgData()
|
/base/security/device_auth/services/legacy/group_manager/src/channel_manager/soft_bus_channel/ |
D | soft_bus_channel.c | 116 static char *GenRecvData(int64_t channelId, const void *data, uint32_t dataLen, int64_t *requestId) in GenRecvData() argument 118 char *dataStr = (char *)HcMalloc(dataLen + 1, 0); in GenRecvData() 123 if (memcpy_s(dataStr, dataLen + 1, data, dataLen) != HC_SUCCESS) { in GenRecvData() 200 static void OnBytesReceivedCb(int sessionId, const void *data, unsigned int dataLen) in OnBytesReceivedCb() argument 202 if ((data == NULL) || (dataLen == 0) || (dataLen > MAX_DATA_BUFFER_SIZE)) { in OnBytesReceivedCb() 208 char *recvDataStr = GenRecvData(sessionId, data, dataLen, &requestId); in OnBytesReceivedCb() 249 static int32_t SendSoftBusMsg(int64_t channelId, const uint8_t *data, uint32_t dataLen) in SendSoftBusMsg() argument 252 int32_t res = SendBytes(channelId, data, dataLen); in SendSoftBusMsg()
|
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
D | cipher_aes.c | 43 static int32_t UnpaddingPkcs5(char *data, size_t dataLen) in UnpaddingPkcs5() argument 45 int32_t padLen = data[dataLen - 1]; in UnpaddingPkcs5() 52 if (data[dataLen - 1 - i] != padLen) { in UnpaddingPkcs5() 55 data[dataLen - 1 - i] = '\0'; in UnpaddingPkcs5() 57 return (dataLen - padLen); in UnpaddingPkcs5() 88 size_t dataLen = 0; in MallocEncodeData() local 89 int32_t ret = mbedtls_base64_encode(NULL, 0, &dataLen, text, *olen); in MallocEncodeData() 94 if (dataLen == 0) { in MallocEncodeData() 97 char *encData = (char *)malloc(dataLen + 1); in MallocEncodeData() 99 CIPHER_LOG_E("malloc data failed, expect len:%zu.", dataLen); in MallocEncodeData() [all …]
|
/base/security/device_auth/frameworks/src/standard/ |
D | ipc_dev_auth_proxy.cpp | 83 int32_t dataLen; in FinalCallRequest() local 86 dataLen = static_cast<int32_t>(tmpDataParcel.GetDataSize()); in FinalCallRequest() 88 if ((dataLen <= 0) || (dataPtr == nullptr)) { in FinalCallRequest() 102 if (!dataParcel.WriteInt32(methodId) || !dataParcel.WriteInt32(dataLen + sizeof(int32_t)) || in FinalCallRequest() 106 … (!dataParcel.WriteBuffer(reinterpret_cast<const void *>(dataPtr), static_cast<size_t>(dataLen))) { in FinalCallRequest()
|
/base/iothardware/peripheral/interfaces/inner_api/ |
D | iot_i2c.h | 83 …Write(unsigned int id, unsigned short deviceAddr, const unsigned char *data, unsigned int dataLen); 99 … IoTI2cRead(unsigned int id, unsigned short deviceAddr, unsigned char *data, unsigned int dataLen);
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_common_utils.cpp | 32 …s::Pack7bitChar(SmsWriteBuffer &buffer, const uint8_t *userData, uint8_t dataLen, uint8_t fillBits) in Pack7bitChar() argument 34 if (userData == nullptr || dataLen > MAX_GSM_7BIT_DATA_LEN) { in Pack7bitChar() 43 while (srcIdx < dataLen) { in Pack7bitChar() 51 if (srcIdx >= dataLen) { in Pack7bitChar() 105 bool GsmSmsCommonUtils::Unpack7bitChar(SmsReadBuffer &buffer, uint8_t dataLen, uint8_t fillBits, ui… in Unpack7bitChar() argument 109 if (unpackData == nullptr || dataLen >= unpackDataLen || fillBits > SMS_BYTE_BIT - 1) { in Unpack7bitChar()
|