/test/xts/tools/lite/checksum/src/ |
D | checksum_file.c | 56 unsigned int dataLen = mesgd->dataLen; in GetChecksumResult() local 69 mesgd->data[dataLen++] = pad0; in GetChecksumResult() 72 if (mesgd->dataLen < totalLen - len) { in GetChecksumResult() 73 for (; dataLen < totalLen - len; dataLen++) { in GetChecksumResult() 74 mesgd->data[dataLen] = pad1; in GetChecksumResult() 78 if (mesgd->dataLen >= totalLen - len) { in GetChecksumResult() 79 for (; dataLen < totalLen; dataLen++) { in GetChecksumResult() 80 mesgd->data[dataLen] = pad1; in GetChecksumResult() 90 mesgd->bitLen += mesgd->dataLen * len; in GetChecksumResult() 115 unsigned int dataLen = 64; in CalcFileChunkSha256() local [all …]
|
D | checksum_sha256.c | 131 md->dataLen = 0; in InitSha256()
|
/test/xts/dcts/communication/softbus_standard/dsoftbusTest/ |
D | dsoftbusTest.cpp | 92 static void OnFileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileBytesReceived() argument 94 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in OnFileBytesReceived() 100 static void OnFileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileMessageReceived() argument 102 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in OnFileMessageReceived() 164 static void OnDataBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnDataBytesReceived() argument 170 LOG("[cb][data]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnDataBytesReceived() 171 int ret = SendBytes(sessionId, data, dataLen); in OnDataBytesReceived() 175 static void OnDataMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnDataMessageReceived() argument 181 LOG("[cb][data]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnDataMessageReceived() 182 int ret = SendMessage(sessionId, data, dataLen); in OnDataMessageReceived() [all …]
|
/test/xts/acts/communication_lite/dsoftbus_hal/src/ |
D | discovery_service_test.c | 60 .dataLen = sizeof("capdata3") 70 .dataLen = sizeof("capdata4") 80 .dataLen = 0 92 .dataLen = 0 183 .dataLen = sizeof("capdata2") 219 testInfo.dataLen = ERRO_CAPDATA_LEN; 222 testInfo.dataLen = sizeof("capdata1"); 257 .dataLen = sizeof("capdata3") 289 testInfo.dataLen = ERRO_CAPDATA_LEN; 292 testInfo.dataLen = sizeof("capdata1");
|
D | softbus_bus_center_test.c | 141 .dataLen = sizeof("capdata4") 151 .dataLen = 0 172 .dataLen = sizeof("capdata3") 184 .dataLen = 0, 392 g_pInfo.dataLen = ERRO_CAPDATA_LEN; 395 g_pInfo.dataLen = sizeof("capdata1"); 437 g_sInfo.dataLen = ERRO_CAPDATA_LEN; 440 g_sInfo.dataLen = sizeof("capdata1");
|
/test/xts/device_attest_lite/services/core/mini/utils/ |
D | attest_utils_file_detail.c | 73 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 75 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 80 if (dataLen > MAX_FILE_BYTES_LIMIT) { in WriteFile() 94 if (UtilsFileWrite(fd, data, dataLen) != (int32_t)dataLen) { in WriteFile()
|
/test/xts/dcts/communication/softbus_standard/common/ |
D | net_trans_common.c | 357 static void CheckReceiveData(int sessionId, const void* data, unsigned int dataLen) in CheckReceiveData() argument 360 if (sessionId == g_currentSessionId4Data && dataLen == g_expectDataSize) { in CheckReceiveData() 361 LOG("[check]sid/size ok[sid:%d,size:%u]", sessionId, dataLen); in CheckReceiveData() 364 g_expectDataSize, dataLen); in CheckReceiveData() 370 int cmpRst = strncmp(g_expectDataContent, (char*)data, dataLen); in CheckReceiveData() 380 static void DataBytesReceived(int sessionId, const void* data, unsigned int dataLen) in DataBytesReceived() argument 383 CheckReceiveData(sessionId, data, dataLen); in DataBytesReceived() 388 static void DataMessageReceived(int sessionId, const void* data, unsigned int dataLen) in DataMessageReceived() argument 391 CheckReceiveData(sessionId, data, dataLen); in DataMessageReceived() 430 static void ControlBytesReceived(int sessionId, const void* data, unsigned int dataLen) in ControlBytesReceived() argument [all …]
|
/test/xts/acts/driver/device_manager_ndk/entry/src/main/cpp/ |
D | usbddk.cpp | 344 uint32_t dataLen = USB_DDK_TEST_BUF_SIZE; in UsbSendControlReadRequestOne() local 349 setup.wLength = dataLen; in UsbSendControlReadRequestOne() 350 …t returnValue = OH_Usb_SendControlReadRequest(interfaceHandle, &setup, UINT32_MAX, data, &dataLen); in UsbSendControlReadRequestOne() 368 uint32_t dataLen = USB_DDK_TEST_BUF_SIZE; in UsbSendControlReadRequestTwo() local 369 …32_t returnValue = OH_Usb_SendControlReadRequest(interfaceHandle, &setup, timeout, data, &dataLen); in UsbSendControlReadRequestTwo() 385 uint32_t dataLen = USB_DDK_TEST_BUF_SIZE; in UsbSendControlReadRequestThree() local 386 …2_t returnValue = OH_Usb_SendControlReadRequest(interfaceHandle, nullptr, timeout, data, &dataLen); in UsbSendControlReadRequestThree() 402 uint32_t dataLen = 10; in UsbSendControlReadRequestFour() local 403 …t returnValue = OH_Usb_SendControlReadRequest(interfaceHandle, &setup, timeout, nullptr, &dataLen); in UsbSendControlReadRequestFour() 437 uint32_t dataLen = 10; in UsbSendControlWriteRequestOne() local [all …]
|
/test/xts/device_attest_lite/services/core/mini/adapter/ |
D | attest_adapter_network_config.c | 37 int32_t dataLen = (dstLen < srcLen) ? dstLen : srcLen; in CopyNVData() local 38 for (int32_t i = 0; i < dataLen; i++) { in CopyNVData()
|
/test/xts/acts/validator/acts_validator/src/main/ets/pages/model/ |
D | mediaPlay.ts | 129 let dataLen = sampleRate * 1000; 139 data.setUint32(offset, 36 + dataLen, true); 172 data.setUint32(offset, dataLen, true);
|
/test/xts/tools/lite/checksum/include/ |
D | checksum_sha256.h | 26 unsigned int dataLen; // 消息数据块长度 member
|
/test/xts/device_attest/services/oem_adapter/src/ |
D | device_attest_oem_file.c | 81 int32_t OEMWriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in OEMWriteFile() argument 83 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in OEMWriteFile() 105 if (fwrite(data, dataLen, 1, fp) != 1) { in OEMWriteFile()
|
/test/xts/device_attest/services/core/security/ |
D | attest_security_token.c | 346 static int32_t EncryptTokenValueToTokenInfo(const char* data, uint8_t dataLen, uint8_t* aesKey, Tok… in EncryptTokenValueToTokenInfo() argument 355 int32_t ret = memcpy_s(tokenData, sizeof(tokenData), data, dataLen); in EncryptTokenValueToTokenInfo() 362 ret = EncryptHks(tokenData, dataLen, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenValueToTokenInfo() 366 ret = Encrypt(tokenData, dataLen, aesKey, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenValueToTokenInfo() 384 static int32_t EncryptTokenIdToTokenInfo(const char* data, uint8_t dataLen, uint8_t* aesKey, TokenI… in EncryptTokenIdToTokenInfo() argument 393 int32_t ret = memcpy_s(tokenData, sizeof(tokenData), data, dataLen); in EncryptTokenIdToTokenInfo() 400 ret = EncryptHks(tokenData, dataLen, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenIdToTokenInfo() 404 ret = Encrypt(tokenData, dataLen, aesKey, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenIdToTokenInfo()
|
/test/xts/device_attest_lite/services/core/small/utils/ |
D | attest_utils_file_detail.c | 69 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 71 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 101 if (fwrite(data, dataLen, 1, fp) != 1) { in WriteFile()
|
/test/xts/device_attest/services/oem_adapter/include/ |
D | device_attest_oem_file.h | 35 int32_t OEMWriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen);
|
/test/xts/device_attest/services/core/include/utils/ |
D | attest_utils_file.h | 32 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen);
|
/test/xts/device_attest_lite/services/core/include/utils/ |
D | attest_utils_file.h | 32 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen);
|
/test/xts/device_attest/services/core/utils/ |
D | attest_utils_file.c | 86 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 88 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 114 if (fwrite(data, dataLen, 1, fp) != 1) { in WriteFile()
|
/test/xts/device_attest_lite/services/core/security/ |
D | attest_security_token.c | 331 static int32_t EncryptTokenValueToTokenInfo(const char* data, uint8_t dataLen, uint8_t* aesKey, Tok… in EncryptTokenValueToTokenInfo() argument 340 int32_t ret = memcpy_s(tokenData, sizeof(tokenData), data, dataLen); in EncryptTokenValueToTokenInfo() 347 ret = Encrypt(tokenData, dataLen, aesKey, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenValueToTokenInfo() 364 static int32_t EncryptTokenIdToTokenInfo(const char* data, uint8_t dataLen, uint8_t* aesKey, TokenI… in EncryptTokenIdToTokenInfo() argument 373 int32_t ret = memcpy_s(tokenData, sizeof(tokenData), data, dataLen); in EncryptTokenIdToTokenInfo() 380 ret = Encrypt(tokenData, dataLen, aesKey, encryptedTokenData, sizeof(encryptedTokenData)); in EncryptTokenIdToTokenInfo()
|
/test/xts/dcts/communication/softbus_standard/transmission/sessionmgt/ |
D | trans_session_func_test.cpp | 39 static void FileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in FileBytesReceived() argument 41 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in FileBytesReceived() 50 static void FileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in FileMessageReceived() argument 52 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in FileMessageReceived()
|
/test/xts/dcts/communication/softbus_standard/transmission/sendfile/ |
D | trans_file_func_test.cpp | 40 static void FileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in FileBytesReceived() argument 42 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in FileBytesReceived() 51 static void FileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in FileMessageReceived() argument 53 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in FileMessageReceived()
|
/test/xts/hats/hdf/sensor/hdiService_additional/ |
D | sensor_callback_impl.cpp | 94 void *origin = OsalMemCalloc(sizeof(uint8_t) * (event.dataLen)); in OnDataEvent()
|
/test/xts/hats/hdf/sensor/hdiService/ |
D | sensor_callback_impl.cpp | 96 void *origin = OsalMemCalloc(sizeof(uint8_t) * (event.dataLen)); in OnDataEvent()
|
/test/xts/acts/sensors_lite/sensor_posix/src/ |
D | sensor_agent_interfaces_test.cpp | 47 for (int32_t i = 0; i < (int32_t)(event->dataLen / sizeof(uint8_t *)); i++) { in SensorDataCallbackImpl()
|
/test/xts/acts/multimedia/avcodec/avcodecNdk/entry/src/main/cpp/ |
D | hello.cpp | 130 for (uint32_t k = 0; k < drmInfo->psshInfo[i].dataLen; k++) { in OnDrmInfoChangedInApp()
|