Searched refs:GetFd (Results 1 - 6 of 6) sorted by relevance
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/ |
H A D | event_benchmark_test.cpp | 108 AssertEqual(handler->GetFd(), fd, "handler->GetFd() did not equal fd as expected.", state); in SetFdAndCallback() 358 if ((GetFd() == INVALID_FD)) { in Initialize() 380 if (timerfd_settime(GetFd(), TFD_TIMER_ABSTIME, &newValue, nullptr) == INVALID_FD) { in Initialize() 381 BENCHMARK_LOGD("Set timerFd failed-%{public}s timer_fd:%{public}d", strerror(errno), GetFd()); in Initialize() 400 if (GetFd() == INVALID_FD) { in TimeOut() 405 ssize_t n = ::read(GetFd(), &expirations, sizeof(expirations)); in TimeOut() 701 inline int GetTimerFd() const { return handler_->GetFd(); } in GetTimerFd() 961 if (close(handler_->GetFd()) != 0) { in ~TimerEventHandler() 963 gettid(), handler_->GetFd(), interval in ~TimerEventHandler() [all...] |
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_event_test.cpp | 91 EXPECT_EQ(handler->GetFd(), fd); in HWTEST_F() 134 EXPECT_EQ(handler->GetFd(), fd); in HWTEST_F() 256 if ((GetFd() == -1)) { in Initialize() 278 if (timerfd_settime(GetFd(), TFD_TIMER_ABSTIME, &newValue, nullptr) == -1) { in Initialize() 279 std::cout << "Set timerFd failed-" << strerror(errno) << "timer_fd:" << GetFd() << ", next_time:" << in Initialize() 297 if (GetFd() == -1) { in TimeOut() 302 ssize_t n = ::read(GetFd(), &expirations, sizeof(expirations)); in TimeOut() 568 inline int GetTimerFd() const { return handler_->GetFd(); } in GetTimerFd() 818 if (close(handler_->GetFd()) != 0) { in ~TimerEventHandler() 819 std::cout << "||" << gettid() << "||" << "Close timer-fd failed. fd:" << handler_->GetFd() << ", interva in ~TimerEventHandler() [all...] |
H A D | utils_mapped_file_test.cpp | 868 ASSERT_EQ(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0); in HWTEST_F() 900 ASSERT_EQ(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0); in HWTEST_F()
|
/commonlibrary/c_utils/base/include/ |
H A D | io_event_handler.h | 55 inline int GetFd() const in GetFd() function in OHOS::Utils::IOEventHandler
|
H A D | mapped_file.h | 136 inline int GetFd() const in GetFd() function in OHOS::Utils::MapMode::MappedFile
|
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/ |
H A D | mapped_benchmark_test.cpp | 903 AssertEqual(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0, in BENCHMARK_F() 904 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); in BENCHMARK_F() 942 AssertEqual(ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL), 0, in BENCHMARK_F() 943 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); in BENCHMARK_F()
|
Completed in 13 milliseconds