Home
last modified time | relevance | path

Searched refs:addrIndex (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java548 int addrIndex = getAddrIndex(addr); // 0-based index of the address in the subnet in getValidAddress() local
551 final int lastByte = getAddrByIndex(addrIndex) & lastByteMask; in getValidAddress()
554 addrIndex = (addrIndex + 2) % mNumAddresses; in getValidAddress()
557 addrIndex = (addrIndex + 1) % mNumAddresses; in getValidAddress()
561 if (addrIndex == 0 || addrIndex == mNumAddresses - 1) { in getValidAddress()
563 addrIndex = 1; in getValidAddress()
565 return getAddrByIndex(addrIndex); in getValidAddress()
577 final int addrIndex = getAddrIndex(addr); in getNextAddress() local
578 final int nextAddress = getAddrByIndex((addrIndex + 1) % mNumAddresses); in getNextAddress()
602 final int addrIndex = hash % mNumAddresses; in getFirstClientAddress() local
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java238 for (int addrIndex = 0; addrIndex < numberOfAddrs; addrIndex++) { in skiptestDnsPerf()
240 InetAddress addr = InetAddress.getByAddress(addressList.get(addrIndex)); in skiptestDnsPerf()
247 InetAddress.getByAddress(addressList.get(addrIndex)); in skiptestDnsPerf()
/packages/modules/DnsResolver/
Dres_send.cpp687 static struct timespec get_timeout(ResState* statp, const res_params* params, const int addrIndex) { in get_timeout() argument
689 msec = params->base_timeout_msec << addrIndex; in get_timeout()
693 if (addrIndex > 0) { in get_timeout()