/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CarrierSignalAgent.java | 26 import android.net.Network; 137 Rlog.e(LOG_TAG, "Register default network exception: " + ar.exception); 145 public void onAvailable(Network network) { 146 // an optimization to avoid signaling on every default network switch. 148 if (DBG) log("Default network available: " + network); 158 public void onLost(Network network) { 159 if (DBG) log("Default network lost: " + network) [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
MailTransport.java | 19 import android.net.Network; 57 private final Network network; field in class:MailTransport 70 Network network, 76 this.network = network; 88 return new MailTransport(context, imapHelper, network, host, port, flags); 108 if (network == null) { 112 InetAddress[] inetAddresses = network.getAllByName(host) [all...] |
/frameworks/base/core/java/android/net/ |
IpSecManager.java | 521 * Remove a Tunnel Mode IPsec Transform from a {@link Network}. This must be used as part of 522 * cleanup if a tunneled Network experiences a change in default route. The Network will drop 528 * @param net a network that currently has transform applied to it. 530 * network 533 public void removeTunnelModeTransform(Network net, IpSecTransform transform) {} [all...] |
SntpClient.java | 30 * Simple SNTP client class for retrieving network time. 82 * @param timeout network timeout in milliseconds. 83 * @param network network over which to send the request. 86 public boolean requestTime(String host, int timeout, Network network) { 90 network.setPrivateDnsBypass(true); 93 address = network.getByName(host); 99 return requestTime(address, NTP_PORT, timeout, network); 102 public boolean requestTime(InetAddress address, int port, int timeout, Network network) [all...] |
/frameworks/base/core/java/android/os/ |
INetworkManagementService.aidl | 24 import android.net.Network; 55 * Returns a list of currently known network interfaces 174 void setDnsForwarders(in Network network, in String[] dns); 194 * Enables Network Address Translation between two interfaces. 196 * the NAT'ed network. 201 * Disables Network Address Translation between two interfaces. 258 * Return global network statistics summarized at an interface level, 265 * Return detailed network statistics with UID-level granularity, 271 * Return detailed network statistics for the requested UID and interfaces [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
DnsManager.java | 35 import android.net.Network; 77 * [A] Event: A new network comes up. 177 public static PrivateDnsConfig tryBlockingResolveOf(Network network, String name) { 179 final InetAddress[] ips = ResolvUtil.blockingResolveAllLocally(network, name); 314 public void removeNetwork(Network network) { 315 mPrivateDnsMap.remove(network.netId); 316 mPrivateDnsValidationMap.remove(network.netId); 319 public PrivateDnsConfig updatePrivateDns(Network network, PrivateDnsConfig cfg) [all...] |
/frameworks/base/tests/net/java/android/net/ |
ConnectivityManagerTest.java | 221 verify(callback, timeout(500).times(1)).onAvailable(any(Network.class), 249 verify(callback, timeout(100).times(1)).onAvailable(any(Network.class), 342 bundle.putParcelable(Network.class.getSimpleName(), new Network(1));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
PasspointProvisionerTest.java | 32 import android.net.Network; 82 @Mock Network mNetwork; 101 when(mOsuServerConnection.connect(any(URL.class), any(Network.class))).thenReturn(true); 217 * Verifies that after connection attemp succeeds and a network disconnection occurs, the 300 when(mOsuServerConnection.connect(any(URL.class), any(Network.class))).thenReturn(false);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
Vvm3Subscriber.java | 21 import android.net.Network; 79 * subscription. This link should be clicked through cellular network, and have cookies enabled. 189 // processSubscription() is called after network is available. 193 Network network = wrapper.get(); local 194 VvmLog.d(TAG, "provisioning: network available"); 196 Volley.newRequestQueue(helper.getContext(), new NetworkSpecifiedHurlStack(network)); 367 private final Network network; field in class:Vvm3Subscriber.NetworkSpecifiedHurlStack 369 public NetworkSpecifiedHurlStack(Network network) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
stm.h | 15 UCHAR Network[4];
|
/prebuilts/go/darwin-x86/src/net/ |
mockserver_test.go | 31 func newLocalListener(network string) (Listener, error) { 32 switch network { 51 return Listen(network, testUnixAddr()) 53 return nil, fmt.Errorf("%s is not supported", network) 58 network string 69 ln, err := ListenTCP(arg.network, &arg.TCPAddr) 104 network := ls.Listener.Addr().Network() 109 switch network { 118 func newLocalServer(network string) (*localServer, error) [all...] |
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/internal/nettest/ |
stack.go | 5 // Package nettest provides utilities for network testing. 59 // TestableNetwork reports whether network is testable on the current 61 func TestableNetwork(network string) bool { 64 switch network { 89 // Network must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". 90 func NewLocalListener(network string) (net.Listener, error) { 91 switch network { 110 return net.Listen(network, localPath()) 112 return nil, fmt.Errorf("%s is not supported", network) 117 // Network must be "udp", "udp4", "udp6" or "unixgram" [all...] |
/prebuilts/go/linux-x86/src/net/ |
mockserver_test.go | 31 func newLocalListener(network string) (Listener, error) { 32 switch network { 51 return Listen(network, testUnixAddr()) 53 return nil, fmt.Errorf("%s is not supported", network) 58 network string 69 ln, err := ListenTCP(arg.network, &arg.TCPAddr) 104 network := ls.Listener.Addr().Network() 109 switch network { 118 func newLocalServer(network string) (*localServer, error) [all...] |
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/internal/nettest/ |
stack.go | 5 // Package nettest provides utilities for network testing. 59 // TestableNetwork reports whether network is testable on the current 61 func TestableNetwork(network string) bool { 64 switch network { 89 // Network must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". 90 func NewLocalListener(network string) (net.Listener, error) { 91 switch network { 110 return net.Listen(network, localPath()) 112 return nil, fmt.Errorf("%s is not supported", network) 117 // Network must be "udp", "udp4", "udp6" or "unixgram" [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
WifiTrackerTest.java | 39 import android.net.Network; 677 Network mockNetwork = mock(Network.class); 685 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); 692 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); 703 Network mockNetwork = mock(Network.class); 711 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); 721 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
WifiDetailPreferenceControllerTest.java | 44 import android.net.Network; 119 private Network mockNetwork; 241 when(mockConnectivityManager.getNetworkInfo(any(Network.class))) 348 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); 476 // If WifiManager#getCurrentNetwork() returns null, then the network is neither connected 609 // ... but that if the network validates, then we do refresh. 621 // ... but if the network is no longer validated, then we display "connected, no Internet". 676 * Pretends that current network is locked down by device owner. 723 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); 728 verify(mockConnectivityManager, times(2)).getNetworkInfo(any(Network.class)) [all...] |
/frameworks/base/services/core/java/com/android/server/ |
ConnectivityService.java | 64 import android.net.Network; 212 // TODO: create better separation between radio types and network types 214 // how long to wait before switching back to a radio's default network 220 // How long to wait before putting up a "This network doesn't have an Internet connection, 221 // connect anyway?" dialog after the user selects a network that doesn't validate. 278 // the highest scoring network satisfying a NetworkRequest. This should be passed when 287 LINGER, // Determine whether this network is unneeded and should be lingered. 288 TEARDOWN, // Determine whether this network is unneeded and should be torn down. 299 * network - EVENT_EXPIRE_NET_TRANSITION_WAKELOCK happens 300 * after a timeout if no network is found (typically 1 min) 3048 Network network = (Network) msg.obj; local [all...] |
/frameworks/base/tests/net/java/com/android/server/ |
ConnectivityServiceTest.java | 102 import android.net.Network; 216 private Network mFakeBoundNetwork; 218 public synchronized boolean bindProcessToNetwork(Network network) { 219 mFakeBoundNetwork = network; 223 public synchronized Network getBoundNetworkForProcess() { 322 // Bring up a network that we can use to send messages to ConnectivityService. 327 Network n = mWiFiNetworkAgent.getNetwork(); 342 // Bring up a network that we can use to send messages to ConnectivityService. 347 Network n = mWiFiNetworkAgent.getNetwork() 1428 public final Network network; field in class:ConnectivityServiceTest.CallbackInfo 3710 Network network = allNetworks[0]; local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/ |
CallbackUtils.java | 20 import android.net.Network; 129 public void onAvailable(Network network) {
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
ReflectorVpnService.java | 27 import android.net.Network; 107 public void onAvailable(final Network net) {
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
VpnTestHelper.java | 38 import android.net.Network; 71 // HACK (TODO issue 31585407) to wait for the network to actually be usable 128 // Do we have a network? 139 Network network = connectivityManager.getActiveNetwork(); local 140 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network);
|
/cts/tests/tests/net/src/android/net/cts/ |
DnsTest.java | 24 import android.net.Network; 66 * have per-network caches 67 * No cache when there's no network 69 * Assert requires network permission 90 // Skip the rest of the test if the active network for watch is PROXY. 94 Log.i(TAG, "Skipping test because the active network type name is PROXY."); 105 "[RERUN] DNS could not resolve ipv6.google.com, check the network supports IPv6. lp=" + 110 ", check your network's DNS server. lp=" + mCm.getActiveLinkProperties(); 289 public void onLinkPropertiesChanged(Network network, LinkProperties lp) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
WifiStatusTracker.java | 19 import android.net.Network; 61 Network network, NetworkCapabilities networkCapabilities) {
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
IPv6TetheringCoordinator.java | 23 import android.net.Network; 127 !ns.network.equals(mUpstreamNetworkState.network)) { 150 new Network(ns.network), 302 ns.network,
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
BandwidthEnforcementTestService.java | 22 import android.net.Network; 147 final Network network = mCM.getActiveNetwork(); local 149 if (client.requestTime("0.pool.ntp.org", 10000, network)) {
|