Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 - 25 of 28) sorted by relevance

12

/base/telephony/core_service/services/sim/src/
H A Dtag_service.cpp122 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()
[all...]
/base/update/updater/services/applypatch/
H A Draw_writer.h30 RawWriter(const std::string path, uint64_t offset) : fd_(-1), path_(path), offset_(offset) {} in RawWriter()
32 path_(path), offset_(startAddr + offset) {} in RawWriter()
36 offset_ = 0; in ~RawWriter()
51 off64_t offset_; member in Updater::RawWriter
H A Dpartition_record.cpp83 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()
H A Draw_writer.cpp62 int ret = lseek64(fd, offset_, SEEK_SET); in WriteInternal()
64 LOG(ERROR) << "RawWriter: failed to seek file to " << offset_ << " : " << strerror(errno); in WriteInternal()
77 offset_ += static_cast<off64_t>(len); in WriteInternal()
/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
H A Djit_code_signer_single.cpp37 offset_ = 0; in Reset()
42 int index = GetIndexFromOffset(offset_); in SignInstruction()
44 LOG_INFO("Offset = %{public}x, insn = %{public}x", offset_, insn); in SignInstruction()
47 GetIndexFromOffset(offset_), signTable_.size()); in SignInstruction()
51 offset_ += INSTRUCTION_SIZE; in SignInstruction()
H A Djit_code_signer_hybrid.cpp37 offset_ = 0; in Reset()
48 if (static_cast<size_t>(GetIndexFromOffset(offset_)) != signTable_.size()) { in SignInstruction()
50 GetIndexFromOffset(offset_), signTable_.size()); in SignInstruction()
52 LOG_INFO("Offset = %{public}x, insn = %{public}x", offset_, insn); in SignInstruction()
55 skippedOffset_.push_back(offset_); in SignInstruction()
56 signTable_.push_back(ctx_.SignSingle(insn, GetIndexFromOffset(offset_))); in SignInstruction()
60 ctx_.Init(GetIndexFromOffset(offset_)); in SignInstruction()
66 offset_ += INSTRUCTION_SIZE; in SignInstruction()
/base/update/updater/services/diffpatch/bzip2/
H A Dlz4_adapter.cpp28 : 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_ in Open()
[all...]
H A Dzip_adapter.cpp25 : 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()
H A Dbzip2_adapter.cpp53 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in WriteData()
54 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in WriteData()
89 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData()
90 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData()
98 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData()
99 next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData()
108 PATCH_DEBUG("FlushData offset_ %zu dataSize_ %zu ", offset_, dataSize_); in FlushData()
190 if (dataLength_ > buffer_.length - offset_) { in Open()
195 PATCH_DEBUG("BZip2BufferReadAdapter::Open %zu dataLength_ %zu", offset_, dataLength in Open()
[all...]
H A Dbzip2_adapter.h41 : 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 };
H A Dzip_adapter.h44 size_t offset_; member in UpdatePatch::ZipAdapter
H A Dlz4_adapter.h43 size_t offset_; member in UpdatePatch::Lz4Adapter
/base/web/webview/ohos_adapter/media_adapter/src/
H A Dbuffer_info_adapter_impl.cpp32 return offset_; in GetOffset()
47 offset_ = offset; in SetOffset()
/base/update/updater/services/include/applypatch/
H A Dpartition_record.h67 offset_ = 0; in PartitionRecord()
79 off_t offset_; member in Updater::PartitionRecord
/base/update/updater/services/diffpatch/diff/
H A Dblocks_diff.h90 BlocksStreamDiff(std::fstream &stream, size_t offset) : BlocksDiff(), stream_(stream), offset_(offset) {} in BlocksStreamDiff()
98 size_t offset_ { 0 };
104 : BlocksDiff(), patchData_(patchData), offset_(offset) {} in BlocksBufferDiff()
112 size_t offset_ { 0 };
H A Dblocks_diff.cpp202 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()
256 PATCH_LOGE("offset_ error"); in WritePatchHeader()
260 stream_.seekp(offset_, std::ios::beg); in WritePatchHeader()
/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/
H A Djit_code_signer_base.h39 JitCodeSignerBase() : tmpBuffer_(nullptr), offset_(0) {}; in JitCodeSignerBase()
59 int offset_; member in OHOS::Security::CodeSign::JitCodeSignerBase
/base/web/webview/ohos_adapter/media_adapter/include/
H A Dbuffer_info_adapter_impl.h42 int32_t offset_ = 0; member in OHOS::NWeb::BufferInfoAdapterImpl
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_desc.h126 uint32_t offset_; member in OHOS::Global::Resource::IdParam
197 uint32_t offset_; member in OHOS::Global::Resource::ResKey
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dres_desc.h110 uint32_t offset_; member in OHOS::Global::Resource::IdParam
176 uint32_t offset_; member in OHOS::Global::Resource::ResKey
/base/telephony/core_service/services/sim/include/
H A Dtag_service.h47 size_t offset_ = 0; member in OHOS::Telephony::TagService
/base/telephony/core_service/services/network_search/include/
H A Dnitz_update.h61 static int32_t offset_; member in OHOS::Telephony::NitzUpdate
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_symbol.h44 uint64_t offset_ = 0; member
104 offset_ = fileVaddr_ - funcVaddr_; in SetIpVAddress()
/base/telephony/core_service/services/network_search/src/
H A Dnitz_update.cpp60 int32_t NitzUpdate::offset_ = 0; member in OHOS::Telephony::NitzUpdate
94 offset_ = networkTime.offset; in ProcessNitzUpdate()
312 int32_t offset = QUARTER_TO_MILLISECOND * offset_; in UpdateCountryCode()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_desc.cpp213 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()

Completed in 10 milliseconds

12