Home
last modified time | relevance | path

Searched refs:writeSize (Results 1 – 10 of 10) sorted by relevance

/base/update/updater/services/flashd/daemon/
Dflash_commander.cpp64 auto writeSize = DoFlash(payload, payloadSize); in DoCommand() local
65 if (writeSize < 0) { in DoCommand()
70 currentSize_ += static_cast<size_t>(writeSize); in DoCommand()
104 auto writeSize = std::min(static_cast<size_t>(payloadSize), fileSize_ - currentSize_); in DoFlash() local
105 if (writeSize <= 0) { in DoFlash()
110 if (partition_->DoFlash(payload, writeSize) != 0) { in DoFlash()
114 return writeSize; in DoFlash()
Dupdate_commander.cpp92 auto writeSize = std::min(static_cast<size_t>(payloadSize), fileSize_ - currentSize_); in DoUpdate() local
93 if (writeSize <= 0) { in DoUpdate()
98 if (!Updater::Utils::WriteFully(fd_, payload, writeSize)) { in DoUpdate()
103 currentSize_ += writeSize; in DoUpdate()
/base/hiviewdfx/hiview/adapter/utility/platform/linux/
Dfile_util.cpp82 ssize_t writeSize = size; in WriteBufferToFd() local
83 if (writeSize != TEMP_FAILURE_RETRY(write(fd, buffer, size))) { in WriteBufferToFd()
/base/security/selinux/interfaces/policycoreutils/src/
Dcontexts_trie.c265 uint32_t writeSize = dataLen + sizeof(SharedMem); // space used for write SharedMem struct in WriteParamToSharedMem() local
266 if (*currentPos + writeSize > SELINUX_PARAM_SPACE) { // no space to write in WriteParamToSharedMem()
269 *currentPos += writeSize; in WriteParamToSharedMem()
280 *memPtr = (SharedMem *)((char *)tmPtr + writeSize); // get the next SharedMem ptr in WriteParamToSharedMem()
/base/update/updater/services/applypatch/
Dblock_set.cpp178 size_t writeSize = (it->second - it->first) * H_BLOCK_SIZE; in WriteDataToBlock() local
180 uint64_t arguments[] = {static_cast<uint64_t>(offset), writeSize}; in WriteDataToBlock()
192 if (Utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) { in WriteDataToBlock()
196 pos += writeSize; in WriteDataToBlock()
348 size_t writeSize = (iter->second - iter->first) * H_BLOCK_SIZE; in WriteZeroToBlock() local
349 uint64_t arguments[2] = {static_cast<uint64_t>(offset), writeSize}; in WriteZeroToBlock()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp198 ssize_t writeSize = size; in WriteBufferToFd() local
199 if (writeSize != TEMP_FAILURE_RETRY(write(fd, buffer, size))) { in WriteBufferToFd()
/base/update/updater/test/unittest/diffpatch/
Dbzip2_unittest.cpp235 size_t writeSize = (memInfo.length > (offset + DeflateAdapter::BUFFER_SIZE)) ? in DeflateAdapterTest() local
237 BlockBuffer data = {memInfo.memory + offset, writeSize}; in DeflateAdapterTest()
240 offset += writeSize; in DeflateAdapterTest()
/base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/src/
Dwallpaper_manager.cpp240 int32_t writeSize = write(fd[1], buffer, mapSize); in SetWallpaper() local
241 if (writeSize != mapSize) { in SetWallpaper()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp589 int writeSize = write(fdw, paperBuf, length); in SetWallpaperByMap() local
591 if (writeSize <= 0) { in SetWallpaperByMap()
645 int writeSize = write(fdw, paperBuf, length); in SetWallpaperByFD() local
647 if (writeSize <= 0) { in SetWallpaperByFD()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c657 int writeSize = HcFileWrite(file, fileData, fileSize); in SaveParcelToFile() local
659 if (writeSize == fileSize) { in SaveParcelToFile()