/ohos5.0/drivers/hdf_core/framework/support/platform/src/uart/ |
H A D | uart_if_u.c | 117 uint32_t tmpLen; in UartRead() local 149 if (!HdfSbufReadBuffer(reply, &tmpBuf, &tmpLen)) { in UartRead() 155 if (tmpLen > 0 && memcpy_s(data, size, tmpBuf, tmpLen) != EOK) { in UartRead() 160 ret = (int32_t)tmpLen; // the return value is the length of the read data. max length 65535 in UartRead() 259 uint32_t tmpLen; in UartGetAttribute() local 280 if (!HdfSbufReadBuffer(reply, &tmpBuf, &tmpLen)) { in UartGetAttribute() 286 if (tmpLen != sizeof(*attribute)) { in UartGetAttribute() 287 …F_LOGE("UartGetAttribute: reply data len not match, exp:%zu, got:%u!", sizeof(*attribute), tmpLen); in UartGetAttribute() 292 if (memcpy_s(attribute, sizeof(*attribute), tmpBuf, tmpLen) != EOK) { in UartGetAttribute()
|
/ohos5.0/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_validate_desc.c | 304 size_t tmpLen; in UacProcessGetLength() local 312 tmpLen = hdr[*length]; in UacProcessGetLength() 313 *length += tmpLen + AUDIO_USB_DESC_LEN_2; in UacProcessGetLength() 335 size_t tmpLen; in UacV1ProcessGetLen() local 342 tmpLen = hdr[*length]; in UacV1ProcessGetLen() 343 *length += AUDIO_USB_DESC_LEN_1 + tmpLen * AUDIO_USB_DESC_LEN_2; in UacV1ProcessGetLen() 354 size_t tmpLen; in UacV2ProcessGetLen() local 361 tmpLen = hdr[*length]; in UacV2ProcessGetLen() 362 *length += AUDIO_USB_DESC_LEN_1 + tmpLen * AUDIO_USB_DESC_LEN_4; in UacV2ProcessGetLen() 373 size_t tmpLen; in UacV3ProcessGetLen() local [all …]
|
/ohos5.0/base/update/sys_installer_lite/frameworks/test/unittest/common/src/ |
H A D | ota_test.cpp | 192 int tmpLen = ((leftLen >= READ_BUF_LEN) ? READ_BUF_LEN : leftLen); in HotaWriteTest() local 194 if (memcpy_s(g_readBuf, READ_BUF_LEN, otaPkg + offset, tmpLen) != EOK) { in HotaWriteTest() 199 if (HotaWrite(reinterpret_cast<unsigned char *>(g_readBuf), offset, tmpLen) != 0) { in HotaWriteTest() 205 leftLen -= tmpLen; in HotaWriteTest() 246 int tmpLen = ((leftLen >= READ_BUF_LEN) ? READ_BUF_LEN : leftLen); in HotaReadTest() local 253 if (memcmp(g_readBuf, otaPkg + offset, tmpLen) != 0) { in HotaReadTest() 259 leftLen -= tmpLen; in HotaReadTest()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | spi_virtual.c | 180 uint32_t tmpLen; in VirtualSpiTxRx() local 190 for (tmpLen = 0, len = msg->len; len > 0; len -= tmpLen) { in VirtualSpiTxRx() 191 tmpLen = (len > burstSize) ? burstSize : len; in VirtualSpiTxRx() 192 if (!VirtualSpiWriteFifo(virtual, tx, tmpLen)) { in VirtualSpiTxRx() 196 tx = (tx == NULL) ? NULL : (tx + tmpLen); in VirtualSpiTxRx() 197 if (tmpLen == burstSize) { in VirtualSpiTxRx() 205 if (!VirtualSpiReadFifo(virtual, rx, tmpLen)) { in VirtualSpiTxRx() 209 rx = (rx == NULL) ? NULL : (rx + tmpLen); in VirtualSpiTxRx()
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-ota-guide.md | 370 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 372 if (read(fd, g_readBuf, tmpLen) < 0) { 378 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) { 385 leftLen -= tmpLen; 447 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 449 if (read(fd, g_readBuf, tmpLen) < 0) { 455 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) { 462 leftLen -= tmpLen; 468 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 477 leftLen -= tmpLen;
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_stats.cpp | 57 float throughput = entry.tmpLen / secs; in UpdateStats() 62 entry.tmpLen = 0; in UpdateStats() 71 entry.tmpLen += info.len; in UpdateStats() 82 entry.tmpLen = 0; in ResetStatsEntry() 101 entry.tmpLen = info.len; in StatsInfo2NewStatsEntry()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gatt_client.cpp | 185 size_t tmpLen = 0; in OnCharacteristicReadResult() local 186 characData.data = characteristic.GetValue(&tmpLen).get(); in OnCharacteristicReadResult() 187 characData.dataLen = (unsigned short)tmpLen; in OnCharacteristicReadResult() 238 size_t tmpLen = 0; in OnDescriptorReadResult() local 239 descData.data = descriptor.GetValue(&tmpLen).get(); in OnDescriptorReadResult() 240 descData.dataLen = (unsigned short)tmpLen; in OnDescriptorReadResult() 313 size_t tmpLen = 0; in OnCharacteristicChanged() local 314 notificationData.data = characteristic.GetValue(&tmpLen).get(); in OnCharacteristicChanged() 315 notificationData.dataLen = (unsigned short)tmpLen; in OnCharacteristicChanged()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_compress.c | 41 uint32_t tmpLen = compressBound(inLen); in DataCompress() local 42 *out = SoftBusCalloc(tmpLen); in DataCompress() 62 strm.avail_out = tmpLen; in DataCompress()
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_stats.h | 55 uint32_t tmpLen; member 86 return tmpLen / secs; in GetThroughputMax() 88 return tmpLen; in GetThroughputMax()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | remote_executor_packet.cpp | 74 uint32_t tmpLen = preparedStmt_.CalcLength(); in CalculateLen() local 75 if ((len + tmpLen) > static_cast<uint32_t>(INT32_MAX) || tmpLen == 0u) { in CalculateLen() 79 len += tmpLen; in CalculateLen()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/ |
H A D | bundle_event_source_example.cpp | 127 int tmpLen = sizeof(struct inotify_event) + event->len; in OnFileDescriptorEvent() local 128 event = reinterpret_cast<struct inotify_event*>(offset + tmpLen); in OnFileDescriptorEvent() 129 offset += tmpLen; in OnFileDescriptorEvent()
|
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_body_part_header.cpp | 137 uint32_t tmpLen = 0; in DecodeContentDisposition() local 138 if (!decodeBuffer.DecodeText(strTmp, tmpLen)) { in DecodeContentDisposition() 186 uint32_t tmpLen = 0; in DecodeDispositionParameter() local 187 if (!decodeBuffer.DecodeText(strTmp, tmpLen)) { in DecodeDispositionParameter()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/ |
H A D | event_source_example.cpp | 131 auto tmpLen = sizeof(struct inotify_event) + event->len; in OnFileDescriptorEvent() local 132 event = reinterpret_cast<struct inotify_event*>(offset + tmpLen); in OnFileDescriptorEvent() 133 offset += tmpLen; in OnFileDescriptorEvent()
|
/ohos5.0/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_base64.c | 64 uint32_t tmpLen = fromLen; in Base64Encode() local 65 …uint32_t toLen = ((tmpLen + 2) / 3); /* Base64 encode size, add 2 for padding, and divide… in Base64Encode() 66 …int padding = (int)(tmpLen % 3); /* len % 3 to get the padding size. This must be sig… in Base64Encode()
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
H A D | os_event_listener.cpp | 207 uint32_t tmpLen = sizeof(struct inotify_event) + event->len; in HandleDirEvent() local 208 event = reinterpret_cast<struct inotify_event*>(offset + tmpLen); in HandleDirEvent() 209 offset += tmpLen; in HandleDirEvent()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | fscrypt_control.c | 488 size_t tmpLen = strlen(GLOBAL_FSCRYPT_DIR[i]); in SetGlobalEl1DirPolicy() local 489 if ((strncmp(dir, GLOBAL_FSCRYPT_DIR[i], tmpLen) == 0) && (strlen(dir) == tmpLen)) { in SetGlobalEl1DirPolicy()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-ota-guide.md | 370 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 372 if (read(fd, g_readBuf, tmpLen) < 0) { 378 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) { 385 leftLen -= tmpLen; 447 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 449 if (read(fd, g_readBuf, tmpLen) < 0) { 455 if (HotaWrite((unsigned char *)g_readBuf, offset, tmpLen) != 0) { 462 leftLen -= tmpLen; 468 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 477 leftLen -= tmpLen;
|
/ohos5.0/base/hiviewdfx/hiview/base/test/unittest/common/ |
H A D | event_loop_test.cpp | 124 int tmpLen = sizeof(struct inotify_event) + event->len; in OnFileDescriptorEvent() local 125 event = reinterpret_cast<struct inotify_event *>(offset + tmpLen); in OnFileDescriptorEvent() 126 offset += tmpLen; in OnFileDescriptorEvent()
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_sm4_generator_test.cpp | 370 size_t tmpLen = 0; variable 383 tmpLen = impl->keyMaterial.len; 388 impl->keyMaterial.len = tmpLen;
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 180 size_t tmpLen = 0; in LoadFromHap() local 181 bool ret = GetIndexData(path, tmpBuf, tmpLen); in LoadFromHap() 192 reinterpret_cast<char *>(tmpBuf.get()), tmpLen, *resDesc, defaultConfig, selectedTypes); in LoadFromHap()
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/ |
H A D | crypto_aes_cipher_test.cpp | 449 size_t tmpLen = 0; variable 462 tmpLen = impl->keyMaterial.len; 467 impl->keyMaterial.len = tmpLen;
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 130 size_t tmpLen; in ReadIndexFromFile() local 132 int32_t ret = ReadFileFromZip(zipFile, "config.json", &tmpBuf, tmpLen, tmp); in ReadIndexFromFile()
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_base_listener.c | 900 uint32_t tmpLen = fdArrayLen * FDARR_EXPAND_BASE; in CopyWaitEventFdsUnsafe() local 901 FdNode *tmp = (FdNode *)SoftBusCalloc(tmpLen * sizeof(FdNode)); in CopyWaitEventFdsUnsafe() 904 "eventLen=%{public}u", node->module, tmpLen); in CopyWaitEventFdsUnsafe() 914 fdArrayLen = tmpLen; in CopyWaitEventFdsUnsafe()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | mbedtls_pkcs7.c | 1225 size_t tmpLen = 0; in PKCS7_GetDigestInSignerAuthAttr() local 1245 … rc = mbedtls_asn1_get_tag(&p, seqEnd, &tmpLen, MBEDTLS_ASN1_SET | MBEDTLS_ASN1_CONSTRUCTED); in PKCS7_GetDigestInSignerAuthAttr() 1250 rc = mbedtls_asn1_get_tag(&p, seqEnd, &tmpLen, MBEDTLS_ASN1_OCTET_STRING); in PKCS7_GetDigestInSignerAuthAttr() 1255 *digLen = tmpLen; in PKCS7_GetDigestInSignerAuthAttr()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 171 size_t tmpLen; in ParseModuleNameFromHap() local 172 ret = HapParser::ReadFileFromZip(uf, "config.json", tmpBuf, tmpLen); in ParseModuleNameFromHap() 178 std::string mName = GetModuleName(reinterpret_cast<char *>(tmpBuf.get()), tmpLen); in ParseModuleNameFromHap()
|