/ohos5.0/base/update/updater/services/applypatch/ |
H A D | block_writer.cpp | 71 size_t written = len; variable 73 written = currentBlockLeft_; 75 if (Updater::Utils::WriteFully(fd_, addr, written) == false) { 76 LOG(ERROR) << "BlockWriter: failed to write " << written << " byte(s)."; 79 len -= written; 80 addr += written; 81 currentBlockLeft_ -= written; 82 totalWritten_ += written;
|
H A D | raw_writer.cpp | 59 ssize_t written = 0; in WriteInternal() local 69 written = write(fd, data, rest); in WriteInternal() 70 if (written < 0) { in WriteInternal() 74 data += written; in WriteInternal() 75 rest -= static_cast<size_t>(written); in WriteInternal()
|
H A D | transfer_manager.cpp | 96 initBlock = transferParams_->written; in CommandsParser() 98 if (totalSize != 0 && (transferParams_->written - initBlock) > 0) { in CommandsParser() 110 float p = static_cast<float>(transferParams_->written - initBlock) / totalSize\ in UpdateProgress() 113 initBlock = transferParams_->written; in UpdateProgress()
|
H A D | command_process.cpp | 68 params.GetTransferParams()->written += bs.TotalBlockSize(); in Execute() 98 params.GetTransferParams()->written += blk.TotalBlockSize(); in Execute() 186 params.GetTransferParams()->written += targetBlock.TotalBlockSize(); in Execute()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/ |
H A D | http1.rs | 152 Ok(written) => { in encode_request_part() 153 interceptor.intercept_input(&buf[..written])?; in encode_request_part() 155 if let Err(e) = conn.raw_mut().write_all(&buf[..written]).await { in encode_request_part() 233 let mut written = 0; in encode_body() localVariable 236 if written < buf.len() { in encode_body() 237 let result = body.data(&mut buf[written..]).await; in encode_body() 239 written += read; in encode_body() 242 if written == buf.len() || end_body { in encode_body() 243 if let Err(e) = conn.raw_mut().write_all(&buf[..written]).await { in encode_body() 247 written = 0; in encode_body()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/buffered/ |
H A D | async_buf_writer.rs | 35 written: usize, field 76 written: 0, in with_capacity() 177 while this.written < len { in flush() 180 Pin::new_unchecked(&mut this.inner).poll_write(cx, &this.buf[this.written..]) in flush() 189 Ok(n) => this.written += n, in flush() 197 if this.written > 0 { in flush() 198 this.buf.drain(..this.written); in flush() 199 this.written = 0; in flush()
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | _ability_runtime.md | 76 …hat are related to user security information and do not need to be read, written, or created when … 77 …written on the lock screen. If such files need to be read or written on the lock screen, you can c… 97 | buffer | Pointer to the buffer. The cache directory string is written to this area.| 99 | writeLength | Pointer to the length of the string written to the buffer when **ABILITY_RUNTIME_ER… 105 …** or **writeLength** is null or the buffer size is less than the size of the string to be written. 151 | buffer | Pointer to the buffer. The bundle name string is written to this area. … 153 | writeLength | Pointer to the length of the string written to the buffer when **ABILITY_RUNTIME_ER… 159 …** or **writeLength** is null or the buffer size is less than the size of the string to be written.
|
H A D | js-apis-app-ability-contextConstant.md | 27 …written. When the screen is unlocked, such a file can be opened, read, and written.<br>- When the … 28 …written. When the screen is unlocked, such a file can be opened, read, and written.<br>- When the … 29 …written only if the reserved key is obtained by calling [Access](js-apis-screenLockFileManager.md#…
|
/ohos5.0/foundation/multimedia/ringtone_library/test/unittest/ringtone_scanner/src/ |
H A D | ringtone_read_test.cpp | 90 ssize_t written = write(fd, dataBuffer.c_str(), dataBuffer.size()); in RingtoneRead() local 91 cout << "OpenFile written = " << written << endl; in RingtoneRead() 92 if (written < 0) { in RingtoneRead() 93 cout << "Failed to copy data buffer, return " << static_cast<int>(written) << endl; in RingtoneRead() 116 "written = " << static_cast<int>(written) << endl; in RingtoneRead()
|
H A D | ringtone_test.cpp | 214 ssize_t written = write(fd, dataBuffer.c_str(), dataBuffer.size()); in main() local 215 if (written < 0) { in main() 216 cout << "Failed to copy data buffer, return " << static_cast<int>(written) << endl; in main()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | reader.rs | 121 let mut written = 0usize; in read_all() localVariable 130 .progress(written) in read_all() 139 written += read_len; in read_all() 144 .progress(written) in read_all()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_wstream.cpp | 59 size_t written = SIZE_ZERO; in bytesWritten() local 60 stream_->GetCurrentSize(written); in bytesWritten() 61 return written; in bytesWritten()
|
/ohos5.0/base/update/updater/test/unittest/applypatch_test/ |
H A D | all_cmd_unittest.cpp | 79 ssize_t written = 0; in WriteTestBin() local 86 written = write(fd, p, count); in WriteTestBin() 87 } while (written < 0 && errno == EINTR); in WriteTestBin() 89 if (written < 0) { in WriteTestBin() 92 rest -= written; in WriteTestBin()
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_textencoder.cpp | 79 int32_t written = 0; in EncodeInto() local 81 EncodeToUtf8(encodeInfo, writeResult, &written, length, &nchars); in EncodeInto() 92 NAPI_CALL(env, napi_create_int32(env, written, &resWritten)); in EncodeInto()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/include/ |
H A D | sbc_codec.h | 30 size_t oLength, size_t* written) = 0; 37 uint8_t* out, size_t oLength, size_t* written) = 0;
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/ |
H A D | input.rs | 142 Poll::Ready(written) => { in poll_writer_frame() 143 self.buf.start += written; in poll_writer_frame() 171 Poll::Ready(written) => { in poll_writer_frame() 172 index += written; in poll_writer_frame()
|
/ohos5.0/commonlibrary/ets_utils/platform/ |
H A D | util_helper.h | 82 …void EncodeToUtf8(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length, in… 92 …void OtherEncodeUtf8(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length,… 93 …void EncodeTo16BE(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length, in…
|
/ohos5.0/commonlibrary/ets_utils/platform/ohos/ |
H A D | util_helper.cpp | 108 …void EncodeToUtf8(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length, in… in EncodeToUtf8() argument 111 EncodeTo16BE(encodeInfo, writeResult, written, length, nchars); in EncodeToUtf8() 113 OtherEncodeUtf8(encodeInfo, writeResult, written, length, nchars); in EncodeToUtf8() 357 …void OtherEncodeUtf8(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length,… in OtherEncodeUtf8() argument 393 *written = static_cast<int32_t>(writeLength); in OtherEncodeUtf8() 397 …void EncodeTo16BE(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length, in… in EncodeTo16BE() argument 435 *written = static_cast<int32_t>(writeLength); in EncodeTo16BE()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/native/c_api/ |
H A D | media_asset_change_request_impl.cpp | 655 ssize_t written = write(destFd.Get(), (char*)dataBuffer + offset, length - offset); in CopyDataBufferToMediaLibrary() local 656 if (written < 0) { in CopyDataBufferToMediaLibrary() 657 … MEDIA_ERR_LOG("Failed to copy data buffer, return %{public}d", static_cast<int>(written)); in CopyDataBufferToMediaLibrary() 658 return written; in CopyDataBufferToMediaLibrary() 660 offset += static_cast<size_t>(written); in CopyDataBufferToMediaLibrary() 849 ssize_t written = write(destFd.Get(), (char*)dataBuffer + offset, length - offset); in WriteCacheByArrayBuffer() local 850 if (written < 0) { in WriteCacheByArrayBuffer() 851 …ERR_LOG("Failed to write data buffer to cache file, return %{public}d", static_cast<int>(written)); in WriteCacheByArrayBuffer() 854 offset += static_cast<size_t>(written); in WriteCacheByArrayBuffer()
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-basic-trans-queue.md | 14 - Messages are queued in first-in-first-out (FIFO) mode and can be read and written asynchronously. 48 …LOS_DL_LIST readWriteList[OS_QUEUE_N_RW]; /**< the linked list to be read or written, 0:readlist, … 66 …written to a queue, **readWriteableCnt[1]** is used to determine whether data can be written to th… 68 …has messages to read, the system locates the first node to which data is written based on **Head**… 117 …alled to manage data addresses, which means that the actual data read or written is pointer data. …
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | hiappevent-watcher-mainthreadjank-events.md | 21 …hold (for details, see **log_over_limit**), new log files may fail to be written. Therefore, delet… 22 … **true** indicates that the upper limit is exceeded and logs fail to be written. The value **fals…
|
/ohos5.0/commonlibrary/ets_utils/platform/default/ |
H A D | util_helper.cpp | 104 void EncodeToUtf8(TextEcodeInfo encodeInfo, char* writeResult, int32_t* written, size_t length, int… in EncodeToUtf8() argument 107 engine->EncodeToUtf8(encodeInfo.src, writeResult, written, length, nchars); in EncodeToUtf8()
|
/ohos5.0/base/startup/init/services/utils/ |
H A D | init_utils.c | 405 ssize_t written; in WriteAll() local 408 written = write(fd, p, left); in WriteAll() 409 } while (written < 0 && errno == EINTR); in WriteAll() 410 if (written < 0) { in WriteAll() 414 p += written; in WriteAll() 415 left -= written; in WriteAll()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/test/example/ |
H A D | audio_hdi_device_test.cpp | 70 uint64_t written = 0; in RenderFrameFromFile() local 83 ret = hdiRenderSink_->RenderFrame(*buffer, tempBufferSize, written); in RenderFrameFromFile()
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | _time_service.md | 101 …ed, the time zone ID string of the current system is written. Otherwise, an empty string is writte…
|