Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 627) sorted by relevance

12345678910>>...26

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
Drs_spring_model_test.cpp55 auto duration = model1->EstimateDuration(); variable
56 EXPECT_TRUE(duration != 0.0f);
61 duration = model2->EstimateDuration();
62 EXPECT_TRUE(duration != 0.0f);
67 duration = model3->EstimateDuration();
68 EXPECT_TRUE(duration != 0.0f);
87 auto duration = model1->EstimateDuration(); variable
88 EXPECT_TRUE(duration != 0.0f);
93 duration = model2->EstimateDuration();
94 EXPECT_TRUE(duration != 0.0f);
[all …]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/image-animator/05/
Dindex.js21 duration: '540ms',
27 const duration = parseInt(this.duration); constant
28 this.duration = `${duration + 540}ms`;
34 const duration = parseInt(this.duration); constant
35 this.duration = `${duration - 540}ms`;
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/image-animator/06/
Dindex.js39 const duration = framesSize * MILLIONS_PER_TICK; constant
44 duration
47 this.duration -= duration;
50 this.duration += duration;
53 this.duration = 0;
56 this.duration = 1;
59 this.duration = 'A';
/foundation/ai/ai_engine/test/performance/delay/async_process/
Dasync_process_delay_test.cpp145 double duration = static_cast<double>(g_initTotalTime) in CheckTimeInit() local
147 HILOGI("[Test][CheckTimeInit][%lf]", duration); in CheckTimeInit()
148 ASSERT_TRUE((duration > 0) && (duration <= EXCEPTED_INIT_TIME)); in CheckTimeInit()
153 double duration = static_cast<double>(g_prepareTotalTime) in CheckTimePrepare() local
155 HILOGI("[Test][CheckTimePrepare][%lf]", duration); in CheckTimePrepare()
156 ASSERT_TRUE((duration > 0) && (duration <= EXCEPTED_PREPARE_TIME)); in CheckTimePrepare()
161 double duration = static_cast<double>(g_processTotalTime) in CheckTimeAsyncProcess() local
163 HILOGI("[Test][CheckTimeAsyncProcess][%lf]", duration); in CheckTimeAsyncProcess()
164 ASSERT_TRUE((duration > 0) && (duration <= EXCEPTED_ASYNC_PROCESS_TIME)); in CheckTimeAsyncProcess()
169 double duration = static_cast<double>(g_releaseTotalTime) in CheckTimeRelease() local
[all …]
/foundation/multimedia/player_framework/test/jstest/avPlayer_ets/entry/src/main/ets/test/
DAVPlayerLocalTestH265.test.js29 duration: -1, property
61 avPlayTest = { width: 3840, height: 2160, duration: 10085 }; property
77 avPlayTest = { width: 1920, height: 1080, duration: 10085 }; property
93 avPlayTest = { width: 1280, height: 720, duration: 10085 }; property
109 avPlayTest = { width: 720, height: 480, duration: 10085 }; property
125 avPlayTest = { width: 480, height: 270, duration: 10085 }; property
141 avPlayTest = { width: 720, height: 480, duration: 10085 }; property
157 avPlayTest = { width: 720, height: 480, duration: 10085 }; property
173 avPlayTest = { width: 720, height: 480, duration: 10085 }; property
189 avPlayTest = { width: 720, height: 480, duration: 10085 }; property
[all …]
DAVPlayerDataSrcNoSeekCompatibilityTest.test.js28 duration: -1, property
85 avPlayTest = { width: 0, height: 0, duration: 0 }; property
100 avPlayTest = { width: 0, height: 0, duration: 0 }; property
115 avPlayTest = { width: 0, height: 0, duration: 0 }; property
130 avPlayTest = { width: 0, height: 0, duration: 0 }; property
145 avPlayTest = { width: 0, height: 0, duration: 0 }; property
160 avPlayTest = { width: 1920, height: 1080, duration: 0 }; property
175 avPlayTest = { width: 360, height: 270, duration: 0 }; property
190 avPlayTest = { width: 640, height: 480, duration: 0 }; property
DAVPlayerDataSrcSeekCompatibilityTest.test.js29 duration: -1, property
88 avPlayTest = { width: 0, height: 0, duration: 0 }; property
109 avPlayTest = { width: 0, height: 0, duration: 0 }; property
130 avPlayTest = { width: 0, height: 0, duration: 0 }; property
151 avPlayTest = { width: 0, height: 0, duration: 0 }; property
172 avPlayTest = { width: 0, height: 0, duration: 0 }; property
193 avPlayTest = { width: 0, height: 0, duration: 0 }; property
214 avPlayTest = { width: 640, height: 640, duration: 0 }; property
235 avPlayTest = { width: 640, height: 480, duration: 0 }; property
256 avPlayTest = { width: 640, height: 480, duration: 0 }; property
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/
Dtext_timer_pattern.cpp91 auto&& callback = [weak](uint64_t duration) { in InitTimerDisplay() argument
94 timer->Tick(duration); in InitTimerDisplay()
109 void TextTimerPattern::Tick(uint64_t duration) in Tick() argument
111 elapsedTime_ += duration; in Tick()
314 uint64_t TextTimerPattern::GetFormatDuration(uint64_t duration) const in GetFormatDuration()
317 CHECK_NULL_RETURN(host, duration); in GetFormatDuration()
319 CHECK_NULL_RETURN(layoutProperty, duration); in GetFormatDuration()
324 duration = duration / SECONDS_OF_MILLISECOND; in GetFormatDuration()
327 duration = duration / (SECONDS_OF_MILLISECOND * TOTAL_MINUTE_OF_HOUR); in GetFormatDuration()
330 duration = duration / (SECONDS_OF_MILLISECOND * TOTAL_SECONDS_OF_HOUR); in GetFormatDuration()
[all …]
/foundation/arkui/ace_engine/frameworks/core/animation/
Dpicture_animation.h30 …PictureFrame(float duration, const T& pictureInfo) : duration_(duration), pictureInfo_(pictureInfo… in PictureFrame() argument
67 bool AddPicture(float duration, const T& pictureInfo) in AddPicture() argument
69 if (duration <= NORMALIZED_DURATION_MIN || duration > NORMALIZED_DURATION_MAX) { in AddPicture()
70 LOGE("duration time check failed. duration: %{public}f", duration); in AddPicture()
76 LOGD("picture animation: add picture ref, duration: %{public}f", duration); in AddPicture()
77 pictures_.emplace_back(AceType::MakeRefPtr<Ace::PictureFrame<T>>(duration, pictureInfo)); in AddPicture()
78 this->duration_ += duration; in AddPicture()
Dchain_animation.cpp38 bool ChainAnimationNode::TickAnimation(float duration) in TickAnimation() argument
40 spring_->OnTimestampChanged(duration, 0.0f, false); in TickAnimation()
46 void ChainAnimationNode::SetDelta(float delta, float duration) in SetDelta() argument
48 spring_->OnTimestampChanged(duration, 0.0f, false); in SetDelta()
66 auto&& callback = [weak = AceType::WeakClaim(this)](uint64_t duration) { in ChainAnimation() argument
81 double duration = 0.0; in SetDelta() local
83duration = static_cast<double>(timestamp - timestamp_) / static_cast<double>(NANOS_TO_MILLS); in SetDelta()
92 nodes_[i]->SetDelta(value, static_cast<float>(duration)); in SetDelta()
93 nodes_[-i]->SetDelta(value, static_cast<float>(duration)); in SetDelta()
98 nodes_[i]->SetDelta(delta * factor, static_cast<float>(duration)); in SetDelta()
[all …]
/foundation/arkui/ace_engine/frameworks/core/image/apng/
Dapng_image_animation.cpp25 bool APngImageAnimation::AddPicture(float duration, const int32_t &pictureInfo) in AddPicture() argument
31 LOGD("picture animation: add picture ref, duration: %{public}f", duration); in AddPicture()
32 pictures_.emplace_back(AceType::MakeRefPtr<Ace::PictureFrame<int32_t>>(duration, pictureInfo)); in AddPicture()
33 this->duration_ += duration; in AddPicture()
81 float duration = picture->GetDuration(); in OnNormalizedTimestampChanged() local
83 if (totalTime_ - lastFrameTime_ < duration) { in OnNormalizedTimestampChanged()
/foundation/arkui/ace_engine/frameworks/core/gestures/
Dvelocity_tracker.cpp33 std::chrono::duration<double> diffTime = event.time - lastTimePoint_; in UpdateTouchPoint()
42 std::chrono::duration<double> duration = event.time - firstTrackPoint_.time; in UpdateTouchPoint() local
43 auto seconds = duration.count(); in UpdateTouchPoint()
59 std::chrono::duration<double> diffTime = time - lastTimePoint_; in UpdateTrackerPoint()
68 std::chrono::duration<double> duration = time - firstPointTime_; in UpdateTrackerPoint() local
69 auto seconds = duration.count(); in UpdateTrackerPoint()
/foundation/ability/dmsfwk/services/dtbschedmgr/test/samples/continuationManagerTestSuite/eTSContinuationManager/entry/src/main/ets/MainAbility/
DMainAbility.ts75 duration: SHOW_TOAST_TIME
82 duration: SHOW_TOAST_TIME
104 duration: SHOW_TOAST_TIME
111 duration: SHOW_TOAST_TIME
133 duration: SHOW_TOAST_TIME
140 duration: SHOW_TOAST_TIME
161 duration: SHOW_TOAST_TIME
168 duration: SHOW_TOAST_TIME
190 duration: SHOW_TOAST_TIME
197 duration: SHOW_TOAST_TIME
[all …]
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/
Dallow_info.h28 AllowInfo(uint32_t allowType, const std::string& name, int32_t duration) :allowType_(allowType), in AllowInfo() argument
29 name_(name), duration_(duration) {} in AllowInfo()
102 inline void SetDuration(int32_t duration) in SetDuration() argument
104 duration_ = duration; in SetDuration()
Dresourcce_request.h34 ResourceRequest(uint32_t allowType, int32_t uid, const std::string& name, int32_t duration, in ResourceRequest() argument
36 duration_(duration), reason_(reason), reasonCode_(reasonCode) {} in ResourceRequest()
129 inline void SetDuration(int32_t duration) in SetDuration() argument
131 duration_ = duration; in SetDuration()
/foundation/multimedia/histreamer/engine/pipeline/filters/common/buffer_calibration/
Daudio_buffer_calibration.cpp83 auto duration = samples * HST_SECOND / sampleRate_; in CorrectDuration() local
84 int64_t delta = duration - bufferPtr->duration; in CorrectDuration()
86 bufferPtr->duration = duration; in CorrectDuration()
/foundation/distributeddatamgr/kv_store/test/fuzztest/taskscheduler_fuzzer/
Dtaskscheduler_fuzzer.cpp30 std::chrono::duration<int>(time % MAX_DELAY_TIME); in AtFuzz()
39 std::chrono::duration<int> delay(time % MAX_DELAY_TIME); in EveryFUZZ()
40 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in EveryFUZZ()
53 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in ResetFuzz()
55 std::chrono::duration<int>(MAX_DELAY_TIME / 2); in ResetFuzz()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
Drs_animation_timing_protocol.h34 RSAnimationTimingProtocol(int duration) : duration_(duration) {} in RSAnimationTimingProtocol() argument
37 void SetDuration(int duration) in SetDuration() argument
39 duration_ = duration; in SetDuration()
/foundation/multimedia/histreamer/engine/plugin/plugins/source/http_source/hls/
Dm3u8.cpp45 M3U8Fragment::M3U8Fragment(std::string uri, std::string title, double duration, int sequence, bool … in M3U8Fragment() argument
46 …: uri_(std::move(uri)), title_(std::move(title)), duration_(duration), sequence_(sequence), discon… in M3U8Fragment()
81 double duration = 0; in UpdateFromTags() local
102 GetExtInf(tag, duration, title); in UpdateFromTags()
125 …files_.emplace_back(std::make_shared<M3U8Fragment>(uri, title, duration, sequence_++, discontinuit… in UpdateFromTags()
126 uri = "", title = "", duration = 0, discontinuity = false; in UpdateFromTags()
131 void M3U8::GetExtInf(const std::shared_ptr<Tag>& tag, double& duration, std::string& title) const in GetExtInf() argument
134 duration = item ->GetAttributeByName("DURATION")->FloatingPoint(); in GetExtInf()
140 double duration = 0; in GetDuration() local
142 duration += file->duration_; in GetDuration()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/animation/
Danimator_api_test.cpp140 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; variable
150 EXPECT_EQ(ANIMATION_DURATIONS_DEFAULT, duration);
178 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; variable
188 EXPECT_EQ(ANIMATION_DURATIONS_DEFAULT, duration);
216 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; variable
226 EXPECT_EQ(ANIMATION_DURATIONS_DEFAULT, duration);
254 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; variable
264 EXPECT_EQ(ANIMATION_DURATIONS_DEFAULT, duration);
292 auto duration = animationDoubleParams.find(DOM_ANIMATION_DURATION_API)->second; variable
302 EXPECT_EQ(ANIMATION_DURATIONS_DEFAULT, duration);
[all …]
/foundation/multimedia/player_framework/test/jstest/
DAVPlayerTestBase.js35 duration: -1 property
66 if (playTest.duration > 0) {
67 expect(Math.abs(avPlayer.duration - playTest.duration)).assertLess(500);
81 console.info('case avPlayer.duration: ' + avPlayer.duration);
130 avPlayer.on('durationUpdate', (duration) => {
131 console.info('case durationUpdate called,duration:' + duration);
261 avPlayer.seek(avPlayer.duration);
270 avPlayer.seek(avPlayer.duration / 3);
274 avPlayer.seek(avPlayer.duration, media.SeekMode.SEEK_NEXT_SYNC);
289 expect(avPlayer.currentTime).assertEqual(avPlayer.duration);
[all …]
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
Dbus_center_heartbeat_sdk_test.cpp84 .duration = DEFAULT_DURATION,
89 .duration = DEFAULT_DURATION,
94 .duration = LONG_DURATION,
99 .duration = NORMAL_DURATION,
104 .duration = LONG_DURATION,
/foundation/arkui/ace_engine/frameworks/core/components/declaration/image/
Dimage_animator_declaration.h32 int32_t duration = 0; member
39 int32_t duration = 0; member
71 void SetDuration(int32_t duration) in SetDuration() argument
74 attribute.duration = duration; in SetDuration()
127 return attribute.duration; in GetDuration()
/foundation/arkui/ace_engine/frameworks/core/components/grid/
Dgrid_controller.cpp32 void GridController::AnimateTo(double position, float duration, const RefPtr<Curve>& curve) in AnimateTo() argument
39 grid->AnimateTo(position, duration, curve); in AnimateTo()
52 void GridController::AnimateTo(int32_t index, float duration, const RefPtr<Curve>& curve) in AnimateTo() argument
59 grid->AnimateTo(index, duration, curve); in AnimateTo()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
Danimation_option.h31 …AnimationOption(const RefPtr<Curve>& curve, int32_t duration) : duration_(duration), curve_(curve)… in AnimationOption() argument
34 void SetDuration(int32_t duration) in SetDuration() argument
36 duration_ = duration; in SetDuration()

12345678910>>...26