Home
last modified time | relevance | path

Searched refs:repr (Results 1 – 6 of 6) sorted by relevance

/system/netd/server/
DNetwork.cpp60 std::stringstream repr; in toString() local
62 repr << mNetId; in toString()
64 repr << kSeparator; in toString()
67 repr << "DUMMY"; in toString()
70 repr << "LOCAL"; in toString()
73 repr << "PHYSICAL"; in toString()
76 repr << "VIRTUAL"; in toString()
79 repr << "unknown"; in toString()
83 repr << kSeparator << android::base::Join(mInterfaces, ","); in toString()
86 return repr.str(); in toString()
/system/netd/libnetdutils/
DInternetAddresses.cpp34 char repr[INET6_ADDRSTRLEN] = "\0"; in toString() local
41 inet_ntop(AF_INET, &v4, repr, sizeof(repr)); in toString()
46 inet_ntop(AF_INET6, &v6, repr, sizeof(repr)); in toString()
54 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
57 return repr; in toString()
60 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() argument
65 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
128 bool IPPrefix::forString(const std::string& repr, IPPrefix* prefix) { in forString() argument
129 size_t index = repr.find('/'); in forString()
134 if (!IPAddress::forString(repr.substr(0, index), &ip)) return false; in forString()
[all …]
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h126 static bool forString(const std::string& repr, IPAddress* ip);
127 static IPAddress forString(const std::string& repr) { in forString() argument
129 if (!forString(repr, &ip)) return IPAddress(); in forString()
198 static bool forString(const std::string& repr, IPPrefix* prefix);
199 static IPPrefix forString(const std::string& repr) { in forString() argument
201 if (!forString(repr, &prefix)) return IPPrefix(); in forString()
250 static IPSockAddr toIPSockAddr(const std::string& repr, in_port_t port) { in toIPSockAddr() argument
251 return IPSockAddr(IPAddress::forString(repr), port); in toIPSockAddr()
/system/bt/tools/scripts/
Dbtsnoop_live.py250 print("Error: Invalid data", repr(snoop_hdr))
/system/vold/bench/
Dbenchgen.py43 return "%s(%s)=%s" % (self.call, repr(self.args), self.ret)
/system/core/adb/
Dtest_adb.py154 assert greeting == b"OK\n", repr(greeting)