/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/systemtest/ |
H A D | vsync_sample_test.cpp | 40 int64_t period = 1000000000 / refreshRate; // 1000000000ns in GetHardwareVsyncTimestamp() local 42 int64_t diff = period * RANGE_PERCENT / FULL_PERCENT; in GetHardwareVsyncTimestamp() 43 int64_t timestampInterval = period - diff + (diff * 2) * randNum / FULL_PERCENT; in GetHardwareVsyncTimestamp() 64 int64_t period = vsyncSampler->GetPeriod(); in HWTEST_F() local 65 EXPECT_GT(period, 32000000); // 32000000ns in HWTEST_F() 66 EXPECT_LT(period, 34000000); // 34000000ns in HWTEST_F() 85 int64_t period = vsyncSampler->GetPeriod(); in HWTEST_F() local 86 EXPECT_GT(period, 16000000); // 16000000ns in HWTEST_F() 87 EXPECT_LT(period, 18000000); // 18000000ns in HWTEST_F() 106 int64_t period in HWTEST_F() local 127 int64_t period = vsyncSampler->GetPeriod(); HWTEST_F() local [all...] |
H A D | nativeVsync_getPeriod_test.cpp | 47 long long period = 0; in HWTEST_F() local 48 ASSERT_EQ(OH_NativeVSync_GetPeriod(native_vsync, &period), VSYNC_ERROR_OK); in HWTEST_F() 49 ASSERT_NE(period, 0); in HWTEST_F()
|
/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | task.h | 29 * @brief Declares the <b>Task</b> class of the graphics module, which provides functions for setting the running period 46 * This class provides functions for setting the running period and time of a task. 59 * @brief A constructor used to create a <b>Task</b> instance with the specified running period. 60 * @param period Indicates the running period of this task. 62 Task(uint32_t period) : period_(period), lastRun_(0) {} in Task() argument 70 * @brief Sets the running period for this task. 71 * @param period Indicates the running period t 73 SetPeriod(uint32_t period) SetPeriod() argument [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | idle_time.cpp | 71 int64_t period = 0; in EventTask() local 74 VsyncError err = receiver_->GetVSyncPeriodAndLastTimeStamp(period, lastVSyncTime, true); in EventTask() 76 TAG_LOGD(AAFwkTag::APPKIT, "EventTask period %{public}" PRId64 ", lastVSyncTime is %{public}" PRId64, period, in EventTask() 80 if (GSERROR_OK == err && period > 0 && lastVSyncTime > 0 && occurTimestamp > lastVSyncTime) { in EventTask() 82 int64_t idleTime = period - (elapsedTime % period) ; in EventTask() 83 int64_t cycle = elapsedTime / period ; in EventTask()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_render_display_sync_test.cpp | 99 int64_t period = 8333333; in HWTEST_F() local 101 bool isFrameSkip = displaySync->OnFrameSkip(timestamp, period, isDisplaySyncEnabled); in HWTEST_F() 105 isFrameSkip = displaySync->OnFrameSkip(timestamp, period, isDisplaySyncEnabled); in HWTEST_F() 109 period = 11111111; in HWTEST_F() 110 isFrameSkip = displaySync->OnFrameSkip(timestamp, period, isDisplaySyncEnabled); in HWTEST_F() 115 isFrameSkip = displaySync->OnFrameSkip(timestamp, period, isDisplaySyncEnabled); in HWTEST_F() 120 isFrameSkip = displaySync->OnFrameSkip(timestamp, period, isDisplaySyncEnabled); in HWTEST_F()
|
/foundation/ability/form_fwk/services/include/ |
H A D | form_timer.h | 43 int64_t period; member in OHOS::AppExecFwk::FormTimer 56 period = -1; in FormTimer() 69 period = -1; in FormTimer() 82 period = repeatTime; in FormTimer() 97 period = -1; in FormTimer()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/time_sync/src/ |
H A D | lnn_time_sync_manager.c | 45 TimeSyncPeriod period; member 69 TimeSyncPeriod period; member 107 TimeSyncPeriod period, int32_t pid) in CreateStartTimeSyncReq() 122 req->period = period; in CreateStartTimeSyncReq() 142 info->curPeriod = para->period; in CreateTimeSyncReqInfo() 162 if (item->accuracy < startReq->accuracy || item->period > startReq->period) { in TryUpdateStartTimeSyncReq() 165 "accuracy:%{public}d->%{public}d, period:%{public}d->%{public}d", in TryUpdateStartTimeSyncReq() 166 AnonymizeWrapper(anonyPkgName), item->accuracy, startReq->accuracy, item->period, startRe in TryUpdateStartTimeSyncReq() 106 CreateStartTimeSyncReq(const char *pkgName, TimeSyncAccuracy accuracy, TimeSyncPeriod period, int32_t pid) CreateStartTimeSyncReq() argument 212 TryUpdateTimeSyncReqInfo(TimeSyncReqInfo *info, TimeSyncAccuracy accuracy, TimeSyncPeriod period) TryUpdateTimeSyncReqInfo() argument 537 LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period) LnnStartTimeSync() argument [all...] |
H A D | lnn_time_sync_impl_virtual.c | 33 TimeSyncPeriod period, const TimeSyncImplCallback *callback) in LnnStartTimeSyncImpl() 37 (void)period; in LnnStartTimeSyncImpl() 32 LnnStartTimeSyncImpl(const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period, const TimeSyncImplCallback *callback) LnnStartTimeSyncImpl() argument
|
H A D | lnn_time_sync_manager_virtual.c | 22 TimeSyncAccuracy accuracy, TimeSyncPeriod period) in LnnStartTimeSync() 28 (void)period; in LnnStartTimeSync() 21 LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period) LnnStartTimeSync() argument
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/include/mpd_parser/ |
H A D | dash_period_manager.h | 30 explicit DashPeriodManager(DashPeriodInfo *period); 35 void SetPeriodInfo(DashPeriodInfo *period); 50 DashPeriodManager(const DashPeriodManager &period); 51 DashPeriodManager &operator=(const DashPeriodManager &period);
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/unittest/ |
H A D | vsync_receiver_test.cpp | 97 int64_t period;
in HWTEST_F() local 101 ASSERT_EQ(rsReceiver->GetVSyncPeriodAndLastTimeStamp(period, timeStamp), VSYNC_ERROR_NOT_INIT);
in HWTEST_F() 103 ASSERT_EQ(rsReceiver->GetVSyncPeriodAndLastTimeStamp(period, timeStamp), VSYNC_ERROR_NOT_INIT);
in HWTEST_F() 105 ASSERT_EQ(rsReceiver->GetVSyncPeriodAndLastTimeStamp(period, timeStamp), VSYNC_ERROR_NOT_INIT);
in HWTEST_F() 256 int64_t period;
in HWTEST_F() local 258 ASSERT_EQ(rsReceiver->GetVSyncPeriodAndLastTimeStamp(period, timeStamp), VSYNC_ERROR_OK);
in HWTEST_F() 259 ASSERT_EQ(rsReceiver->GetVSyncPeriodAndLastTimeStamp(period, timeStamp, true), VSYNC_ERROR_UNKOWN);
in HWTEST_F() 260 ASSERT_NE(period, 0);
in HWTEST_F() 291 int64_t period = 0;
in HWTEST_F() local 292 ASSERT_EQ(rsReceiver->GetVSyncPeriod(period), VSYNC_ERROR_O in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/ |
H A D | vsync_generator.cpp | 84 uint32_t CalculateRefreshRate(int64_t period)
in CalculateRefreshRate() argument 96 if (period > rateSection.min && period < rateSection.max) {
in CalculateRefreshRate() 162 RS_TRACE_NAME_FMT("GenerateVsyncCount:%lu, period:%ld, currRefreshRate_:%u, vsyncMode_:%d",
in ListenerVsyncEventCB() 195 ScopedBytrace func("VSyncGenerator: period not valid");
in ThreadLoop() 234 if (nextTimeStamp - occurTimestamp > periodRecord_ * 3 / 2) { // 3/2 means no more than 1.5 period
in WaitForTimeout() 439 RS_TRACE_NAME_FMT("ComputeListenerNextVSyncTimeStamp add one more period:%ld, threshold:%ld",
in ComputeListenerNextVSyncTimeStamp() 476 VsyncError VSyncGenerator::UpdatePeriodLocked(int64_t period)
in UpdatePeriodLocked() argument 479 uint32_t refreshRate = JudgeRefreshRateLocked(period);
in UpdatePeriodLocked() 482 period_ = period;
in UpdatePeriodLocked() 532 UpdateMode(int64_t period, int64_t phase, int64_t referenceTime) UpdateMode() argument 582 JudgeRefreshRateLocked(int64_t period) JudgeRefreshRateLocked() argument 938 SetPendingMode(int64_t period, int64_t timestamp) SetPendingMode() argument [all...] |
H A D | vsync_distributor.cpp | 157 int32_t VSyncConnection::PostEvent(int64_t now, int64_t period, int64_t vsyncCount)
in PostEvent() argument 178 data[1] = period;
in PostEvent() 531 // ensure the preexecution only gets ahead for at most one period(i.e., 3 buffer rotation)
in PostVSyncEventPreProcess() 559 event_.period = dvsync_->GetPeriod();
in PostVSyncEventPreProcess() 582 void VSyncDistributor::OnDVSyncTrigger(int64_t now, int64_t period,
in OnDVSyncTrigger() argument 593 event_.period = period;
in OnDVSyncTrigger() 595 dvsync_->RecordVSync(now, period, refreshRate);
in OnDVSyncTrigger() 598 SendConnectionsToVSyncWindow(now, period, refreshRate, vsyncMode, locker);
in OnDVSyncTrigger() 599 // when dvsync switch to vsync, skip all vsync events within one period fro in OnDVSyncTrigger() 625 OnVSyncTrigger(int64_t now, int64_t period, uint32_t refreshRate, VSyncMode vsyncMode, uint32_t vsyncMaxRefreshRate) OnVSyncTrigger() argument 684 OnVSyncEvent(int64_t now, int64_t period, uint32_t refreshRate, VSyncMode vsyncMode, uint32_t vsyncMaxRefreshRate) OnVSyncEvent() argument 698 SendConnectionsToVSyncWindow(int64_t now, int64_t period, uint32_t refreshRate, VSyncMode vsyncMode, std::unique_lock<std::mutex> &locker) SendConnectionsToVSyncWindow() argument 722 CheckNeedDisableDvsync(int64_t now, int64_t period) CheckNeedDisableDvsync() argument 890 int64_t period = eventPeriod; PostVSyncEvent() local 1222 RecordVsyncModeChange(uint32_t refreshRate, int64_t period) RecordVsyncModeChange() argument [all...] |
/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/ |
H A D | session_bus_center.cpp | 31 TimeSyncPeriod period, ITimeSyncCb *cb) in StartTimeSync() 36 (void)period; in StartTimeSync() 30 StartTimeSync(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period, ITimeSyncCb *cb) StartTimeSync() argument
|
/foundation/arkui/ace_engine/frameworks/component_test/ |
H A D | idle_watcher.cpp | 27 constexpr uint32_t period = 2000 / 4; member 58 IdleMonitorThread::PostCheckTask([this]() { VsyncCountFirstCheck(); }, period); in VsyncCountSecondCheck() 88 thread->PostDelayedTask([this]() { PostCheckTask([this]() { VsyncCountFirstCheck(); }, period); }, period, {}); in PostInitializeTask()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/ |
H A D | dash_period_manager.cpp | 56 DashPeriodManager::DashPeriodManager(DashPeriodInfo *period) in DashPeriodManager() argument 58 SetPeriodInfo(period); in DashPeriodManager() 231 void DashPeriodManager::SetPeriodInfo(DashPeriodInfo *period) in SetPeriodInfo() argument 233 periodInfo_ = period; in SetPeriodInfo() 236 if (previousPeriodInfo_ == nullptr || previousPeriodInfo_ != period) { in SetPeriodInfo() 238 previousPeriodInfo_ = period; in SetPeriodInfo()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include/ |
H A D | vsync_generator.h | 40 virtual void OnVSyncEvent(int64_t now, int64_t period,
57 virtual VsyncError UpdateMode(int64_t period, int64_t phase, int64_t referenceTime) = 0;
77 virtual void SetPendingMode(int64_t period, int64_t timestamp) = 0;
89 uint32_t CalculateRefreshRate(int64_t period);
99 VsyncError UpdateMode(int64_t period, int64_t phase, int64_t referenceTime) override;
119 void SetPendingMode(int64_t period, int64_t timestamp) override;
147 uint32_t JudgeRefreshRateLocked(int64_t period);
154 VsyncError UpdatePeriodLocked(int64_t period);
|
H A D | vsync_distributor.h | 65 int32_t PostEvent(int64_t now, int64_t period, int64_t vsyncCount);
134 void RecordVsyncModeChange(uint32_t refreshRate, int64_t period);
151 int64_t period;
member 158 void OnVSyncEvent(int64_t now, int64_t period,
180 void CheckNeedDisableDvsync(int64_t now, int64_t period);
181 void OnVSyncTrigger(int64_t now, int64_t period,
203 void SendConnectionsToVSyncWindow(int64_t now, int64_t period, uint32_t refreshRate, VSyncMode vsyncMode,
205 void OnDVSyncTrigger(int64_t now, int64_t period,
|
H A D | vsync_controller.h | 32 virtual void OnVSyncEvent(int64_t now, int64_t period,
52 void OnVSyncEvent(int64_t now, int64_t period,
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/demo/bus_center/ |
H A D | time_sync_demo.c | 45 TimeSyncPeriod period = NORMAL_PERIOD; in main() local 50 int32_t ret = StartTimeSync(pkgName, networkId, accuracy, period, &g_timeSyncCB); in main()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/starttimesync_fuzzer/ |
H A D | starttimesync_fuzzer.cpp | 41 TimeSyncPeriod period = NORMAL_PERIOD; in StartTimeSyncTest() local 58 reinterpret_cast<const char *>(tmp), timeAccuracy, period, &g_timeSyncCb); in StartTimeSyncTest() local
|
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifip2pserver_fuzzer/ |
H A D | wifip2pserver_fuzzer.cpp | 181 int period = static_cast<int>(data[0]); in P2pServerFuzzTest() local 199 pP2pInterface->StartP2pListen(period, interval); in P2pServerFuzzTest() 210 pP2pInterface->GetP2pEnableStatus(period); in P2pServerFuzzTest() 212 pP2pInterface->GetP2pConnectedStatus(period); in P2pServerFuzzTest() 220 pP2pInterface->DisableRandomMac(period); in P2pServerFuzzTest() 229 pP2pInterface->Hid2dCreateGroup(period, scanType); in P2pServerFuzzTest() 234 pP2pInterface->HandleBusinessSAException(period); in P2pServerFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_display_sync.cpp | 79 bool RSRenderDisplaySync::OnFrameSkip(uint64_t timestamp, int64_t period, bool isDisplaySyncEnabled) in OnFrameSkip() argument 85 if (period <= 0 || timestamp_ == timestamp || expectedFrameRateRange_.preferred_ == 0) { in OnFrameSkip() 92 if (currentPeriod_ != period) { in OnFrameSkip() 93 currentPeriod_ = period; in OnFrameSkip()
|
/foundation/arkui/ui_lite/interfaces/kits/animator/ |
H A D | animator.h | 229 void SetTime(uint32_t period) in SetTime() argument 231 period_ = period; in SetTime()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/native_vsync/ |
H A D | native_vsync.cpp | 101 int OH_NativeVSync_GetPeriod(OH_NativeVSync* nativeVsync, long long* period) in OH_NativeVSync_GetPeriod() argument 104 if (nativeVSync == nullptr || nativeVSync->receiver_ == nullptr || period == nullptr) { in OH_NativeVSync_GetPeriod() 108 return nativeVSync->receiver_->GetVSyncPeriod(*reinterpret_cast<int64_t*>(period)); in OH_NativeVSync_GetPeriod()
|