/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/ |
H A D | scroll_event_test_ng.cpp | 683 float delta = 1 - halfInterval; in HWTEST_F() local 684 ScrollBy(0, delta); in HWTEST_F() 685 EXPECT_TRUE(Position(delta)); in HWTEST_F() 686 EXPECT_TRUE(TickPosition(delta / TICK)); in HWTEST_F() 693 delta = -halfInterval; in HWTEST_F() 694 ScrollBy(0, delta); in HWTEST_F() 695 EXPECT_TRUE(Position(delta)); in HWTEST_F() 696 EXPECT_TRUE(TickPosition((delta - intervalSize) / TICK)); in HWTEST_F() 707 * @tc.steps: step5. Scroll up a little delta in HWTEST_F() 713 delta in HWTEST_F() 768 float delta = -1; HWTEST_F() local 831 float delta = -1; HWTEST_F() local 923 float delta = 1 - firstPagination / 2; HWTEST_F() local 986 float delta = 1 - (firstPagination - SCROLL_HEIGHT) / 2; HWTEST_F() local 1036 float delta = -24; HWTEST_F() local 1106 float delta = 1 - firstPagination / 2; HWTEST_F() local 1170 float delta = -firstPagination / 2; HWTEST_F() local 1365 float delta = 1 - halfHeight; HWTEST_F() local 1447 float delta = -halfInterval; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_scroll.cpp | 161 bool RenderScroll::UpdateOffset(Offset& delta, int32_t source) in UpdateOffset() argument 171 if (delta.IsZero()) { in UpdateOffset() 174 if (IsAtTop() && HandleRefreshEffect(-delta.GetY(), source, currentOffset_.GetY())) { in UpdateOffset() 177 if ((IsAtBottom() && GetMainOffset(delta) > 0.0) || (IsAtTop() && GetMainOffset(delta) < 0.0)) { in UpdateOffset() 185 if (!ScrollPageCheck(delta, source)) { in UpdateOffset() 189 if (scrollable_->RelatedScrollEventDoing(delta)) { in UpdateOffset() 197 currentOffset_ += delta; in UpdateOffset() 198 currentDeltaInMain_ += GetMainOffset(delta); in UpdateOffset() 203 currentOffset_ = currentOffset_ - delta; in UpdateOffset() 271 CanScrollVertically(const Offset& delta) CanScrollVertically() argument 309 ScrollPageCheck(Offset& delta, int32_t source) ScrollPageCheck() argument 337 ScrollPageByChild(Offset& delta, int32_t source) ScrollPageByChild() argument 374 AdjustOffset(Offset& delta, int32_t source) AdjustOffset() argument 411 CalculateOffsetByFriction(double extentOffset, double delta, double friction) CalculateOffsetByFriction() argument 720 Offset delta; DoJump() local 973 Offset delta; HandleRotate() local [all...] |
H A D | render_scroll.h | 51 static double CalculateOffsetByFriction(double extentOffset, double delta, double friction); 69 bool UpdateOffset(Offset& delta, int32_t source); 70 bool ScrollPageByChild(Offset& delta, int32_t source) override; 103 bool CanScrollVertically(const Offset& delta); 104 bool ScrollPageCheck(Offset& delta, int32_t source); 313 void AdjustOffset(Offset& delta, int32_t source);
|
/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/ |
H A D | rasterizer_cells_antialias.cpp | 171 int32_t delta, deltayMask, first; in RenderHorizonline() local 184 delta = polySubpixelMaskY2 - polySubpixelMaskY1; in RenderHorizonline() 185 currCell_.cover += delta; in RenderHorizonline() 186 currCell_.area += (submaskFlagsX1 + submaskFlagsX2) * delta; in RenderHorizonline() 201 delta = static_cast<int32_t>(deltayMask / dx); in RenderHorizonline() 205 delta--; in RenderHorizonline() 208 currCell_.area += (submaskFlagsX1 + first) * delta; in RenderHorizonline() 209 currCell_.cover += delta; in RenderHorizonline() 212 polySubpixelMaskY1 += delta; in RenderHorizonline() 214 /* delta_subpixel x( 0 to POLY_SUBPIXEL_SCALE) to ( delta_subpixel_scale_y + delta) */ in RenderHorizonline() 283 int32_t modDyMask, delta, first, increase; LineOperate() local 334 RenderVerticalLine(int32_t& x1, int32_t& ex1, int64_t& dy, int32_t& first, int32_t& increase, int32_t& xFrom, int32_t& submaskFlagsY1, int32_t& submaskFlagsY2, int32_t& ey1, int32_t& ey2, int32_t& delta) RenderVerticalLine() argument 374 RenderObliqueLine(int64_t& dx, int64_t& dy, int32_t& first, int32_t& increase, int32_t& xFrom, int64_t& deltaxMask, int32_t& ey1, int32_t& ey2, int32_t& delta) RenderObliqueLine() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | bilateral_spring_adapter.cpp | 20 double BilateralSpringAdapter::ResetControl(int32_t delta) in ResetControl() argument 29 if (delta < 0) { in ResetControl() 31 if (index + delta < 0) { in ResetControl() 34 srcNode = nodes_.at(index + delta); in ResetControl() 40 if (index + delta >= nodeSize) { in ResetControl() 43 srcNode = nodes_.at(index + delta); in ResetControl() 89 void BilateralSpringAdapter::SetDeltaValue(double delta) in SetDeltaValue() argument 97 node->SetDeltaValue(delta); in SetDeltaValue() 103 node->SetDeltaValue(delta); in SetDeltaValue()
|
H A D | param_transfer.h | 34 // delta the distance between current index and control index 35 virtual double Transfer(double value, int32_t delta) = 0; 59 double Transfer(double value, int32_t delta) override 61 return value - value_ * delta; 73 double Transfer(double value, int32_t delta) override 75 return std::pow(delta + 1, -value_ * CURVE_COEFFICIENT) * value;
|
H A D | chain_animation.cpp | 46 void ChainAnimationNode::SetDelta(float delta, float spaceDelta, float duration) in SetDelta() argument 51 curPosition_ = std::clamp(curPosition_ + delta, minSpace_ - spaceDelta, maxSpace_ - spaceDelta); in SetDelta() 56 float ChainAnimationNode::GetDeltaPredict(float delta, float duration) in GetDeltaPredict() argument 60 curPosition = std::clamp(curPosition + delta, minSpace_, maxSpace_); in GetDeltaPredict() 85 void ChainAnimation::SetDelta(float delta, float overOffset) in SetDelta() argument 95 nodes_[i]->SetDelta(delta * factor, spaceDelta, static_cast<float>(duration)); in SetDelta() 96 nodes_[-i]->SetDelta(-delta * factor, spaceDelta, static_cast<float>(duration)); in SetDelta() 102 nodes_[i]->SetDelta(delta * factor, -spaceDelta, static_cast<float>(duration)); in SetDelta() 103 nodes_[-i]->SetDelta(-delta * factor, spaceDelta, static_cast<float>(duration)); in SetDelta() 108 if (!scheduler_->IsActive() && !NearZero(delta)) { in SetDelta() 148 GetValuePredict(int32_t index, float delta) GetValuePredict() argument 175 float delta = GetValue(index); SetControlIndex() local [all...] |
H A D | bilateral_spring_node.cpp | 64 int64_t delta = static_cast<int64_t>(context->GetTimeFromExternalTimer()) - static_cast<int64_t>(startTime_); in OnAnimation() local 65 spring_->OnTimestampChanged(static_cast<double>(delta * 1.0) / static_cast<double>(NANOS_TO_MILLS), 0.0f, false); in OnAnimation() 128 double delta = springValue - lastTheoryValue_; in SimpleFixedValue() local 131 if (GreatOrEqual(std::abs(delta), 1.0)) { in SimpleFixedValue() 136 if (delta > 0.0) { in SimpleFixedValue() 144 void BilateralSpringNode::SetDeltaValue(double delta) in SetDeltaValue() argument 146 SimpleSpringNode::SetDeltaValue(delta); in SetDeltaValue()
|
H A D | simple_spring_chain.cpp | 66 void SimpleSpringChain::SetDeltaValue(double delta) in SetDeltaValue() argument 71 node->SetDeltaValue(delta); in SetDeltaValue() 127 int32_t delta = std::abs(index - controlNode->GetIndex()); in SetParams() local 128 double transferStiffness = stiffnessTransfer_->Transfer(controlStiffness_, delta); in SetParams() 129 double transferDamping = dampingTransfer_->Transfer(controlDamping_, delta); in SetParams()
|
H A D | bilateral_spring_adapter.h | 33 double ResetControl(int32_t delta); 37 void SetDeltaValue(double delta) override;
|
H A D | chain_animation.h | 40 void SetDelta(float delta, float spaceDelta, float duration); 42 float GetDeltaPredict(float delta, float duration); 72 void SetDelta(float delta, float overOffset); 74 float GetValuePredict(int32_t index, float delta);
|
/foundation/communication/dsoftbus/tests/core/connection/manager/ |
H A D | connection_flow_control_test.cpp | 69 uint64_t delta = SoftBusGetSysTimeMs() - now;
in HWTEST_F() local 72 EXPECT_TRUE(delta < 10);
in HWTEST_F() 101 uint64_t delta = SoftBusGetSysTimeMs() - startTimestamp;
local 104 EXPECT_TRUE(delta < 10);
109 delta = SoftBusGetSysTimeMs() - startTimestamp;
112 EXPECT_TRUE(delta < 10);
116 delta = SoftBusGetSysTimeMs() - startTimestamp;
119 EXPECT_TRUE(delta > 10);
128 delta = SoftBusGetSysTimeMs() - startTimestamp;
131 EXPECT_TRUE(delta < 1 [all...] |
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | related_node.h | 29 virtual void OnRelatedPreScroll(const Offset& delta, Offset& consumed) {} in OnRelatedPreScroll() argument 30 virtual void OnRelatedScroll(const Offset& delta, Offset& consumed) {} in OnRelatedScroll() argument 42 bool RelatedScrollEventPrepare(const Offset& delta); 43 bool RelatedScrollEventDoing(const Offset& delta);
|
H A D | related_node.cpp | 51 bool RelatedChild::RelatedScrollEventPrepare(const Offset& delta) in RelatedScrollEventPrepare() argument 58 parent->OnRelatedPreScroll(delta, consumed); in RelatedScrollEventPrepare() 65 bool RelatedChild::RelatedScrollEventDoing(const Offset& delta) in RelatedScrollEventDoing() argument 72 parent->OnRelatedScroll(delta, consumed); in RelatedScrollEventDoing()
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/buffer_calibration/ |
H A D | pts_calibration_strategy.h | 35 void SetStartTimeDiffThreshold(int64_t delta) in SetStartTimeDiffThreshold() argument 37 startTimeDiffThreshold_ = delta; in SetStartTimeDiffThreshold() 40 void SetPtsDiffThreshold(int64_t delta) in SetPtsDiffThreshold() argument 42 ptsDiffThreshold_ = delta; in SetPtsDiffThreshold()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/opentype_parser/ |
H A D | cmap_parser.cpp | 173 int32_t delta = idDeltas[i].Get(); in ParseFormat4() local 174 ParseFormat4NoOffset(delta, start, end); in ParseFormat4() 187 void CmapParser::ParseFormat4NoOffset(int32_t delta, uint32_t start, uint32_t end) in ParseFormat4NoOffset() argument 189 if (((static_cast<uint32_t>(delta) + end) & 0xffff) > end - start) { in ParseFormat4NoOffset() 190 ranges_.AddRange({start, end + 1, delta}); in ParseFormat4NoOffset() 193 if ((j + static_cast<uint32_t>(delta)) & 0xffff) { in ParseFormat4NoOffset() 194 ranges_.AddRange({j, j + 1, delta}); in ParseFormat4NoOffset() 215 int32_t delta = static_cast<int32_t>(scc.Get()); in ParseFormat12() local 216 delta -= static_cast<int32_t>(sgi.Get()); in ParseFormat12() 217 ranges_.AddRange({scc.Get(), ecc.Get() + 1, delta}); in ParseFormat12() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll_bar/ |
H A D | scroll_bar_event_test_ng.cpp | 92 float delta = SCROLL_BAR_CHILD_HEIGHT; in HWTEST_F() local 93 info.SetMainDelta(-delta); in HWTEST_F() 103 info.SetMainDelta(delta); in HWTEST_F() 106 EXPECT_EQ(pattern_->GetCurrentPosition(), delta); in HWTEST_F() 107 float expectOffset = delta * controlDistance / scrollableDistance; in HWTEST_F() 116 EXPECT_EQ(pattern_->GetCurrentPosition(), delta * 2); in HWTEST_F() 123 info.SetMainDelta(-delta); in HWTEST_F() 126 EXPECT_EQ(pattern_->GetCurrentPosition(), delta); in HWTEST_F() 134 EXPECT_EQ(pattern_->GetCurrentPosition(), delta); in HWTEST_F() 165 float delta in HWTEST_F() local 233 float delta = SCROLL_BAR_CHILD_HEIGHT; HWTEST_F() local 292 float delta = -SCROLL_BAR_CHILD_HEIGHT; HWTEST_F() local 334 float delta = SCROLL_BAR_CHILD_HEIGHT; HWTEST_F() local 370 float delta = SCROLL_BAR_CHILD_HEIGHT; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/ |
H A D | render_navigation_container.cpp | 48 void RenderNavigationContainer::OnRelatedPreScroll(const Offset& delta, Offset& consumed) in OnRelatedPreScroll() argument 51 collapsingNavigationBar_->OnRelatedPreScroll(delta, consumed); in OnRelatedPreScroll() 55 void RenderNavigationContainer::OnRelatedScroll(const Offset& delta, Offset& consumed) in OnRelatedScroll() argument 58 collapsingNavigationBar_->OnRelatedScroll(delta, consumed); in OnRelatedScroll()
|
/foundation/arkui/ace_engine/test/mock/core/animation/ |
H A D | mock_animation_proxy.h | 73 T delta = (it->second.endValue_ - it->second.stagingValue_) / remainingTicks; in Next() local 74 it->second.stagingValue_ += delta; in Next() 77 void ForceUpdate(const WeakPtr<AnimatableProperty<T>>& ptr, T delta) in ForceUpdate() argument 83 it->second.stagingValue_ += delta; in ForceUpdate()
|
/foundation/communication/dsoftbus/core/connection/br/src/ |
H A D | softbus_conn_br_connection.c | 34 int32_t delta; member 390 static int32_t NotifyUpdateConnectionRc(uint32_t connectionId, int32_t delta) in NotifyUpdateConnectionRc() argument 396 CONN_LOGI(CONN_BR, "lock failed, connId=%{public}u, delta=%{public}d", connectionId, delta); in NotifyUpdateConnectionRc() 400 connection->connectionRc += delta; in NotifyUpdateConnectionRc() 401 CONN_LOGI(CONN_BR, "connId=%{public}u, side=%{public}d, delta=%{public}d, newRef=%{public}d", connectionId, in NotifyUpdateConnectionRc() 402 connection->side, delta, connection->connectionRc); in NotifyUpdateConnectionRc() 411 .flag = delta >= 0 ? CONN_HIGH : CONN_LOW, in NotifyUpdateConnectionRc() 414 .delta = delta, in NotifyUpdateConnectionRc() 442 BrUpdateConnectionRc(uint32_t connectionId, int32_t delta) BrUpdateConnectionRc() argument 471 ConnBrUpdateConnectionRc(ConnBrConnection *connection, int32_t delta) ConnBrUpdateConnectionRc() argument 512 NotifyReferenceRequest(uint32_t connectionId, int32_t delta, int32_t peerRc) NotifyReferenceRequest() argument 571 int32_t delta = referenceCount->delta; BrOnReferenceRequest() local 611 int32_t delta = 0; ConnBrOnReferenceRequest() local [all...] |
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_connection.c | 64 int32_t delta; member 71 int32_t delta; member 309 if (rcMsgPara->delta >= 0) { in ConnPackCtlMsgRcSendDeltaData() 318 .delta = rcMsgPara->delta, in ConnPackCtlMsgRcSendDeltaData() 337 static bool NeedProccessOccupy(ConnBleConnection *connection, int32_t delta, uint16_t challengeCode, in NeedProccessOccupy() argument 344 if (delta > 0 || !isOccupied) { in NeedProccessOccupy() 352 referenceContext->delta = delta; in NeedProccessOccupy() 367 int32_t ConnBleUpdateConnectionRc(ConnBleConnection *connection, uint16_t challengeCode, int32_t delta) in ConnBleUpdateConnectionRc() argument 424 int32_t delta = referenceCount->delta; BleOnReferenceRequest() local 471 int32_t delta = 0; ConnBleOnReferenceRequest() local [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/ |
H A D | cast_stream_manager_server.cpp | 358 int delta; in ProcessActionFastForward() local 359 RETURN_FALSE_IF_PARSE_NUMBER_WRONG(delta, data, KEY_DELTA); in ProcessActionFastForward() 360 CLOGI("delta:%{public}d", delta); in ProcessActionFastForward() 361 return player->FastForward(delta); in ProcessActionFastForward() 371 int delta; in ProcessActionFastRewind() local 372 RETURN_FALSE_IF_PARSE_NUMBER_WRONG(delta, data, KEY_DELTA); in ProcessActionFastRewind() 373 CLOGI("delta:%{public}d", delta); in ProcessActionFastRewind() 374 return player->FastRewind(delta); in ProcessActionFastRewind() [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/ |
H A D | cast_stream_manager_server.cpp | 358 int delta; in ProcessActionFastForward() local 359 RETURN_FALSE_IF_PARSE_NUMBER_WRONG(delta, data, KEY_DELTA); in ProcessActionFastForward() 360 CLOGI("delta:%{public}d", delta); in ProcessActionFastForward() 361 return player->FastForward(delta); in ProcessActionFastForward() 371 int delta; in ProcessActionFastRewind() local 372 RETURN_FALSE_IF_PARSE_NUMBER_WRONG(delta, data, KEY_DELTA); in ProcessActionFastRewind() 373 CLOGI("delta:%{public}d", delta); in ProcessActionFastRewind() 374 return player->FastRewind(delta); in ProcessActionFastRewind() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_color_picker.cpp | 159 double delta;
in RGB2HSV() local 172 delta = maxComponent - minComponent;
in RGB2HSV() 177 s = delta / maxComponent;
in RGB2HSV() 183 if (delta == 0) {
in RGB2HSV() 187 h = 60 * (g - b) / delta + 0; // 60 is used to calculate color's hue, ranging between 0 and 360.
in RGB2HSV() 189 h = 60 * (g - b) / delta + 360; // 60,360 is used to calculate color's hue, ranging between 0 and 360.
in RGB2HSV() 191 h = 60 * (b - r) / delta + 120; // 60,120 is used to calculate color's hue, ranging between 0 and 360.
in RGB2HSV() 193 h = 60 * (r - g) / delta + 240; // 60,240 is used to calculate color's hue, ranging between 0 and 360.
in RGB2HSV()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_drag_manager.h | 57 ScaleResult ScaleAxisNearItem(int32_t index, const RectF& rect, const OffsetF& delta, Axis axis); 58 void ScaleDiagonalItem(int32_t index, const RectF& rect, const OffsetF& delta); 62 int32_t ScaleNearItem(int32_t index, const RectF& rect, const OffsetF& delta);
|