/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_result_set.cpp | 37 position_ = INIT_POSITION; in ~RdSingleVerResultSet() 150 return position_; in GetPosition() 201 ++position_; in MoveToNext() 215 ++position_; in MoveToNext() 221 ++position_; in MoveToNext() 240 --position_; in MoveToPrev() 254 position_ = 0; in MoveToPrev() 256 --position_; in MoveToPrev() 282 ++position_; in MoveToFirst() 294 ++position_; in MoveToFirst() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/ |
H A D | heif_stream.cpp | 206 size_t posAfterMove = position_ + size; in CheckSize() 214 if (position_ == data_.size()) { in Write8() 216 position_++; in Write8() 218 data_[position_++] = value; in Write8() 226 data_[position_++] = uint8_t(value & 0xFF); in Write16() 278 data_[position_++] = ch; in Write() 280 data_[position_++] = 0; in Write() 286 …if (EOK != memcpy_s(data_.data() + position_, data_.size() - position_, data.data(), data.size()))… in Write() 289 position_ += data.size(); in Write() 295 position_ += skipSize; in Skip() [all …]
|
/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | string_builder.cpp | 36 if (position_ + 1 >= capacity_) { in Append() 42 buffer_[position_] = c; in Append() 43 position_ += 1; in Append() 54 if (position_ + len >= capacity_) { in Append() 60 if (memcpy_s(buffer_ + position_, capacity_ - position_, string, len) != EOK) { in Append() 63 position_ += len; in Append() 74 if (position_ + len >= capacity_) { in Append() 80 if (memcpy_s(buffer_ + position_, capacity_ - position_, string.string(), len) != EOK) { in Append() 83 position_ += len; in Append() 116 position_ += len; in AppendFormat() [all …]
|
H A D | file.cpp | 93 if (position_ + 1 <= size_) { in GetChar() 94 position_++; in GetChar() 108 if (position_ + 1 > size_) { in PeekChar() 115 return buffer_[position_]; in PeekChar() 120 return isEof_ || buffer_[position_] == static_cast<char>(-1); in IsEof() 136 position_ = 0; in Read()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | string_builder.cpp | 37 if (position_ + 1 >= capacity_) { in Append() 43 buffer_[position_] = c; in Append() 44 position_ += 1; in Append() 55 if (position_ + len >= capacity_) { in Append() 61 int ret = memcpy_s(buffer_ + position_, capacity_ - position_, string, len); in Append() 66 position_ += len; in Append() 77 if (position_ + len >= capacity_) { in Append() 83 int ret = memcpy_s(buffer_ + position_, capacity_ - position_, string.c_str(), len); in Append() 88 position_ += len; in Append() 122 position_ += writeSize; in AppendFormat() [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | string_builder.cpp | 30 if (position_ + 1 >= capacity_) { in Append() 40 buffer_[position_] = c; in Append() 41 position_ += 1; in Append() 52 if (position_ + len >= capacity_) { in Append() 58 int ret = memcpy_s(buffer_ + position_, capacity_ - position_, string, len); in Append() 63 position_ += len; in Append() 74 if (position_ + len >= capacity_) { in Append() 80 int ret = memcpy_s(buffer_ + position_, capacity_ - position_, string.c_str(), len); in Append() 85 position_ += len; in Append() 119 position_ += writeSize; in AppendFormat() [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | js_xml.cpp | 735 position_ += len; in SkipText() 755 position_++; in SkipChar() 792 position_++; in ParseName() 808 position_++; in SkipInvalidChar() 984 ++position_; in ParseTagValue() 1119 position_++; in ParseStartTagFuncDeal() 1328 position_++; in ParseDelimiter() 1377 position_++; in ParseComment() 1425 position_++; in ParseInnerAttriDeclFunc() 1502 position_++; in ParseEntityDecl() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | microphone_descriptor.cpp | 26 position_ = {}; in MicrophoneDescriptor() 34 position_ = {}; in MicrophoneDescriptor() 48 position_ = micDescriptor.position_; in MicrophoneDescriptor() 58 position_ = micDescriptor->position_; in MicrophoneDescriptor() 71 parcel.WriteFloat(position_.x); in Marshalling() 72 parcel.WriteFloat(position_.y); in Marshalling() 73 parcel.WriteFloat(position_.z); in Marshalling() 89 microphoneDescriptor->position_.x = in.ReadFloat(); in Unmarshalling() 90 microphoneDescriptor->position_.y = in.ReadFloat(); in Unmarshalling() 91 microphoneDescriptor->position_.z = in.ReadFloat(); in Unmarshalling() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_result_set.cpp | 42 position_ = INIT_POSITION; in ~SQLiteSingleVerResultSet() 143 return position_; in GetPosition() 171 position_ = INIT_POSITION; in MoveTo() 176 position_ = count_; in MoveTo() 180 if (position_ == position) { in MoveTo() 254 position_ = position; in MoveToForCacheFullEntryMode() 257 position_ = INIT_POSITION; in MoveToForCacheFullEntryMode() 269 position_ = position; in MoveToForCacheEntryIdMode() 307 position_ = position; in MoveToForCacheEntryIdMode() 318 if (position_ > INIT_POSITION && position_ < count_) { in GetEntry() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_light.h | 40 position_(position), rotation_(rotation) {}; in DECLARE_ACE_TYPE() 50 … position_.SetContextAndCallbacks(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallback() 75 position_.SetPosition(position.GetPosition()); in SetPosition() 76 position_.SetDistance(position.GetDistance()); in SetPosition() 77 position_.SetIsAngular(position.GetIsAngular()); in SetPosition() 107 return position_; in GetPosition() 122 ModelPosition position_; variable
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/ |
H A D | light.h | 29 …: type_(type), color_(color), intensity_(intensity), shadow_(shadow), position_(position), rotatio… in Light() 55 position_.SetPosition(position.GetPosition()); in SetPosition() 56 position_.SetDistance(position.GetDistance()); in SetPosition() 57 position_.SetIsAngular(position.GetIsAngular()); in SetPosition() 87 return position_; in GetPosition() 100 OHOS::Render3D::Position position_; variable
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_lite_source/ |
H A D | http_lite_source_plugin.cpp | 71 position_(0), in HttpSourcePlugin() 203 httpHandle_->GetHttpBufferRange(&position_, &downloadPos); in SetSource() 204 MEDIA_LOG_D("position_ " PUBLIC_LOG_U32 "downloadPos " PUBLIC_LOG_U32, position_, downloadPos); in SetSource() 206 while (!needExit_ && position_ == downloadPos && retryTimes < 60) { // 60 in SetSource() 208 httpHandle_->GetHttpBufferRange(&position_, &downloadPos); in SetSource() 212 if (position_ == downloadPos) { in SetSource() 295 httpHandle_->GetHttpBufferRange(&position_, &write); in Read() 297 position_, bufData->GetSize(), isEos); in Read() 326 MEDIA_LOG_E("seek to position_ " PUBLIC_LOG_U32 " failed", position_); in SeekTo() 329 position_ = static_cast<unsigned int>(offset); in SeekTo() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/file_source/ |
H A D | file_source_plugin.cpp | 73 …rcePlugin(std::move(name)), fp_(nullptr), fileSize_(0), seekable_(Seekable::SEEKABLE), position_(0) in FileSourcePlugin() 151 if (std::feof(fp_) || (fileSize_ == position_)) { in Read() 167 expectedLen = std::min(static_cast<size_t>(fileSize_ - position_), expectedLen); in Read() 170 …MEDIA_LOG_DD("buffer position " PUBLIC_LOG_U64 ", expectedLen " PUBLIC_LOG_ZU, position_, expected… in Read() 173 position_ += bufData->GetSize(); in Read() 174 …MEDIA_LOG_DD("position_: " PUBLIC_LOG_U64 ", readSize: " PUBLIC_LOG_ZU, position_, bufData->GetSiz… in Read() 198 if (!fp_ || (offset > fileSize_) || (position_ == offset)) { in SeekTo() 205 (void)std::fseek(fp_, static_cast<long int>(position_), SEEK_SET); in SeekTo() 209 position_ = offset; in SeekTo() 213 MEDIA_LOG_D("seek to position_: " PUBLIC_LOG_U64 " success", position_); in SeekTo() [all …]
|
H A D | file_fd_source_plugin.cpp | 96 expectedLen = std::min(static_cast<size_t>(size_ + offset_ - position_), expectedLen); in Read() 98 …MEDIA_LOG_DD("buffer position " PUBLIC_LOG_U64 ", expectedLen " PUBLIC_LOG_ZU, position_, expected… in Read() 101 position_ += bufData->GetSize(); in Read() 102 …MEDIA_LOG_DD("position_: " PUBLIC_LOG_U64 ", readSize: " PUBLIC_LOG_ZU, position_, bufData->GetSiz… in Read() 129 position_ = offset + static_cast<uint64_t>(offset_); in SeekTo() 164 position_ = offset_; in ParseUriInfo()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/ |
H A D | file_source_plugin.cpp | 83 …rcePlugin(std::move(name)), fp_(nullptr), fileSize_(0), seekable_(Seekable::SEEKABLE), position_(0) in FileSourcePlugin() 168 if (std::feof(fp_) || (fileSize_ == position_)) { in Read() 187 expectedLen = std::min(static_cast<size_t>(fileSize_ - position_), expectedLen); in Read() 190 …MEDIA_LOG_DD("buffer position " PUBLIC_LOG_U64 ", expectedLen " PUBLIC_LOG_ZU, position_, expected… in Read() 198 position_ += bufData->GetSize(); in Read() 199 …MEDIA_LOG_DD("position_: " PUBLIC_LOG_U64 ", readSize: " PUBLIC_LOG_ZU, position_, bufData->GetSiz… in Read() 223 if (!fp_ || (offset > fileSize_) || (position_ == offset)) { in SeekTo() 230 (void)std::fseek(fp_, static_cast<long int>(position_), SEEK_SET); in SeekTo() 234 position_ = offset; in SeekTo() 238 MEDIA_LOG_D("seek to position_: " PUBLIC_LOG_U64 " success", position_); in SeekTo() [all …]
|
H A D | file_fd_source_plugin.cpp | 180 if (static_cast<uint64_t>(offsetCur) != position_) { in ReadOfflineFile() 182 offsetCur, position_.load()); in ReadOfflineFile() 191 position_ += static_cast<uint64_t>(size); in ReadOfflineFile() 194 position_.load(), buffer->GetMemory()->GetSize()); in ReadOfflineFile() 219 (GetLastSize(position_) > static_cast<int64_t>(expectedLen))) { in ReadOnlineFile() 242 position_ += static_cast<uint64_t>(size); in ReadOnlineFile() 268 position_ = offset + static_cast<uint64_t>(offset_); in SeekToOfflineFile() 278 position_ = offset + static_cast<uint64_t>(offset_); in SeekToOnlineFile() 299 position_ = offset + static_cast<uint64_t>(offset_); in SeekToOnlineFile() 300 cachePosition_ = position_.load(); in SeekToOnlineFile() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/data_source/ |
H A D | media_data_source_test_seekable.cpp | 73 position_ = 0; in Reset() 81 if (pos != position_) { in ReadAt() 83 position_ = pos; in ReadAt() 87 if (position_ >= fixedLen_) { in ReadAt() 98 realLength = static_cast<int32_t>(fixedLen_ - position_); in ReadAt() 101 position_ += realLength; in ReadAt()
|
/ohos5.0/foundation/multimedia/av_session/frameworks/common/src/ |
H A D | avplayback_state.cpp | 29 parcel.WriteInt64(position_.elapsedTime_) && in Marshalling() 30 parcel.WriteInt64(position_.updateTime_) && in Marshalling() 55 !parcel.ReadInt64(result->position_.elapsedTime_) || in Unmarshalling() 56 !parcel.ReadInt64(result->position_.updateTime_) || in Unmarshalling() 83 position_.elapsedTime_ >= 0 && in IsValid() 84 position_.updateTime_ >= 0 && in IsValid() 107 position_ = position; in SetPosition() 188 return position_; in GetPosition() 292 to.position_ = from.position_; in ClonePosition()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_chart.cpp | 54 position_ = 0; in SetChartAttrDatasets() 434 position_ = lineData_[seriesNum_].first; in CallSpecializedMethod() 449 lineData_[seriesNum_].first = position_; in CallSpecializedMethod() 498 position_ = position_ + 1; in UpdateChartData() 502 if (position_ > chartOptions_.GetXAxis().max || position_ < chartOptions_.GetXAxis().min) { in UpdateChartData() 507 position_ = chartOptions_.GetXAxis().min; in UpdateChartData() 508 Point coor = Point(position_, coorY); in UpdateChartData() 514 data[seriesNum_].ReplaceData(position_, line); in UpdateChartData() 516 data[seriesNum_].SetHeadPointIndex(position_); in UpdateChartData() 518 Point coor = Point(position_, coorY); in UpdateChartData() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_steps_interpolator.cpp | 26 : steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator() 30 : RSInterpolator(id), steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator() 43 if (!(parcel.WriteInt32(steps_) && parcel.WriteInt32(static_cast<int32_t>(position_)))) { in Marshalling() 69 if (position_ == StepsCurvePosition::START) { in InterpolateImpl()
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | screen_group_info.cpp | 26 size_t size = position_.size(); in Marshalling() 34 if (!parcel.WriteInt32(position_[i].posX_) || !parcel.WriteInt32(position_[i].posY_)) { in Marshalling() 73 position_.push_back(point); in InnerUnmarshalling()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_encoder.cpp | 408 if (position_ < samples) { in Get4SubbandSamplingPoint() 417 position_ = BUFFER_SIZE - VALUE_40; in Get4SubbandSamplingPoint() 421 position_ -= VALUE_8; in Get4SubbandSamplingPoint() 446 return position_; in Get4SubbandSamplingPoint() 454 if (position_ % VALUE_16 == VALUE_8) { in Get8SubbandSamplingPointInternal() 455 position_ -= VALUE_8; in Get8SubbandSamplingPointInternal() 491 position_ -= VALUE_16; in Get8SubbandSamplingPoint16() 542 position_ -= VALUE_8; in Get8SubbandSamplingPoint8() 572 if (position_ < *samples) { in Get8SubbandSamplingPoint() 581 position_ = BUFFER_SIZE - VALUE_72; in Get8SubbandSamplingPoint() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_analog_clock.cpp | 44 hand->position_ = position; in SetHandImage() 86 hand->position_ = position; in SetHandLine() 109 return hourHand_.position_; in GetHandPosition() 111 return minuteHand_.position_; in GetHandPosition() 113 return secondHand_.position_; in GetHandPosition() 242 int16_t left = hand.position_.x + current.GetLeft(); in CalculateRedrawArea() 244 int16_t top = hand.position_.y + current.GetTop(); in CalculateRedrawArea() 298 curCenter.x = hand.position_.x + hand.center_.x + rect.GetLeft(); in DrawHandLine() 299 curCenter.y = hand.position_.y + hand.center_.y + rect.GetTop(); in DrawHandLine()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/ |
H A D | render_xcomponent.cpp | 261 position_ = GetGlobalOffset(); in Paint() 263 prePosition_ = position_; in Paint() 266 NativeXComponentOffset(position_.GetX(), position_.GetY()); in Paint() 282 if ((!NearEqual(prePosition_.GetX(), position_.GetX())) || in Paint() 283 (!NearEqual(prePosition_.GetY(), position_.GetY()))) { in Paint() 284 prePosition_ = position_; in Paint() 297 NativeXComponentOffset(position_.GetX(), position_.GetY()); in Paint() 313 position_ = GetGlobalOffset(); in OnGlobalPositionChanged() 314 xcomponentPositionChangeEvent_(position_.GetX(), position_.GetY()); in OnGlobalPositionChanged()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_content_transition_proxy.h | 54 return position_; in GetPosition() 59 position_ = position; in SetPosition() 92 float position_ = 0.0f; variable
|