Home
last modified time | relevance | path

Searched refs:timerText (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/texttimer/
H A Drender_texttimer.cpp117 std::string timerText = Localization::GetInstance()->FormatDuration(elapsedTime, format_); in UpdateValue() local
124 if (textComponent_->GetData() == timerText) { in UpdateValue()
128 textComponent_->SetData(timerText); in UpdateValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/
H A Dtext_timer_pattern.cpp251 std::string timerText = Localization::GetInstance()->FormatDuration(elapsedTime, GetFormat()); in UpdateTextTimer() local
252 if (timerText.empty()) { in UpdateTextTimer()
253 timerText = Localization::GetInstance()->FormatDuration(elapsedTime, DEFAULT_FORMAT); in UpdateTextTimer()
255 textLayoutProperty->UpdateContent(timerText); // Update time text. in UpdateTextTimer()