Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 25 of 178) sorted by relevance

12345678

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/export/
H A Dring_queue.h68 offset_ = (offset_ + 1) % realcap;
77 offset_ = (offset_ + 1) % realcap;
84 return (*ptr_)[offset_];
94 return offset_ == rhs.offset_;
99 return offset_ != rhs.offset_;
104 int offset_; variable
117 offset_ = (offset_ + cap) % realcap;
126 offset_ = (offset_ + cap) % realcap;
143 return offset_ == rhs.offset_;
148 return offset_ != rhs.offset_;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/grid_layout/
H A Dgrid_col_component.h39 offset_ = offset; in SetOffset()
80 return offset_; in GetOffset()
87 return offset_.xs; in GetOffset()
90 return offset_.sm; in GetOffset()
93 return offset_.md; in GetOffset()
96 return offset_.lg; in GetOffset()
99 return offset_.xl; in GetOffset()
102 return offset_.xxl; in GetOffset()
105 return offset_.xs; in GetOffset()
146 GridContainerSize offset_ = GridContainerSize(0); variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/shadow/
H A Drosen_render_shadow.cpp73 SkRect rect = SkRect::MakeXYWH(offset_.GetX(), offset_.GetY(), rrect_.Width(), rrect_.Height()); in Paint()
76offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSET), rrect_.Width(), rrect_.Height()); in Paint()
89offset_.GetX(), offset_.GetY(), offset_.GetX() + rrect_.Width(), offset_.GetY() + rrect_.Height()); in Paint()
91 rect = RSRect(offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSET), in Paint()
92 …rrect_.Width() + offset_.GetX(), rrect_.Height() + offset_.GetY() + NormalizeToPx(SHADOW_OFFSET)); in Paint()
/ohos5.0/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()
160 dataOffset_ = offset_; in Next()
161 offset_ += static_cast<size_t>(length_); in Next()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension_rect.h35 : width_(width), height_(height), offset_(offset) in DimensionRect()
52 return offset_; in GetOffset()
57 offset_ = offset; in SetOffset()
80 offset_ = DimensionOffset(); in Reset()
87 … ss << "Rect (" << std::fixed << std::setprecision(precision) << offset_.GetX().ToString() << ", " in ToString()
88 << offset_.GetY().ToString() << ") - ["; in ToString()
100 jsonValue->Put("x", offset_.GetX().ToString().c_str()); in ToJsonString()
101 jsonValue->Put("y", offset_.GetY().ToString().c_str()); in ToJsonString()
110 DimensionOffset offset_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_paint_method.h53 offset_ = paintWrapper->GetContentOffset(); in UpdateContentModifier()
59 auto offsetY = offset_.GetY(); in UpdateContentModifier()
60 offset_.SetY(offsetY - constrainStrokeWidth_ / 2); in UpdateContentModifier()
64 auto offsetX = offset_.GetX(); in UpdateContentModifier()
65 offset_.SetX(offsetX - constrainStrokeWidth_ / 2); in UpdateContentModifier()
69 RectF boundsRect(offset_.GetX(), offset_.GetY(), boundsRectWidth, boundsRectHeight); in UpdateContentModifier()
75 dividerModifier_->SetOffset(offset_); in UpdateContentModifier()
87 OffsetF offset_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dshadow.h59 : offset_(offset), color_(spotColor), style_(style) in Shadow()
66 : offset_(offset), color_(spotColor), style_(style) in Shadow()
73 : spreadRadius_(spreadRadius), offset_(offset), color_(spotColor) in Shadow()
82 …return color_ == rhs.color_ && NearEqual(blurRadius_, rhs.blurRadius_) && offset_ == rhs.offset_ &&
119 offset_ = offset; in SetOffset()
124 return offset_; in GetOffset()
129 offset_.SetX(x); in SetOffsetX()
134 offset_.SetY(y); in SetOffsetY()
237 return blurRadius_ > 0.0 || spreadRadius_ > 0.0 || offset_ != Offset::Zero(); in IsValid()
251 Offset offset_; variable
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dmapped_file.cpp146 if (offset_ < 0 || (offset_ % PageSize() != 0)) { in Normalize()
226 offset_); in Map()
389 off_t oldOff = offset_; in TurnNext()
403 offset_ += oldSize; in TurnNext()
412 offset_ = oldOff; in TurnNext()
425 offset_ += oldSize; in TurnNext()
430 offset_ += PageSize(); in TurnNext()
447 offset_ = 0; in Reset()
512 offset_ = other.offset_; in operator =()
527 if (offset_ != val) { in ChangeOffset()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/json/
H A Duobject.cpp164 offset_ = 0; in Serialize()
197 offset_ = 0; in Deserialize()
199 while (offset_ < bufferLen) { in Deserialize()
266 offset_++; in WriteChar()
286 offset_ += static_cast<int32_t>(sizeof(size_t)); in WriteSizeT()
306 offset_ += static_cast<int32_t>(sizeof(double)); in WriteDouble()
319 offset_ += static_cast<int32_t>(value.length()); in WriteString()
381 offset_ += len; in WriteObj()
387 offset_++; in ReadChar()
443 offset_ += len; in ReadString()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/file_source/
H A Dfile_fd_source_plugin.cpp96 expectedLen = std::min(static_cast<size_t>(size_ + offset_ - position_), expectedLen); in Read()
124 int32_t ret = lseek(fd_, offset + static_cast<uint64_t>(offset_), SEEK_SET); in SeekTo()
129 position_ = offset + static_cast<uint64_t>(offset_); in SeekTo()
151 offset_ = std::stoll(fdUriMatch[2].str()); // 2: sub match offset subscript in ParseUriInfo()
152 if (static_cast<uint64_t>(offset_) > fileSize_) { in ParseUriInfo()
153 offset_ = fileSize_; in ParseUriInfo()
156 uint64_t remainingSize = fileSize_ - offset_; in ParseUriInfo()
162 offset_ = 0; in ParseUriInfo()
164 position_ = offset_; in ParseUriInfo()
169 …("Fd: " PUBLIC_LOG_D32 ", offset: " PUBLIC_LOG_D64 ", size: " PUBLIC_LOG_U64, fd_, offset_, size_); in ParseUriInfo()
/ohos5.0/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()
238 offset_ += sizeof(int32_t); in Open()
286 offset_ += static_cast<size_t>(dataSize); in CompressData()
[all …]
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()
192 dataLength_, buffer_.length, offset_); in Open()
196 PATCH_DEBUG("BZip2BufferReadAdapter::Open %zu dataLength_ %zu", offset_, dataLength_); 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()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dpts_and_index_conversion.cpp96 while (offset_ < fileSize_) { in StartParse()
117 offset_ += headerSize; in StartParse()
120 offset_ += boxSize; in StartParse()
127 offset_ += BOX_HEAD_SIZE; in ReadLargeSize()
139 offset_ -= BOX_HEAD_SIZE; in ReadLargeSize()
170 offset_ = 0; // init offset_ in IsMP4orMOV()
177 while (offset_ < parentSize) { in ParseMoov()
198 offset_ += headerSize; in ParseMoov()
201 offset_ += childBoxSize; in ParseMoov()
220 while (offset_ < parentSize) { in ParseBox()
[all …]
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
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()
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()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/
H A Dbuffer_packer_stream.cpp44 uint32_t leftSize = maxSize_ - offset_; in Write()
47 static_cast<long long>(size + offset_), maxSize_); in Write()
50 if (memcpy_s(outputData_ + offset_, leftSize, buffer, size) != EOK) { in Write()
54 offset_ += size; in Write()
60 return offset_; in BytesWritten()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/
H A Drender_focus_animation.cpp87 offset_ = offset - GetGlobalOffset(); in SetFocusAnimationProperties()
93 …if ((offset_.GetX() + rrect.Width()) > layoutSize_.Width() && (offset_.GetX() + rrect.Width()) > 0… in SetFocusAnimationProperties()
94 …layoutSize_.SetWidth(offset_.GetX() + rrect.Width() + NormalizeToPx(blurMaskRadius_) * 2); // 2: t… in SetFocusAnimationProperties()
97 …if ((offset_.GetY() + rrect.Height()) > layoutSize_.Height() && (offset_.GetY() + rrect.Height()) … in SetFocusAnimationProperties()
98 …layoutSize_.SetHeight((offset_.GetY() + rrect.Height()) + NormalizeToPx(blurMaskRadius_) * 2); // … in SetFocusAnimationProperties()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dselect_motion.h27 … SelectMotion(float offset, CompleteCallbck&& complete) : offset_(offset), complete_(complete) {}; in SelectMotion()
30 return offset_; in GetCurrentPosition()
54 offset_ = offset; in Reset()
58 float offset_ = 0.0f;
/ohos5.0/base/update/updater/services/applypatch/
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.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_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Drender_grid.cpp170 Offset oldOffset = offset_; in UpdateOffset()
171 offset_ += delta; in UpdateOffset()
172 offset_ = LimitOffset(offset_); in UpdateOffset()
173 if (oldOffset != offset_) { in UpdateOffset()
293 return offset_.GetY(); in GetCurrentPosition()
295 return offset_.GetX(); in GetCurrentPosition()
369 offset_ = LimitOffset(offset); in JumpTo()
401 double offset = distance + (isVertical_ ? offset_.GetY() : offset_.GetX()); in ScrollBy()
469 double curOffset = isVertical_ ? offset_.GetY() : offset_.GetX(); in MoveChildToViewPort()
823 viewportStart = offset_.GetX(); in RequestChildIfNeeded()
[all …]
/ohos5.0/foundation/multimedia/player_framework/services/utils/include/
H A Davdatasrcmemory.h69 return AVSharedMemoryBase::GetBase() + offset_; in GetBase()
79 offset_ = offset; in SetOffset()
84 return offset_; in GetOffset()
89 uint32_t offset_;
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/hls/
H A Dplaylist_downloader.cpp153 offset_ = std::stoll(fdUriMatch[2].str()); // 2: sub match offset subscript in ParseUriInfo()
154 if (static_cast<uint64_t>(offset_) > fileSize_) { in ParseUriInfo()
155 offset_ = static_cast<int64_t>(fileSize_); in ParseUriInfo()
158 uint64_t remainingSize = fileSize_ - static_cast<uint64_t>(offset_); in ParseUriInfo()
164 offset_ = 0; in ParseUriInfo()
166 position_ = static_cast<uint64_t>(offset_); in ParseUriInfo()
171 …("Fd: " PUBLIC_LOG_D32 ", offset: " PUBLIC_LOG_D64 ", size: " PUBLIC_LOG_U64, fd_, offset_, size_); in ParseUriInfo()
191 int32_t ret = lseek(fd_, offset + static_cast<uint64_t>(offset_), SEEK_SET); in SeekTo()
196 position_ = offset + static_cast<uint64_t>(offset_); in SeekTo()
/ohos5.0/foundation/multimedia/player_framework/services/utils/
H A Duri_helper.cpp118 UriHelper::UriHelper(int32_t fd, int64_t offset, int64_t size) : fd_(dup(fd)), offset_(offset), siz… in UriHelper()
188 if (offset_ < 0 || offset_ > fdSize) { in CorrectFdParam()
189 offset_ = 0; in CorrectFdParam()
191 if ((size_ <= 0) || (size_ > fdSize - offset_)) { in CorrectFdParam()
192 size_ = fdSize - offset_; in CorrectFdParam()
195 std::to_string(offset_) + "&size=" + std::to_string(size_); in CorrectFdParam()
244 … CHECK_AND_RETURN_RET_LOG(StrToInt(offsetStr, offset_) && delim2 + delim2Len < uri.size(), false, in ParseFdUri()
261 fd_, offset_, size_); in ParseFdUri()

12345678