Home
last modified time | relevance | path

Searched refs:NetworkAgent (Results 1 – 21 of 21) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConnectedScore.java19 import android.net.NetworkAgent;
28 public static final int WIFI_MAX_SCORE = NetworkAgent.WIFI_BASE_SCORE;
31 public static final int WIFI_TRANSITION_SCORE = NetworkAgent.WIFI_BASE_SCORE - 10;
DWifiScoreReport.java19 import android.net.NetworkAgent;
46 private int mScore = NetworkAgent.WIFI_BASE_SCORE;
67 mScore = NetworkAgent.WIFI_BASE_SCORE; in reset()
94 public void calculateAndReportScore(WifiInfo wifiInfo, NetworkAgent networkAgent, in calculateAndReportScore()
152 if (score > NetworkAgent.WIFI_BASE_SCORE) { in calculateAndReportScore()
153 score = NetworkAgent.WIFI_BASE_SCORE; in calculateAndReportScore()
DClientModeImpl.java45 import android.net.NetworkAgent;
4744 private class WifiNetworkAgent extends NetworkAgent {
4766 if (status == NetworkAgent.INVALID_NETWORK) { in networkStatus()
4772 } else if (status == NetworkAgent.VALID_NETWORK) { in networkStatus()
5678 if (message.arg1 == NetworkAgent.VALID_NETWORK) { in processMessage()
DWifiMetrics.java23 import android.net.NetworkAgent;
133 private static final int MAX_WIFI_SCORE = NetworkAgent.WIFI_BASE_SCORE;
/frameworks/base/core/java/android/net/
DNetworkAgent.java45 public abstract class NetworkAgent extends Handler { class
220 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() method in NetworkAgent
224 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() method in NetworkAgent
229 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() method in NetworkAgent
234 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() method in NetworkAgent
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java21 import static android.net.NetworkAgent.CMD_ADD_KEEPALIVE_PACKET_FILTER;
22 import static android.net.NetworkAgent.CMD_REMOVE_KEEPALIVE_PACKET_FILTER;
23 import static android.net.NetworkAgent.CMD_START_SOCKET_KEEPALIVE;
24 import static android.net.NetworkAgent.CMD_STOP_SOCKET_KEEPALIVE;
44 import android.net.NetworkAgent;
637 NetworkAgent.CMD_START_SOCKET_KEEPALIVE, ki).sendToTarget(); in startNattKeepalive()
DVpn.java55 import android.net.NetworkAgent;
179 protected NetworkAgent mNetworkAgent;
941 private boolean updateLinkPropertiesInPlaceIfPossible(NetworkAgent agent, VpnConfig oldConfig) { in updateLinkPropertiesInPlaceIfPossible()
982 mNetworkAgent = new NetworkAgent(mLooper, mContext, NETWORKTYPE /* logtag */, in agentConnect()
1007 private void agentDisconnect(NetworkAgent networkAgent) { in agentDisconnect()
1070 NetworkAgent oldNetworkAgent = mNetworkAgent; in establish()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java29 import android.net.NetworkAgent;
147 public class TestNetworkAgent extends NetworkAgent implements IBinder.DeathRecipient {
DConnectivityService.java88 import android.net.NetworkAgent;
333 new Class[] { AsyncChannel.class, ConnectivityService.class, NetworkAgent.class,
2559 case NetworkAgent.EVENT_NETWORK_CAPABILITIES_CHANGED: { in maybeHandleNetworkAgentMessage()
2567 case NetworkAgent.EVENT_NETWORK_PROPERTIES_CHANGED: { in maybeHandleNetworkAgentMessage()
2571 case NetworkAgent.EVENT_NETWORK_INFO_CHANGED: { in maybeHandleNetworkAgentMessage()
2576 case NetworkAgent.EVENT_NETWORK_SCORE_CHANGED: { in maybeHandleNetworkAgentMessage()
2580 case NetworkAgent.EVENT_SET_EXPLICITLY_SELECTED: { in maybeHandleNetworkAgentMessage()
2596 case NetworkAgent.EVENT_SOCKET_KEEPALIVE: { in maybeHandleNetworkAgentMessage()
2663 redirectUrlBundle.putString(NetworkAgent.REDIRECT_URL_KEY, redirectUrl); in maybeHandleNetworkMonitorMessage()
2666 NetworkAgent.CMD_REPORT_NETWORK_STATUS, in maybeHandleNetworkMonitorMessage()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java30 import android.net.NetworkAgent;
257 private NetworkAgent mNetworkAgent;
463 mNetworkAgent = new NetworkAgent(mHandler.getLooper(), mContext, in onIpLayerStarted()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java22 import android.net.NetworkAgent;
53 public class DcNetworkAgent extends NetworkAgent {
DDcTracker.java45 import android.net.NetworkAgent;
2919 final boolean isValid = status == NetworkAgent.VALID_NETWORK; in onNetworkStatusChanged()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java26 import android.net.NetworkAgent;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java52 import android.net.NetworkAgent;
1578 NetworkAgent.VALID_NETWORK, 0, null)); in testNetworkStatusChangedRecoveryOFF()
1583 NetworkAgent.INVALID_NETWORK, 0, null)); in testNetworkStatusChangedRecoveryOFF()
1619 NetworkAgent.VALID_NETWORK, 0, null)); in testNetworkStatusChangedRecoveryON()
1624 NetworkAgent.INVALID_NETWORK, 0, null)); in testNetworkStatusChangedRecoveryON()
1661 NetworkAgent.INVALID_NETWORK, 0, null)); in testRecoveryStepPDPReset()
1701 NetworkAgent.INVALID_NETWORK, 0, null)); in testRecoveryStepReRegister()
1738 NetworkAgent.INVALID_NETWORK, 0, null)); in testRecoveryStepRestartRadio()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java35 import android.net.NetworkAgent;
76 @Mock NetworkAgent mNetworkAgent;
DClientModeImplTest.java44 import android.net.NetworkAgent;
2351 expectNetworkAgentMessage(NetworkAgent.EVENT_SET_EXPLICITLY_SELECTED, in testExplicitlySelected_ExplicitInternetExpected()
2369 expectNetworkAgentMessage(NetworkAgent.EVENT_SET_EXPLICITLY_SELECTED, in testExplicitlySelected_NotExplicitNoInternetExpected()
2387 expectNetworkAgentMessage(NetworkAgent.EVENT_SET_EXPLICITLY_SELECTED, in testExplicitlySelected_ExplicitNoInternetExpected()
2426 message.what = NetworkAgent.CMD_SET_SIGNAL_STRENGTH_THRESHOLDS; in verifyRssiMonitoringCallbackIsRegistered()
2880 message.what = NetworkAgent.CMD_REPORT_NETWORK_STATUS; in testReportConnectionEventIsCalledAfterSuccessfulConnection()
2881 message.arg1 = NetworkAgent.VALID_NETWORK; in testReportConnectionEventIsCalledAfterSuccessfulConnection()
3096 message.what = NetworkAgent.CMD_REPORT_NETWORK_STATUS; in verifyAutoConnectedNetworkWithInternetValidationFailure()
3097 message.arg1 = NetworkAgent.INVALID_NETWORK; in verifyAutoConnectedNetworkWithInternetValidationFailure()
3130 message.what = NetworkAgent.CMD_REPORT_NETWORK_STATUS; in verifyLastSelectedNetworkWithInternetValidationFailure()
[all …]
DWifiMetricsTest.java55 import android.net.NetworkAgent;
1093 sb_wifi_limits.append("Wifi Score limit is " + NetworkAgent.WIFI_BASE_SCORE in assertDeserializedMetricsCorrect()
1095 assertTrue(sb_wifi_limits.toString(), NetworkAgent.WIFI_BASE_SCORE <= WIFI_SCORE_RANGE_MAX); in assertDeserializedMetricsCorrect()
1102 sb_wifi_limits.append("Wifi Usability Score limit is " + NetworkAgent.WIFI_BASE_SCORE in assertDeserializedMetricsCorrect()
1104 assertTrue(sb_wifi_limits.toString(), NetworkAgent.WIFI_BASE_SCORE <= WIFI_SCORE_RANGE_MAX); in assertDeserializedMetricsCorrect()
/frameworks/opt/net/wifi/service/proto/src/
Dscorecard.proto43 optional int32 network_agent_id = 5; // Latest NetworkAgent netId
/frameworks/base/proto/src/
Dwifi.proto958 // The NetworkAgent score for wifi has changed in a way that may impact
971 // The NetworkAgent Wifi usability score has changed in a way that may
1089 // NetworkAgent score of connected wifi
1092 // NetworkAgent Wifi usability score of connected wifi
1800 // NetworkAgent score of connected wifi.
1830 // NetworkAgent wifi usability score of connected wifi.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java31 import android.net.NetworkAgent;
1025 public class WifiAwareNetworkAgent extends NetworkAgent {
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java137 import android.net.NetworkAgent;
482 private NetworkAgent mNetworkAgent;
574 mNetworkAgent = new NetworkAgent(mHandlerThread.getLooper(), mServiceContext, in MockNetworkAgent()
812 public NetworkAgent getNetworkAgent() { in getNetworkAgent()