!11884 vsync controller fuzzer fix

Merge pull request !11884 from 李辉/fuzzfix0530
This commit is contained in:
openharmony_ci 2024-06-04 12:39:48 +00:00 committed by Gitee
commit a4d96eff93
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -24,6 +24,7 @@ namespace OHOS {
const uint8_t* data_ = nullptr;
size_t size_ = 0;
size_t pos;
constexpr const int32_t WAIT_SYSTEM_ABILITY_REPORT_DATA_SECONDS = 5;
}
/*
@ -67,6 +68,7 @@ namespace OHOS {
vsyncController->SetEnable(enable, enable);
vsyncController->SetPhaseOffset(offset);
vsyncController->SetEnable(false, enable);
sleep(WAIT_SYSTEM_ABILITY_REPORT_DATA_SECONDS);
return true;
}
}