/frameworks/base/telephony/java/com/android/ims/ |
H A D | ImsConfigListener.aidl | 29 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 34 void onGetFeatureResponse(int feature, int network, int value, int status); 44 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 50 void onSetFeatureResponse(int feature, int network, int value, int status);
|
/frameworks/base/native/android/include/android/ |
H A D | multinetwork.h | 38 * The value NETWORK_UNSPECIFIED indicates no specific network. 44 * not used to indicate some notion of the "current default network". 57 * Set the network to be used by the given socket file descriptor. 64 int android_setsocknetwork(net_handle_t network, int fd); 68 * Binds the current process to |network|. All sockets created in the future 70 * |network|. All host name resolutions will be limited to |network| as well. 71 * Note that if the network identified by |network| ever disconnects, all 74 * accidentally use sockets it thinks are still bound to a particular network [all...] |
/frameworks/native/include/android/ |
H A D | multinetwork.h | 38 * The value NETWORK_UNSPECIFIED indicates no specific network. 44 * not used to indicate some notion of the "current default network". 57 * Set the network to be used by the given socket file descriptor. 64 int android_setsocknetwork(net_handle_t network, int fd); 68 * Binds the current process to |network|. All sockets created in the future 70 * |network|. All host name resolutions will be limited to |network| as well. 71 * Note that if the network identified by |network| ever disconnects, all 74 * accidentally use sockets it thinks are still bound to a particular network [all...] |
/frameworks/base/services/net/java/android/net/dns/ |
H A D | ResolvUtil.java | 44 public static InetAddress[] blockingResolveAllLocally(Network network, String name) argument 47 return blockingResolveAllLocally(network, name, AI_ADDRCONFIG); 51 Network network, String name, int aiFlags) throws UnknownHostException { 58 final Network networkForResolv = getNetworkWithUseLocalNameserversFlag(network); 68 public static Network getNetworkWithUseLocalNameserversFlag(Network network) { argument 69 final long netidForResolv = NETID_USE_LOCAL_NAMESERVERS | (long) network.netId; 73 public static Network makeNetworkWithPrivateDnsBypass(Network network) { argument 74 return new Network(network) { 77 return blockingResolveAllLocally(network, host); 50 blockingResolveAllLocally( Network network, String name, int aiFlags) argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | ChartData.java | 22 public NetworkStatsHistory network; field in class:ChartData
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
H A D | WifiSavedConfigUtils.java | 41 for (WifiConfiguration network : savedNetworks) { 42 // Configuration for Passpoint network is configured temporary by WifiService for 46 if (network.isPasspoint()) { 50 if (network.isEphemeral()) { 53 savedConfigs.add(new AccessPoint(context, network));
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNetworkScoreCache.java | 49 // scorer to provide an RSSI threshold below which a network should not be used. 100 for (ScoredNetwork network : networks) { 101 String networkKey = buildNetworkKey(network); 104 Log.d(TAG, "Failed to build network key for ScoredNetwork" + network); 108 mCache.put(networkKey, network); 128 * scores from the network scorer. 137 * A null score curve has special meaning - we should never connect to an ephemeral network if 141 ScoredNetwork network = getScoredNetwork(result); 142 return network ! 212 buildNetworkKey(ScoredNetwork network) argument [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
H A D | UpstreamNetworkMonitor.java | 52 * A class to centralize all the network and link properties information 53 * pertaining to the current and any potential upstream network. 56 * network and a second to observe all networks. The latter is necessary 99 // The current system default network (not really used yet). 101 // The current upstream network used for tethering. 174 // The existing default network and DUN callbacks will be notified. 181 mLog.i("requesting mobile upstream network: " + mobileUpstreamRequest); 194 // integral part of this class such that whenever a higher priority network 236 private void handleAvailable(int callbackType, Network network) { argument 237 if (VDBG) Log.d(TAG, "EVENT_ON_AVAILABLE for " + network); 301 handleNetCap(Network network, NetworkCapabilities newNc) argument 329 handleLinkProp(Network network, LinkProperties newLp) argument 350 handleSuspended(int callbackType, Network network) argument 356 handleResumed(int callbackType, Network network) argument 362 handleLost(int callbackType, Network network) argument 418 onAvailable(Network network) argument 423 onCapabilitiesChanged(Network network, NetworkCapabilities newNc) argument 428 onLinkPropertiesChanged(Network network, LinkProperties newLp) argument 434 onNetworkSuspended(Network network) argument 439 onNetworkResumed(Network network) argument 444 onLost(Network network) argument 454 notifyTarget(int which, Network network) argument [all...] |
/frameworks/base/core/java/com/android/server/net/ |
H A D | NetworkPinner.java | 30 * A class that pins a process to the first network that satisfies a particular NetworkRequest. 33 * to connect to a Wi-Fi network that has no Internet access, and then assume that they will be 34 * able to use that network because it's the system default. 37 * we try not to set the default network unless they have already done so, and we try not to 38 * clear the default network unless we set it ourselves. 41 * any wifi network that was created via enableNetwork(..., true) until that network 44 * Note that while this hack allows network traffic to flow, it is quite limited. For example: 51 * - getActiveNetworkInfo will return the system default network, not Wi-Fi. 56 * This class is a per-process singleton because the process default network i 90 onAvailable(Network network) argument 104 onLost(Network network) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | CarrierNetworkNotifier.java | 32 * This class handles the "carrier wi-fi network available" notification 60 WifiConfiguration network = ScanResultUtil.createNetworkFromScanResult(recommendedNetwork); 64 network.allowedKeyManagement.set(KeyMgmt.WPA_EAP); 65 network.allowedKeyManagement.set(KeyMgmt.IEEE8021X); 66 network.enterpriseConfig = new WifiEnterpriseConfig(); 67 network.enterpriseConfig.setEapMethod(recommendedNetwork.carrierApEapType); 68 network.enterpriseConfig.setIdentity(""); 69 network.enterpriseConfig.setAnonymousIdentity(""); 72 return network;
|
H A D | SavedNetworkEvaluator.java | 96 for (WifiConfiguration network : savedNetworks) { 99 * network, but without being persisted to the storage. They are managed 102 if (network.isPasspoint()) { 108 mWifiConfigManager.tryEnableNetwork(network.networkId); 114 mWifiConfigManager.clearNetworkCandidateScanResult(network.networkId); 116 // Log disabled network. 117 WifiConfiguration.NetworkSelectionStatus status = network.getNetworkSelectionStatus(); 119 sbuf.append(" ").append(WifiNetworkSelector.toNetworkString(network)).append(" "); 127 // network may not be disabled because of this particular reason. Logging 128 // this information anyway to help understand what happened to the network 153 calculateBssidScore(ScanResult scanResult, WifiConfiguration network, WifiConfiguration currentNetwork, String currentBssid, StringBuffer sbuf) argument [all...] |
H A D | WifiNetworkSelector.java | 40 * selects a network for the phone to connect or roam to. 46 // Minimum time gap between last successful network selection and a new selection 55 // Buffer of filtered scan results (Scan results considered by network selection) & associated 67 * have its evaluator to choose the best WiFi network for the device to connect 68 * to. When registering a WiFi network evaluator with the WiFi Network Selector, 69 * the priority of the network must be specified, and it must be a value between 72 * to the lowest till a network is selected. 84 * A network scorer evaulates all the networks from the scan results and 85 * recommends the best network in its category to connect or roam to. 107 * @param currentNetwork configuration of the current connected network 255 toNetworkString(WifiConfiguration network) argument [all...] |
/frameworks/base/native/android/ |
H A D | net.c | 45 int android_setsocknetwork(net_handle_t network, int fd) { argument 47 if (!getnetidfromhandle(network, &netid)) { 60 int android_setprocnetwork(net_handle_t network) { argument 62 if (!getnetidfromhandle(network, &netid)) { 75 int android_getaddrinfofornetwork(net_handle_t network, argument 79 if (!getnetidfromhandle(network, &netid)) {
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | ScoredNetworkTest.java | 149 ScoredNetwork network = new ScoredNetwork(KEY, null /* rssiCurve */); 150 assertFalse(network.hasRankingScore()); 155 ScoredNetwork network = 157 assertTrue(network.hasRankingScore()); 162 ScoredNetwork network = 164 assertTrue(network.hasRankingScore()); 169 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */, ATTRIBUTES); 175 network.writeToParcel(parcel, 0 /* flags */); 195 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */); 201 network [all...] |
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
H A D | ConnectivityController.java | 56 * status due to user-requested network policies, so we need to check 77 // We're interested in all network changes; internally we match these 78 // network changes against the active network for each UID with jobs. 105 * Test to see if running the given job on the given network is insane. 112 private static boolean isInsane(JobStatus jobStatus, Network network, argument 126 // We don't know what the network is like; cross our fingers! 135 + " kbps network would take " + estimatedMillis + "ms; that's insane!"); 143 private static boolean isCongestionDelayed(JobStatus jobStatus, Network network, argument 145 // If network i 155 isStrictSatisfied(JobStatus jobStatus, Network network, NetworkCapabilities capabilities, Constants constants) argument 162 isRelaxedSatisfied(JobStatus jobStatus, Network network, NetworkCapabilities capabilities, Constants constants) argument 182 isSatisfied(JobStatus jobStatus, Network network, NetworkCapabilities capabilities, Constants constants) argument 208 updateConstraintsSatisfied(JobStatus jobStatus, Network network, NetworkCapabilities capabilities) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkState.java | 24 * Snapshot of network state. 36 public final Network network; field in class:NetworkState 41 NetworkCapabilities networkCapabilities, Network network, String subscriberId, 46 this.network = network; 50 // This object is an atomic view of a network, so the various components 65 network = in.readParcelable(null); 80 out.writeParcelable(network, flags); 40 NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, Network network, String subscriberId, String networkId) argument
|
H A D | IConnectivityManager.aidl | 41 * state of network connectivity. 51 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); 61 LinkProperties getLinkProperties(in Network network); 63 NetworkCapabilities getNetworkCapabilities(in Network network); 103 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); 140 boolean requestBandwidthUpdate(in Network network); 163 void setAcceptUnvalidated(in Network network, boolean accept, boolean always); 164 void setAvoidUnvalidated(in Network network); 165 void startCaptivePortalApp(in Network network); 177 void startNattKeepalive(in Network network, in [all...] |
H A D | ConnectivityManager.java | 67 * Class that answers queries about the state of network connectivity. It also 68 * notifies applications when network connectivity changes. 72 * <li>Monitor network connections (Wi-Fi, GPRS, UMTS, etc.)</li> 73 * <li>Send broadcast intents when network connectivity changes</li> 74 * <li>Attempt to "fail over" to another network when connectivity to a network 87 * A change in network connectivity has occurred. A default connection has either 88 * been established or lost. The NetworkInfo for the affected network is 100 * disconnected network, then the FAILOVER_CONNECTION boolean extra is 104 * to connect (or has already connected) to another network, th 1064 getNetworkInfo(Network network) argument 1069 getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) argument 1195 getLinkProperties(Network network) argument 1211 getNetworkCapabilities(Network network) argument 1699 PacketKeepalive(Network network, PacketKeepaliveCallback callback) argument 1745 startNattKeepalive( Network network, int intervalSeconds, PacketKeepaliveCallback callback, InetAddress srcAddr, int srcPort, InetAddress dstAddr) argument 2467 reportBadNetwork(Network network) argument 2489 reportNetworkConnectivity(Network network, boolean hasConnectivity) argument 2545 getProxyForNetwork(Network network) argument 2753 onPreCheck(Network network) argument 2765 onAvailable(Network network, NetworkCapabilities networkCapabilities, LinkProperties linkProperties) argument 2788 onAvailable(Network network) argument 2804 onLosing(Network network, int maxMsToLive) argument 2812 onLost(Network network) argument 2832 onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) argument 2842 onLinkPropertiesChanged(Network network, LinkProperties linkProperties) argument 2853 onNetworkSuspended(Network network) argument 2861 onNetworkResumed(Network network) argument 3452 requestBandwidthUpdate(Network network) argument 3531 setAcceptUnvalidated(Network network, boolean accept, boolean always) argument 3550 setAvoidUnvalidated(Network network) argument 3566 startCaptivePortalApp(Network network) argument 3633 getMultipathPreference(Network network) argument 3671 bindProcessToNetwork(Network network) argument 3699 setProcessDefaultNetwork(Network network) argument 3791 setProcessDefaultNetworkForHostResolution(Network network) argument [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerInternal.java | 50 * that network rules for that appId can be updated. 58 * Return the active {@link SubscriptionPlan} for the given network. 60 public abstract SubscriptionPlan getSubscriptionPlan(Network network); argument 72 * the given network to improve the end user experience. It's called 74 * given network. 76 public abstract long getSubscriptionOpportunisticQuota(Network network, int quotaType); argument
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
H A D | IImsConfig.aidl | 72 * Gets the value of the specified IMS feature item for specified network type. 77 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 81 oneway void getFeatureValue(int feature, int network, ImsConfigListener listener); 84 * Sets the value for IMS feature item for specified network type. 89 * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 94 oneway void setFeatureValue(int feature, int network, int value, ImsConfigListener listener);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | OsuNetworkConnection.java | 60 * Invoked when network connection is established with IP connectivity. 62 * @param network {@link Network} associated with the connected network. 64 void onConnected(Network network); argument 67 * Invoked when the targeted network is disconnected. 88 * Create an instance of {@link NetworkConnection} for the specified Wi-Fi network. 96 * Called to initialize tracking of wifi state and network events by registering for the 148 * Register for network and Wifi state events 149 * @param callbacks The callbacks to be invoked on network change events 156 * Connect to a OSU Wi-Fi network specifie 217 onLinkPropertiesChanged(Network network, LinkProperties linkProperties) argument 242 onLost(Network network) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
H A D | HiddenNetwork.java | 44 HiddenNetwork network = (HiddenNetwork) rhs; 45 return java.util.Arrays.equals(ssid, network.ssid);
|
H A D | PnoNetwork.java | 44 PnoNetwork network = (PnoNetwork) rhs; 45 return java.util.Arrays.equals(ssid, network.ssid) 46 && isHidden == network.isHidden;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CellNetworkScanResult.java | 92 for (OperatorInfo network : mOperators) { 93 network.writeToParcel(out, flags); 106 for (OperatorInfo network : mOperators) { 107 sb.append(" network:").append(network);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | ThreeGPPNetworkElement.java | 81 CellularNetwork network = CellularNetwork.parse(payload); 82 if (network != null) { 83 networks.add(network);
|