Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 16 of 16) sorted by relevance

/packages/modules/adb/daemon/
Dmain.cpp168 static void setup_adb(const std::vector<std::string>& addrs) { in setup_adb() argument
173 for (const auto& addr : addrs) { in setup_adb()
185 for (const auto& addr : addrs) { in setup_adb()
253 std::vector<std::string> addrs; in adbd_main() local
271 addrs.push_back(android::base::StringPrintf("tcp:%d", port)); in adbd_main()
272 addrs.push_back(android::base::StringPrintf("vsock:%d", port)); in adbd_main()
273 setup_adb(addrs); in adbd_main()
276 addrs.push_back( in adbd_main()
278 addrs.push_back( in adbd_main()
280 setup_adb(addrs); in adbd_main()
[all …]
/packages/modules/Connectivity/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java188 private static int[] toIntArray(@NonNull Collection<Inet4Address> addrs) { in toIntArray() argument
189 int[] res = new int[addrs.size()]; in toIntArray()
191 for (Inet4Address addr : addrs) { in toIntArray()
198 private static ArraySet<Inet4Address> newArraySet(Inet4Address... addrs) { in newArraySet() argument
199 ArraySet<Inet4Address> addrSet = new ArraySet<>(addrs.length); in newArraySet()
200 Collections.addAll(addrSet, addrs); in newArraySet()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java77 InetAddress addrs[] = {}; in testDnsWorks() local
79 addrs = InetAddress.getAllByName("www.google.com"); in testDnsWorks()
82 addrs.length != 0); in testDnsWorks()
84 for (InetAddress addr : addrs) { in testDnsWorks()
102 addrs = new InetAddress[0]; in testDnsWorks()
105 addrs = InetAddress.getAllByName("ipv6.google.com"); in testDnsWorks()
110 assertTrue(msg, addrs.length != 0); in testDnsWorks()
111 for (InetAddress addr : addrs) { in testDnsWorks()
/packages/modules/DnsResolver/
DDnsQueryLog.h36 const std::vector<std::string>& addrs, int timeTaken) in Record()
41 addrs(addrs), in Record()
48 const std::vector<std::string> addrs; member
DDnsQueryLog.cpp63 const std::string maskedIpsStr = maskIps(record.addrs); in dump()
/packages/modules/Connectivity/tests/common/java/android/net/
DLinkAddressTest.java136 List<InterfaceAddress> addrs = NetworkInterface.getByName("lo").getInterfaceAddresses(); in testConstructors() local
140 assertEquals(2, addrs.size()); in testConstructors()
141 if (addrs.get(0).getAddress() instanceof Inet4Address) { in testConstructors()
142 ipv4Loopback = new LinkAddress(addrs.get(0)); in testConstructors()
143 ipv6Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
145 ipv4Loopback = new LinkAddress(addrs.get(1)); in testConstructors()
146 ipv6Loopback = new LinkAddress(addrs.get(0)); in testConstructors()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp69 const std::array<std::string, 2>& addrs) { in makePair() argument
71 if (inet_pton(AF_INET, addrs[0].c_str(), &pair.src) != 1 || in makePair()
72 inet_pton(AF_INET, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
87 const std::array<std::string, 2>& addrs) { in makePair() argument
89 if (inet_pton(AF_INET6, addrs[0].c_str(), &pair.src) != 1 || in makePair()
90 inet_pton(AF_INET6, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
Dtun_forwarder.h51 static base::Result<v4pair> makePair(const std::array<std::string, 2>& addrs);
64 static base::Result<v6pair> makePair(const std::array<std::string, 2>& addrs);
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java156 private static Set<Inet4Address> toInet4AddressSet(@Nullable int[] addrs) { in toInet4AddressSet() argument
157 if (addrs == null) { in toInet4AddressSet()
162 for (int addr : addrs) { in toInet4AddressSet()
DDhcpPacket.java710 protected static void addTlv(ByteBuffer buf, byte type, @Nullable List<Inet4Address> addrs) { in addTlv() argument
711 if (addrs == null || addrs.size() == 0) return; in addTlv()
713 int optionLen = 4 * addrs.size(); in addTlv()
722 for (Inet4Address addr : addrs) { in addTlv()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java476 private String[] makeStrings(Collection<InetAddress> addrs) { in makeStrings() argument
477 String[] result = new String[addrs.size()]; in makeStrings()
479 for (InetAddress addr : addrs) { in makeStrings()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java210 private static int[] toIntArray(Collection<Inet4Address> addrs) { in toIntArray() argument
211 return addrs.stream().mapToInt(Inet4AddressUtils::inet4AddressToIntHTH).toArray(); in toIntArray()
DDhcpLeaseRepositoryTest.java133 final HashSet<Inet4Address> addrs = new HashSet<>(); in requestAddresses() local
145 assertTrue(format("Duplicate address allocated: %s in %s", lease.getNetAddr(), addrs), in requestAddresses()
146 addrs.add(lease.getNetAddr())); in requestAddresses()
DDhcpServerTest.java377 private int[] toIntArray(@NonNull Collection<Inet4Address> addrs) { in toIntArray() argument
378 return addrs.stream().mapToInt(Inet4AddressUtils::inet4AddressToIntHTH).toArray(); in toIntArray()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1788 final List<InetAddress> addrs = Arrays.asList(super.getAllByName(host)); in getAllByName() local
1792 addressByFamily.put(addrs.get(0).getClass(), addrs.get(0)); in getAllByName()
1793 Collections.shuffle(addrs); in getAllByName()
1795 for (InetAddress addr : addrs) { in getAllByName()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java3935 Enumeration<InetAddress> addrs = iface.getInetAddresses(); in getInterfaceAddress() local
3936 while (addrs.hasMoreElements()) { in getInterfaceAddress()
3937 InetAddress addr = addrs.nextElement(); in getInterfaceAddress()