Home
last modified time | relevance | path

Searched refs:toIndex (Results 1 – 25 of 54) sorted by relevance

123

/ohos5.0/commonlibrary/ets_utils/js_util_module/container/vector/
H A Djs_vector.ts220 removeByRange(fromIndex: number, toIndex: number): void {
221 if (fromIndex >= toIndex) {
224 if (fromIndex >= this.elementNum || fromIndex < 0 || toIndex < 0) {
227 toIndex = toIndex >= this.elementNum ? this.elementNum : toIndex;
229 for (let j = toIndex; j < this.elementNum; j++) {
233 this.elementNum -= toIndex - fromIndex;
296 subVector(fromIndex: number, toIndex: number): Vector<T> {
297 if (fromIndex >= toIndex) {
300 if (fromIndex >= this.elementNum || fromIndex < 0 || toIndex < 0) {
303 toIndex = toIndex >= this.elementNum - 1 ? this.elementNum - 1 : toIndex;
[all …]
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/arraylist/
H A Djs_arraylist.ts184 removeByRange(fromIndex: number, toIndex: number): void {
187 errorUtil.checkTypeError('toIndex', 'Integer', toIndex);
189 (toIndex > this.elementNum) ? this.elementNum - 1 : toIndex - 1);
190 errorUtil.checkRangeError('toIndex', toIndex, 0, this.elementNum);
192 for (let j: number = toIndex; j < this.elementNum; j++) {
196 this.elementNum -= toIndex - fromIndex;
259 subArrayList(fromIndex: number, toIndex: number): ArrayList<T> {
262 errorUtil.checkTypeError('toIndex', 'Integer', toIndex);
264 (toIndex > this.elementNum) ? this.elementNum - 1 : toIndex - 1);
265 errorUtil.checkRangeError('toIndex', toIndex, 0, this.elementNum);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.cpp911 int32_t toIndex = 0; in SpringItems() local
1068 int32_t toIndex = 0; in MoveItems() local
1273 targetIndex_ = toIndex; in AddSwipeToTranslateListener()
1274 nextIndex_ = toIndex; in AddSwipeToTranslateListener()
1326 targetIndex_ = toIndex; in AddSwipeToIndicatorListener()
1327 nextIndex_ = toIndex; in AddSwipeToIndicatorListener()
1623 if (toIndex < 0 || toIndex >= itemCount_) { in UpdateScrollPosition()
1628 nextIndex_ = toIndex; in UpdateScrollPosition()
2494 targetIndex_ = toIndex; in MoveIndicator()
2948 targetIndex_ = toIndex; in StartIndicatorAnimation()
[all …]
H A Drender_swiper.h215 void MoveIndicator(int32_t toIndex, double offset, bool isAuto = false);
222 void StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, bool isLoop = false);
241 void UpdateIndicatorOffset(int32_t fromIndex, int32_t toIndex, double value);
490 void AddSwipeToTranslateListener(int32_t fromIndex, int32_t toIndex);
491 void AddSwipeToOpacityListener(int32_t fromIndex, int32_t toIndex);
492 void AddSwipeToIndicatorListener(int32_t fromIndex, int32_t toIndex);
493 double CalculateEndOffset(int32_t fromIndex, int32_t toIndex, bool reverse);
494 void DoSwipeToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
495 void RedoSwipeToAnimation(int32_t toIndex, bool reverse);
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dcontainer_base.cpp202 ChildMovedInfo ContainerBase::MoveInternal(SizeType fromIndex, SizeType toIndex) in MoveInternal() argument
209 toIndex = BASE_NS::Math::min(toIndex, size - 1); in MoveInternal()
211 if (fromIndex == toIndex) { in MoveInternal()
214 if (fromIndex > toIndex) { in MoveInternal()
216 const auto last = children_.rbegin() + (size - toIndex); in MoveInternal()
220 const auto last = children_.begin() + toIndex + 1; in MoveInternal()
223 return { child, fromIndex, toIndex, parent_ }; in MoveInternal()
226 bool ContainerBase::Move(SizeType fromIndex, SizeType toIndex) in Move() argument
231 info = MoveInternal(fromIndex, toIndex); in Move()
242 bool ContainerBase::Move(const IObject::Ptr& child, SizeType toIndex) in Move() argument
[all …]
H A Dcontainer.cpp124 IContainer::SizeType toIndex = 0; in Replace() local
139 toIndex = index; in Replace()
176 toIndex = children_.size(); in Replace()
184 ChildChangedInfo addedInfo { added, toIndex, parent_ }; in Replace()
185 ChildChangedInfo removedInfo { removed, toIndex, parent_ }; in Replace()
210 Invoke<IOnChildMoved>(OnMoved(), ChildMovedInfo { moved, fromIndex, toIndex, parent_ }); in Replace()
H A Dcontainer_base.h50 bool Move(SizeType fromIndex, SizeType toIndex) override;
51 bool Move(const IObject::Ptr& child, SizeType toIndex) override;
82 ChildMovedInfo MoveInternal(SizeType fromIndex, SizeType toIndex);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_tabs_function.cpp55 auto toIndex = 0; in GetToIndex() local
57 toIndex = proxy_->GetToIndex(); in GetToIndex()
59 auto toRef = JSRef<JSVal>::Make(JSVal(ToJSValue(toIndex))); in GetToIndex()
89 JSRef<JSVal> JsTabsFunction::Execute(int32_t fromIndex, int32_t toIndex) in Execute() argument
92 JSRef<JSVal> to = JSRef<JSVal>::Make(ToJSValue(toIndex)); in Execute()
H A Djs_tabs_function.h37 JSRef<JSVal> Execute(int32_t fromIndex, int32_t toIndex);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.h179 void InitStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
180 void AddStepperToTranslateListener(int32_t fromIndex, int32_t toIndex);
181 void AddStepperToOpacityListener(int32_t fromIndex, int32_t toIndex);
182 void AddStepperToStopListener(int32_t fromIndex, int32_t toIndex);
183 void DoStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
H A Drender_stepper.cpp689 int32_t toIndex = GetPrevIndex(); in StepperPrev() local
690 FireBackEvent(currentIndex_, toIndex); in StepperPrev()
691 StepperTo(toIndex, false); in StepperPrev()
696 int32_t toIndex = GetNextIndex(); in StepperNext() local
697 FireNextEvent(currentIndex_, toIndex); in StepperNext()
698 StepperTo(toIndex, false); in StepperNext()
717 void RenderStepper::DoStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) in DoStepperToAnimation() argument
730 stepperAnimationController_->SetAnimationStopCallback([weak, fromIndex, toIndex]() { in DoStepperToAnimation()
741 stepperAnimationController_->PlayStepperToAnimation(fromIndex, toIndex, reverse); in DoStepperToAnimation()
H A Dstepper_animation_controller.cpp224 void StepperAnimationController::PlayStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool re… in PlayStepperToAnimation() argument
241 if (toIndex > fromIndex) { in PlayStepperToAnimation()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dstaggered_animation_state.cpp138 auto toIndex = info.to; in ChildMoved() local
141 toIndex = BASE_NS::Math::min(toIndex, size - 1); in ChildMoved()
142 if (fromIndex == toIndex) { in ChildMoved()
146 if (fromIndex > toIndex) { in ChildMoved()
148 …const auto last = children_.rbegin() + static_cast<SegmentVector::difference_type>(size - toIndex); in ChildMoved()
152 … const auto last = children_.begin() + static_cast<SegmentVector::difference_type>(toIndex + 1); in ChildMoved()
H A Danimation.h272 bool Move(SizeType fromIndex, SizeType toIndex) override in META_BEGIN_NAMESPACE()
274 return GetContainer().Move(fromIndex, toIndex); in META_BEGIN_NAMESPACE()
276 bool Move(const IObject::Ptr& child, SizeType toIndex) override in META_BEGIN_NAMESPACE()
278 return GetContainer().Move(child, toIndex); in META_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject_container.h92 bool Move(IContainer::SizeType fromIndex, IContainer::SizeType toIndex) override in META_BEGIN_NAMESPACE()
94 return container_->Move(fromIndex, toIndex); in META_BEGIN_NAMESPACE()
96 bool Move(const IObject::Ptr& child, IContainer::SizeType toIndex) override in META_BEGIN_NAMESPACE()
98 return container_->Move(child, toIndex); in META_BEGIN_NAMESPACE()
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/list/
H A Djs_list.ts345 getSubList(fromIndex: number, toIndex: number): List<T> {
348 errorUtil.checkTypeError('toIndex', 'Integer', toIndex);
350 (toIndex > this.elementNum) ? this.elementNum - 1 : toIndex - 1);
351 errorUtil.checkRangeError('toIndex', toIndex, 0, this.elementNum);
353 for (let i: number = fromIndex; i < toIndex; i++) {
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_transition_proxy.h44 void SetToIndex(int32_t toIndex) in SetToIndex() argument
46 toIndex_ = toIndex; in SetToIndex()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dmetadata.cpp277 bool MetadataPropertyContainer::Move(SizeType fromIndex, SizeType toIndex) in Move() argument
279 return impl_.Move(fromIndex, toIndex); in Move()
281 bool MetadataPropertyContainer::Move(const IObject::Ptr& child, SizeType toIndex) in Move() argument
283 return impl_.Move(child, toIndex); in Move()
H A Dmetadata.h96 bool Move(SizeType fromIndex, SizeType toIndex) override; in META_BEGIN_NAMESPACE()
97 bool Move(const IObject::Ptr& child, SizeType toIndex) override; in META_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/model/
H A Dcomposite_object_provider.cpp162 size_t toIndex = CalculateIndex(provider, to.Index()); in OnMovedProviderData() local
163 if (fromIndex != -1 && toIndex != -1) { in OnMovedProviderData()
166 DataModelIndex { toIndex, to.GetDimensionPointer() }); in OnMovedProviderData()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-arraylist.md359 removeByRange(fromIndex: number, toIndex: number): void
372 | toIndex | number | 是 | 终止下标。 |
381 | 10200001 | The value of fromIndex or toIndex is out of range. |
539 subArrayList(fromIndex: number, toIndex: number): ArrayList&lt;T&gt;
552 | toIndex | number | 是 | 终止下标。 |
567 | 10200001 | The value of fromIndex or toIndex is out of range. |
H A Djs-apis-vector.md273 removeByRange(fromIndex: number, toIndex: number): void
284 | toIndex | number | 是 | 终止下标。 |
408 subVector(fromIndex: number, toIndex: number): Vector&lt;T&gt;
419 | toIndex | number | 是 | 终止下标。 |
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-compiler-and-runtime.md36 …eByRange(fromIndex: number, toIndex: number): void;<br>旧版本信息:If|类名:Vector;<br>方法or属性:removeByRange…
37 …bVector(fromIndex: number, toIndex: number): Vector\<T>;<br>旧版本信息:If|类名:Vector;<br>方法or属性:subVecto…
/ohos5.0/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp299 int32_t toIndex = frontIndex + n; in FilterSecondaryPeak() local
303 if (DeletePeaks(envelope, frontIndex, toIndex, wholeEnvelop, index) != Sensors::SUCCESS) { in FilterSecondaryPeak()
629 int32_t toIndex = lastPos[j]; in SplitLongShortEnvelope() local
633 envelopeList.demarcPos.push_back(toIndex); in SplitLongShortEnvelope()
644 envelopeList.demarcPos[envelopeList.demarcPos.size() - 1] = toIndex; in SplitLongShortEnvelope()
648 envelopeList.demarcPos.push_back(toIndex); in SplitLongShortEnvelope()
652 preIndex = toIndex; in SplitLongShortEnvelope()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drender_list.cpp473 int32_t toIndex = items_.rbegin()->first; in RecycleAllChild() local
475 return RecycleByRange(fromIndex, toIndex); in RecycleAllChild()
485 int32_t toIndex = items_.rbegin()->first; in SyncIndex() local
490 if (end > 0 && toIndex > end) { in SyncIndex()
491 RecycleByRange(end + 1, toIndex); in SyncIndex()

123