/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
D | wifi_p2p_service_request_list.cpp | 112 unsigned short dataLength = length - PROTOCOL_SIZE - TRANSACTION_ID_SIZE; in ParseTlvs2ReqList() local 116 if (dataLength > leftLength - headLength || dataLength < 0) { in ParseTlvs2ReqList() 123 for (unsigned short i = 0; i < dataLength; ++i) { in ParseTlvs2ReqList() 126 pos += dataLength; in ParseTlvs2ReqList() 133 leftLength = leftLength - headLength - dataLength; in ParseTlvs2ReqList()
|
D | wifi_p2p_service_response_list.cpp | 157 … unsigned short dataLength = length - PROTOCOL_SIZE - TRANSACTION_ID_SIZE - SERVICE_STATUS_SIZE; in ParseTlvs2RespList() local 162 if (dataLength > leftLength - headLength || dataLength < 0) { in ParseTlvs2RespList() 168 if (dataLength <= MAX_BUF_SIZE) { in ParseTlvs2RespList() 170 for (unsigned short i = 0; i < dataLength; ++i) { in ParseTlvs2RespList() 177 pos += dataLength; in ParseTlvs2RespList() 178 leftLength = leftLength - headLength - dataLength; in ParseTlvs2RespList()
|
/foundation/aafwk/aafwk_lite/frameworks/want_lite/src/ |
D | want.cpp | 147 void *newWantData = calloc(1, tlv->totalLen + want->dataLength); in UpdateWantData() 151 if (memcpy_s(newWantData, want->dataLength, want->data, want->dataLength) != 0 || in UpdateWantData() 152 …memcpy_s((unsigned char*)newWantData + want->dataLength, tlv->totalLen, tlv->entity, tlv->totalLen… in UpdateWantData() 156 SetWantData(want, newWantData, tlv->totalLen + want->dataLength); in UpdateWantData() 258 bool SetWantData(Want *want, const void *data, uint16_t dataLength) in SetWantData() argument 265 want->data = OHOS::Utils::Memdup(data, dataLength); in SetWantData() 267 want->dataLength = 0; in SetWantData() 271 want->dataLength = dataLength; in SetWantData() 278 if ((io == nullptr) || (want == nullptr) || (want->dataLength > DATA_LENGTH)) { in SerializeWant() 290 IpcIoPushInt32(io, want->dataLength); in SerializeWant() [all …]
|
/foundation/distributedschedule/dmsfwk_lite/source/ |
D | dmslite_famgr.c | 132 if (want->data != NULL && want->dataLength > 0) { in MarshallDmsMessage() 133 RAWDATA_MARSHALL_HELPER(RawData, CALLER_PAYLOAD, want->data, want->dataLength); in MarshallDmsMessage() 199 if (want->data != NULL && want->dataLength > 0) { in FillRequestData() 200 void *data = DMS_ALLOC(want->dataLength); in FillRequestData() 204 if (memcpy_s(data, want->dataLength, want->data, want->dataLength) != EOK) { in FillRequestData() 209 wantData->dataLength = want->dataLength; in FillRequestData()
|
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/src/ |
D | ability_record.cpp | 47 void AbilityRecord::SetAppData(const void *appData, uint16_t dataLength) in SetAppData() argument 50 appData_ = Utils::Memdup(appData, dataLength); in SetAppData() 55 dataLength_ = dataLength; in SetAppData()
|
D | ability_service.cpp | 139 info->data = OHOS::Utils::Memdup(want->data, want->dataLength); in StartAbility() 140 info->dataLength = want->dataLength; in StartAbility() 161 record->SetAppData(info->data, info->dataLength); in UpdataRecord() 212 return PreCheckStartAbility(info->bundleName, info->path, info->data, info->dataLength); in StartAbility() 314 const char *bundleName, const char *path, const void *data, uint16_t dataLength) in PreCheckStartAbility() argument 337 record->SetAppData(data, dataLength); in PreCheckStartAbility() 594 info->dataLength = 0; in SchedulerLifecycleInner() 657 innerMsg.dataLength = record->GetDataLength(); in SendMsgToJsAbility()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/classic/ |
D | classic_data_structure.cpp | 25 ClassicDataStructure::ClassicDataStructure(uint8_t dataLength, int type, const std::vector<uint8_t>… in ClassicDataStructure() argument 26 : length_(dataLength), type_(type), data_(value) in ClassicDataStructure()
|
D | classic_data_structure.h | 57 ClassicDataStructure(uint8_t dataLength, int type, const std::vector<uint8_t> &value);
|
/foundation/aafwk/aafwk_lite/interfaces/kits/want_lite/ |
D | want.h | 77 uint16_t dataLength; member 143 bool SetWantData(Want *want, const void *data, uint16_t dataLength);
|
/foundation/ace/ace_engine_lite/frameworks/src/core/modules/presets/ |
D | feature_ability_module.h | 30 uint16_t dataLength; member 32 FailCallbackParams() : data(nullptr), dataLength(0), errorCode(0) {} in FailCallbackParams() 128 static int32_t MessageFailCallback(const void *data, uint16_t dataLength, uint16_t errorCode);
|
D | feature_ability_module.cpp | 372 int32_t FeatureAbilityModule::MessageFailCallback(const void *data, uint16_t dataLength, uint16_t e… in MessageFailCallback() argument 382 if ((data != nullptr) && (dataLength > 0)) { in MessageFailCallback() 383 char *buffer = static_cast<char *>(ace_malloc(sizeof(char) * (dataLength + 1))); in MessageFailCallback() 384 …if (buffer != nullptr && memcpy_s(buffer, dataLength, static_cast<const char *>(data), dataLength)… in MessageFailCallback() 385 buffer[dataLength] = '\0'; in MessageFailCallback() 386 params->dataLength = dataLength; in MessageFailCallback() 390 params->dataLength = 0; in MessageFailCallback() 449 if (params->data == nullptr || params->dataLength == 0) { in AsyncFailCallback() 452 …ry_create_string_sz_from_utf8(static_cast<const jerry_char_t *>(params->data), params->dataLength); in AsyncFailCallback()
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/test/unittest/common/communicator/ |
D | distributeddb_communicator_deep_test.cpp | 328 const uint32_t dataLength = 13 * 1024 * 1024; // 13 MB, 1024 is scale variable 329 Message *sendMsgForAB = BuildRegedGiantMessage(dataLength); 342 Message *oriMsgForAB = BuildRegedGiantMessage(dataLength); 389 uint32_t dataLength = 13 * 1024 * 1024; // 13 MB, 1024 is scale variable 390 Message *sendMsgForBC = BuildRegedGiantMessage(dataLength); 407 dataLength = 17 * 1024 * 1024; // 17 MB, 1024 is scale 408 Message *resendMsgForBC = BuildRegedGiantMessage(dataLength); 417 EXPECT_EQ(dataLength, recvObjForCC->rawData_.size()); 460 uint32_t dataLength = 23 * 1024 * 1024; // 23 MB, 1024 is scale variable 461 Message *sendMsgForAB = BuildRegedGiantMessage(dataLength); [all …]
|
/foundation/multimedia/audio_standard/services/test/ |
D | audio_render_mode_callback_test.cpp | 136 bufDesc_.dataLength = bufDesc_.bufLength; in EnqueueBuffer() 138 bufDesc_.dataLength = reqLen; in EnqueueBuffer() 141 fread(bufDesc_.buffer, 1, bufDesc_.dataLength, wavFile_); in EnqueueBuffer()
|
/foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/async/ |
D | message_queue_utils.h | 90 uint16_t dataLength; member 91 …g() : msgId(UNKNOWN), token(0), bundleName(nullptr), path(nullptr), data(nullptr), dataLength(0) {} in AbilityInnerMsg()
|
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/include/ |
D | ability_service.h | 36 uint16_t dataLength; member 69 …CheckStartAbility(const char *bundleName, const char *path, const void *data, uint16_t dataLength);
|
D | ability_record.h | 63 void SetAppData(const void *appData, uint16_t dataLength);
|
/foundation/multimedia/camera_standard/frameworks/native/camera/src/output/ |
D | photo_output.cpp | 27 int32_t dataLength = 100; in PhotoCaptureSetting() local 28 captureMetadataSetting_ = std::make_shared<Camera::CameraMetadata>(items, dataLength); in PhotoCaptureSetting() 262 int32_t dataLength = 0; in Capture() local 264 std::make_shared<Camera::CameraMetadata>(items, dataLength); in Capture()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
D | vtp_stream_socket.cpp | 917 int dataLength = 0; in DoStreamRecv() local 919 dataLength = VtpStreamSocket::RecvStreamLen(); in DoStreamRecv() 920 if (dataLength <= 0 || dataLength > MAX_STREAM_LEN) { in DoStreamRecv() 921 …usLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "read frame length error, dataLength = %d", dataLength); in DoStreamRecv() 925 "recv a new frame, dataLength = %d, stream type:%d", dataLength, streamType_); in DoStreamRecv() 926 dataBuffer = VtpStreamSocket::RecvStream(dataLength); in DoStreamRecv() 930 int decryptedLength = dataLength; in DoStreamRecv() 953 dataLength = decode.GetDataLength(); in DoStreamRecv() 954 if (dataLength <= 0) { in DoStreamRecv() 956 "common depacketize error, dataLength = %d", dataLength); in DoStreamRecv() [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/storage/src/ |
D | data_transformer.cpp | 146 uint32_t dataLength = -1; in DeSerializeNullValue() local 147 (void)parcel.ReadUInt32(dataLength); in DeSerializeNullValue() 148 if (parcel.IsError() || dataLength != 0) { in DeSerializeNullValue() 298 uint32_t dataLength = CalDataValueLength(dataValue); in SerializeValue() local 299 totalLength += dataLength; in SerializeValue()
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/common/src/ |
D | db_common.cpp | 97 size_t dataLength = data.size(); in PrintHexVector() local 100 dataLength = maxDataLength; in PrintHexVector() 103 …char *buff = new (std::nothrow) char[dataLength * byteHexNum + 1]; // dual and add one for the end; in PrintHexVector() 108 for (std::vector<uint8_t>::size_type i = 0; i < dataLength; ++i) { in PrintHexVector() 112 buff[dataLength * byteHexNum] = '\0'; in PrintHexVector()
|
/foundation/aafwk/aafwk_lite/frameworks/abilitymgr_lite/src/slite/ |
D | abilityms_slite_client.cpp | 73 info->dataLength = 0; in StartAbility() 75 SetWantData(info, want->data, want->dataLength); in StartAbility()
|
/foundation/aafwk/aafwk_lite/frameworks/abilitymgr_lite/include/ |
D | ability_kit.h | 22 typedef int32_t (*FailCallback)(const void *data, uint16_t dataLength, uint16_t errorCode);
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/hci/ |
D | hci_def_le_evt.h | 211 uint8_t dataLength; member 242 uint8_t dataLength; member
|
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/src/client/ |
D | ability_dump_client.cpp | 30 SetWantData(&want_, want.data, want.dataLength); in AbilityDumpClient()
|
/foundation/communication/dsoftbus/components/nstackx_mini/nstackx_ctrl/core/coap_discover/ |
D | coap_app.c | 51 size_t dataLength; member 183 if (CoapSocketSend(&socket, (uint8_t *)coapRequest->data, coapRequest->dataLength) == -1) { in CoapSendMsg() 231 coapRequest.dataLength = sndPktBuff.len; in CoapSendMessage()
|