Home
last modified time | relevance | path

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

/packages/modules/adb/daemon/
Dmain.cpp173 static void setup_adb(const std::vector<std::string>& addrs) { in setup_adb() argument
178 for (const auto& addr : addrs) { in setup_adb()
190 for (const auto& addr : addrs) { in setup_adb()
266 std::vector<std::string> addrs; in adbd_main() local
284 addrs.push_back(android::base::StringPrintf("tcp:%d", port)); in adbd_main()
285 addrs.push_back(android::base::StringPrintf("vsock:%d", port)); in adbd_main()
286 setup_adb(addrs); in adbd_main()
289 addrs.push_back( in adbd_main()
291 addrs.push_back( in adbd_main()
293 setup_adb(addrs); in adbd_main()
[all …]
/packages/modules/Connectivity/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java198 private static int[] toIntArray(@NonNull Collection<Inet4Address> addrs) { in toIntArray() argument
199 int[] res = new int[addrs.size()]; in toIntArray()
201 for (Inet4Address addr : addrs) { in toIntArray()
208 private static ArraySet<Inet4Address> newArraySet(Inet4Address... addrs) { in newArraySet() argument
209 ArraySet<Inet4Address> addrSet = new ArraySet<>(addrs.length); in newArraySet()
210 Collections.addAll(addrSet, addrs); in newArraySet()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java76 InetAddress addrs[] = {}; in testDnsWorks() local
78 addrs = InetAddress.getAllByName("www.google.com"); in testDnsWorks()
81 addrs.length != 0); in testDnsWorks()
83 for (InetAddress addr : addrs) { in testDnsWorks()
101 addrs = new InetAddress[0]; in testDnsWorks()
104 addrs = InetAddress.getAllByName("ipv6.google.com"); in testDnsWorks()
109 assertTrue(msg, addrs.length != 0); in testDnsWorks()
110 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
DDnsStats.cpp61 bool ensureNoInvalidIp(const std::vector<IPSockAddr>& addrs) { in ensureNoInvalidIp() argument
62 for (const auto& addr : addrs) { in ensureNoInvalidIp()
173 bool DnsStats::setAddrs(const std::vector<netdutils::IPSockAddr>& addrs, Protocol protocol) { in setAddrs() argument
174 if (!ensureNoInvalidIp(addrs)) return false; in setAddrs()
177 for (const auto& addr : addrs) { in setAddrs()
184 for (const auto& addr : addrs) { in setAddrs()
DDnsQueryLog.cpp63 const std::string maskedIpsStr = maskIps(record.addrs); in dump()
DDnsStats.h117 bool setAddrs(const std::vector<netdutils::IPSockAddr>& addrs, Protocol protocol);
Dresolv_cache.h117 const std::vector<std::string>& addrs, int port);
Dres_cache.cpp1955 int resolv_stats_set_addrs(unsigned netid, Protocol proto, const std::vector<std::string>& addrs, in resolv_stats_set_addrs() argument
1967 sockAddrs.reserve(addrs.size()); in resolv_stats_set_addrs()
1968 for (const auto& addr : addrs) { in resolv_stats_set_addrs()
/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/Bluetooth/system/gd/rust/linux/mgmt/src/
Dmigrate.rs501 let addrs = info_path.to_str().unwrap_or_default().split('/').collect::<Vec<&str>>(); in migrate_bluez_devices() localVariable
502 let adapter_addr = addrs[addrs.len() - 3]; in migrate_bluez_devices()
503 let device_addr = addrs[addrs.len() - 2]; in migrate_bluez_devices()
795 let addrs = pathbuf.to_str().unwrap_or_default().split('/').collect::<Vec<&str>>(); in convert_floss_conf() localVariable
796 let device_addr: String = addrs[addrs.len() - 1].into(); in convert_floss_conf()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java167 private static Set<Inet4Address> toInet4AddressSet(@Nullable int[] addrs) { in toInet4AddressSet() argument
168 if (addrs == null) { in toInet4AddressSet()
173 for (int addr : addrs) { in toInet4AddressSet()
DDhcpPacket.java711 protected static void addTlv(ByteBuffer buf, byte type, @Nullable List<Inet4Address> addrs) { in addTlv() argument
712 if (addrs == null || addrs.size() == 0) return; in addTlv()
714 int optionLen = 4 * addrs.size(); in addTlv()
723 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/Virtualization/pvmfw/src/
Dfdt.rs404 addrs: ArrayVec<[u64; Self::MAX_SERIALS]>, field
412 let mut addrs: ArrayVec<[u64; SerialInfo::MAX_SERIALS]> = Default::default(); in read_serial_info_from() localVariable
415 addrs.push(reg.addr); in read_serial_info_from()
417 Ok(SerialInfo { addrs }) in read_serial_info_from()
430 next = if !serial_info.addrs.contains(&reg.addr) { in patch_serial_info()
/packages/modules/Connectivity/framework/src/android/net/
DITestNetworkManager.aidl33 boolean disableIpv6ProvisioningDelay, in LinkAddress[] addrs, in createInterface() argument
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java637 private void addLinkAddresses(LinkProperties lp, String... addrs) { in addLinkAddresses() argument
638 for (String addrStr : addrs) { in addLinkAddresses()
643 private void removeLinkAddresses(LinkProperties lp, String... addrs) { in removeLinkAddresses() argument
644 for (String addrStr : addrs) { in removeLinkAddresses()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java139 final HashSet<Inet4Address> addrs = new HashSet<>(); in requestAddresses() local
151 assertTrue(format("Duplicate address allocated: %s in %s", lease.getNetAddr(), addrs), in requestAddresses()
152 addrs.add(lease.getNetAddr())); in requestAddresses()
157 return addrs; in requestAddresses()
DDhcpServingParamsTest.java233 private static int[] toIntArray(Collection<Inet4Address> addrs) { in toIntArray() argument
234 return addrs.stream().mapToInt(Inet4AddressUtils::inet4AddressToIntHTH).toArray(); in toIntArray()
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.java1928 final List<InetAddress> addrs = Arrays.asList(super.getAllByName(host)); in getAllByName() local
1932 addressByFamily.put(addrs.get(0).getClass(), addrs.get(0)); in getAllByName()
1933 Collections.shuffle(addrs); in getAllByName()
1935 for (InetAddress addr : addrs) { in getAllByName()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java5768 Enumeration<InetAddress> addrs = iface.getInetAddresses(); in getInterfaceAddress() local
5769 while (addrs.hasMoreElements()) { in getInterfaceAddress()
5770 InetAddress addr = addrs.nextElement(); in getInterfaceAddress()