summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2019-04-01 23:28:47 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-04-01 23:28:47 +0000
commit27059069fd9f19e4286cca43b0bc4a014f799dbd (patch)
tree539f8a38b59e5930787320547f821814b32f2988
parent15b1814d4779c02d039714275166a60630dcb3d6 (diff)
parente1d6c4d640681da569b5071dbaedb062b18b585d (diff)
Merge "Cleanup SystemReady in the network stack"
-rw-r--r--src/com/android/server/NetworkStackService.java6
-rw-r--r--src/com/android/server/connectivity/NetworkMonitor.java15
2 files changed, 0 insertions, 21 deletions
diff --git a/src/com/android/server/NetworkStackService.java b/src/com/android/server/NetworkStackService.java
index 63f057c..a0a90fd 100644
--- a/src/com/android/server/NetworkStackService.java
+++ b/src/com/android/server/NetworkStackService.java
@@ -303,12 +303,6 @@ public class NetworkStackService extends Service {
}
@Override
- public void notifySystemReady() {
- checkNetworkStackCallingPermission();
- mNm.notifySystemReady();
- }
-
- @Override
public void notifyNetworkConnected(LinkProperties lp, NetworkCapabilities nc) {
checkNetworkStackCallingPermission();
mNm.notifyNetworkConnected(lp, nc);
diff --git a/src/com/android/server/connectivity/NetworkMonitor.java b/src/com/android/server/connectivity/NetworkMonitor.java
index c000fc6..6f31f9b 100644
--- a/src/com/android/server/connectivity/NetworkMonitor.java
+++ b/src/com/android/server/connectivity/NetworkMonitor.java
@@ -298,8 +298,6 @@ public class NetworkMonitor extends StateMachine {
// Avoids surfacing "Sign in to network" notification.
private boolean mDontDisplaySigninNotification = false;
- private volatile boolean mSystemReady = false;
-
private final State mDefaultState = new DefaultState();
private final State mValidatedState = new ValidatedState();
private final State mMaybeNotifyState = new MaybeNotifyState();
@@ -434,15 +432,6 @@ public class NetworkMonitor extends StateMachine {
}
/**
- * Send a notification to NetworkMonitor indicating that the system is ready.
- */
- public void notifySystemReady() {
- // No need to run on the handler thread: mSystemReady is volatile and read only once on the
- // isCaptivePortal() thread.
- mSystemReady = true;
- }
-
- /**
* Send a notification to NetworkMonitor indicating that the network is now connected.
*/
public void notifyNetworkConnected(LinkProperties lp, NetworkCapabilities nc) {
@@ -1592,10 +1581,6 @@ public class NetworkMonitor extends StateMachine {
*/
private void sendNetworkConditionsBroadcast(boolean responseReceived, boolean isCaptivePortal,
long requestTimestampMs, long responseTimestampMs) {
- if (!mSystemReady) {
- return;
- }
-
Intent latencyBroadcast =
new Intent(NetworkMonitorUtils.ACTION_NETWORK_CONDITIONS_MEASURED);
if (mNetworkCapabilities.hasTransport(TRANSPORT_WIFI)) {