Home
last modified time | relevance | path

Searched refs:optval (Results 1 – 8 of 8) sorted by relevance

/system/core/init/
Dutil.cpp520 auto optval = parts[1]; in ParseMkdir() local
525 if (optval == "Require") { in ParseMkdir()
527 } else if (optval == "None") { in ParseMkdir()
529 } else if (optval == "Attempt") { in ParseMkdir()
531 } else if (optval == "DeleteIfNecessary") { in ParseMkdir()
534 return Error() << "Unknown encryption option: '" << optval << "'"; in ParseMkdir()
541 if (optval == "ref" || optval == "per_boot_ref") { in ParseMkdir()
542 ref_option = optval; in ParseMkdir()
544 return Error() << "Unknown key option: '" << optval << "'"; in ParseMkdir()
/system/netd/libnetdutils/include/netdutils/
DSyscalls.h52 virtual Status getsockopt(Fd sock, int level, int optname, void *optval,
55 virtual Status setsockopt(Fd sock, int level, int optname, const void* optval,
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() argument
126 return getsockopt(sock, level, optname, optval, optlen); in getsockopt()
DMockSyscalls.h40 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,
/system/netd/libnetdutils/
DSyscalls.cpp68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt() argument
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt() argument
79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt()
/system/core/adb/
Dsysdeps.h195 extern int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval,
622 static inline int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, in adb_setsockopt() argument
624 return setsockopt(fd.get(), level, optname, optval, optlen); in adb_setsockopt()
Dsysdeps_win32.cpp1095 int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, socklen_t optlen) { in adb_setsockopt() argument
1109 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt()
/system/netd/server/
DXfrmController.cpp470 int optval; in ipSecSetEncapSocketOwner() local
471 socklen_t optlen = sizeof(optval); in ipSecSetEncapSocketOwner()
473 getSyscallInstance().getsockopt(Fd(fd), IPPROTO_UDP, UDP_ENCAP, &optval, &optlen); in ipSecSetEncapSocketOwner()
477 if (optval != UDP_ENCAP_ESPINUDP && optval != UDP_ENCAP_ESPINUDP_NON_IKE) { in ipSecSetEncapSocketOwner()
DXfrmControllerTest.cpp548 const void* optval; in TEST_P() local
559 .WillOnce(DoAll(SaveArg<3>(&optval), SaveArg<4>(&optlen), in TEST_P()
565 EXPECT_EQ(nullptr, optval); in TEST_P()