Home
last modified time | relevance | path

Searched refs:Errno (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/wifilogd/
Dos.h44 using Errno = int;
66 virtual std::tuple<int, Errno> GetControlSocket(
86 virtual std::tuple<size_t, Errno> ReceiveDatagram(int fd, NONNULL void* buf,
96 virtual std::tuple<size_t, Errno> Write(int fd, NONNULL const void* buf,
Dmain_loop.cpp44 Os::Errno err; in MainLoop()
54 Os::Errno err; in RunOnce()
73 void MainLoop::ProcessError(Os::Errno err) { in ProcessError()
Dos.cpp42 std::tuple<int, Os::Errno> Os::GetControlSocket( in GetControlSocket()
93 std::tuple<size_t, Os::Errno> Os::ReceiveDatagram(int fd, void* buf, in ReceiveDatagram()
112 std::tuple<size_t, Os::Errno> Os::Write(int fd, const void* buf, in Write()
Dmain_loop.h42 void ProcessError(Os::Errno err);
Dcommand_processor.cpp237 Os::Errno err; in Dump()
/system/connectivity/wifilogd/tests/
Dmain_loop_unittest.cpp50 .WillOnce(Return(std::tuple<size_t, Os::Errno>{kControlSocketFd, 0})); in MainLoopTest()
81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0})); in TEST_F()
90 Return(std::tuple<size_t, Os::Errno>{protocol::kMaxMessageSize, 0})); in TEST_F()
98 .WillOnce(Return(std::tuple<size_t, Os::Errno>{0, 0})); in TEST_F()
106 std::tuple<size_t, Os::Errno>{protocol::kMaxMessageSize + 1, 0})); in TEST_F()
114 .WillOnce(Return(std::tuple<size_t, Os::Errno>{0, EINTR})); in TEST_F()
129 .WillByDefault(Return(std::tuple<size_t, Os::Errno>{-1, ERANGE})); in TEST_F()
137 .WillByDefault(Return(std::tuple<size_t, Os::Errno>{0, EFAULT})); in TEST_F()
Dmock_os.h38 std::tuple<int, Errno>(const std::string& socket_name));
41 std::tuple<size_t, Errno>(int fd, void* buf, size_t buflen));
42 MOCK_METHOD3(Write, std::tuple<size_t, Os::Errno>(int fd, const void* buf,
Dos_unittest.cpp101 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
107 constexpr Os::Errno kError = EINVAL; in TEST_F()
111 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
199 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
212 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
225 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
236 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
243 constexpr Os::Errno kError = EBADF; in TEST_F()
248 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
259 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
[all …]
Dcommand_processor_unittest.cpp75 return std::tuple<size_t, Os::Errno>(buflen, 0); in CommandProcessorTest()
393 .WillOnce(Return(std::tuple<size_t, Os::Errno>{-1, EBADF})); in TEST_F()
408 return std::tuple<size_t, Os::Errno>{buflen / 2, EINTR}; in TEST_F()
433 .WillOnce(Return(std::tuple<size_t, Os::Errno>{-1, EBADF})); in TEST_F()
/system/core/base/
Dstringprintf_test.cpp35 TEST(StringPrintfTest, Errno) { in TEST() argument