/system/netd/libnetdutils/include/netdutils/ |
D | StatusOr.h | 29 class [[nodiscard]] StatusOr { 35 explicit StatusOr() = default; 39 StatusOr(Status status) : mStatus(std::move(status)) { assert(!isOk(mStatus)); } in StatusOr() function 44 StatusOr(const T& value) : mStatus(status::ok), mValue(value) {} in StatusOr() function 46 StatusOr(T&& value) : mStatus(status::ok), mValue(std::move(value)) {} in StatusOr() function 49 StatusOr(StatusOr&&) noexcept = default; 51 StatusOr& operator=(StatusOr&&) noexcept = default; 53 StatusOr(const StatusOr&) = default; 55 StatusOr& operator=(const StatusOr&) = default; 87 inline std::ostream& operator<<(std::ostream& os, const StatusOr<T>& s) {
|
D | MockSyscalls.h | 37 StatusOr<UniqueFd>(const std::string& pathname, int flags, mode_t mode)); 38 MOCK_CONST_METHOD3(socket, StatusOr<UniqueFd>(int domain, int type, int protocol)); 47 MOCK_CONST_METHOD3(ioctl, StatusOr<ifreq>(Fd sock, unsigned long request, ifreq* ifr)); 50 MOCK_CONST_METHOD2(eventfd, StatusOr<UniqueFd>(unsigned int initval, int flags)); 51 MOCK_CONST_METHOD3(ppoll, StatusOr<int>(pollfd* fds, nfds_t nfds, double timeout)); 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, 58 MOCK_CONST_METHOD5(recvfrom, StatusOr<Slice>(Fd sock, const Slice dst, int flags, sockaddr* src, [all …]
|
D | Syscalls.h | 45 virtual StatusOr<UniqueFd> open(const std::string& pathname, int flags, 48 virtual StatusOr<UniqueFd> socket(int domain, int type, int protocol) const = 0; 62 virtual StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const = 0; 64 virtual StatusOr<UniqueFd> eventfd(unsigned int initval, int flags) const = 0; 66 virtual StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) 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, 77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, [all …]
|
D | Socket.h | 39 StatusOr<std::string> toString(const in6_addr& addr);
|
/system/security/keystore/include/keystore/ |
D | keystore_attestation_id.h | 34 template <typename T> class StatusOr { 37 StatusOr(const status_t error) : _status(error), _value() {} in StatusOr() function 39 StatusOr(const T& value) : _status(NO_ERROR), _value(value) {} in StatusOr() function 41 StatusOr(T&& value) : _status(NO_ERROR), _value(value) {} in StatusOr() function 72 StatusOr<std::vector<uint8_t>> gather_attestation_application_id(uid_t uid); 79 StatusOr<std::vector<uint8_t>> build_attestation_application_id(
|
/system/netd/libnetdutils/ |
D | Syscalls.cpp | 44 StatusOr<UniqueFd> open(const std::string& pathname, int flags, mode_t mode) const override { in open() 52 StatusOr<UniqueFd> socket(int domain, int type, int protocol) const override { in socket() 102 StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const override { in ioctl() 110 StatusOr<UniqueFd> eventfd(unsigned int initval, int flags) const override { in eventfd() 118 StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const override { in ppoll() 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() 162 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, in recvfrom() [all …]
|
D | StatusTest.cpp | 89 StatusOr<int> so(11); in TEST() 96 StatusOr<int> err(status::undefined); in TEST()
|
D | Socket.cpp | 25 StatusOr<std::string> toString(const in6_addr& addr) { in toString()
|
/system/keymaster/include/keymaster/ |
D | remote_provisioning_utils.h | 34 template <typename T> class StatusOr { 36 StatusOr(uint32_t status_code) // NOLINT(google-explicit-constructor) in StatusOr() function 38 StatusOr(T val) in StatusOr() function 68 StatusOr<std::pair<std::vector<uint8_t> /* EEK pub */, std::vector<uint8_t> /* EEK ID */>> 71 StatusOr<std::vector<uint8_t> /* pubkeys */>
|
/system/netd/server/ |
D | InterfaceController.h | 48 static android::netdutils::StatusOr<InterfaceConfigurationParcel> getCfg( 62 static android::netdutils::StatusOr<std::vector<std::string>> getIfaceNames(); 63 static android::netdutils::StatusOr<std::map<std::string, uint32_t>> getIfaceList();
|
D | InterfaceControllerTest.cpp | 42 using netdutils::StatusOr; 102 .WillOnce(Invoke([val, err](Fd, const Slice buf) -> StatusOr<size_t> { in expectWriteToFile() 182 StatusOr<std::vector<std::string>> ifaceNames = InterfaceController::getIfaceNames(); in TEST_F() 195 StatusOr<std::map<std::string, uint32_t>> ifaceMap = InterfaceController::getIfaceList(); in TEST_F()
|
D | NFLogListenerTest.cpp | 42 using netdutils::StatusOr; 75 static StatusOr<size_t> sendOk(const Slice buf) { return buf.size(); } in sendOk()
|
D | InterfaceController.cpp | 54 using android::netdutils::StatusOr; 81 StatusOr<std::string> randomIPv6Address() { in randomIPv6Address() 419 StatusOr<std::vector<std::string>> InterfaceController::getIfaceNames() { in getIfaceNames() 436 StatusOr<std::map<std::string, uint32_t>> InterfaceController::getIfaceList() { in getIfaceList() 509 StatusOr<InterfaceConfigurationParcel> InterfaceController::getCfg(const std::string& ifName) { in getCfg()
|
D | NFLogListener.h | 86 netdutils::StatusOr<std::unique_ptr<NFLogListener>> makeNFLogListener();
|
D | IptablesRestoreController.cpp | 31 using android::netdutils::StatusOr; 155 StatusOr<pid_t> child_pid = sys.fork(); in forkAndExec()
|
D | NFLogListener.cpp | 41 using netdutils::StatusOr; 205 StatusOr<std::unique_ptr<NFLogListener>> makeNFLogListener() { in makeNFLogListener()
|
D | TetherControllerTest.cpp | 41 using android::netdutils::StatusOr; 378 StatusOr<TetherStatsList> result = mTetherCtrl.getTetherStats(); in TEST_F()
|
D | XfrmController.cpp | 76 using android::netdutils::StatusOr; 205 StatusOr<uint16_t> convertStringAddress(const std::string& addr, uint8_t* buffer) { in convertStringAddress() 298 StatusOr<size_t> writeResult = getSyscallInstance().writev(mSock, *iovecs); in sendMessage() 311 StatusOr<Slice> readResult = in sendMessage() 330 StatusOr<int> convertToXfrmAddr(const std::string& strAddr, xfrm_address_t* xfrmAddr) { in convertToXfrmAddr() 706 StatusOr<int> sourceFamily, destFamily; in fillXfrmEndpointPair() 770 StatusOr<sockaddr_storage> ret = in ipSecApplyTransportModeTransform() 834 StatusOr<sockaddr_storage> ret = in ipSecRemoveTransportModeTransform() 1582 StatusOr<uint16_t> statusOrRemoteFam = convertStringAddress(remoteAddress, remAddr); in ipSecAddVirtualTunnelInterface() 1586 StatusOr<uint16_t> statusOrLocalFam = convertStringAddress(localAddress, locAddr); in ipSecAddVirtualTunnelInterface()
|
D | BandwidthController.cpp | 79 using android::netdutils::StatusOr; 518 StatusOr<UniqueFile> file = sys.fopen(fname, "re"); in getInterfaceQuota() 572 StatusOr<UniqueFile> file = sys.fopen(fname, "we"); in updateQuota()
|
D | TetherController.h | 133 netdutils::StatusOr<TetherStatsList> getTetherStats();
|
D | TrafficController.h | 116 static netdutils::StatusOr<std::unique_ptr<NetlinkListenerInterface>> makeSkDestroyListener();
|
D | TetherController.cpp | 71 using android::netdutils::StatusOr; 909 StatusOr<TetherController::TetherStatsList> TetherController::getTetherStats() { in getTetherStats()
|
D | TrafficController.cpp | 72 using netdutils::StatusOr; 139 StatusOr<std::unique_ptr<NetlinkListenerInterface>> TrafficController::makeSkDestroyListener() { in makeSkDestroyListener()
|
/system/keymaster/android_keymaster/ |
D | remote_provisioning_utils.cpp | 66 StatusOr<std::pair<std::vector<uint8_t> /* EEK pub */, std::vector<uint8_t> /* EEK ID */>> 127 StatusOr<std::vector<uint8_t> /* pubkeys */>
|
/system/security/keystore/ |
D | keystore_attestation_id.cpp | 196 StatusOr<std::vector<uint8_t>> 269 StatusOr<std::vector<uint8_t>> gather_attestation_application_id(uid_t uid) { in gather_attestation_application_id()
|