/system/netd/libnetdutils/ |
D | Syscalls.cpp | 47 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 …]
|
D | SyscallsTest.cpp | 86 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()
|
D | Socket.cpp | 29 return statusFromErrno(errno, "inet_ntop() failed"); in toString()
|
D | Status.cpp | 26 Status statusFromErrno(int err, const std::string& msg) { in statusFromErrno() function
|
D | StatusTest.cpp | 84 statusFromErrno(ENOTTY, "Not a typewriter, what did you expect?").ignoreError(); in TEST()
|
D | FdTest.cpp | 142 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(statusFromErrno(EINTR, "test"))); in TEST_F()
|
/system/netd/server/ |
D | XfrmController.cpp | 240 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 …]
|
D | TrafficController.cpp | 68 using netdutils::statusFromErrno; 209 return statusFromErrno(ret, "cgroup program get failed"); in attachProgramToCgroup() 214 return statusFromErrno(ret, "program attach failed"); in attachProgramToCgroup() 225 return statusFromErrno(ret, "Failed to find cgroup v2 root"); in initPrograms() 232 return statusFromErrno(ret, "Open the cgroup directory failed"); in initPrograms() 530 return statusFromErrno(EINVAL, ""); in updateOwnerMapEntry() 560 return statusFromErrno(ENOENT, StringPrintf("uid: %u does not exist in map", uid)); in removeRule() 569 return statusFromErrno(EINVAL, "Interface match must have nonzero interface index"); in addRule() 571 return statusFromErrno(EINVAL, "Non-interface match must have zero interface index"); in addRule() 596 return statusFromErrno( in updateUidOwnerMap() [all …]
|
D | InterfaceControllerTest.cpp | 46 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()
|
D | InterfaceController.cpp | 53 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()
|
D | NetlinkListener.cpp | 42 using netdutils::statusFromErrno; 89 return statusFromErrno(EMSGSIZE, "unexpect message size"); in send()
|
D | XfrmControllerTest.cpp | 161 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()
|
D | TetherController.cpp | 73 using android::netdutils::statusFromErrno; 1017 return statusFromErrno(-ret, StringPrintf("failed to fetch tether stats (%d): %d", in getTetherStats() 1022 return statusFromErrno(-ret, StringPrintf("failed to parse %s tether stats:\n%s", in getTetherStats()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Status.h | 95 Status statusFromErrno(int err, const std::string& msg);
|