/frameworks/base/core/java/android/net/ |
D | IConnectivityManager.aidl | 24 import android.net.Network; 52 Network getActiveNetwork(); in getActiveNetwork() 53 Network getActiveNetworkForUid(int uid, boolean ignoreBlocked); in getActiveNetworkForUid() 59 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() 62 Network getNetworkForType(int networkType); in getNetworkForType() 63 Network[] getAllNetworks(); in getAllNetworks() 72 LinkProperties getLinkProperties(in Network network); in getLinkProperties() 74 NetworkCapabilities getNetworkCapabilities(in Network network, String callingPackageName); in getNetworkCapabilities() 113 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity() 119 ProxyInfo getProxyForNetwork(in Network nework); in getProxyForNetwork() [all …]
|
D | Network.java | 62 public class Network implements Parcelable { class 114 public Network(int netId) { in Network() method in Network 121 public Network(int netId, boolean privateDnsBypass) { in Network() method in Network 131 public Network(@NonNull Network that) { in Network() method in Network 169 public @NonNull Network getPrivateDnsBypassingCopy() { in getPrivateDnsBypassingCopy() 170 return new Network(netId, true); in getPrivateDnsBypassingCopy() 440 public static Network fromNetworkHandle(long networkHandle) { in fromNetworkHandle() 450 return new Network((int) (networkHandle >> HANDLE_MAGIC_SIZE)); in fromNetworkHandle() 489 public static final @android.annotation.NonNull Creator<Network> CREATOR = 490 new Creator<Network>() { [all …]
|
D | ConnectivityManager.java | 1016 public Network getActiveNetwork() { in getActiveNetwork() 1038 public Network getActiveNetworkForUid(int uid) { in getActiveNetworkForUid() 1043 public Network getActiveNetworkForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkForUid() 1223 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() 1228 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() 1270 public Network getNetworkForType(int networkType) { in getNetworkForType() 1286 public Network[] getAllNetworks() { in getAllNetworks() 1366 public LinkProperties getLinkProperties(@Nullable Network network) { in getLinkProperties() 1383 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities() 1574 Network currentNetwork; [all …]
|
D | ConnectivityDiagnosticsManager.java | 215 @NonNull private final Network mNetwork; 248 @NonNull Network network, in ConnectivityReport() 266 public Network getNetwork() { in getNetwork() 432 @NonNull private final Network mNetwork; 468 @NonNull Network network, in DataStallReport() 488 public Network getNetwork() { in getNetwork() 646 @NonNull Network network, boolean hasConnectivity) { in onNetworkConnectivityReported() 689 @NonNull Network network, boolean hasConnectivity) {} in onNetworkConnectivityReported()
|
D | IConnectivityDiagnosticsCallback.aidl | 21 import android.net.Network; 27 void onNetworkConnectivityReported(in Network n, boolean hasConnectivity); in onNetworkConnectivityReported()
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | TestableNetworkCallback.kt | 21 import android.net.Network 40 object NULL_NETWORK : Network(-1) 41 object ANY_NETWORK : Network(-2) 58 abstract val network: Network 60 data class Available(override val network: Network) : CallbackEntry() 62 override val network: Network, 66 override val network: Network, 69 data class Suspended(override val network: Network) : CallbackEntry() 70 data class Resumed(override val network: Network) : CallbackEntry() 71 data class Losing(override val network: Network, val maxMsToLive: Int) : CallbackEntry() [all …]
|
D | TestNetworkTracker.kt | 23 import android.net.Network 62 val network: Network 65 val networkFuture = CompletableFuture<Network>() 74 override fun onAvailable(network: Network) { in onAvailable()
|
/frameworks/base/core/java/android/view/ |
D | DisplayAddress.java | 50 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/ |
D | NetworkTest.java | 44 final Network mNetwork = new Network(99); 109 Network zero = new Network(0); in testZeroIsObviousForDebugging() 117 Network one = new Network(1); in testGetNetworkHandle() 118 Network two = new Network(2); in testGetNetworkHandle() 119 Network three = new Network(3); in testGetNetworkHandle() 155 final Network copy = mNetwork.getPrivateDnsBypassingCopy(); in testGetPrivateDnsBypassingCopy()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityDiagnosticsManagerTest.java | 102 new Network(NET_ID), TIMESTAMP, linkProperties, networkCapabilities, bundle); in createSampleConnectivityReport() 107 new Network(0), in createDefaultConnectivityReport() 161 new Network(NET_ID), in testConnectivityReportEquals() 169 new Network(0), in testConnectivityReportEquals() 177 new Network(0), in testConnectivityReportEquals() 185 new Network(0), in testConnectivityReportEquals() 193 new Network(0), in testConnectivityReportEquals() 216 new Network(NET_ID), in createSampleDataStallReport() 226 new Network(0), in createDefaultDataStallReport() 248 new Network(NET_ID), in testDataStallReportEquals() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | HttpsTransport.java | 20 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/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | TestNetworkStackService.kt | 23 import android.net.Network 61 private class NetworkMonitorDeps(private val privateDnsBypassNetwork: Network) : in enforceNetworkStackCallingPermission() 63 override fun getPrivateDnsBypassNetwork(network: Network?) = privateDnsBypassNetwork in enforceNetworkStackCallingPermission() 70 private val network = Network(TEST_NETID) 73 private inner class TestNetwork(netId: Int) : Network(netId) { 88 network: Network, in makeNetworkMonitor()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 36 import android.net.Network; 110 private final HashMap<Network, UpstreamNetworkState> mNetworkMap = new HashMap<>(); 121 private Network mDefaultInternetNetwork; 123 private Network mTetheringUpstreamNetwork; 320 public void setCurrentUpstream(Network upstream) { in setCurrentUpstream() 338 private void handleAvailable(Network network) { in handleAvailable() 345 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() 366 private void handleLinkProp(Network network, LinkProperties newLp) { in handleLinkProp() 387 private void handleLost(Network network) { in handleLost() 443 public void onAvailable(Network network) { in onAvailable() [all …]
|
D | UpstreamNetworkState.java | 19 import android.net.Network; 33 public final Network network; 37 NetworkCapabilities networkCapabilities, Network network) { in UpstreamNetworkState()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 27 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/ |
D | NetworkPinner.java | 22 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 27 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/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerInternal.java | 22 import android.net.Network; 86 public abstract SubscriptionPlan getSubscriptionPlan(Network network); in getSubscriptionPlan() 102 public abstract long getSubscriptionOpportunisticQuota(Network network, int quotaType); in getSubscriptionOpportunisticQuota()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellularNetworkValidatorTest.java | 34 import android.net.Network; 150 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testNetworkAvailableNotValidated() 179 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testSkipRecentlyValidatedNetwork() 201 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testDoNotSkipIfValidationFailed() 228 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testDoNotSkipIfCacheExpires() 270 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testNetworkCachingOfMultipleSub() 275 mValidatorUT.mNetworkCallback.onLost(new Network(100)); in testNetworkCachingOfMultipleSub() 354 Network network = new Network(100); in testOnNetworkAvailable() 393 mValidatorUT.mNetworkCallback.onLost(new Network(100)); in testDoNotReleaseRequestAfterValidation_validationFails_shouldReleaseImmediately() 439 mValidatorUT.mNetworkCallback.onAvailable(new Network(1000)); in assertNetworkRecentlyValidated()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
D | ModemBatteryStatsReader.java | 66 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/base/core/java/android/app/job/ |
D | JobParameters.java | 23 import android.net.Network; 75 private final Network network; 84 String[] triggeredContentAuthorities, Network network) { in JobParameters() 208 public @Nullable Network getNetwork() { in getNetwork() 301 network = Network.CREATOR.createFromParcel(in); in JobParameters()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 22 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, 361 private NetworkAttributes updateTrackedNetworksState(boolean isConnected, Network network, 392 private void handleSuplConnectionAvailable(Network network) {
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 49 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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 29 import android.net.Network; 77 private Network mNetwork; 114 final Network network = getNetworkForCaptivePortal(); in onCreate() 160 private void setNetwork(Network network) { in setNetwork() 266 private Network getNetworkForCaptivePortal() { in getNetworkForCaptivePortal() 267 Network[] info = mCm.getAllNetworks(); in getNetworkForCaptivePortal() 269 for (Network nw : info) { in getNetworkForCaptivePortal() 289 public void onAvailable(Network network) { in requestNetworkForCaptivePortal() 314 public void onLost(Network lostNetwork) { in requestNetworkForCaptivePortal()
|
/frameworks/base/tests/net/integration/src/android/net/ |
D | TestNetworkStackClient.kt | 34 private val lastCallbacks = HashMap<Network, INetworkMonitorCallbacks>() in <lambda>() 69 override fun makeNetworkMonitor(network: Network, name: String?, cb: INetworkMonitorCallbacks) { in <lambda>() 75 fun verifyNetworkMonitorCreated(network: Network, timeoutMs: Long) { in <lambda>()
|