summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/wifi
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-05-18 11:24:22 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2013-05-18 13:40:49 -0700
commit02ba86f0cc34fcaaf5e938f178c9d0ff86c8dba0 (patch)
treee94c2c864b97636d0307f087828514bfb57bb1c1 /services/java/com/android/server/wifi
parent154bb5597cbd3985e3ab86647c5feaa2e289e1a9 (diff)
downloadframeworks_base-02ba86f0cc34fcaaf5e938f178c9d0ff86c8dba0.zip
frameworks_base-02ba86f0cc34fcaaf5e938f178c9d0ff86c8dba0.tar.gz
frameworks_base-02ba86f0cc34fcaaf5e938f178c9d0ff86c8dba0.tar.bz2
Add some temp wifi debugging output
bug: 9014777 Change-Id: I38c61f235742a36be10cdf9125e19ac9406a61b9
Diffstat (limited to 'services/java/com/android/server/wifi')
-rw-r--r--services/java/com/android/server/wifi/WifiController.java25
1 files changed, 21 insertions, 4 deletions
diff --git a/services/java/com/android/server/wifi/WifiController.java b/services/java/com/android/server/wifi/WifiController.java
index 52aaac7..10f7f5a 100644
--- a/services/java/com/android/server/wifi/WifiController.java
+++ b/services/java/com/android/server/wifi/WifiController.java
@@ -147,8 +147,8 @@ class WifiController extends StateMachine {
addState(mApEnabledState, mDefaultState);
addState(mEcmState, mDefaultState);
setInitialState(mApStaDisabledState);
- setLogRecSize(25);
- setLogOnlyTransitions(true);
+ setLogRecSize(100);
+ setLogOnlyTransitions(false);
IntentFilter filter = new IntentFilter();
filter.addAction(ACTION_DEVICE_IDLE);
@@ -352,7 +352,9 @@ class WifiController extends StateMachine {
case CMD_WIFI_TOGGLED:
case CMD_AIRPLANE_TOGGLED:
case CMD_EMERGENCY_MODE_CHANGED:
+ break;
case CMD_DEFERRED_TOGGLE:
+ log("DEFERRED_TOGGLE ignored due to state change");
break;
default:
throw new RuntimeException("WifiController.handleMessage " + msg.what);
@@ -409,7 +411,11 @@ class WifiController extends StateMachine {
}
break;
case CMD_DEFERRED_TOGGLE:
- if (msg.arg1 != mDeferredEnableSerialNumber) break;
+ if (msg.arg1 != mDeferredEnableSerialNumber) {
+ log("DEFERRED_TOGGLE ignored due to serial mismatch");
+ break;
+ }
+ log("DEFERRED_TOGGLE handled");
sendMessage((Message)(msg.obj));
break;
default:
@@ -424,6 +430,9 @@ class WifiController extends StateMachine {
return false;
}
+ log("WifiController msg " + msg + " deferred for " +
+ (mReEnableDelayMillis - delaySoFar) + "ms");
+
// need to defer this action.
Message deferredMsg = obtainMessage(CMD_DEFERRED_TOGGLE);
deferredMsg.obj = Message.obtain(msg);
@@ -526,7 +535,11 @@ class WifiController extends StateMachine {
}
break;
case CMD_DEFERRED_TOGGLE:
- if (msg.arg1 != mDeferredEnableSerialNumber) break;
+ if (msg.arg1 != mDeferredEnableSerialNumber) {
+ log("DEFERRED_TOGGLE ignored due to serial mismatch");
+ break;
+ }
+ logd("DEFERRED_TOGGLE handled");
sendMessage((Message)(msg.obj));
break;
default:
@@ -540,6 +553,10 @@ class WifiController extends StateMachine {
if (delaySoFar > mReEnableDelayMillis) {
return false;
}
+
+ log("WifiController msg " + msg + " deferred for " +
+ (mReEnableDelayMillis - delaySoFar) + "ms");
+
// need to defer this action.
Message deferredMsg = obtainMessage(CMD_DEFERRED_TOGGLE);
deferredMsg.obj = Message.obtain(msg);