/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 … ReqAddCdmaSimMessage(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *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);
|
/base/hiviewdfx/hiview/base/event_raw/base/ |
D | raw_data.cpp | 38 RawData::RawData(uint8_t* data, size_t dataLen) in RawData() argument 40 if (data == nullptr || dataLen == 0) { in RawData() 46 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 50 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 55 capacity_ = dataLen; in RawData() 56 len_ = dataLen; in RawData() 61 auto dataLen = data.GetDataLength(); in RawData() local 62 if (dataLen == 0) { in RawData() 65 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 69 auto ret = memcpy_s(data_, dataLen, data.GetData(), dataLen); in RawData() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/ |
D | raw_data.cpp | 38 RawData::RawData(uint8_t* data, size_t dataLen) in RawData() argument 40 if (data == nullptr || dataLen == 0) { in RawData() 46 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 50 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 55 capacity_ = dataLen; in RawData() 56 len_ = dataLen; in RawData() 61 auto dataLen = data.GetDataLength(); in RawData() local 63 if (dataLen == 0 || rawData == nullptr) { in RawData() 69 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 73 auto ret = memcpy_s(data_, dataLen, rawData, dataLen); in RawData() [all …]
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril_vendor_sms_defs.h | 193 void (*SendGsmSms)(const ReqDataInfo *requestInfo, const char *const *data, size_t dataLen); 194 void (*SendSmsAck)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 195 void (*SendCdmaSms)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 196 void (*SendCdmaAck)(const ReqDataInfo *requestInfo, const char *data, size_t dataLen); 197 …void (*AddSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen); 198 void (*DelSimMessage)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen); 199 …d (*UpdateSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen); 200 …SetSmscAddr)(const ReqDataInfo *requestInfo, const HRilServiceCenterAddress *data, size_t dataLen); 202 … void (*SetCBConfig)(const ReqDataInfo *requestInfo, const HRilCBConfigInfo *data, size_t dataLen); 205 …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 | 337 void (*GetSimIO)(const ReqDataInfo *requestInfo, const HRilSimIO *data, size_t dataLen); 339 …void (*GetSimLockStatus)(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 340 void (*SetSimLock)(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen); 341 … (*ChangeSimPassword)(const ReqDataInfo *requestInfo, const HRilSimPassword *data, size_t dataLen); 358 …imTransmitApduLogicalChannel)(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen); 359 …*SimTransmitApduBasicChannel)(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen); 360 …ntication)(const ReqDataInfo *requestInfo, HRilSimAuthenticationRequestInfo *data, size_t dataLen);
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_sm3_cipher.cpp | 90 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 92 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 94 for (uint32_t ii = 0; ii < dataLen; ii++) { 112 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 114 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 116 for (uint32_t ii = 0; ii < dataLen; ii++) { 134 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; variable 136 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; 138 for (uint32_t ii = 0; ii < dataLen; ii++) {
|
/base/telephony/sms_mms/services/sms/ |
D | gsm_cb_umts_codec.cpp | 163 uint16_t dataLen = 0; in Decode3g7Bit() local 174 dataLen = tpdu[pageLenOffset]; in Decode3g7Bit() 176 if (dataLen > MAX_PAGE_PDU_LEN) { in Decode3g7Bit() 177 TELEPHONY_LOGE("CB Msg Size is over MAX [%{pulbic}d]", dataLen); in Decode3g7Bit() 182 dataLen = (dataLen * SMS_BYTE_BIT) / GSM_CODE_BIT; in Decode3g7Bit() 185 &tpdu[offset], dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT); in Decode3g7Bit() 208 uint16_t dataLen = 0; in Decode3gUCS2() local 223 dataLen = tpdu[pageLenOffset] - HEX_VALUE_02; in Decode3gUCS2() 226 dataLen = tpdu[pageLenOffset]; in Decode3gUCS2() 229 if (dataLen > 0 && dataLen <= MAX_PAGE_PDU_LEN && dataLen < tpduLen) { in Decode3gUCS2() [all …]
|
D | gsm_cb_gsm_codec.cpp | 178 uint16_t dataLen = cbPduBuffer_->GetSize() - cbPduBuffer_->GetCurPosition(); in Decode2gCbMsg() local 181 if (!Decode2gCbMsg7bit(dataLen)) { in Decode2gCbMsg() 189 if (dataLen < HEX_VALUE_02) { in Decode2gCbMsg() 196 dataLen -= HEX_VALUE_02; in Decode2gCbMsg() 199 if (dataLen == 0 || cbPduBuffer_->pduBuffer_ == nullptr || in Decode2gCbMsg() 200 (cbPduBuffer_->GetCurPosition() + dataLen) > cbPduBuffer_->GetSize()) { in Decode2gCbMsg() 216 bool GsmCbGsmCodec::Decode2gCbMsg7bit(uint16_t dataLen) in Decode2gCbMsg7bit() argument 218 dataLen = (dataLen * SMS_BYTE_BIT) / GSM_CODE_BIT; in Decode2gCbMsg7bit() 228 dataPdu.data(), dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT); in Decode2gCbMsg7bit()
|
/base/telephony/sms_mms/utils/ |
D | sms_common_utils.cpp | 35 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen) in Pack7bitChar() argument 38 if (userData == nullptr || packData == nullptr || dataLen > MAX_GSM_7BIT_DATA_LEN) { in Pack7bitChar() 48 while (srcIdx < dataLen && dstIdx < packLen) { in Pack7bitChar() 54 if (srcIdx >= dataLen) { in Pack7bitChar() 74 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… in Unpack7bitChar() argument 79 …if (unpackData == nullptr || tpdu == nullptr || dataLen == 0 || unpackDataLen == 0 || dataLen > un… in Unpack7bitChar() 86 for (; srcIdx < dataLen && dstIdx < unpackDataLen; dstIdx++) { in Unpack7bitChar() 92 if (dstIdx >= dataLen) { in Unpack7bitChar() 96 if (shift > 0 && srcIdx < dataLen && dstIdx < unpackDataLen) { in Unpack7bitChar()
|
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…
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_session_listener.cpp | 83 …id SoftBusSessionListener::OnMessageReceived(int32_t sessionId, const void *data, uint32_t dataLen) in OnMessageReceived() argument 86 ACCESSTOKEN_LOG_DEBUG(LABEL, "OnMessageReceived: data length = %{public}u", dataLen); in OnMessageReceived() 89 void SoftBusSessionListener::OnBytesReceived(int32_t sessionId, const void *data, uint32_t dataLen) in OnBytesReceived() argument 91 if ((sessionId == Constant::INVALID_SESSION) || (dataLen == 0) || in OnBytesReceived() 92 (dataLen > MAX_ONBYTES_RECEIVED_DATA_LEN) || (data == nullptr)) { in OnBytesReceived() 93 ACCESSTOKEN_LOG_ERROR(LABEL, "params invalid, data length: %{public}u", dataLen); in OnBytesReceived() 105 ACCESSTOKEN_LOG_INFO(LABEL, "data length = %{public}u", dataLen); in OnBytesReceived() 111 …el->HandleDataReceived(sessionId, static_cast<unsigned char *>(const_cast<void *>(data)), dataLen); in OnBytesReceived()
|
/base/security/dlp_permission_service/services/dlp_permission/sa/mock/ |
D | dlp_credential_service.c | 186 .dataLen = taskParams->packParams->dataLen, in PackPolicyCallbackTask() 190 …if (CheckAccount(taskParams->packParams->data, taskParams->packParams->dataLen, taskParams->packPa… in PackPolicyCallbackTask() 217 outParams.dataLen = 0; in RestorePolicyCallbackTask() 226 …if (CheckAccount(taskParams->encData->data, taskParams->encData->dataLen, taskParams->encData->acc… in RestorePolicyCallbackTask() 234 outParams.dataLen = taskParams->encData->dataLen; in RestorePolicyCallbackTask() 262 taskParams->packParams->data = (uint8_t*)calloc(1, params->dataLen); in TransPackPolicyParams() 266 …if (memcpy_s(taskParams->packParams->data, params->dataLen, params->data, params->dataLen) != EOK)… in TransPackPolicyParams() 269 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 …]
|
D | dlp_credential_client_defines.h | 49 uint32_t dataLen; member 59 uint32_t dataLen; member 68 uint32_t dataLen; member
|
/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 | 66 int32_t dataLen; in FinalCallRequest() local 69 dataLen = GetIpcIoDataLength((const IpcIo *)(dataCtx->tmpData)); in FinalCallRequest() 70 if (dataLen <= 0) { in FinalCallRequest() 71 LOGE("data invalid, dataLen %d", dataLen); in FinalCallRequest() 76 methodId, dataCtx->paramCnt, dataLen, ioPtr->flag, dataCtx->ioBuffOffset); in FinalCallRequest() 79 WriteInt32(ioPtr, dataLen + sizeof(int32_t)); in FinalCallRequest() 81 WriteUint32(ioPtr, dataLen); in FinalCallRequest() 82 …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/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) { in Unpack7bitChar() 117 for (; dstIdx < dataLen; dstIdx++) { in Unpack7bitChar() 127 if (dstIdx >= dataLen) { in Unpack7bitChar()
|
/base/security/device_auth/frameworks/src/standard/ |
D | ipc_dev_auth_proxy.cpp | 81 int32_t dataLen; in FinalCallRequest() local 84 dataLen = static_cast<int32_t>(tmpDataParcel.GetDataSize()); in FinalCallRequest() 86 if ((dataLen <= 0) || (dataPtr == nullptr)) { in FinalCallRequest() 99 LOGI("method id %d, param num %d, data length %d", methodId, paramCnt, dataLen); in FinalCallRequest() 101 if (!dataParcel.WriteInt32(methodId) || !dataParcel.WriteInt32(dataLen + sizeof(int32_t)) || in FinalCallRequest() 105 … (!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/security/device_auth/services/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/security_component_manager/interfaces/inner_api/enhance_kits/src/ |
D | sec_comp_enhance_kit.cpp | 38 int32_t SecCompEnhanceKit::GetPointerEventEnhanceData(void* data, uint32_t dataLen, in GetPointerEventEnhanceData() argument 41 …return SecCompEnhanceAdapter::GetPointerEventEnhanceData(data, dataLen, enhanceData, enHancedataLe… in GetPointerEventEnhanceData()
|
/base/security/device_security_level/oem_property/ohos/common/ |
D | hks_adapter.h | 41 …t HksCertChainToBuffer(const struct HksCertChain *hksCertChain, uint8_t **data, uint32_t *dataLen); 42 int32_t BufferToHksCertChain(const uint8_t *data, uint32_t dataLen, struct HksCertChain *hksCertCha…
|