Home
last modified time | relevance | path

Searched refs:statusFromErrno (Results 1 – 14 of 14) sorted by relevance

/system/netd/libnetdutils/
DSyscalls.cpp47 return statusFromErrno(errno, "open(\"" + pathname + "\"...) failed"); in open()
55 return statusFromErrno(errno, "socket() failed"); in socket()
63 return statusFromErrno(errno, "getsockname() failed"); in getsockname()
72 return statusFromErrno(errno, "getsockopt() failed"); in getsockopt()
81 return statusFromErrno(errno, "setsockopt() failed"); in setsockopt()
89 return statusFromErrno(errno, "bind() failed"); in bind()
97 return statusFromErrno(errno, "connect() failed"); in connect()
105 return statusFromErrno(errno, "ioctl() failed"); in ioctl()
113 return statusFromErrno(errno, "eventfd() failed"); in eventfd()
124 return statusFromErrno(errno, "ppoll() failed"); in ppoll()
[all …]
DSyscallsTest.cpp86 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
104 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
124 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
141 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
158 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
DSocket.cpp29 return statusFromErrno(errno, "inet_ntop() failed"); in toString()
DStatus.cpp26 Status statusFromErrno(int err, const std::string& msg) { in statusFromErrno() function
DStatusTest.cpp84 statusFromErrno(ENOTTY, "Not a typewriter, what did you expect?").ignoreError(); in TEST()
DFdTest.cpp142 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(statusFromErrno(EINTR, "test"))); in TEST_F()
/system/netd/server/
DXfrmController.cpp240 return netdutils::statusFromErrno(-mSock, "Could not open netlink socket"); in open()
249 return netdutils::statusFromErrno(EBADMSG, "Invalid message"); in validateResponse()
258 return netdutils::statusFromErrno(EBADMSG, "Kernel buffer overrun"); in validateResponse()
262 return netdutils::statusFromErrno(EBADMSG, "Malformed error response"); in validateResponse()
264 return netdutils::statusFromErrno( in validateResponse()
274 return netdutils::statusFromErrno(EBADMSG, "Invalid message ID"); in validateResponse()
306 return netdutils::statusFromErrno(EBADMSG, "Invalid message length"); in sendMessage()
341 return netdutils::statusFromErrno(EAFNOSUPPORT, "Invalid address family"); in convertToXfrmAddr()
461 return netdutils::statusFromErrno(errno, "Failed to stat socket file descriptor"); in ipSecSetEncapSocketOwner()
464 return netdutils::statusFromErrno(EPERM, "fchown disabled for non-owner calls"); in ipSecSetEncapSocketOwner()
[all …]
DInterfaceControllerTest.cpp46 using netdutils::statusFromErrno;
74 .WillOnce(Return(ByMove(statusFromErrno(err, "open() failed")))); in expectOpenFile()
105 return statusFromErrno(err, "write() failed"); in expectWriteToFile()
148 const auto kError = statusFromErrno(EINVAL, ""); in TEST_F()
DInterfaceController.cpp53 using android::netdutils::statusFromErrno;
190 : statusFromErrno(EREMOTEIO, "SetProperty failed, see libc logs"); in setProperty()
211 return statusFromErrno(EOPNOTSUPP, in enableStablePrivacyAddresses()
280 return statusFromErrno(ENOENT, "invalid iface name: " + interface); in setIPv6AddrGenMode()
295 return statusFromErrno(EOPNOTSUPP, "unsupported addrGenMode"); in setIPv6AddrGenMode()
425 return statusFromErrno(errno, "Cannot open iface directory"); in getIfaceNames()
503 return statusFromErrno(-ret, "Failed to add addr"); in setCfg()
DNetlinkListener.cpp42 using netdutils::statusFromErrno;
89 return statusFromErrno(EMSGSIZE, "unexpect message size"); in send()
DTrafficController.cpp71 using netdutils::statusFromErrno;
210 return statusFromErrno(ret, "cgroup program get failed"); in attachProgramToCgroup()
215 return statusFromErrno(ret, "program attach failed"); in attachProgramToCgroup()
226 return statusFromErrno(ret, "Failed to find cgroup v2 root"); in initPrograms()
233 return statusFromErrno(ret, "Open the cgroup directory failed"); in initPrograms()
506 return statusFromErrno(EINVAL, ""); in updateOwnerMapEntry()
524 return statusFromErrno(ENOENT, StringPrintf("uid: %u does not exist in map", uid)); in removeRule()
532 return statusFromErrno(EINVAL, "Interface match must have nonzero interface index"); in addRule()
534 return statusFromErrno(EINVAL, "Non-interface match must have zero interface index"); in addRule()
564 return statusFromErrno(EINVAL, StringPrintf("invalid IptOp: %d, %d", op, matchType)); in updateUidOwnerMap()
[all …]
DXfrmControllerTest.cpp161 EXPECT_EQ(netdutils::statusFromErrno(errno, "Failed to stat socket file descriptor"), res); in TEST_F()
169 EXPECT_EQ(netdutils::statusFromErrno(EPERM, "fchown disabled for non-owner calls"), res); in TEST_F()
177 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "File descriptor was not a socket"), res); in TEST_F()
188 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "Socket was not a UDP socket"), res); in TEST_F()
199 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "Socket did not have UDP-encap sockopt set"), res); in TEST_F()
DTetherController.cpp70 using android::netdutils::statusFromErrno;
916 return statusFromErrno(-ret, StringPrintf("failed to fetch tether stats (%d): %d", in getTetherStats()
921 return statusFromErrno(-ret, StringPrintf("failed to parse %s tether stats:\n%s", in getTetherStats()
/system/netd/libnetdutils/include/netdutils/
DStatus.h95 Status statusFromErrno(int err, const std::string& msg);