Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 15 of 15) sorted by relevance

/frameworks/libs/net/common/netd/libnetdutils/
DFdTest.cpp34 inline Fd toFd(const UniqueFd& fd) { in toFd()
40 TEST(Fd, smoke) { in TEST() argument
42 Fd fd1(1); in TEST()
43 Fd fd2(fd1); in TEST()
44 Fd fd3 = fd2; in TEST()
45 const Fd fd4(8); in TEST()
46 const Fd fd5(fd4); in TEST()
47 const Fd fd6 = fd5; in TEST()
52 Fd zero(0); in TEST()
56 Fd bad(-1); in TEST()
[all …]
DSyscalls.cpp60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt()
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind()
94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect()
102 StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const override { in ioctl()
129 StatusOr<size_t> writev(Fd fd, const std::vector<iovec>& iov) const override { in writev()
137 StatusOr<size_t> write(Fd fd, const Slice buf) const override { in write()
145 StatusOr<Slice> read(Fd fd, const Slice buf) const override { in read()
153 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, in sendto()
[all …]
DSyscallsTest.cpp58 constexpr Fd kFd(40); in TEST_F()
70 constexpr Fd kFd(40); in TEST_F()
76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F() argument
92 constexpr Fd kFd(40); in TEST_F()
111 constexpr Fd kFd(40); in TEST_F()
131 constexpr Fd kFd(40); in TEST_F()
148 constexpr Fd kFd(40); in TEST_F()
165 constexpr Fd kFd(40); in TEST_F()
179 constexpr Fd kFd(40); in TEST_F()
190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F() argument
DUniqueFd.cpp25 void UniqueFd::reset(Fd fd) { in reset()
34 return os << "UniqueFd[" << static_cast<Fd>(fd) << "]"; in operator <<()
DSocketOption.cpp29 Status enableSockopt(Fd sock, int level, int optname) { in enableSockopt()
35 Status enableTcpKeepAlives(Fd sock, unsigned idleTime, unsigned numProbes, unsigned probeInterval) { in enableTcpKeepAlives()
DNetlinkListener.cpp32 using netdutils::Fd;
125 const std::array<Fd, 2> fds{{{mEvent}, {mSock}}}; in run()
142 mErrorHandler(((Fd) mSock).get(), err); in run()
DFd.cpp22 std::ostream& operator<<(std::ostream& os, const Fd& fd) { in operator <<()
DAndroid.bp9 "Fd.cpp",
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DSyscalls.h50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0;
52 virtual Status getsockopt(Fd sock, int level, int optname, void *optval,
55 virtual Status setsockopt(Fd sock, int level, int optname, const void* optval,
58 virtual Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
60 virtual Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
62 virtual StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const = 0;
68 virtual StatusOr<size_t> writev(Fd fd, const std::vector<iovec>& iov) const = 0;
70 virtual StatusOr<size_t> write(Fd fd, const Slice buf) const = 0;
72 virtual StatusOr<Slice> read(Fd fd, const Slice buf) const = 0;
74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst,
[all …]
DMockSyscalls.h39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen));
40 MOCK_CONST_METHOD5(getsockopt, Status(Fd sock, int level, int optname, void* optval,
42 MOCK_CONST_METHOD5(setsockopt, Status(Fd sock, int level, int optname, const void* optval,
45 MOCK_CONST_METHOD3(bind, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
46 MOCK_CONST_METHOD3(connect, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
47 MOCK_CONST_METHOD3(ioctl, StatusOr<ifreq>(Fd sock, unsigned long request, ifreq* ifr));
53 MOCK_CONST_METHOD2(writev, StatusOr<size_t>(Fd fd, const std::vector<iovec>& iov));
54 MOCK_CONST_METHOD2(write, StatusOr<size_t>(Fd fd, const Slice buf));
55 MOCK_CONST_METHOD2(read, StatusOr<Slice>(Fd fd, const Slice buf));
56 MOCK_CONST_METHOD5(sendto, StatusOr<size_t>(Fd sock, const Slice buf, int flags,
[all …]
DFd.h29 class Fd {
31 constexpr Fd() = default;
33 constexpr Fd(int fd) : mFd(fd) {} in Fd() function
37 bool operator==(const Fd& other) const { return get() == other.get(); }
38 bool operator!=(const Fd& other) const { return get() != other.get(); }
45 inline bool isWellFormed(const Fd fd) { in isWellFormed()
49 std::ostream& operator<<(std::ostream& os, const Fd& fd);
DUniqueFd.h40 UniqueFd(Fd fd) : mFd(fd) {} in UniqueFd()
57 void reset(Fd fd = Fd());
60 operator const Fd &() const { return mFd; }
63 Fd mFd;
DSocketOption.h36 Status enableSockopt(Fd sock, int level, int optname);
55 Status enableTcpKeepAlives(Fd sock, unsigned idleTime, unsigned numProbes, unsigned probeInterval);
/frameworks/base/apct-tests/perftests/rubidium/assets/
Drubidium_bidding_logic_compiled.js63 …e(g,Ob.value,Nb,2);var Bd=Oe,Cd=ha;if(1===Nb){for(var aa=g,Dd=null==h?void 0:W(h),Ed=[],Fd=new Map,
65 …get(Ma);if(Rb){var Na=null;if(R(La,7)){var Oa=Fd.get(Ma),Od=!0,Pd=P(x(La,8),0);if(void 0===Oa)Oa=n…
/frameworks/base/core/res/geoid_height_map_assets/
Dtile-b.textpb2 …006j\205\332\253\273\361U\331\371\250\031\363Q3\324,\374\323\013\324M\'\275Fd\250\236b;\324[\3119\…