Home
last modified time | relevance | path

Searched refs:Network (Results 1 – 25 of 145) sorted by relevance

123456

/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl23 import android.net.Network;
50 Network getActiveNetwork(); in getActiveNetwork()
51 Network getActiveNetworkForUid(int uid, boolean ignoreBlocked); in getActiveNetworkForUid()
56 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid()
59 Network getNetworkForType(int networkType); in getNetworkForType()
60 Network[] getAllNetworks(); in getAllNetworks()
68 LinkProperties getLinkProperties(in Network network); in getLinkProperties()
70 NetworkCapabilities getNetworkCapabilities(in Network network); in getNetworkCapabilities()
117 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity()
123 ProxyInfo getProxyForNetwork(in Network nework); in getProxyForNetwork()
[all …]
DNetwork.java61 public class Network implements Parcelable { class
112 public Network(int netId) { in Network() method in Network
119 public Network(int netId, boolean privateDnsBypass) { in Network() method in Network
129 public Network(@NonNull Network that) { in Network() method in Network
167 public @NonNull Network getPrivateDnsBypassingCopy() { in getPrivateDnsBypassingCopy()
168 return new Network(netId, true); in getPrivateDnsBypassingCopy()
307 Dns dnsLookup = hostname -> Arrays.asList(Network.this.getAllByName(hostname)); in maybeInitUrlConnectionFactory()
425 public static Network fromNetworkHandle(long networkHandle) { in fromNetworkHandle()
435 return new Network((int) (networkHandle >> HANDLE_MAGIC_SIZE)); in fromNetworkHandle()
474 public static final @android.annotation.NonNull Creator<Network> CREATOR =
[all …]
DConnectivityManager.java976 public Network getActiveNetwork() { in getActiveNetwork()
998 public Network getActiveNetworkForUid(int uid) { in getActiveNetworkForUid()
1003 public Network getActiveNetworkForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkForUid()
1183 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo()
1188 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid()
1230 public Network getNetworkForType(int networkType) { in getNetworkForType()
1246 public Network[] getAllNetworks() { in getAllNetworks()
1325 public LinkProperties getLinkProperties(@Nullable Network network) { in getLinkProperties()
1342 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities()
1607 Network currentNetwork;
[all …]
DITetheringEventCallback.aidl19 import android.net.Network;
27 void onUpstreamChanged(in Network network); in onUpstreamChanged()
DDnsResolver.java185 public void rawQuery(@Nullable Network network, @NonNull byte[] query, @QueryFlag int flags, in rawQuery()
225 public void rawQuery(@Nullable Network network, @NonNull String domain, in rawQuery()
251 private final Network mNetwork;
258 InetAddressAnswerAccumulator(@NonNull Network network, int size, in InetAddressAnswerAccumulator()
327 public void query(@Nullable Network network, @NonNull String domain, @QueryFlag int flags, in query()
335 final Network queryNetwork; in query()
425 public void query(@Nullable Network network, @NonNull String domain, in query()
435 final Network queryNetwork; in query()
DIpSecConfig.java43 private Network mNetwork;
111 public void setNetwork(Network network) { in setNetwork()
184 public Network getNetwork() { in getNetwork()
269 mNetwork = (Network) in.readParcelable(Network.class.getClassLoader()); in IpSecConfig()
/frameworks/base/core/java/android/view/
DDisplayAddress.java50 public static Network fromMacAddress(String macAddress) { in fromMacAddress()
51 return new Network(macAddress); in fromMacAddress()
139 public static final class Network extends DisplayAddress { class in DisplayAddress
144 return other instanceof Network && mMacAddress.equals(((Network) other).mMacAddress); in equals()
162 private Network(String macAddress) { in Network() method in DisplayAddress.Network
166 public static final @NonNull Parcelable.Creator<Network> CREATOR =
167 new Parcelable.Creator<Network>() {
169 public Network createFromParcel(Parcel in) {
170 return new Network(in.readString());
174 public Network[] newArray(int size) {
[all …]
/frameworks/base/tests/net/common/java/android/net/
DNetworkTest.java27 import android.net.Network;
48 final Network mNetwork = new Network(99);
113 Network zero = new Network(0); in testZeroIsObviousForDebugging()
121 Network one = new Network(1); in testGetNetworkHandle()
122 Network two = new Network(2); in testGetNetworkHandle()
123 Network three = new Network(3); in testGetNetworkHandle()
163 final Network copy = mNetwork.getPrivateDnsBypassingCopy(); in testGetPrivateDnsBypassingCopy()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java32 import android.net.Network;
93 private final HashMap<Network, NetworkState> mNetworkMap = new HashMap<>();
104 private Network mDefaultInternetNetwork;
106 private Network mTetheringUpstreamNetwork;
273 public void setCurrentUpstream(Network upstream) { in setCurrentUpstream()
290 private void handleAvailable(Network network) { in handleAvailable()
297 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap()
325 private void handleLinkProp(Network network, LinkProperties newLp) { in handleLinkProp()
346 private void handleSuspended(Network network) { in handleSuspended()
351 private void handleResumed(Network network) { in handleResumed()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsTransport.java20 import android.net.Network;
32 private Network mNetwork;
36 private HttpsTransport(@NonNull Network network, @NonNull URL url) { in HttpsTransport()
49 public static HttpsTransport createInstance(@NonNull Network network, @NonNull URL url) { in createInstance()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java27 import android.net.Network;
89 private final ArraySet<Network> mAvailableNetworks = new ArraySet<>();
161 final Network network = mAvailableNetworks.valueAt(i); in isNetworkAvailable()
322 private static boolean isInsane(JobStatus jobStatus, Network network, in isInsane()
353 private static boolean isCongestionDelayed(JobStatus jobStatus, Network network, in isCongestionDelayed()
365 private static boolean isStrictSatisfied(JobStatus jobStatus, Network network, in isStrictSatisfied()
372 private static boolean isRelaxedSatisfied(JobStatus jobStatus, Network network, in isRelaxedSatisfied()
392 static boolean isSatisfied(JobStatus jobStatus, Network network, in isSatisfied()
413 final Network network = mConnManager.getActiveNetworkForUid(jobStatus.getSourceUid()); in updateConstraintsSatisfied()
418 private boolean updateConstraintsSatisfied(JobStatus jobStatus, Network network, in updateConstraintsSatisfied()
[all …]
/frameworks/base/core/java/com/android/server/net/
DNetworkPinner.java22 import android.net.Network;
73 protected static Network sNetwork;
90 public void onAvailable(Network network) { in onAvailable()
104 public void onLost(Network network) { in onLost()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java21 import android.net.Network;
84 public abstract SubscriptionPlan getSubscriptionPlan(Network network); in getSubscriptionPlan()
100 public abstract long getSubscriptionOpportunisticQuota(Network network, int quotaType); in getSubscriptionOpportunisticQuota()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java27 import android.net.Network;
53 private Network mNetwork = null;
67 void onConnected(Network network); in onConnected()
240 public void onAvailable(Network network) { in onAvailable()
256 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in onLinkPropertiesChanged()
283 public void onLost(Network network) { in onLost()
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemBatteryStatsReader.java66 final RawBatteryStats.Network network in createApps()
67 = bs.getSingle(RawBatteryStats.Network.class, uid); in createApps()
101 for (RawBatteryStats.Network nw: bs.getMultiple(RawBatteryStats.Network.class)) { in createRemainder()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java21 import android.net.Network;
211 public void onAvailable(Network network) { in onAvailable()
220 public void onLosing(Network network, int maxMsToLive) { in onLosing()
226 public void onLost(Network network) { in onLost()
238 public void onCapabilitiesChanged(Network network, in onCapabilitiesChanged()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java22 import android.net.Network;
86 private HashMap<Network, NetworkAttributes> mAvailableNetworkAttributes =
232 private HashMap<Network, NetworkCapabilities> in createNetworkConnectivityCallback()
237 public void onCapabilitiesChanged(Network network, in createNetworkConnectivityCallback()
264 public void onLost(Network network) { in createNetworkConnectivityCallback()
281 public void onAvailable(Network network) { in createSuplConnectivityCallback()
288 public void onLost(Network network) { in createSuplConnectivityCallback()
322 private void handleUpdateNetworkState(Network network, boolean isConnected,
357 private NetworkAttributes updateTrackedNetworksState(boolean isConnected, Network network,
388 private void handleSuplConnectionAvailable(Network network) {
/frameworks/base/core/java/android/app/job/
DJobParameters.java24 import android.net.Network;
76 private final Network network;
85 String[] triggeredContentAuthorities, Network network) { in JobParameters()
209 public @Nullable Network getNetwork() { in getNetwork()
302 network = Network.CREATOR.createFromParcel(in); in JobParameters()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java36 import android.net.Network;
96 mDnsManager.updatePrivateDns(new Network(TEST_NETID), in testTrackedValidationUpdates()
98 mDnsManager.updatePrivateDns(new Network(TEST_NETID_ALTERNATE), in testTrackedValidationUpdates()
133 mDnsManager.updatePrivateDns(new Network(TEST_NETID), in testTrackedValidationUpdates()
180 mDnsManager.updatePrivateDns(new Network(TEST_NETID), in testIgnoreUntrackedValidationUpdates()
216 mDnsManager.removeNetwork(new Network(TEST_NETID)); in testIgnoreUntrackedValidationUpdates()
226 mDnsManager.updatePrivateDns(new Network(TEST_NETID), in testIgnoreUntrackedValidationUpdates()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java29 import android.net.Network;
79 private Network mNetwork;
115 final Network network = getNetworkForCaptivePortal(); in onCreate()
161 private void setNetwork(Network network) { in setNetwork()
267 private Network getNetworkForCaptivePortal() { in getNetworkForCaptivePortal()
268 Network[] info = mCm.getAllNetworks(); in getNetworkForCaptivePortal()
270 for (Network nw : info) { in getNetworkForCaptivePortal()
290 public void onAvailable(Network network) { in requestNetworkForCaptivePortal()
315 public void onLost(Network lostNetwork) { in requestNetworkForCaptivePortal()
DProvisionObserver.java27 import android.net.Network;
54 Network[] info = connMgr.getAllNetworks(); in onStartJob()
55 for (Network nw : info) { in onStartJob()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java49 import android.net.Network;
135 final Network net = new Network(101); in testInsane()
161 final Network net = new Network(101); in testCongestion()
170 final Network net = new Network(101); in testCongestion()
192 final Network net = new Network(101); in testRelaxed()
204 final Network net = new Network(101); in testRelaxed()
222 final Network meteredNet = new Network(101); in testUpdates()
224 final Network unmeteredNet = new Network(202); in testUpdates()
542 private void answerNetwork(int uid, Network net, NetworkCapabilities caps) { in answerNetwork()
/frameworks/base/services/net/java/android/net/
DProvisioningConfigurationParcelable.aidl21 import android.net.Network;
36 Network network;
DINetworkStackConnector.aidl20 import android.net.Network;
29 void makeNetworkMonitor(in Network network, String name, in INetworkMonitorCallbacks cb); in makeNetworkMonitor()
/frameworks/base/core/java/android/net/util/
DDnsUtils.java27 import android.net.Network;
142 public static @NonNull List<InetAddress> rfc6724Sort(@Nullable Network network, in rfc6724Sort()
156 private static @Nullable InetAddress findSrcAddress(@Nullable Network network, in findSrcAddress()
342 public static boolean haveIpv4(@Nullable Network network) { in haveIpv4()
352 public static boolean haveIpv6(@Nullable Network network) { in haveIpv6()
358 private static boolean checkConnectivity(@Nullable Network network, in checkConnectivity()

123456