Home
last modified time | relevance | path

Searched refs:addresses (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java147 private static boolean hasExpiredAddress(List<AddressInfo> addresses, long now) { in hasExpiredAddress() argument
148 for (AddressInfo info : addresses) { in hasExpiredAddress()
158 final List<AddressInfo> addresses = client.getAddresses(); in pruneExpired() local
159 if (addresses.size() == 0) return null; in pruneExpired()
160 if (!hasExpiredAddress(addresses, now)) return client; in pruneExpired()
162 final ArrayList<AddressInfo> newAddrs = new ArrayList<>(addresses.size() - 1); in pruneExpired()
163 for (AddressInfo info : addresses) { in pruneExpired()
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_Vpn.cpp115 static int set_addresses(const char *name, const char *addresses) in set_addresses() argument
137 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses()
138 addresses += chars; in set_addresses()
184 } else if (*addresses) { in set_addresses()
185 ALOGE("Invalid address: %s", addresses); in set_addresses()
286 const char *addresses = NULL; in setAddresses() local
294 addresses = jAddresses ? env->GetStringUTFChars(jAddresses, NULL) : NULL; in setAddresses()
295 if (!addresses) { in setAddresses()
299 count = set_addresses(name, addresses); in setAddresses()
309 if (addresses) { in setAddresses()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractIpAddressPreferenceController.java106 StringBuilder addresses = new StringBuilder(); in formatIpAddresses()
108 addresses.append(iter.next().getHostAddress()); in formatIpAddresses()
109 if (iter.hasNext()) addresses.append("\n"); in formatIpAddresses()
111 return addresses.toString(); in formatIpAddresses()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java95 public List<LinkAddress> addresses = new ArrayList<LinkAddress>(); field in VpnConfig
141 String[] addresses = addressesStr.trim().split(" "); in addLegacyAddresses() local
142 for (String address : addresses) { in addLegacyAddresses()
145 this.addresses.add(addr); in addLegacyAddresses()
161 out.writeTypedList(addresses); in writeToParcel()
188 in.readTypedList(config.addresses, LinkAddress.CREATOR);
221 .append(", addresses=").append(toString(addresses)) in toString()
/frameworks/base/telephony/java/android/telephony/data/
DDataCallResponse.java110 @Nullable List<LinkAddress> addresses, in DataCallResponse() argument
120 mAddresses = (addresses == null) in DataCallResponse()
121 ? new ArrayList<>() : new ArrayList<>(addresses); in DataCallResponse()
134 @Nullable String interfaceName, @Nullable List<LinkAddress> addresses, in DataCallResponse() argument
143 mAddresses = (addresses == null) in DataCallResponse()
144 ? new ArrayList<>() : new ArrayList<>(addresses); in DataCallResponse()
476 public @NonNull Builder setAddresses(@NonNull List<LinkAddress> addresses) { in setAddresses() argument
477 mAddresses = addresses; in setAddresses()
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java176 public void interfaceDnsServerInfo(String iface, long lifetime, String[] addresses) { in interfaceDnsServerInfo() argument
178 maybeLog("interfaceDnsServerInfo", Arrays.toString(addresses)); in interfaceDnsServerInfo()
179 boolean changed = mDnsServerRepository.addServers(lifetime, addresses); in interfaceDnsServerInfo()
309 public synchronized boolean addServers(long lifetime, String[] addresses) { in addServers() argument
318 for (String addressString : addresses) { in addServers()
/frameworks/base/services/core/java/com/android/server/location/
DLocationBasedCountryDetector.java79 List<Address> addresses = geoCoder.getFromLocation( in getCountryFromLocation() local
81 if (addresses != null && addresses.size() > 0) { in getCountryFromLocation()
82 country = addresses.get(0).getCountryCode(); in getCountryFromLocation()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DFakeDns.kt34 class DnsEntry(val hostname: String, val type: Int, val addresses: List<InetAddress>) { constant in com.android.testutils.FakeDns.DnsEntry
84 if (!answer?.addresses.isNullOrEmpty()) { in mockAnswer()
86 callback.onAnswer(answer?.addresses, 0); }) }) in mockAnswer()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java105 HashSet<String> addresses = new HashSet<String>(); in getMatchingRecipients() local
110 addresses.add(tokens.length > 0 ? tokens[0].getAddress() : inAddresses.get(i)); in getMatchingRecipients()
118 Log.d(TAG, "Doing reverse lookup for " + addresses.toString()); in getMatchingRecipients()
121 String[] addressArray = new String[addresses.size()]; in getMatchingRecipients()
122 addresses.toArray(addressArray); in getMatchingRecipients()
145 addresses, account, matchesNotFound, query, callback, permissionsCheckListener); in getMatchingRecipients()
151 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries() argument
156 context, recipientEntries, addresses, account, in getMatchingRecipientsFromDirectoryQueries()
161 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries() argument
168 if (recipientEntries.size() < addresses.size()) { in getMatchingRecipientsFromDirectoryQueries()
[all …]
/frameworks/base/core/java/android/net/
DLinkProperties.java256 final List<InetAddress> addresses = new ArrayList<>(); in getAddresses() local
258 addresses.add(linkAddress.getAddress()); in getAddresses()
260 return Collections.unmodifiableList(addresses); in getAddresses()
269 List<InetAddress> addresses = new ArrayList<>(); in getAllAddresses() local
271 addresses.add(linkAddress.getAddress()); in getAllAddresses()
274 addresses.addAll(stacked.getAllAddresses()); in getAllAddresses()
276 return addresses; in getAllAddresses()
351 List<LinkAddress> addresses = new ArrayList<>(mLinkAddresses); in getAllLinkAddresses() local
353 addresses.addAll(stacked.getAllLinkAddresses()); in getAllLinkAddresses()
355 return addresses; in getAllLinkAddresses()
[all …]
DSntpClient.java99 final InetAddress[] addresses = networkForResolv.getAllByName(host); in requestTime() local
100 for (int i = 0; i < addresses.length; i++) { in requestTime()
101 if (requestTime(addresses[i], NTP_PORT, timeout, networkForResolv)) return true; in requestTime()
DVpnService.java893 mConfig.addresses = mAddresses; in establish()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java100 final List<LinkAddress> addresses = lp.getLinkAddresses(); in assertOnlyOneV6AddressAndNoV4() local
101 assertEquals(addresses.size(), 1); in assertOnlyOneV6AddressAndNoV4()
102 final LinkAddress v6Address = addresses.get(0); in assertOnlyOneV6AddressAndNoV4()
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java47 @NonNull Collection<AddressInfo> addresses, int tetheringType) { in TetheredClient() argument
49 mAddresses = new ArrayList<>(addresses); in TetheredClient()
/frameworks/ex/common/java/com/android/common/contacts/
DDataUsageStatUpdater.java54 public boolean updateWithAddress(Collection<String> addresses) { in updateWithAddress() argument
/frameworks/compile/libbcc/
DREADME.rst113 * **bccGetExportVarList** - Get the addresses of exported variables
117 * **bccGetExportFuncList** - Get the addresses of exported functions
158 The list of the addresses of exported variables.
161 The list of the addresses of exported functions.
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/caremu/
DAndroid.bp49 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/base/packages/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt106 assertEquals(listOf(TEST_ADDRINFO1, TEST_ADDRINFO2), makeTestClient().addresses) in makeLinkAddress()
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive/
DAndroid.bp53 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone/
DAndroid.bp58 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java149 private void allocateDevices(List<Integer> addresses) { in allocateDevices() argument
150 for (Integer i : addresses) { in allocateDevices()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java640 private void notifyInterfaceDnsServerInfo(String iface, long lifetime, String[] addresses) { in notifyInterfaceDnsServerInfo() argument
641 invokeForAllObservers(o -> o.interfaceDnsServerInfo(iface, lifetime, addresses)); in notifyInterfaceDnsServerInfo()
1084 private List<InterfaceAddress> excludeLinkLocal(List<InterfaceAddress> addresses) { in excludeLinkLocal() argument
1085 ArrayList<InterfaceAddress> filtered = new ArrayList<>(addresses.size()); in excludeLinkLocal()
1086 for (InterfaceAddress ia : addresses) { in excludeLinkLocal()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1014 if (mConfig.addresses != null) {
1015 for (LinkAddress address : mConfig.addresses) {
1212 for (LinkAddress address : config.addresses) {
1869 private native int jniSetAddresses(String interfaze, String addresses);
2299 mConfig.addresses.clear();
2300 mConfig.addresses.addAll(internalAddresses);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java1835 ArrayList<String> addresses = new ArrayList<>(); in setupDataCall() local
1839 addresses.add(address.getHostAddress()); in setupDataCall()
1894 + ",addresses=" + addresses + ",dnses=" + dnses); in setupDataCall()
1898 reason, addresses, dnses); in setupDataCall()
1913 + dataProfile + ",addresses=" + addresses + ",dnses=" + dnses); in setupDataCall()
1918 addresses, dnses); in setupDataCall()
6786 String[] addresses = null; in convertDataCallResult() local
6802 if (!TextUtils.isEmpty(result.addresses)) { in convertDataCallResult()
6803 addresses = result.addresses.split("\\s+"); in convertDataCallResult()
6815 if (addresses != null) { in convertDataCallResult()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java179 final List<LinkAddress> sourceAddrs = vpnConfig.addresses; in handleStateChangedLocked()

12