/base/telephony/core_service/services/sim/src/ |
D | tag_service.cpp | 122 if (!hasNext_ || offset_ >= data_.size()) { in Next() 130 for (; offset_ < data_.size(); ++offset_, ++order) { in Next() 131 const auto res = TagFunc(data_.at(offset_), order, tag_); in Next() 136 ++offset_; in Next() 142 if (offset_ >= data_.size()) { in Next() 148 for (; offset_ < data_.size(); ++offset_, ++order) { in Next() 149 const auto res = LengthFunc(data_.at(offset_), order, length_); in Next() 154 ++offset_; in Next() 160 dataOffset_ = offset_; in Next() 161 offset_ += static_cast<size_t>(length_); in Next() [all …]
|
/base/hiviewdfx/faultloggerd/frameworks/unwinder/ |
D | dfx_memory_file.cpp | 44 munmap(&data_[-offset_], size_ + offset_); in Clear() 64 offset_ = offset & static_cast<uint64_t>ALIGN_BYTES(getpagesize()); in Init() 73 if (!__builtin_add_overflow(size, offset_, &maxSize) && maxSize < size_) { in Init() 84 data_ = &reinterpret_cast<uint8_t*>(map)[offset_]; in Init() 85 size_ -= offset_; in Init()
|
/base/update/updater/services/diffpatch/bzip2/ |
D | lz4_adapter.cpp | 28 : DeflateAdapter(), outStream_(outStream), offset_(offset) in Lz4Adapter() 86 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in Open() 91 offset_ += dataSize; in Open() 172 ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in CompressData() 178 offset_ += dataSize; in CompressData() 197 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in FlushData() 202 offset_ += dataSize; in FlushData() 203 offset = offset_; in FlushData() 233 ret = outStream_->Write(offset_, {buffer_.data(), sizeof(int32_t)}, sizeof(int32_t)); in Open() 238 offset_ += sizeof(int32_t); in Open() [all …]
|
D | zip_adapter.cpp | 25 : DeflateAdapter(), outStream_(outStream), offset_(offset) in ZipAdapter() 84 ret = outStream_->Write(offset_, {buffer_.data(), deflateLen}, deflateLen); in WriteData() 89 offset_ += deflateLen; in WriteData() 121 ret = outStream_->Write(offset_, {buffer_.data(), deflateLen}, deflateLen); in FlushData() 126 offset_ += deflateLen; in FlushData() 144 offset = offset_; in FlushData()
|
D | bzip2_adapter.cpp | 53 if (offset_ + dataSize_ + srcData.length > buffer_.size()) { in WriteData() 56 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in WriteData() 57 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in WriteData() 84 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData() 85 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData() 93 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData() 94 next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData() 103 PATCH_DEBUG("FlushData offset_ %zu dataSize_ %zu ", offset_, dataSize_); in FlushData() 190 PATCH_DEBUG("BZip2BufferReadAdapter::Open %zu dataLength_ %zu", offset_, dataLength_); in Open() 198 stream_.next_in = reinterpret_cast<char*>(buffer_.buffer + offset_); in Open()
|
D | bzip2_adapter.h | 41 : BZip2Adapter(), offset_(offset), buffer_(buffer) {} in BZipBuffer2Adapter() 47 size_t offset_ { 0 }; 68 BZip2ReadAdapter(size_t offset, size_t length) : offset_(offset), dataLength_(length) {} in BZip2ReadAdapter() 79 size_t offset_ { 0 };
|
D | zip_adapter.h | 44 size_t offset_; variable
|
D | lz4_adapter.h | 43 size_t offset_; variable
|
/base/update/updater/services/applypatch/ |
D | raw_writer.h | 30 RawWriter(const std::string path, uint64_t offset) : fd_(-1), path_(path), offset_(offset) {} in RawWriter() 34 offset_ = 0; in ~RawWriter() 49 off64_t offset_; variable
|
D | raw_writer.cpp | 53 int ret = lseek64(fd, offset_, SEEK_SET); in WriteInternal() 55 LOG(ERROR) << "RawWriter: failed to seek file to " << offset_ << " : " << strerror(errno); in WriteInternal() 68 offset_ += static_cast<off64_t>(len); in WriteInternal()
|
D | partition_record.cpp | 83 offset_ = newOffset; in RecordPartitionSetOffset() 84 if (lseek(fd, PARTITION_RECORD_START + offset_, SEEK_SET) < 0) { in RecordPartitionSetOffset() 103 offset_ += static_cast<off_t>(sizeof(PartitionRecordInfo)); in RecordPartitionSetInfo() 108 if (write(fd, &offset_, sizeof(off_t)) != static_cast<ssize_t>(sizeof(off_t))) { in RecordPartitionSetInfo() 134 … if (offset_ + static_cast<off_t>(sizeof(PartitionRecordInfo)) < PARTITION_UPDATER_RECORD_SIZE) { in RecordPartitionUpdateStatus() 139 LOG(DEBUG) << "PartitionRecord: offset is " << offset_; in RecordPartitionUpdateStatus() 141 LOG(WARNING) << "PartitionRecord: partition record overflow, offset = " << offset_; in RecordPartitionUpdateStatus()
|
/base/update/updater/services/include/applypatch/ |
D | partition_record.h | 67 offset_ = 0; in PartitionRecord() 79 off_t offset_; variable
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.h | 90 …BlocksStreamDiff(std::fstream &stream, size_t offset) : BlocksDiff(), stream_(stream), offset_(off… in BlocksStreamDiff() 98 size_t offset_ { 0 }; 104 : BlocksDiff(), patchData_(patchData), offset_(offset) {} in BlocksBufferDiff() 112 size_t offset_ { 0 };
|
D | blocks_diff.cpp | 202 offset_ + patchOffset); in CreateBZip2Adapter() 226 if (patchData_.size() <= headerLen + offset_) { in WritePatchHeader() 231 int32_t ret = memcpy_s(patchData_.data() + offset_, patchData_.size(), BSDIFF_MAGIC, in WritePatchHeader() 238 BlockBuffer data = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader() 241 BlockBuffer diffData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader() 244 BlockBuffer newData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader() 255 if (offset_ > static_cast<size_t>(numeric_limits<std::fstream::off_type>::max())) { in WritePatchHeader() 260 stream_.seekp(offset_, std::ios::beg); in WritePatchHeader()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_desc.h | 110 uint32_t offset_; variable 176 uint32_t offset_; variable
|
/base/hiviewdfx/faultloggerd/frameworks/unwinder/include/ |
D | dfx_memory_file.h | 39 size_t offset_ = 0; variable
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_desc.h | 111 uint32_t offset_; variable 181 uint32_t offset_; variable
|
/base/telephony/core_service/services/sim/include/ |
D | tag_service.h | 47 size_t offset_ = 0; variable
|
/base/telephony/core_service/services/network_search/include/ |
D | nitz_update.h | 59 static int32_t offset_; variable
|
/base/telephony/core_service/services/network_search/src/ |
D | nitz_update.cpp | 49 int32_t NitzUpdate::offset_ = 0; member in OHOS::Telephony::NitzUpdate 80 offset_ = networkTime.offset; in ProcessNitzUpdate() 257 int32_t offset = ONE_HOUR_TO_SECOND * ONE_SECOND_TO_MILLISECOND * offset_; in ProcessTimeZone()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | res_desc.cpp | 213 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString() 246 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_desc.cpp | 280 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString() 325 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | hap_parser.cpp | 276 uint32_t ipOffset = ip->offset_; in ParseId() 338 uint32_t idOffset = key->offset_; in ParseKey()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | hap_parser.cpp | 464 uint32_t ipOffset = ip->offset_; in ParseId() 523 uint32_t idOffset = key->offset_; in ParseKey()
|