/ohos5.0/base/update/sys_installer_lite/frameworks/test/unittest/common/src/ |
H A D | ota_test.cpp | 189 int leftLen = len; in HotaWriteTest() local 191 while (leftLen > 0) { in HotaWriteTest() 192 int tmpLen = ((leftLen >= READ_BUF_LEN) ? READ_BUF_LEN : leftLen); in HotaWriteTest() 205 leftLen -= tmpLen; in HotaWriteTest() 220 int leftLen = pkgLen; in HotaByDefaultPkg() local 243 int leftLen = len; in HotaReadTest() local 245 while (leftLen > 0) { in HotaReadTest() 246 int tmpLen = ((leftLen >= READ_BUF_LEN) ? READ_BUF_LEN : leftLen); in HotaReadTest() 259 leftLen -= tmpLen; in HotaReadTest() 274 int leftLen = pkgLen; in HotaByNotDefaultPkg() local [all …]
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-ota-guide.md | 362 int leftLen = fileLen; 363 while (leftLen > 0) { 370 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 385 leftLen -= tmpLen; 439 int leftLen = fileLen; 440 while (leftLen > 0) { 447 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 462 leftLen -= tmpLen; 466 leftLen = fileLen; 467 while (leftLen > 0) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | parcel.cpp | 391 uint32_t leftLen = static_cast<uint32_t>(totalLen_ - parcelLen_); in WriteBlob() local 392 int errCode = memcpy_s(bufPtr_, leftLen, buffer, bufLen); in WriteBlob() 394 LOGE("[WriteBlob] leftLen:%" PRIu32 ", bufLen:%" PRIu32, leftLen, bufLen); in WriteBlob() 398 uint32_t length = (BYTE_8_ALIGN(bufLen) < leftLen) ? BYTE_8_ALIGN(bufLen) : leftLen; in WriteBlob() 413 uint32_t leftLen = static_cast<uint32_t>(totalLen_ - parcelLen_); in ReadBlob() local 425 uint32_t length = (BYTE_8_ALIGN(bufLen) < leftLen) ? BYTE_8_ALIGN(bufLen) : leftLen; in ReadBlob()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-ota-guide.md | 362 int leftLen = fileLen; 363 while (leftLen > 0) { 370 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 385 leftLen -= tmpLen; 439 int leftLen = fileLen; 440 while (leftLen > 0) { 447 int tmpLen = leftLen >= READ_BUF_LEN ? READ_BUF_LEN : leftLen; 462 leftLen -= tmpLen; 466 leftLen = fileLen; 467 while (leftLen > 0) { [all …]
|
/ohos5.0/base/request/request/frameworks/native/src/ |
H A D | response_message_receiver.cpp | 380 int32_t leftLen = length; in OnReadable() local 384 MsgHeaderParcel(msgId, msgType, headerSize, leftBuf, leftLen); in OnReadable() 395 if (ResponseFromParcel(response, leftBuf, leftLen) == 0) { in OnReadable() 402 if (NotifyDataFromParcel(notifyData, leftBuf, leftLen) == 0) { in OnReadable()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | package_file.cpp | 154 uint64_t leftLen = fileLen; in FileContentCopy() local 156 while (leftLen > 0) { in FileContentCopy() 157 uint64_t readLen = (leftLen > BUFFER_LEN) ? BUFFER_LEN : leftLen; in FileContentCopy() 168 leftLen -= readLen; in FileContentCopy()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | auth_message_processor.cpp | 95 int32_t leftLen = thumbnailSize - idx * MSG_MAX_SIZE; in CreateAuthRequestMessage() local 96 int32_t sliceLen = (leftLen > MSG_MAX_SIZE) ? MSG_MAX_SIZE : leftLen; in CreateAuthRequestMessage()
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_manager.c | 760 size_t leftLen = strlen(leftHash); in IsSameHashId() local 762 size_t min = leftLen < rightLen ? leftLen : rightLen; in IsSameHashId() 777 size_t leftLen = strlen(leftIdentifier); in IsSameDevice() local 779 if (leftLen == 0 || rightLen == 0) { in IsSameDevice() 782 if (leftLen == rightLen) { in IsSameDevice() 787 …if (SoftBusGenerateStrHash((const unsigned char *)leftIdentifier, leftLen, leftHash) != SOFTBUS_OK… in IsSameDevice() 802 if (leftLen == UDID_BUF_LEN - 1) { in IsSameDevice()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_border.cpp | 273 float leftLen = fmod((count - DASHED_LINE_LENGTH), (DASHED_LINE_LENGTH + 1)); in SetBorderEffect() local 274 if (leftLen > DASHED_LINE_LENGTH - 1) { in SetBorderEffect() 275 delLen = (DASHED_LINE_LENGTH + 1 - leftLen) * width / in SetBorderEffect() 278 …addLen = leftLen * width / static_cast<int>((count - DASHED_LINE_LENGTH) / (DASHED_LINE_LENGTH + 1… in SetBorderEffect()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_decoration_painter.cpp | 2341 double leftLen = fmod((count - DASHED_LINE_LENGTH), (DASHED_LINE_LENGTH + 1)); in SetBorderStyle() local 2345 if (leftLen > DASHED_LINE_LENGTH - 1) { in SetBorderStyle() 2346 delLen = (DASHED_LINE_LENGTH + 1 - leftLen) * width / in SetBorderStyle() 2350 … leftLen * width / static_cast<int32_t>((count - DASHED_LINE_LENGTH) / (DASHED_LINE_LENGTH + 1)); in SetBorderStyle() 2382 double leftLen = fmod((count - DASHED_LINE_LENGTH), (DASHED_LINE_LENGTH + 1)); in SetBorderStyle() local 2386 if (leftLen > DASHED_LINE_LENGTH - 1) { in SetBorderStyle() 2387 delLen = (DASHED_LINE_LENGTH + 1 - leftLen) * width / in SetBorderStyle() 2391 … leftLen * width / static_cast<int32_t>((count - DASHED_LINE_LENGTH) / (DASHED_LINE_LENGTH + 1)); in SetBorderStyle()
|