/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SavedNetworkNominator.java | 115 WifiConfiguration network = in findMatchedSavedNetworks() local 118 if (network == null) { in findMatchedSavedNetworks() 126 if (network.isPasspoint() || network.isEphemeral()) { in findMatchedSavedNetworks() 131 if (!network.allowAutojoin) { in findMatchedSavedNetworks() 132 localLog("Ignoring auto join disabled SSID: " + network.SSID); in findMatchedSavedNetworks() 137 network.getNetworkSelectionStatus(); in findMatchedSavedNetworks() 140 if (mWifiConfigManager.isNonCarrierMergedNetworkTemporarilyDisabled(network)) { in findMatchedSavedNetworks() 141 localLog("Ignoring non-carrier-merged SSID: " + network.SSID); in findMatchedSavedNetworks() 144 if (mWifiConfigManager.isNetworkTemporarilyDisabledByUser(network.SSID)) { in findMatchedSavedNetworks() 145 localLog("Ignoring user disabled SSID: " + network.SSID); in findMatchedSavedNetworks() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | MultinetworkApiTest.java | 80 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks() 81 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks() 85 testableNetworks.add(network); in getTestableNetworks() 97 for (Network network : getTestableNetworks()) { in testGetaddrinfo() 98 int errno = runGetaddrinfoCheck(network.getNetworkHandle()); in testGetaddrinfo() 101 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo() 112 for (Network network : getTestableNetworks()) { in testSetprocnetwork() 116 int errno = runSetprocnetwork(network.getNetworkHandle()); in testSetprocnetwork() 119 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork() 123 assertEquals(network, processDefault); in testSetprocnetwork() [all …]
|
D | DnsResolverTest.java | 169 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks() 170 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks() 174 testableNetworks.add(network); in getTestableNetworks() 371 for (Network network : getTestableNetworks()) { in doTestRawQuery() 373 mDns.rawQuery(network, TEST_DOMAIN, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQuery() 398 for (Network network : getTestableNetworks()) { in doTestRawQueryBlob() 400 mDns.rawQuery(network, blob, FLAG_NO_CACHE_LOOKUP, executor, null, callback); in doTestRawQueryBlob() 411 for (Network network : getTestableNetworks()) { in doTestRawQueryRoot() 413 mDns.rawQuery(network, dname, CLASS_IN, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in doTestRawQueryRoot() 426 for (Network network : getTestableNetworks()) { in doTestRawQueryNXDomain() [all …]
|
D | NetworkAgentTest.kt | 335 callback.expectAvailableThenValidatedCallbacks(agent.network!!) in createConnectedNetworkAgent() 341 val network = agent.network!! in connectNetwork() constant 345 return agent to network in connectNetwork() 397 val networkInfo = mCM.getNetworkInfo(agent.network) in testSetSubtypeNameAndExtraInfoByAgentConfig() 421 callback.expectCaps(agent.network) { it.hasCapability(NET_CAPABILITY_NOT_METERED) } in testSetLegacySubtypeInNetworkAgent() 422 val networkInfo = mCM.getNetworkInfo(agent.network) in testSetLegacySubtypeInNetworkAgent() 431 callback.expect<Lost>(agent.network!!) in testConnectAndUnregister() 440 mCM.requestBandwidthUpdate(agent.network!!) in testOnBandwidthUpdateRequested() 462 val net = agent.network!! in testSignalStrengthThresholds() 536 callback.expect<LinkPropertiesChanged>(agent.network!!) { it.lp.interfaceName == ifaceName } in agent() [all …]
|
D | NsdManagerTest.kt | 164 val network: Network in <lambda>() constant in android.net.cts.NsdManagerTest.TestTapNetwork 383 val network = agent.network ?: fail("Registered agent should have a network") in <lambda>() constant 394 return TestTapNetwork(iface, cb, agent, network) in <lambda>() 408 val network = agent.register() in <lambda>() constant 424 network.bindSocket(sock) in <lambda>() 444 private fun makeTestServiceInfo(network: Network? = null) = NsdServiceInfo().also { in <lambda>() 447 it.network = network in <lambda>() 617 testNetwork1.network, Executor { it.run() }, discoveryRecord) in <lambda>() 620 serviceName, serviceType, testNetwork1.network) in <lambda>() 621 assertEquals(testNetwork1.network, nsdShim.getNetwork(foundInfo)) in <lambda>() [all …]
|
D | ConnectivityManagerTest.java | 486 Network network = mCm.getActiveNetwork(); in testGetActiveNetwork() local 487 assertNotNull("You must have an active network connection to complete CTS", network); in testGetActiveNetwork() 489 NetworkInfo ni = mCm.getNetworkInfo(network); in testGetActiveNetwork() 575 for (final Network network : networks) { in testGetAllNetworkStateSnapshots() 580 if (item.getNetwork().equals(network)) { in testGetAllNetworkStateSnapshots() 587 Objects.requireNonNull(mCm.getNetworkCapabilities(network)); in testGetAllNetworkStateSnapshots() 606 entry.getNetwork().equals(network) in testGetAllNetworkStateSnapshots() 609 assertEquals(mCm.getNetworkInfo(network).getType(), snapshot.getLegacyType()); in testGetAllNetworkStateSnapshots() 611 if (network.equals(cellNetwork)) { in testGetAllNetworkStateSnapshots() 873 private static String httpGet(Network network, URL httpUrl) throws IOException { in httpGet() argument [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceCacheTest.kt | 47 private val network = mock(Network::class.java) in <lambda>() constant 74 private fun addOrUpdateService(serviceType: String, network: Network, service: MdnsResponse): in <lambda>() 76 serviceCache.addOrUpdateService(serviceType, network, service) } in <lambda>() 78 private fun removeService(serviceName: String, serviceType: String, network: Network): in <lambda>() 80 serviceCache.removeService(serviceName, serviceType, network) } in <lambda>() 82 private fun getService(serviceName: String, serviceType: String, network: Network): in <lambda>() 84 serviceCache.getCachedService(serviceName, serviceType, network) } in <lambda>() 86 private fun getServices(serviceType: String, network: Network): List<MdnsResponse> = in <lambda>() 87 runningOnHandlerAndReturn { serviceCache.getCachedServices(serviceType, network) } in <lambda>() 91 addOrUpdateService(SERVICE_TYPE_1, network, createResponse(SERVICE_NAME_1, SERVICE_TYPE_1)) in <lambda>() [all …]
|
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/ |
D | CurrentEthernetNetworksViewModel.java | 87 private void addNetwork(Network network) { in addNetwork() argument 91 networks.add(network); in addNetwork() 95 private void removeNetwork(Network network) { in removeNetwork() argument 99 networks.remove(network); in removeNetwork() 105 for (Network network : networks) { in getCurrentEthernetNetworksText() 106 LinkProperties linkProperties = mConnectivityManager.getLinkProperties(network); in getCurrentEthernetNetworksText() 108 mConnectivityManager.getNetworkCapabilities(network); in getCurrentEthernetNetworksText() 142 public void onAvailable(Network network) { in onAvailable() argument 143 super.onAvailable(network); in onAvailable() 144 Log.d(TAG, "Network " + network + " available"); in onAvailable() [all …]
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 356 private void handleAvailable(Network network) { in handleAvailable() argument 357 if (mNetworkMap.containsKey(network)) return; in handleAvailable() 359 if (VDBG) Log.d(TAG, "onAvailable for " + network); in handleAvailable() 360 mNetworkMap.put(network, new UpstreamNetworkState(null, null, network)); in handleAvailable() 363 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() argument 364 final UpstreamNetworkState prev = mNetworkMap.get(network); in handleNetCap() 374 network, newNc)); in handleNetCap() 377 mNetworkMap.put(network, new UpstreamNetworkState( in handleNetCap() 378 prev.linkProperties, newNc, network)); in handleNetCap() 381 notifyTarget(EVENT_ON_CAPABILITIES, network); in handleNetCap() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsSocketProvider.java | 171 public void onLost(Network network) { in MdnsSocketProvider() 172 mActiveNetworksLinkProperties.remove(network); in MdnsSocketProvider() 173 mActiveNetworksTransports.remove(network); in MdnsSocketProvider() 174 removeNetworkSocket(network); in MdnsSocketProvider() 178 public void onCapabilitiesChanged(@NonNull Network network, in MdnsSocketProvider() 180 mActiveNetworksTransports.put(network, networkCapabilities.getTransportTypes()); in MdnsSocketProvider() 184 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in MdnsSocketProvider() 185 handleLinkPropertiesChanged(network, lp); in MdnsSocketProvider() 389 private boolean matchRequestedNetwork(Network network) { in matchRequestedNetwork() argument 391 || mCallbacksToRequestedNetworks.containsValue(network); in matchRequestedNetwork() [all …]
|
D | MdnsDiscoveryManager.java | 60 public void put(@NonNull String serviceType, @Nullable Network network, in put() argument 62 final Pair<String, Network> perNetworkServiceType = new Pair<>(serviceType, network); in put() 67 public MdnsServiceTypeClient get(@NonNull String serviceType, @Nullable Network network) { in get() argument 68 final Pair<String, Network> perNetworkServiceType = new Pair<>(serviceType, network); in get() 83 public List<MdnsServiceTypeClient> getByNetwork(@Nullable Network network) { in getByNetwork() argument 88 if (Objects.equals(network, serviceTypeNetwork)) { in getByNetwork() 174 public void onSocketCreated(@Nullable Network network) { in handleRegisterListener() 179 perNetworkServiceTypeClients.get(serviceType, network); in handleRegisterListener() 181 serviceTypeClient = createServiceTypeClient(serviceType, network); in handleRegisterListener() 182 perNetworkServiceTypeClients.put(serviceType, network, in handleRegisterListener() [all …]
|
D | MdnsMultinetworkSocketClient.java | 75 public void onSocketCreated(@Nullable Network network, in onSocketCreated() argument 82 handler = new ReadPacketHandler(network, socket.getInterface().getIndex()); in onSocketCreated() 86 mActiveNetworkSockets.put(socket, network); in onSocketCreated() 87 mSocketCreationCallback.onSocketCreated(network); in onSocketCreated() 91 public void onInterfaceDestroyed(@Nullable Network network, in onInterfaceDestroyed() argument 98 final Network network = mActiveNetworkSockets.remove(socket); in notifySocketDestroyed() local 99 if (!isAnySocketActive(network)) { in notifySocketDestroyed() 100 mSocketCreationCallback.onAllSocketsDestroyed(network); in notifySocketDestroyed() 124 private boolean isAnySocketActive(@Nullable Network network) { in isAnySocketActive() argument 127 if (isc.mActiveNetworkSockets.containsValue(network)) { in isAnySocketActive() [all …]
|
D | MdnsServiceCache.java | 50 CacheKey(@NonNull String serviceType, @Nullable Network network) { in CacheKey() argument 52 mNetwork = network; in CacheKey() 92 @Nullable Network network) { in getCachedServices() argument 94 final CacheKey key = new CacheKey(serviceType, network); in getCachedServices() 120 @NonNull String serviceType, @Nullable Network network) { in getCachedService() argument 123 mCachedServices.get(new CacheKey(serviceType, network)); in getCachedService() 138 public void addOrUpdateService(@NonNull String serviceType, @Nullable Network network, in addOrUpdateService() argument 142 new CacheKey(serviceType, network), key -> new ArrayList<>()); in addOrUpdateService() 159 @Nullable Network network) { in removeService() argument 162 mCachedServices.get(new CacheKey(serviceType, network)); in removeService()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/ |
D | NetworkMonitorTest.java | 68 final Network network = mock(Network.class); in testStartListening() local 69 cb.onAvailable(network); in testStartListening() 70 cb.onBlockedStatusChanged(network, false); in testStartListening() 103 final Network network = mock(Network.class); in testWaitForValidated_NoCallbackBeforeValidated() local 104 cb.onAvailable(network); in testWaitForValidated_NoCallbackBeforeValidated() 105 cb.onBlockedStatusChanged(network, false); in testWaitForValidated_NoCallbackBeforeValidated() 106 cb.onCapabilitiesChanged(network, new NetworkCapabilities()); in testWaitForValidated_NoCallbackBeforeValidated() 120 final Network network = mock(Network.class); in testWaitForValidated_NetworkChange() local 121 cb.onAvailable(network); in testWaitForValidated_NetworkChange() 122 cb.onBlockedStatusChanged(network, false); in testWaitForValidated_NetworkChange() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/tests/hosttest/src/com/android/rkpdapp/hosttest/ |
D | RkpdStatsTests.java | 90 final RemoteKeyProvisioningNetworkInfo network = getNetworkMetric(data); in testDataBudgetEmptyGenerateKey() local 91 assertThat(network).isNotNull(); in testDataBudgetEmptyGenerateKey() 92 assertThat(network.getTransportType()).isEqualTo(timing.getTransportType()); in testDataBudgetEmptyGenerateKey() 93 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testDataBudgetEmptyGenerateKey() 94 assertThat(network.getHttpStatusError()).isEqualTo(NO_HTTP_STATUS_ERROR); in testDataBudgetEmptyGenerateKey() 124 final RemoteKeyProvisioningNetworkInfo network = getNetworkMetric(data); in testRetryableRkpError() local 125 assertThat(network).isNotNull(); in testRetryableRkpError() 126 assertThat(network.getTransportType()).isEqualTo(timing.getTransportType()); in testRetryableRkpError() 127 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testRetryableRkpError() 128 assertThat(network.getHttpStatusError()).isEqualTo(NO_HTTP_STATUS_ERROR); in testRetryableRkpError() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 167 public void notifyCaptivePortalValidationPending(@NonNull Network network) { in notifyCaptivePortalValidationPending() argument 168 mHandler.post(() -> setCaptivePortalValidationPending(network)); in notifyCaptivePortalValidationPending() 171 private void setCaptivePortalValidationPending(@NonNull Network network) { in setCaptivePortalValidationPending() argument 172 updateNetworkStatus(network, status -> { in setCaptivePortalValidationPending() 187 private void updateNetworkStatus(@NonNull Network network, in updateNetworkStatus() argument 190 mNetworkStatus.computeIfAbsent(network, n -> new TrackedNetworkStatus()); in updateNetworkStatus() 194 private void updateNotifications(@NonNull Network network) { in updateNotifications() argument 195 final TrackedNetworkStatus networkStatus = mNetworkStatus.get(network); in updateNotifications() 210 && network.equals(mDefaultNetwork) in updateNotifications() 215 final String notificationTag = getNotificationTag(network); in updateNotifications() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeDefaultNetworkCallback.java | 59 public void onAvailable(@NonNull Network network) { in onAvailable() argument 60 if (!network.equals(mCurrNetwork)) { in onAvailable() 61 logd("onAvailable: " + network); in onAvailable() 63 mCurrNetwork = network; in onAvailable() 73 @NonNull Network network, @NonNull NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() 74 logd("onCapabilitiesChanged: " + network); in onCapabilitiesChanged() 76 if (!mCurrNetwork.equals(network)) { in onCapabilitiesChanged() 86 logd("Application default Network changed to " + network); in onCapabilitiesChanged() 101 @NonNull Network network, @NonNull LinkProperties linkProperties) { in onLinkPropertiesChanged() 102 logd("onLinkPropertiesChanged: " + network); in onLinkPropertiesChanged() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | NetworkCallbackTest.java | 63 public final Network network; field in NetworkCallbackTest.CallbackInfo 67 state = s; network = n; arg = o; in CallbackInfo() 71 return String.format("%s (%s) (%s)", state, network, arg); in toString() 79 return (state == other.state) && Objects.equals(network, other.network) in equals() 85 return Objects.hash(state, network, arg); in hashCode() 95 protected void setLastCallback(CallbackState state, Network network, Object o) { in setLastCallback() argument 96 mCallbacks.offer(new CallbackInfo(state, network, o)); in setLastCallback() 119 public void onAvailable(Network network) { in onAvailable() argument 120 setLastCallback(CallbackState.AVAILABLE, network, null); in onAvailable() 124 public void onLost(Network network) { in onLost() argument [all …]
|
/packages/modules/Connectivity/service/src/com/android/metrics/ |
D | stats.proto | 67 * Logs the number of network count on each list of transports 73 // the number of network count on each list of transports 78 * Logs the number of network count and transport type 84 // Transport types of the network 108 // Transport types of the network 111 // Time duration that the device stays connected to the network 126 * Logs network request count & request type 132 // The type of network request 135 // Number of network requests 140 * Logs network request count [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivityManager.java | 1625 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() argument 1626 return getNetworkInfoForUid(network, Process.myUid(), false); in getNetworkInfo() 1630 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() argument 1632 return mService.getNetworkInfoForUid(network, uid, ignoreBlocked); in getNetworkInfoForUid() 1793 public LinkProperties getLinkProperties(@Nullable Network network) { in getLinkProperties() argument 1795 return mService.getLinkProperties(network); in getLinkProperties() 1847 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities() argument 1850 network, mContext.getOpPackageName(), getAttributionTag()); in getNetworkCapabilities() 2085 public void onAvailable(Network network) { 2086 currentNetwork = network; [all …]
|
D | NetworkState.java | 42 public final Network network; field in NetworkState 50 network = null; in NetworkState() 56 @NonNull NetworkCapabilities networkCapabilities, @NonNull Network network, in NetworkState() argument 59 networkCapabilities, network, subscriberId); in NetworkState() 64 @NonNull NetworkCapabilities networkCapabilities, @NonNull Network network, in NetworkState() argument 67 networkCapabilities, network, subscriberId); in NetworkState() 72 @NonNull NetworkCapabilities networkCapabilities, @NonNull Network network, in NetworkState() argument 77 this.network = network; in NetworkState() 97 network = in.readParcelable(null); in NetworkState() 112 out.writeParcelable(network, flags); in writeToParcel()
|
D | IConnectivityManager.aidl | 65 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() argument 78 LinkProperties getLinkProperties(in Network network); in getLinkProperties() argument 82 NetworkCapabilities getNetworkCapabilities(in Network network, String callingPackageName, in getNetworkCapabilities() argument 126 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity() argument 141 boolean requestBandwidthUpdate(in Network network); in requestBandwidthUpdate() argument 171 void setAcceptUnvalidated(in Network network, boolean accept, boolean always); in setAcceptUnvalidated() argument 172 void setAcceptPartialConnectivity(in Network network, boolean accept, boolean always); in setAcceptPartialConnectivity() argument 173 void setAvoidUnvalidated(in Network network); in setAvoidUnvalidated() argument 174 void startCaptivePortalApp(in Network network); in startCaptivePortalApp() argument 175 void startCaptivePortalAppInternal(in Network network, in Bundle appExtras); in startCaptivePortalAppInternal() argument [all …]
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 185 public Network expectNetworkIsSystemDefault(Network network) in expectNetworkIsSystemDefault() argument 191 if (n.equals(network)) future.complete(network); in expectNetworkIsSystemDefault() 200 + " to network " + network + ". Current default network is network " in expectNetworkIsSystemDefault() 244 final Network network = new ConnectUtil(mContext).ensureWifiConnected(); in connectToWifi() local 246 assertTrue("CONNECTIVITY_ACTION not received after connecting to " + network, in connectToWifi() 249 return network; in connectToWifi() 373 Network network = null; in getWifiNetwork() local 375 network = callback.waitForAvailable(); in getWifiNetwork() 381 assertNotNull("Cannot find Network for wifi. Is wifi connected?", network); in getWifiNetwork() 382 return network; in getWifiNetwork() [all …]
|
/packages/apps/Settings/protos/ |
D | network_mode_choices.proto | 5 option java_package = "com.android.settings.network.telephony"; 9 // based on carrier network types available to the end user. 32 // For the case where TDSCDMA is primary network type. 80 // Resource which provides a list of network type values for this popup menu. 92 // Append a CDMA 1x network option into popup menu. 95 // Append a 2G network option into popup menu. 98 // Append a 3G network option into popup menu. 110 // Append a 4G network option into popup menu. 113 // Append a LTE network option into popup menu. 116 // Append a 5G network option into popup menu. [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/ |
D | EpdgSelector.java | 211 String domainName, Network network, int queryType, Executor executor) { in submitDnsResolverQuery() argument 239 .query(network, domainName, queryType, DnsResolver.FLAG_EMPTY, executor, null, cb); in submitDnsResolverQuery() 286 protected boolean hasIpv4Address(Network network) { in hasIpv4Address() argument 287 return IwlanHelper.hasIpv4Address(IwlanHelper.getAllAddressesForNetwork(network, mContext)); in hasIpv4Address() 291 protected boolean hasIpv6Address(Network network) { in hasIpv6Address() argument 292 return IwlanHelper.hasIpv6Address(IwlanHelper.getAllAddressesForNetwork(network, mContext)); in hasIpv6Address() 312 List<String> domainNames, int filter, Network network, long timeout) { in getIP() argument 328 if (hasIpv4Address(network)) { in getIP() 331 domainName, network, DnsResolver.TYPE_A, mDnsResolutionExecutor)); in getIP() 333 if (hasIpv6Address(network)) { in getIP() [all …]
|