/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitor.java | 235 private void handleAvailable(int callbackType, Network network) { in handleAvailable() argument 236 if (VDBG) Log.d(TAG, "EVENT_ON_AVAILABLE for " + network); in handleAvailable() 238 if (!mNetworkMap.containsKey(network)) { in handleAvailable() 239 mNetworkMap.put(network, in handleAvailable() 240 new NetworkState(null, null, null, network, null, null)); in handleAvailable() 262 mDefaultInternetNetwork = network; in handleAvailable() 297 notifyTarget(EVENT_ON_AVAILABLE, network); in handleAvailable() 300 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() argument 301 final NetworkState prev = mNetworkMap.get(network); in handleNetCap() 311 network, newNc)); in handleNetCap() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiNetworkScoreCache.java | 100 for (ScoredNetwork network : networks) { in updateScores() 101 String networkKey = buildNetworkKey(network); in updateScores() 104 Log.d(TAG, "Failed to build network key for ScoredNetwork" + network); in updateScores() 108 mCache.put(networkKey, network); in updateScores() 141 ScoredNetwork network = getScoredNetwork(result); in hasScoreCurve() local 142 return network != null && network.rssiCurve != null; in hasScoreCurve() 148 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore() local 149 if (network != null && network.rssiCurve != null) { in getNetworkScore() 150 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore() 152 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 100 ScoredNetwork network = new ScoredNetwork(KEY, null /* rssiCurve */); in hasRankingScoreShouldReturnFalse() local 101 assertFalse(network.hasRankingScore()); in hasRankingScoreShouldReturnFalse() 106 ScoredNetwork network = in hasRankingScoreShouldReturnTrueWhenAttributesHasRankingScoreOffset() local 108 assertTrue(network.hasRankingScore()); in hasRankingScoreShouldReturnTrueWhenAttributesHasRankingScoreOffset() 113 ScoredNetwork network = in hasRankingScoreShouldReturnTrueWhenCurveIsPresent() local 115 assertTrue(network.hasRankingScore()); in hasRankingScoreShouldReturnTrueWhenCurveIsPresent() 120 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */, ATTRIBUTES); in shouldWriteAndReadFromParcelWhenAllFieldsSet() local 126 network.writeToParcel(parcel, 0 /* flags */); in shouldWriteAndReadFromParcelWhenAllFieldsSet() 146 ScoredNetwork network = new ScoredNetwork(KEY, CURVE, true /* meteredHint */); in shouldWriteAndReadFromParcelWithoutBundle() local 152 network.writeToParcel(parcel, 0 /* flags */); in shouldWriteAndReadFromParcelWithoutBundle() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SavedNetworkEvaluator.java | 101 for (WifiConfiguration network : savedNetworks) { in updateSavedNetworkSelectionStatus() 107 if (network.isPasspoint()) { in updateSavedNetworkSelectionStatus() 113 mWifiConfigManager.tryEnableNetwork(network.networkId); in updateSavedNetworkSelectionStatus() 119 mWifiConfigManager.clearNetworkCandidateScanResult(network.networkId); in updateSavedNetworkSelectionStatus() 122 WifiConfiguration.NetworkSelectionStatus status = network.getNetworkSelectionStatus(); in updateSavedNetworkSelectionStatus() 124 sbuf.append(" ").append(WifiNetworkSelector.toNetworkString(network)).append(" "); in updateSavedNetworkSelectionStatus() 158 private int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() argument 182 && lastUserSelectedNetworkId == network.networkId) { in calculateBssidScore() 195 && (network.networkId == currentNetwork.networkId in calculateBssidScore() 217 if (!WifiConfigurationUtil.isConfigForOpenNetwork(network)) { in calculateBssidScore() [all …]
|
D | WifiNetworkSelector.java | 139 WifiConfiguration network = in isCurrentNetworkSufficient() local 143 if (network == null) { in isCurrentNetworkSufficient() 147 localLog("Current connected network: " + network.SSID in isCurrentNetworkSufficient() 148 + " , ID: " + network.networkId); in isCurrentNetworkSufficient() 164 if (network.ephemeral) { in isCurrentNetworkSufficient() 170 if (WifiConfigurationUtil.isConfigForOpenNetwork(network)) { in isCurrentNetworkSufficient() 254 public static String toNetworkString(WifiConfiguration network) { in toNetworkString() argument 255 if (network == null) { in toNetworkString() 259 return (network.SSID + ":" + network.networkId); in toNetworkString() 409 for (WifiConfiguration network : savedNetworks) { in setUserConnectChoice() [all …]
|
D | ConnectToNetworkNotificationBuilder.java | 71 public Notification createConnectToNetworkNotification(ScanResult network) { in createConnectToNetworkNotification() argument 81 mContext.getText(R.string.wifi_available_title), network.SSID) in createConnectToNetworkNotification() 93 public Notification createNetworkConnectingNotification(ScanResult network) { in createNetworkConnectingNotification() argument 95 mContext.getText(R.string.wifi_available_title_connecting), network.SSID) in createNetworkConnectingNotification() 106 public Notification createNetworkConnectedNotification(ScanResult network) { in createNetworkConnectedNotification() argument 108 mContext.getText(R.string.wifi_available_title_connected), network.SSID) in createNetworkConnectedNotification()
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetworkPinner.java | 90 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/native/android/ |
D | net.c | 45 int android_setsocknetwork(net_handle_t network, int fd) { in android_setsocknetwork() argument 47 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork() 60 int android_setprocnetwork(net_handle_t network) { in android_setprocnetwork() argument 62 if (!getnetidfromhandle(network, &netid)) { in android_setprocnetwork() 75 int android_getaddrinfofornetwork(net_handle_t network, in android_getaddrinfofornetwork() argument 79 if (!getnetidfromhandle(network, &netid)) { in android_getaddrinfofornetwork()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 963 public NetworkInfo getNetworkInfo(Network network) { in getNetworkInfo() argument 964 return getNetworkInfoForUid(network, Process.myUid(), false); in getNetworkInfo() 968 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid() argument 970 return mService.getNetworkInfoForUid(network, uid, ignoreBlocked); in getNetworkInfoForUid() 1094 public LinkProperties getLinkProperties(Network network) { in getLinkProperties() argument 1096 return mService.getLinkProperties(network); in getLinkProperties() 1110 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() argument 1112 return mService.getNetworkCapabilities(network); in getNetworkCapabilities() 1383 public void onAvailable(Network network) { 1384 currentNetwork = network; [all …]
|
D | NetworkState.java | 33 public final Network network; field in NetworkState 38 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState() argument 43 this.network = network; in NetworkState() 52 network = in.readParcelable(null); in NetworkState() 67 out.writeParcelable(network, flags); in writeToParcel()
|
D | IConnectivityManager.aidl | 51 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() argument 61 LinkProperties getLinkProperties(in Network network); in getLinkProperties() argument 63 NetworkCapabilities getNetworkCapabilities(in Network network); in getNetworkCapabilities() argument 104 void reportNetworkConnectivity(in Network network, boolean hasConnectivity); in reportNetworkConnectivity() argument 141 boolean requestBandwidthUpdate(in Network network); in requestBandwidthUpdate() argument 164 void setAcceptUnvalidated(in Network network, boolean accept, boolean always); in setAcceptUnvalidated() argument 165 void setAvoidUnvalidated(in Network network); in setAvoidUnvalidated() argument 166 void startCaptivePortalApp(in Network network); in startCaptivePortalApp() argument 178 void startNattKeepalive(in Network network, int intervalSeconds, in Messenger messenger, in startNattKeepalive() argument 181 void stopKeepalive(in Network network, int slot); in stopKeepalive() argument
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 896 WifiConfiguration network = WifiConfigurationTestUtil.createOpenNetwork(); in testMultipleUpdatesSingleNetwork() local 897 verifyAddNetworkToWifiConfigManager(network); in testMultipleUpdatesSingleNetwork() 905 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork() 907 verifyUpdateNetworkToWifiConfigManagerWithoutIpChange(network); in testMultipleUpdatesSingleNetwork() 909 network, mWifiConfigManager.getConfiguredNetworkWithPassword(network.networkId)); in testMultipleUpdatesSingleNetwork() 912 for (int i = 1; i < network.wepKeys.length; i++) { in testMultipleUpdatesSingleNetwork() 916 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork() 918 verifyUpdateNetworkToWifiConfigManagerWithoutIpChange(network); in testMultipleUpdatesSingleNetwork() 920 network, mWifiConfigManager.getConfiguredNetworkWithPassword(network.networkId)); in testMultipleUpdatesSingleNetwork() 926 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork() [all …]
|
D | WifiConfigurationUtilTest.java | 420 WifiConfiguration network = WifiConfigurationTestUtil.createOpenNetwork(); in testCreatePnoNetworkWithOpenNetwork() local 422 WifiConfigurationUtil.createPnoNetwork(network, 1); in testCreatePnoNetworkWithOpenNetwork() 423 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithOpenNetwork() 437 WifiConfiguration network = WifiConfigurationTestUtil.createOpenHiddenNetwork(); in testCreatePnoNetworkWithOpenHiddenNetwork() local 439 WifiConfigurationUtil.createPnoNetwork(network, 1); in testCreatePnoNetworkWithOpenHiddenNetwork() 440 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithOpenHiddenNetwork() 455 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(); in testCreatePnoNetworkWithPskNetwork() local 457 WifiConfigurationUtil.createPnoNetwork(network, 1); in testCreatePnoNetworkWithPskNetwork() 458 assertEquals(network.SSID, pnoNetwork.ssid); in testCreatePnoNetworkWithPskNetwork() 471 WifiConfiguration network = WifiConfigurationTestUtil.createPskNetwork(TEST_SSID); in testIsSameNetworkReturnsTrueOnSameNetwork() local [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | OSUFlowManager.java | 87 public OSUFlow(Network network, String osuURL, in OSUFlow() argument 91 mNetwork = network; in OSUFlow() 92 mWifiNetworkId = network.netId; in OSUFlow() 123 Network network = networkMatch(); in connect() local 126 mResultNetwork = network; in connect() 191 Network network = mPlatformAdapter.getCurrentNetwork(); in networkChange() local 192 Log.d(OSUManager.TAG, "New network " + network in networkChange() 197 if (mResultNetwork == null && network != null && connectionInfo.getIpAddress() != 0 in networkChange() 199 mResultNetwork = network; in networkChange() 236 Network network = connect(); in run() local [all …]
|
D | OSUClient.java | 83 public void provision(PlatformAdapter platformAdapter, Network network, KeyManager km) in provision() argument 87 OSUFlowManager.FlowType.Provisioning, network, mURL, km, true))) { in provision() argument 152 if (!startUserInput(new URL(webURL), network)) { in provision() 176 getCommandData(), network, getOMADMAdapter(), in provision() argument 213 retrieveCerts(moData.getMOTree().getRoot(), certs, network, km, mKeyStore); in provision() local 214 platformAdapter.provisioningComplete(mOSUInfo, moData, certs, clientKey, network); in provision() 218 public void remediate(PlatformAdapter platformAdapter, Network network, KeyManager km, in remediate() argument 221 try (HTTPHandler httpHandler = createHandler(network, homeSP, km, flowType)) { in remediate() 276 if (!startUserInput(new URL(webURL), network)) { in remediate() 295 getCommandData(), network, getOMADMAdapter(), in remediate() argument [all …]
|
/frameworks/base/proto/src/ |
D | ipconnectivity.proto | 9 // 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 record when the system default network disconnects or the system 54 // switches to a new default network. 58 // Reason why this network stopped being the default. 66 // Whether the network supports IPv4, IPv6, or both. [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiSavedConfigUtils.java | 41 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()
|
/frameworks/native/include/android/ |
D | multinetwork.h | 64 int android_setsocknetwork(net_handle_t network, int fd); 81 int android_setprocnetwork(net_handle_t network); 98 int android_getaddrinfofornetwork(net_handle_t network,
|
/frameworks/base/native/android/include/android/ |
D | multinetwork.h | 64 int android_setsocknetwork(net_handle_t network, int fd); 81 int android_setprocnetwork(net_handle_t network); 98 int android_getaddrinfofornetwork(net_handle_t network,
|
/frameworks/base/telephony/java/com/android/ims/ |
D | ImsConfig.java | 663 public void getFeatureValue(int feature, int network, in getFeatureValue() argument 666 Rlog.d(TAG, "getFeatureValue: feature = " + feature + ", network =" + network + in getFeatureValue() 670 miConfig.getFeatureValue(feature, network, listener); in getFeatureValue() 688 public void setFeatureValue(int feature, int network, int value, in setFeatureValue() argument 691 Rlog.d(TAG, "setFeatureValue: feature = " + feature + ", network =" + network + in setFeatureValue() 695 miConfig.setFeatureValue(feature, network, value, listener); in setFeatureValue()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | LingerMonitor.java | 113 if (mNotifications.valueAt(i) == toNai.network.netId) { in getNotificationSource() 121 return mEverNotified.get(nai.network.netId, false); in everNotified() 152 mNotifier.showNotification(fromNai.network.netId, NotificationType.NETWORK_SWITCH, in showNotification() 203 mNotifications.put(fromNai.network.netId, toNai.network.netId); in notify() 204 mEverNotified.put(fromNai.network.netId, true); in notify() 274 mNotifications.delete(nai.network.netId); in noteDisconnect() 275 mEverNotified.delete(nai.network.netId); in noteDisconnect()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CellNetworkScanResult.java | 92 for (OperatorInfo network : mOperators) { in writeToParcel() 93 network.writeToParcel(out, flags); in writeToParcel() 106 for (OperatorInfo network : mOperators) { in toString() 107 sb.append(" network:").append(network); in toString()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/ |
D | FlowService.java | 76 public void remediate(String spFqdn, String url, boolean policy, Network network) { in remediate() argument 77 FlowService.this.remediate(spFqdn, url, policy, network); in remediate() 102 public void remediate(String spFqdn, String url, boolean policy, Network network) { in remediate() argument 112 mOSUFlowManager.appendFlow(new OSUFlowManager.OSUFlow(network, url, in remediate() 127 mOSUFlowManager.appendFlow(new OSUFlowManager.OSUFlow(network, url, in remediate()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
D | PnoNetwork.java | 44 PnoNetwork network = (PnoNetwork) rhs; in equals() local 45 return java.util.Arrays.equals(ssid, network.ssid) in equals() 46 && isHidden == network.isHidden; in equals()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | EventLogTags.logtags | 18 # Reregister to data network - timed out with no incoming packets. 27 # Data network registration failed after successful voice registration 33 # PDP drop caused by network 36 # CDMA data network setup failure 39 # CDMA data network drop
|