Home
last modified time | relevance | path

Searched refs:network (Results 1 – 25 of 181) sorted by relevance

12345678

/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestableNetworkCallback.kt58 abstract val network: Network constant in com.android.testutils.RecorderCallback.CallbackEntry
60 data class Available(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Available
62 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.CapabilitiesChanged
66 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.LinkPropertiesChanged
69 data class Suspended(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Suspended
70 data class Resumed(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Resumed
71 data class Losing(override val network: Network, val maxMsToLive: Int) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Losing
72 data class Lost(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Lost
74 override val network: Network constant in com.android.testutils.RecorderCallback.CallbackEntry.Unavailable
79 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.BlockedStatus
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java102 for (ScoredNetwork network : networks) { in updateScores()
103 String networkKey = buildNetworkKey(network); in updateScores()
106 Log.d(TAG, "Failed to build network key for ScoredNetwork" + network); in updateScores()
110 mCache.put(networkKey, network); in updateScores()
143 ScoredNetwork network = getScoredNetwork(result); in hasScoreCurve() local
144 return network != null && network.rssiCurve != null; in hasScoreCurve()
150 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore() local
151 if (network != null && network.rssiCurve != null) { in getNetworkScore()
152 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
154 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
[all …]
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto32 // Indicates this network uses a Cellular transport.
34 // Indicates this network uses a Wi-Fi transport.
36 // Indicates this network uses a Bluetooth transport.
38 // Indicates this network uses an Ethernet transport.
40 // Indicates this network uses a VPN transport.
42 // Indicates this network uses a Wi-Fi Aware transport.
44 // Indicates this network uses a LoWPAN transport.
50 // Indicates this is a network that has the ability to reach the
53 // Indicates this is a network that has the ability to reach the
56 // Indicates this is a network that has the ability to reach the
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSavedNetworkEvaluator.java112 private int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() argument
135 && lastUserSelectedNetworkId == network.networkId) { in calculateBssidScore()
148 if (currentNetwork != null && network.networkId == currentNetwork.networkId) { in calculateBssidScore()
168 if (!WifiConfigurationUtil.isConfigForOpenNetwork(network)) { in calculateBssidScore()
201 WifiConfiguration network = in evaluateNetworks() local
204 if (network == null) { in evaluateNetworks()
214 if (network.isPasspoint() || network.isEphemeral()) { in evaluateNetworks()
219 network.getNetworkSelectionStatus(); in evaluateNetworks()
225 } else if (network.BSSID != null && !network.BSSID.equals("any") in evaluateNetworks()
226 && !network.BSSID.equals(scanResult.BSSID)) { in evaluateNetworks()
[all …]
DCarrierNetworkNotifier.java62 WifiConfiguration network = super.createRecommendedNetworkConfig(recommendedNetwork); in createRecommendedNetworkConfig() local
66 network.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in createRecommendedNetworkConfig()
67 network.allowedKeyManagement.set(KeyMgmt.IEEE8021X); in createRecommendedNetworkConfig()
68 network.enterpriseConfig = new WifiEnterpriseConfig(); in createRecommendedNetworkConfig()
69 network.enterpriseConfig.setEapMethod(recommendedNetwork.carrierApEapType); in createRecommendedNetworkConfig()
70 network.enterpriseConfig.setIdentity(""); in createRecommendedNetworkConfig()
71 network.enterpriseConfig.setAnonymousIdentity(""); in createRecommendedNetworkConfig()
74 return network; in createRecommendedNetworkConfig()
DWifiNetworkSelector.java240 WifiConfiguration network = in isCurrentNetworkSufficient() local
243 if (network == null) { in isCurrentNetworkSufficient()
248 if (mWifiConfigManager.getLastSelectedNetwork() == network.networkId in isCurrentNetworkSufficient()
257 if (network.osu) { in isCurrentNetworkSufficient()
280 if (WifiConfigurationUtil.isConfigForOpenNetwork(network)) { in isCurrentNetworkSufficient()
286 if (network.numNoInternetAccessReports > 0 && !network.noInternetAccessExpected) { in isCurrentNetworkSufficient()
287 localLog("Current network has [" + network.numNoInternetAccessReports in isCurrentNetworkSufficient()
358 public static String toNetworkString(WifiConfiguration network) { in toNetworkString() argument
359 if (network == null) { in toNetworkString()
363 return (network.SSID + ":" + network.networkId); in toNetworkString()
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java338 private void handleAvailable(Network network) { in handleAvailable() argument
339 if (mNetworkMap.containsKey(network)) return; in handleAvailable()
341 if (VDBG) Log.d(TAG, "onAvailable for " + network); in handleAvailable()
342 mNetworkMap.put(network, new UpstreamNetworkState(null, null, network)); in handleAvailable()
345 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() argument
346 final UpstreamNetworkState prev = mNetworkMap.get(network); in handleNetCap()
356 network, newNc)); in handleNetCap()
359 mNetworkMap.put(network, new UpstreamNetworkState( in handleNetCap()
360 prev.linkProperties, newNc, network)); in handleNetCap()
363 notifyTarget(EVENT_ON_CAPABILITIES, network); in handleNetCap()
[all …]
DUpstreamNetworkState.java33 public final Network network; field in UpstreamNetworkState
37 NetworkCapabilities networkCapabilities, Network network) { in UpstreamNetworkState() argument
40 this.network = network; in UpstreamNetworkState()
47 network == null ? "null" : network, in toString()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java161 final Network network = mAvailableNetworks.valueAt(i); in isNetworkAvailable() local
163 network); in isNetworkAvailable()
164 final boolean satisfied = isSatisfied(job, network, capabilities, mConstants); in isNetworkAvailable()
166 Slog.v(TAG, "isNetworkAvailable(" + job + ") with network " + network in isNetworkAvailable()
322 private static boolean isInsane(JobStatus jobStatus, Network network, in isInsane() argument
353 private static boolean isCongestionDelayed(JobStatus jobStatus, Network network, in isCongestionDelayed() argument
365 private static boolean isStrictSatisfied(JobStatus jobStatus, Network network, in isStrictSatisfied() argument
372 private static boolean isRelaxedSatisfied(JobStatus jobStatus, Network network, in isRelaxedSatisfied() argument
392 static boolean isSatisfied(JobStatus jobStatus, Network network, in isSatisfied() argument
395 if (network == null || capabilities == null) return false; in isSatisfied()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java155 ScoredNetwork network = new ScoredNetwork(KEY, null /* rssiCurve */); in hasRankingScoreShouldReturnFalse() local
156 assertFalse(network.hasRankingScore()); in hasRankingScoreShouldReturnFalse()
161 ScoredNetwork network = in hasRankingScoreShouldReturnTrueWhenAttributesHasRankingScoreOffset() local
163 assertTrue(network.hasRankingScore()); in hasRankingScoreShouldReturnTrueWhenAttributesHasRankingScoreOffset()
168 ScoredNetwork network = in hasRankingScoreShouldReturnTrueWhenCurveIsPresent() local
170 assertTrue(network.hasRankingScore()); in hasRankingScoreShouldReturnTrueWhenCurveIsPresent()
175 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */, ATTRIBUTES); in shouldWriteAndReadFromParcelWhenAllFieldsSet() local
181 network.writeToParcel(parcel, 0 /* flags */); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
201 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */); in shouldWriteAndReadFromParcelWithoutBundle() local
207 network.writeToParcel(parcel, 0 /* flags */); in shouldWriteAndReadFromParcelWithoutBundle()
[all …]
/frameworks/base/native/android/
Dnet.c45 int android_setsocknetwork(net_handle_t network, int fd) { in android_setsocknetwork() argument
47 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork()
60 int android_setprocnetwork(net_handle_t network) { in android_setprocnetwork() argument
62 if (!getnetidfromhandle(network, &netid)) { in android_setprocnetwork()
75 int android_getaddrinfofornetwork(net_handle_t network, in android_getaddrinfofornetwork() argument
79 if (!getnetidfromhandle(network, &netid)) { in android_getaddrinfofornetwork()
87 int android_res_nquery(net_handle_t network, const char *dname, in android_res_nquery() argument
90 if (!getnetidfromhandle(network, &netid)) { in android_res_nquery()
101 int android_res_nsend(net_handle_t network, const uint8_t *msg, size_t msglen, in android_res_nsend() argument
104 if (!getnetidfromhandle(network, &netid)) { in android_res_nsend()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java142 ValidatedNetwork network = mValidatedNetworkMap.get(networkIdentity);
143 if (network != null) {
145 network.update(time);
147 mValidatedNetworkPQ.remove(network);
148 mValidatedNetworkPQ.add(network);
150 network = new ValidatedNetwork(networkIdentity, time);
151 mValidatedNetworkMap.put(networkIdentity, network);
152 mValidatedNetworkPQ.add(network);
210 void onNetworkAvailable(Network network, int subId);
358 private synchronized void reportNetworkAvailable(Network network, int subId) {
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java237 public void onCapabilitiesChanged(Network network, in createNetworkConnectivityCallback() argument
243 mAvailableNetworkCapabilities.get(network), capabilities)) { in createNetworkConnectivityCallback()
251 mAvailableNetworkCapabilities.put(network, capabilities); in createNetworkConnectivityCallback()
260 handleUpdateNetworkState(network, true, capabilities); in createNetworkConnectivityCallback()
264 public void onLost(Network network) { in createNetworkConnectivityCallback() argument
265 if (mAvailableNetworkCapabilities.remove(network) == null) { in createNetworkConnectivityCallback()
267 + " onCapabilitiesChanged() for network: " + network); in createNetworkConnectivityCallback()
273 handleUpdateNetworkState(network, false, null); in createNetworkConnectivityCallback()
281 public void onAvailable(Network network) { in createSuplConnectivityCallback()
284 handleSuplConnectionAvailable(network); in createSuplConnectivityCallback()
[all …]
/frameworks/base/core/java/com/android/server/net/
DNetworkPinner.java90 public void onAvailable(Network network) { in onAvailable() argument
95 sCM.bindProcessToNetwork(network); in onAvailable()
96 sNetwork = network; in onAvailable()
97 Log.d(TAG, "Wifi alternate reality enabled on network " + network); in onAvailable()
104 public void onLost(Network network) { in onLost() argument
108 if (network.equals(sNetwork) && network.equals(sCM.getBoundNetworkForProcess())) { in onLost()
110 Log.d(TAG, "Wifi alternate reality disabled on network " + network); in onLost()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1223 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() argument
1224 return getNetworkInfoForUid(network, Process.myUid(), false); in getNetworkInfo()
1228 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() argument
1230 return mService.getNetworkInfoForUid(network, uid, ignoreBlocked); in getNetworkInfoForUid()
1366 public LinkProperties getLinkProperties(@Nullable Network network) { in getLinkProperties() argument
1368 return mService.getLinkProperties(network); in getLinkProperties()
1383 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities() argument
1385 return mService.getNetworkCapabilities(network, mContext.getOpPackageName()); in getNetworkCapabilities()
1586 public void onAvailable(Network network) {
1587 currentNetwork = network;
[all …]
DIConnectivityManager.aidl59 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() argument
72 LinkProperties getLinkProperties(in Network network); in getLinkProperties() argument
74 NetworkCapabilities getNetworkCapabilities(in Network network, String callingPackageName); in getNetworkCapabilities() argument
113 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity() argument
158 boolean requestBandwidthUpdate(in Network network); in requestBandwidthUpdate() argument
189 void setAcceptUnvalidated(in Network network, boolean accept, boolean always); in setAcceptUnvalidated() argument
190 void setAcceptPartialConnectivity(in Network network, boolean accept, boolean always); in setAcceptPartialConnectivity() argument
191 void setAvoidUnvalidated(in Network network); in setAvoidUnvalidated() argument
192 void startCaptivePortalApp(in Network network); in startCaptivePortalApp() argument
193 void startCaptivePortalAppInternal(in Network network, in Bundle appExtras); in startCaptivePortalAppInternal() argument
[all …]
DNetworkState.java39 public final Network network; field in NetworkState
44 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState() argument
49 this.network = network; in NetworkState()
69 network = in.readParcelable(null); in NetworkState()
84 out.writeParcelable(network, flags); in writeToParcel()
/frameworks/base/core/proto/android/stats/connectivity/
Dnetwork_stack.proto45 // Indicates this network uses a Cellular transport
47 // Indicates this network uses a Wi-Fi transport
49 // Indicates this network uses a Bluetooth transport
51 // Indicates this network uses an Ethernet transport
53 // Indicates this network uses a Wi-Fi Aware transport
55 // Indicates this network uses a LoWPAN transport
57 // Indicates this network uses a Cellular+VPN transport
59 // Indicates this network uses a Wi-Fi+VPN transport
61 // Indicates this network uses a Bluetooth+VPN transport
63 // Indicates this network uses an Ethernet+VPN transport
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java174 public Integer getMultipathPreference(Network network) { in getMultipathPreference() argument
175 if (network == null) { in getMultipathPreference()
178 MultipathTracker t = mMultipathTrackers.get(network); in getMultipathPreference()
187 final Network network; field in MultipathPolicyTracker.MultipathTracker
197 public MultipathTracker(Network network, NetworkCapabilities nc) { in MultipathTracker() argument
198 this.network = network; in MultipathTracker()
207 network, nc)); in MultipathTracker()
228 if (DBG) Slog.d(TAG, "onThresholdReached for network " + network); in MultipathTracker()
323 .getSubscriptionOpportunisticQuota(this.network, QUOTA_TYPE_MULTIPATH); in updateMultipathBudget()
363 " bytes on network " + network); in updateMultipathBudget()
[all …]
/frameworks/base/native/android/include/android/
Dmultinetwork.h74 int android_setsocknetwork(net_handle_t network, int fd) __INTRODUCED_IN(23);
92 int android_setprocnetwork(net_handle_t network) __INTRODUCED_IN(23);
110 int android_getaddrinfofornetwork(net_handle_t network,
153 int android_res_nquery(net_handle_t network,
166 int android_res_nsend(net_handle_t network,
/frameworks/native/include/android/
Dmultinetwork.h74 int android_setsocknetwork(net_handle_t network, int fd) __INTRODUCED_IN(23);
92 int android_setprocnetwork(net_handle_t network) __INTRODUCED_IN(23);
110 int android_getaddrinfofornetwork(net_handle_t network,
153 int android_res_nquery(net_handle_t network,
166 int android_res_nsend(net_handle_t network,
/frameworks/base/proto/src/
Dipconnectivity.proto9 // NetworkId represents the id given by the system to a physical network on the
15 // Every network gets assigned a network_id on creation based on order of
16 // creation. Thus network_id N is assigned to the network created directly
17 // after network N-1. Thus there is no PII involved here. Zero means no
18 // network. The value 0 is never assigned to a network.
22 // LinkLayer describes a physical link layer technology used by a network.
53 // An event recorded when the system default network disconnects or the system
54 // switches to a new default network. An event is also recorded to cover gaps
55 // without a default network.
59 // Reason why this network stopped being the default.
[all …]
/frameworks/base/tests/net/integration/src/android/net/
DTestNetworkStackClient.kt69 override fun makeNetworkMonitor(network: Network, name: String?, cb: INetworkMonitorCallbacks) { in <lambda>()
71 lastCallbacks[network] = cbSpy in <lambda>()
72 super.makeNetworkMonitor(network, name, cbSpy) in <lambda>()
75 fun verifyNetworkMonitorCreated(network: Network, timeoutMs: Long) { in <lambda>()
76 val cb = lastCallbacks[network] in <lambda>()
77 ?: fail("NetworkMonitor for network $network not requested") in <lambda>()
/frameworks/base/core/java/android/app/job/
DJobParameters.java75 private final Network network; field in JobParameters
84 String[] triggeredContentAuthorities, Network network) { in JobParameters() argument
94 this.network = network; in JobParameters()
209 return network; in getNetwork()
301 network = Network.CREATOR.createFromParcel(in); in JobParameters()
303 network = null; in JobParameters()
336 if (network != null) { in writeToParcel()
338 network.writeToParcel(dest, flags); in writeToParcel()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java1370 WifiConfiguration network = WifiConfigurationTestUtil.createOpenNetwork(); in testMultipleUpdatesSingleNetwork() local
1371 verifyAddNetworkToWifiConfigManager(network); in testMultipleUpdatesSingleNetwork()
1379 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
1381 verifyUpdateNetworkToWifiConfigManagerWithoutIpChange(network); in testMultipleUpdatesSingleNetwork()
1383 network, mWifiConfigManager.getConfiguredNetworkWithPassword(network.networkId)); in testMultipleUpdatesSingleNetwork()
1386 for (int i = 1; i < network.wepKeys.length; i++) { in testMultipleUpdatesSingleNetwork()
1390 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
1392 verifyUpdateNetworkToWifiConfigManagerWithoutIpChange(network); in testMultipleUpdatesSingleNetwork()
1394 network, mWifiConfigManager.getConfiguredNetworkWithPassword(network.networkId)); in testMultipleUpdatesSingleNetwork()
1400 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
[all …]

12345678