Home
last modified time | relevance | path

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

123456

/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkCallback.kt62 abstract val network: Network constant in com.android.testutils.RecorderCallback.CallbackEntry
64 data class Available(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Available
66 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.CapabilitiesChanged
70 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.LinkPropertiesChanged
73 data class Suspended(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Suspended
74 data class Resumed(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Resumed
75 data class Losing(override val network: Network, val maxMsToLive: Int) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Losing
76 data class Lost(override val network: Network) : CallbackEntry() constant in com.android.testutils.RecorderCallback.CallbackEntry.Lost
78 override val network: Network constant in com.android.testutils.RecorderCallback.CallbackEntry.Unavailable
83 override val network: Network, constant in com.android.testutils.RecorderCallback.CallbackEntry.BlockedStatus
[all …]
DTestNetworkTracker.kt63 val network: Network constant
75 override fun onAvailable(network: Network) { in onAvailable()
76 networkFuture.complete(network) in onAvailable()
83 network = networkFuture.get(setupTimeoutMs, TimeUnit.MILLISECONDS)
92 tnm.teardownTestNetwork(network) in teardown()
/frameworks/base/native/android/
Dnet.c52 int android_setsocknetwork(net_handle_t network, int fd) { in android_setsocknetwork() argument
54 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork()
67 int android_setprocnetwork(net_handle_t network) { in android_setprocnetwork() argument
69 if (!getnetidfromhandle(network, &netid)) { in android_setprocnetwork()
82 int android_getprocnetwork(net_handle_t *network) { in android_getprocnetwork() argument
83 if (network == NULL) { in android_getprocnetwork()
89 *network = gethandlefromnetid(netid); in android_getprocnetwork()
93 int android_setprocdns(net_handle_t network) { in android_setprocdns() argument
95 if (!getnetidfromhandle(network, &netid)) { in android_setprocdns()
108 int android_getprocdns(net_handle_t *network) { in android_getprocdns() argument
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java101 for (ScoredNetwork network : networks) { in updateScores()
102 String networkKey = buildNetworkKey(network); in updateScores()
105 Log.d(TAG, "Failed to build network key for ScoredNetwork" + network); in updateScores()
109 mCache.put(networkKey, network); in updateScores()
142 ScoredNetwork network = getScoredNetwork(result); in hasScoreCurve() local
143 return network != null && network.rssiCurve != null; in hasScoreCurve()
149 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore() local
150 if (network != null && network.rssiCurve != null) { in getNetworkScore()
151 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
153 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
[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/native/include/android/
Dmultinetwork.h72 int android_setsocknetwork(net_handle_t network, int fd) __INTRODUCED_IN(23);
90 int android_setprocnetwork(net_handle_t network) __INTRODUCED_IN(23);
103 int android_getprocnetwork(net_handle_t *network) __INTRODUCED_IN(31);
114 int android_setprocdns(net_handle_t network) __INTRODUCED_IN(31);
125 int android_getprocdns(net_handle_t *network) __INTRODUCED_IN(31);
143 int android_getaddrinfofornetwork(net_handle_t network,
182 int android_res_nquery(net_handle_t network,
195 int android_res_nsend(net_handle_t network,
/frameworks/base/native/android/include/android/
Dmultinetwork.h72 int android_setsocknetwork(net_handle_t network, int fd) __INTRODUCED_IN(23);
90 int android_setprocnetwork(net_handle_t network) __INTRODUCED_IN(23);
103 int android_getprocnetwork(net_handle_t *network) __INTRODUCED_IN(31);
114 int android_setprocdns(net_handle_t network) __INTRODUCED_IN(31);
125 int android_getprocdns(net_handle_t *network) __INTRODUCED_IN(31);
143 int android_getaddrinfofornetwork(net_handle_t network,
182 int android_res_nquery(net_handle_t network,
195 int android_res_nsend(net_handle_t network,
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto35 // Indicates this is a network that has the ability to reach the
38 // Indicates this is a network that has the ability to reach the
41 // Indicates this is a network that has the ability to reach the
44 // Indicates this is a network that has the ability to reach the
47 // Indicates this is a network that has the ability to reach the
48 // carrier's IMS servers, used for network registration and signaling.
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 a Wi-Fi
56 // Indicates this is a network that has the ability to reach a carrier's
59 // Indicates this is a network that has the ability to reach a carrier's
[all …]
Dnetworkrequest.proto43 // callbacks for the single, highest scoring current network (if any)
46 // create or retain the existence of any specific network. Note that
54 // Capable of causing a specific network to be created first (e.g. a
56 // single, highest scoring current network (if any) that matches the
60 // NET_CAPABILITY_FOREGROUND capability. A network with no foreground
61 // requests is in the background. A network that has one or more
63 // higher-scoring network will not go into the background immediately,
66 // Like TRACK_DEFAULT, but tracks the system default network, instead of
67 // the default network of the calling application.
/frameworks/layoutlib/bridge/src/android/net/
DConnectivityManager.java283 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() argument
287 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() argument
321 public LinkProperties getLinkProperties(@Nullable Network network) { in getLinkProperties() argument
326 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities() argument
381 Network network, int intervalSeconds, PacketKeepaliveCallback callback, in startNattKeepalive() argument
386 public @NonNull SocketKeepalive createSocketKeepalive(@NonNull Network network, in createSocketKeepalive() argument
396 public @NonNull SocketKeepalive createNattKeepalive(@NonNull Network network, in createNattKeepalive() argument
406 public @NonNull SocketKeepalive createSocketKeepalive(@NonNull Network network, in createSocketKeepalive() argument
531 public void onUpstreamChanged(@Nullable Network network) {} in onUpstreamChanged() argument
626 public void reportBadNetwork(@Nullable Network network) {} in reportBadNetwork() argument
[all …]
/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/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/services/core/java/com/android/server/vcn/
DUnderlyingNetworkTracker.java487 public void onAvailable(@NonNull Network network) { in onAvailable() argument
489 network, new UnderlyingNetworkRecord.Builder(network)); in onAvailable()
493 public void onLost(@NonNull Network network) { in onLost() argument
494 mUnderlyingNetworkRecordBuilders.remove(network); in onLost()
501 @NonNull Network network, @NonNull NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged()
503 mUnderlyingNetworkRecordBuilders.get(network); in onCapabilitiesChanged()
505 logWtf("Got capabilities change for unknown key: " + network); in onCapabilitiesChanged()
517 @NonNull Network network, @NonNull LinkProperties linkProperties) { in onLinkPropertiesChanged()
519 mUnderlyingNetworkRecordBuilders.get(network); in onLinkPropertiesChanged()
521 logWtf("Got link properties change for unknown key: " + network); in onLinkPropertiesChanged()
[all …]
/frameworks/proto_logging/stats/enums/net/
Denums.proto25 // Indicates this network uses a Cellular transport.
27 // Indicates this network uses a Wi-Fi transport.
29 // Indicates this network uses a Bluetooth transport.
31 // Indicates this network uses an Ethernet transport.
33 // Indicates this network uses a VPN transport.
35 // Indicates this network uses a Wi-Fi Aware transport.
37 // Indicates this network uses a LoWPAN transport.
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java346 public void onCapabilitiesChanged(Network network, in createNetworkConnectivityCallback() argument
352 mAvailableNetworkCapabilities.get(network), capabilities)) { in createNetworkConnectivityCallback()
360 mAvailableNetworkCapabilities.put(network, capabilities); in createNetworkConnectivityCallback()
369 handleUpdateNetworkState(network, true, capabilities); in createNetworkConnectivityCallback()
373 public void onLost(Network network) { in createNetworkConnectivityCallback() argument
374 if (mAvailableNetworkCapabilities.remove(network) == null) { in createNetworkConnectivityCallback()
376 + " onCapabilitiesChanged() for network: " + network); in createNetworkConnectivityCallback()
382 handleUpdateNetworkState(network, false, null); in createNetworkConnectivityCallback()
390 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in createSuplConnectivityCallback()
393 handleSuplConnectionAvailable(network, linkProperties); in createSuplConnectivityCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java181 public Integer getMultipathPreference(Network network) { in getMultipathPreference() argument
182 if (network == null) { in getMultipathPreference()
185 MultipathTracker t = mMultipathTrackers.get(network); in getMultipathPreference()
194 final Network network; field in MultipathPolicyTracker.MultipathTracker
204 public MultipathTracker(Network network, NetworkCapabilities nc) { in MultipathTracker() argument
205 this.network = network; in MultipathTracker()
214 network, nc)); in MultipathTracker()
236 if (DBG) Log.d(TAG, "onThresholdReached for network " + network); in MultipathTracker()
332 .getSubscriptionOpportunisticQuota(this.network, QUOTA_TYPE_MULTIPATH); in updateMultipathBudget()
372 Log.d(TAG, "Setting callback for " + budget + " bytes on network " + network); in updateMultipathBudget()
[all …]
DDefaultNetworkMetrics.java135 private void logCurrentDefaultNetwork(long timeMs, Network network, int score, in logCurrentDefaultNetwork() argument
144 if (network != null) { in logCurrentDefaultNetwork()
146 fillLinkInfo(ev, network, lp, nc); in logCurrentDefaultNetwork()
160 private void newDefaultNetwork(long timeMs, Network network, int score, boolean validated, in newDefaultNetwork() argument
165 if (network != null) { in newDefaultNetwork()
166 fillLinkInfo(ev, network, lp, nc); in newDefaultNetwork()
178 private static void fillLinkInfo(DefaultNetworkEvent ev, Network network, LinkProperties lp, in fillLinkInfo() argument
180 ev.netId = network.getNetId(); in fillLinkInfo()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java350 final Network network = mAvailableNetworks.keyAt(i); in isNetworkAvailable() local
352 final boolean satisfied = isSatisfied(job, network, capabilities, mConstants); in isNetworkAvailable()
354 Slog.v(TAG, "isNetworkAvailable(" + job + ") with network " + network in isNetworkAvailable()
550 private boolean isInsane(JobStatus jobStatus, Network network, in isInsane() argument
603 private static boolean isCongestionDelayed(JobStatus jobStatus, Network network, in isCongestionDelayed() argument
622 private static boolean isStrictSatisfied(JobStatus jobStatus, Network network, in isStrictSatisfied() argument
636 private static boolean isRelaxedSatisfied(JobStatus jobStatus, Network network, in isRelaxedSatisfied() argument
656 boolean isSatisfied(JobStatus jobStatus, Network network, in isSatisfied() argument
659 if (network == null || capabilities == null) return false; in isSatisfied()
664 if (isInsane(jobStatus, network, capabilities, constants)) return false; in isSatisfied()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/network/retriever/
DStatementRetriever.kt17 package com.android.statementservice.network.retriever
68 suspend fun retrieve(source: AbstractAsset, network: Network? = null) = when (source) { in retrieve()
71 is WebAsset -> retrieveFromWeb(source, network) in retrieve()
75 private suspend fun retrieveFromWeb(asset: WebAsset, network: Network? = null): Result? { in retrieveFromWeb()
77 return retrieve(url, MAX_INCLUDE_LEVEL, asset, network) in retrieveFromWeb()
88 network: Network? = null in retrieve()
106 network in retrieve()
/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/proto_logging/stats/enums/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/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiSavedConfigUtils.java41 for (WifiConfiguration network : savedNetworks) { in getAllConfigs()
46 if (network.isPasspoint()) { in getAllConfigs()
50 if (network.isEphemeral()) { in getAllConfigs()
53 savedConfigs.add(new AccessPoint(context, network)); in getAllConfigs()
DWifiStatusTracker.java81 Network network, NetworkCapabilities networkCapabilities) {
97 .append("network=").append(network).append(",")
106 if (mNetworks.contains(network.getNetId())) {
107 mNetworks.remove(network.getNetId());
111 if (!mNetworks.contains(network.getNetId())) {
112 mNetworks.add(network.getNetId());
120 public void onLost(Network network) {
124 .append("network=").append(network)
127 if (mNetworks.contains(network.getNetId())) {
128 mNetworks.remove(network.getNetId());
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java79 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in onLinkPropertiesChanged() argument
81 if (!network.equals(mNetwork)) { in onLinkPropertiesChanged()
83 mNetwork = network; in onLinkPropertiesChanged()
97 public void onLost(Network network) { in onLost() argument
117 public void onAvailable(Network network) { in onAvailable() argument
123 public void onLost(Network network) { in onLost() argument
124 onAvailable(network); in onLost()
157 final Network network = mDefaultNetworkCallback.getNetwork(); in handleStateChangedLocked() local
164 final boolean egressDisconnected = (network == null); in handleStateChangedLocked()
211 mVpn.startLegacyVpnPrivileged(mProfile, network, egressProp); in handleStateChangedLocked()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobParameters.java269 private final Network network; field in JobParameters
279 String[] triggeredContentAuthorities, Network network) { in JobParameters() argument
290 this.network = network; in JobParameters()
427 return network; in getNetwork()
520 network = Network.CREATOR.createFromParcel(in); in JobParameters()
522 network = null; in JobParameters()
559 if (network != null) { in writeToParcel()
561 network.writeToParcel(dest, flags); in writeToParcel()

123456