Searched refs:ratingScore (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rating/ |
H A D | rating_content_modifier_test_ng.cpp | 124 ratingScore = DEFAULT_RATING_SCORE; 126 EXPECT_EQ(ratingScore, RATING_SCORE); 205 ratingScore = DEFAULT_RATING_SCORE; 244 ratingScore = DEFAULT_RATING_SCORE; 246 EXPECT_EQ(ratingScore, RATING_SCORE_4); 283 ratingScore = DEFAULT_RATING_SCORE; 285 EXPECT_EQ(ratingScore, RATING_SCORE_5); 322 ratingScore = DEFAULT_RATING_SCORE; 363 EXPECT_EQ(ratingScore, RATING_SCORE); 558 EXPECT_EQ(ratingScore, RATING_SCORE); [all …]
|
H A D | rating_test_ng.cpp | 248 … onChange = [&unknownRatingScore](const std::string& ratingScore) { unknownRatingScore = ratingSco… in __anon88eeb57f0302() argument 767 auto onChange = [](const std::string& ratingScore) { EXPECT_EQ(ratingScore, "1"); }; in __anon88eeb57f0502() argument 1390 double ratingScore = DEFAULT_RATING_SCORE; variable 1394 ratingScore = DEFAULT_RATING_SCORE; 1396 EXPECT_EQ(ratingScore, RATING_SCORE); 1433 ratingScore = DEFAULT_RATING_SCORE; 1472 ratingScore = DEFAULT_RATING_SCORE; 1474 EXPECT_EQ(ratingScore, RATING_SCORE_4); 1511 ratingScore = DEFAULT_RATING_SCORE; 1513 EXPECT_EQ(ratingScore, RATING_SCORE_5); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/ |
H A D | rating_pattern.cpp | 315 ratingScore = ratingScore > starNum ? starNum : ratingScore; in RecalculatedRatingScoreBasedOnEventPoint() 316 ratingScore = (ratingScore < 0.0) ? 0.0 : ratingScore; in RecalculatedRatingScoreBasedOnEventPoint() 503 …fmax((NearEqual(ratingScore, std::round(ratingScore)) ? ratingScore : ceil(ratingScore)) - 1, 0.0); in GetInnerFocusPaintRect() 534 focusRatingScore_ = ratingScore; in PaintFocusState() 557 … ratingScore = reverse ? fmin(ratingScore + stepSize, starNum) : fmax(ratingScore - stepSize, 0.0); in OnKeyEvent() 558 PaintFocusState(ratingScore); in OnKeyEvent() 562 … ratingScore = reverse ? fmax(ratingScore - stepSize, 0.0) : fmin(ratingScore + stepSize, starNum); in OnKeyEvent() 567 ratingScore = 1; in OnKeyEvent() 572 ratingScore = starNum; in OnKeyEvent() 624 UpdateRatingScore(ratingScore); in SetRatingScore() [all …]
|
H A D | rating_pattern.h | 102 void UpdateRatingScore(double ratingScore); 133 void PaintFocusState(double ratingScore);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rating/ |
H A D | rating_component.h | 69 void SetRatingScore(double ratingScore) in SetRatingScore() argument 71 ratingScore_ = ratingScore; in SetRatingScore()
|