Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 25 of 108) sorted by relevance

12345

/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.cpp81 …size_t dataSize = LZ4F_compressBegin(compressionContext_, buffer_.data(), buffer_.size(), &prefere… in Open() local
82 if (LZ4F_isError(dataSize)) { in Open()
83 PATCH_LOGE("Failed to generate header %s", LZ4F_getErrorName(dataSize)); in Open()
86 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in Open()
91 offset_ += dataSize; in Open()
164 size_t dataSize = LZ4F_compressUpdate(compressionContext_, in CompressData() local
166 if (LZ4F_isError(dataSize)) { in CompressData()
167 PATCH_LOGE("Failed to compress update %s", LZ4F_getErrorName(dataSize)); in CompressData()
171 if (dataSize > 0) { in CompressData()
172 ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in CompressData()
[all …]
Dbzip2_adapter.cpp83 int32_t BZipBuffer2Adapter::FlushData(size_t &dataSize) in FlushData() argument
85 dataSize = 0; in FlushData()
109 dataSize = dataSize_; in FlushData()
153 int32_t BZip2StreamAdapter::FlushData(size_t &dataSize) in FlushData() argument
155 dataSize = 0; in FlushData()
180 dataSize = dataSize_; in FlushData()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/
Dhks_openssl_common_test.cpp66 const uint32_t dataSize = 1; variable
67 uint8_t data[dataSize] = { 0 };
68 struct HksBlob blob = { .size = dataSize, .data = data };
81 const uint32_t dataSize = 1; variable
82 uint8_t data[dataSize] = { 0 };
83 struct HksBlob blob = { .size = dataSize, .data = data };
96 const uint32_t dataSize = 16; variable
97 uint8_t data[dataSize] = { 0 };
98 struct HksBlob blob = { .size = dataSize, .data = data };
/base/security/device_auth/common_lib/impl/src/
Dhc_parcel.c99 HcBool ParcelReadWithoutPopData(HcParcel *parcel, void *dst, uint32_t dataSize) in ParcelReadWithoutPopData() argument
102 HcBool ret = ParcelReadRevert(parcel, dst, dataSize); in ParcelReadWithoutPopData()
104 HcBool ret = ParcelRead(parcel, dst, dataSize); in ParcelReadWithoutPopData()
107 parcel->beginPos -= dataSize; in ParcelReadWithoutPopData()
112 HcBool ParcelRead(HcParcel *parcel, void *dst, uint32_t dataSize) in ParcelRead() argument
115 if (parcel == NULL || dst == NULL || dataSize == 0) { in ParcelRead()
118 if (parcel->beginPos > PARCEL_UINT_MAX - dataSize) { in ParcelRead()
121 if (parcel->beginPos + dataSize > parcel->endPos) { in ParcelRead()
124 rc = memmove_s(dst, dataSize, parcel->data + parcel->beginPos, dataSize); in ParcelRead()
128 parcel->beginPos += dataSize; in ParcelRead()
[all …]
/base/hiviewdfx/hiview/base/utility/include/
Dash_memory_utils.h32 uint32_t dataSize = 0; in WriteBulkData() local
33 void* data = dataInfo.GetData(dataSize); in WriteBulkData()
37 if (offset + dataSize > ashSize) { in WriteBulkData()
41 allSize.emplace_back(dataSize); in WriteBulkData()
42 if (!ashmem->WriteToAshmem(data, dataSize, offset)) { in WriteBulkData()
47 offset += dataSize; in WriteBulkData()
/base/security/crypto_framework/common/src/
Dhcf_parcel.c145 bool ParcelWrite(HcParcel *parcel, const void *src, uint32_t dataSize) in ParcelWrite() argument
148 if (parcel == NULL || src == NULL || dataSize == 0) { in ParcelWrite()
151 if (parcel->endPos > PARCEL_UINT_MAX - dataSize) { in ParcelWrite()
154 if (parcel->endPos + dataSize > parcel->length) { in ParcelWrite()
156 if (parcel->endPos + dataSize > parcel->length) { in ParcelWrite()
157 uint32_t newSize = GetParcelIncreaseSize(parcel, parcel->endPos + dataSize); in ParcelWrite()
163 rc = memmove_s(parcel->data + parcel->endPos, dataSize, src, dataSize); in ParcelWrite()
167 parcel->endPos += dataSize; in ParcelWrite()
/base/sensors/sensor/vibration_convert/core/native/src/
Daudio_parsing.cpp102 size_t dataCount = attributeChunk_.dataSize / in ParseAudioFile()
105 int32_t *dataBuffer = static_cast<int32_t *>(malloc(attributeChunk_.dataSize)); in ParseAudioFile()
107 (void)memset_s(dataBuffer, attributeChunk_.dataSize, 0, attributeChunk_.dataSize); in ParseAudioFile()
109 if (rawFd_.length < attributeChunk_.dataSize) { in ParseAudioFile()
115 ret = read(rawFd_.fd, dataBuffer, attributeChunk_.dataSize); in ParseAudioFile()
139 …audioAttribute.dataCount = attributeChunk_.dataSize / ((attributeChunk_.bitsPerSample / BITS_PER_B… in GetAudioAttribute()
141 float dataSize = static_cast<float>(attributeChunk_.dataSize); in GetAudioAttribute() local
142 audioAttribute.duration = static_cast<uint32_t>(dataSize / attributeChunk_.byteRate * TIME_MS); in GetAudioAttribute()
211 SEN_HILOGD("dataSize:%{public}u", attributeChunk_.dataSize); in PrintAttributeChunk()
/base/security/security_component_manager/frameworks/security_component/src/
Dsec_comp_click_event_parcel.cpp77 if (!(out.WriteUint32(this->clickInfoParams_.extraInfo.dataSize))) { in Marshalling()
81 if (this->clickInfoParams_.extraInfo.dataSize != 0 && in Marshalling()
82 …t.WriteBuffer(this->clickInfoParams_.extraInfo.data, this->clickInfoParams_.extraInfo.dataSize))) { in Marshalling()
150 if (!in.ReadUint32(clickInfo.extraInfo.dataSize)) { in Unmarshalling()
156 if (clickInfo.extraInfo.dataSize == 0) { in Unmarshalling()
159 } else if (clickInfo.extraInfo.dataSize > MAX_EXTRA_SIZE) { in Unmarshalling()
165 clickInfo.extraInfo.data = const_cast<uint8_t*>(in.ReadBuffer(clickInfo.extraInfo.dataSize)); in Unmarshalling()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_file_info.cpp24 void* HiviewFileInfo::GetData(uint32_t& dataSize) const in GetData()
53 dataSize = size; in GetData()
57 HiviewFileInfo HiviewFileInfo::ParseData(const char* data, const uint32_t dataSize) in ParseData() argument
64 inParcel.WriteBuffer(data, dataSize); in ParseData()
/base/startup/init/services/param/trigger/
Dtrigger_checker.c30 int dataSize = dataUnit * dataNumber; in CalculatorInit() local
32 dataSize += MAX_DATA_BUFFER_MAX; in CalculatorInit()
34 calculator->data = (char *)malloc(dataSize); in CalculatorInit()
40 dataSize = dataUnit * dataNumber; in CalculatorInit()
41 calculator->conditionName = calculator->data + dataSize; in CalculatorInit()
42 dataSize += SUPPORT_DATA_BUFFER_MAX; in CalculatorInit()
43 calculator->conditionContent = calculator->data + dataSize; in CalculatorInit()
44 dataSize += SUPPORT_DATA_BUFFER_MAX; in CalculatorInit()
45 calculator->inputName = calculator->data + dataSize; in CalculatorInit()
46 dataSize += SUPPORT_DATA_BUFFER_MAX; in CalculatorInit()
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_encode.cpp138 uint8_t dataSize = 0; in EncodeSmscPdu() local
140 dataSize = SLIDE_DATA_STEP + (addrLen / SLIDE_DATA_STEP); in EncodeSmscPdu()
142 dataSize = SLIDE_DATA_STEP + (addrLen / SLIDE_DATA_STEP) + 1; in EncodeSmscPdu()
144 … if (dataSize > MAX_SMSC_LEN || dataSize >= smscLen || dataSize <= 1 || smscLen <= HEX_VALUE_02) { in EncodeSmscPdu()
149 smscNum[0] = static_cast<char>(dataSize - 1); in EncodeSmscPdu()
158 smscNum[dataSize] = '\0'; in EncodeSmscPdu()
159 return dataSize; in EncodeSmscPdu()
/base/update/updater/services/ui/
Dupdater_ui_tools.cpp46 .bfSize = imageBit.dataSize + BITMAP_HEADER_SIZE, in SaveUxBuffToFile()
53 .biSizeImage = imageBit.dataSize, in SaveUxBuffToFile()
56 write(fd, imageBit.data, imageBit.dataSize) > 0) { in SaveUxBuffToFile()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
Ddfx_ark.cpp161 uint8_t *data, uint64_t dataSize, uintptr_t extractorPtr, JsFunction *jsFunction) in ParseArkFrameInfo() argument
163 …return ParseArkFrameInfo(byteCodePc, 0, mapBase, loadOffset, data, dataSize, extractorPtr, jsFunct… in ParseArkFrameInfo()
167 uint8_t *data, uint64_t dataSize, uintptr_t extractorPtr, JsFunction *jsFunction) in ParseArkFrameInfo() argument
170 return g_parseArkFrameInfoFn(byteCodePc, methodid, mapBase, loadOffset, data, dataSize, in ParseArkFrameInfo()
178 return g_parseArkFrameInfoFn(byteCodePc, methodid, mapBase, loadOffset, data, dataSize, in ParseArkFrameInfo()
184 int DfxArk::TranslateArkFrameInfo(uint8_t *data, uint64_t dataSize, JsFunction *jsFunction) in TranslateArkFrameInfo() argument
187 return g_translateArkFrameInfoFn(data, dataSize, jsFunction); in TranslateArkFrameInfo()
194 return g_translateArkFrameInfoFn(data, dataSize, jsFunction); in TranslateArkFrameInfo()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp133 uint32_t dataSize = *(reinterpret_cast<uint32_t*>(rawData)); in GetContentSize() local
134 if (dataSize < RAW_DATA_OFFSET || dataSize > MAX_NEW_SIZE) { in GetContentSize()
135 HIVIEW_LOGE("The length=%{public}u of raw data is invalid", dataSize); in GetContentSize()
138 contentSize = dataSize - RAW_DATA_OFFSET + BLOCK_SIZE + SEQ_SIZE + CRC_SIZE; in GetContentSize()
184 uint32_t dataSize = *(reinterpret_cast<uint32_t*>(rawData)) - RAW_DATA_OFFSET; in WriteContent() local
185 out_.write(reinterpret_cast<const char*>(rawData + RAW_DATA_OFFSET), dataSize); in WriteContent()
/base/sensors/sensor/vibration_convert/core/algorithm/intensity_processor/src/
Dintensity_processor.cpp62 size_t dataSize = data.size(); in EnergyEnvelop() local
63 for (size_t i = 0; i < dataSize; ++i) { in EnergyEnvelop()
69 for (size_t i = 0; (i + nFft) < dataSize;) { in EnergyEnvelop()
105 size_t dataSize = data.size(); in VolumeInLinary() local
106 for (size_t i = 0; i < dataSize; ++i) { in VolumeInLinary()
112 for (size_t i = 0; (i + hopLength) < dataSize;) { in VolumeInLinary()
/base/security/device_auth/common_lib/interfaces/
Dhc_parcel.h41 HcBool ParcelReadWithoutPopData(HcParcel *parcel, void *dst, uint32_t dataSize);
42 HcBool ParcelRead(HcParcel *parcel, void *dst, uint32_t dataSize);
43 HcBool ParcelWrite(HcParcel *parcel, const void *src, uint32_t dataSize);
44 HcBool ParcelReadRevert(HcParcel *parcel, void *dst, uint32_t dataSize);
45 HcBool ParcelWriteRevert(HcParcel *parcel, const void *src, uint32_t dataSize);
91 HcBool ParcelEraseBlock(HcParcel *parcel, uint32_t start, uint32_t dataSize, void *dst);
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dselinux_share_mem.c48 void UnmapSharedMem(char *sharedMem, uint32_t dataSize) in UnmapSharedMem() argument
50 if (sharedMem == NULL || dataSize == 0) { in UnmapSharedMem()
53 munmap(sharedMem, dataSize); in UnmapSharedMem()
/base/hiviewdfx/hiview/adapter/service/idl/include/
Dhiview_file_info.h26 void* GetData(uint32_t& dataSize) const;
27 static HiviewFileInfo ParseData(const char* data, const uint32_t dataSize);
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_common_check.c159 uint32_t dataSize = wrappedData->size; in HksCheckWrappedDataFormatValidity() local
165 for (blobIndex = 0; blobIndex < validTotalBlobs && offset < dataSize; blobIndex++) { in HksCheckWrappedDataFormatValidity()
166 if (((dataSize - offset) < sizeof(uint32_t))) { in HksCheckWrappedDataFormatValidity()
174 if ((partDataLength == 0) || (partDataLength > dataSize - offset)) { in HksCheckWrappedDataFormatValidity()
187 if (offset != dataSize) { in HksCheckWrappedDataFormatValidity()
203 uint32_t dataSize = wrappedData->size; in HksGetBlobFromWrappedData() local
206 for (uint32_t index = 0, offset = 0; index < totalBlobs && offset < dataSize; index++) { in HksGetBlobFromWrappedData()
212 (partDataLength > dataSize - offset)) { in HksGetBlobFromWrappedData()
/base/tee/tee_client/interfaces/kits/c/src/
Dtee_client.h124 TEEC_Result TeecOptEncode(TEEC_Operation *operation, sptr<Ashmem> &optMem, size_t dataSize);
125 …C_Result TeecOptEncodeTempMem(const TEEC_Parameter *param, sptr<Ashmem> &optMem, size_t *dataSize);
127 …cOptDecode(TEEC_Operation *operation, TEEC_Operation *inOpt, const uint8_t *data, size_t dataSize);
129 const uint8_t **data, size_t *dataSize);
131 TEEC_Parameter *inParam, const uint8_t **data, size_t *dataSize);
133 uint32_t paramType, sptr<Ashmem> &optMem, size_t *dataSize);
/base/security/code_signature/utils/src/
Dpkcs7_generator.cpp78 uint32_t dataSize = 0; in SignData() local
79 uint8_t *data = signerInfo.GetDataToSign(dataSize); in SignData()
85 if (!unsignedData.CopyFrom(data, dataSize)) { in SignData()
/base/startup/init/services/param/linux/
Dparam_msgadp.c92 uint32_t dataSize = msg->msgSize; in ParamTaskSendMsg() local
93 BufferHandle bufferHandle = LE_CreateBuffer(LE_GetDefaultLoop(), dataSize); in ParamTaskSendMsg()
96 int ret = memcpy_s(buffer, dataSize, msg, dataSize); in ParamTaskSendMsg()
100 return LE_Send(LE_GetDefaultLoop(), stream, bufferHandle, dataSize); in ParamTaskSendMsg()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
Dmbedtls_ec_adapter.c59 uint32_t dataSize; member
109 return (blob != NULL) && (blob->data != NULL) && (blob->dataSize != 0); in IsValidBlob()
335 if (output->dataSize < outSize) { in CalculateMessageDigest()
339 int32_t ret = mbedtls_md(info, input->data, input->dataSize, output->data); in CalculateMessageDigest()
342 output->dataSize = outSize; in CalculateMessageDigest()
381 out->dataSize = P256_PUBLIC_SIZE; in WriteOutBigNums()
398 …if (!IsValidBlob(publicKey) || publicKey->dataSize != P256_PUBLIC_SIZE || !IsValidBlob(secretKey) … in EcKeyAgreement()
399 secretKey->dataSize != P256_PUBLIC_SIZE || !IsValidBlob(privateKey)) { in EcKeyAgreement()
425 …et = mbedtls_mpi_read_binary(&keyPair->MBEDTLS_PRIVATE(d), privateKey->data, privateKey->dataSize); in EcKeyAgreement()
497 .dataSize = hash->length, in MbedtlsHashToPoint()
[all …]
/base/hiviewdfx/hiview/base/event_store/store/include/
Dsys_event_repeat_guard.h36 dataSize = *(reinterpret_cast<int32_t*>(rawData)); in Parse()
54 int32_t dataSize = 0; member
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
Dsec_comp_stub_test.cpp131 clickParcel->clickInfoParams_.extraInfo.dataSize = 1;
138 clickParcel->clickInfoParams_.extraInfo.dataSize = 32;
163 int dataSize = MAX_EXTRA_SIZE + 1; variable
164 in.WriteUint32(dataSize);

12345