diff options
author | Wink Saville <wink@google.com> | 2012-05-29 12:40:46 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2012-05-29 12:40:46 -0700 |
commit | bbf30dfd767f823f5f40d14b498e2a593454c5c9 (patch) | |
tree | 8a73a775e4f6ac59eade4b465e7e2a3672078358 /wifi | |
parent | fe002daf4aa6a7ba6cfc2379f11c517f419c77d1 (diff) | |
download | frameworks_base-bbf30dfd767f823f5f40d14b498e2a593454c5c9.zip frameworks_base-bbf30dfd767f823f5f40d14b498e2a593454c5c9.tar.gz frameworks_base-bbf30dfd767f823f5f40d14b498e2a593454c5c9.tar.bz2 |
Enhance StateMachine Quitting and logging support.
Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.
Rename halting to onHalting.
Add onQuitting
Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.
bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 6 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/p2p/WifiP2pService.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index a0f3281..a8877eb 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -681,7 +681,7 @@ public class WifiStateMachine extends StateMachine { setInitialState(mInitialState); - setProcessedMessagesSize(100); + setLogRecSize(100); if (DBG) setDbg(true); //start the state machine @@ -1135,7 +1135,7 @@ public class WifiStateMachine extends StateMachine { } @Override - protected boolean recordProcessedMessage(Message msg) { + protected boolean recordLogRec(Message msg) { //Ignore screen on/off & common messages when driver has started if (getCurrentState() == mConnectedState || getCurrentState() == mDisconnectedState) { switch (msg.what) { @@ -1635,7 +1635,7 @@ public class WifiStateMachine extends StateMachine { handlePostDhcpSetup(); mDhcpStateMachine.sendMessage(DhcpStateMachine.CMD_STOP_DHCP); - mDhcpStateMachine.quit(); + mDhcpStateMachine.doQuit(); mDhcpStateMachine = null; } diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java index cc49cae..3cb8a8c 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java @@ -1163,7 +1163,7 @@ public class WifiP2pService extends IWifiP2pManager.Stub { } else { if (DBG) logd("stop DHCP client"); mDhcpStateMachine.sendMessage(DhcpStateMachine.CMD_STOP_DHCP); - mDhcpStateMachine.quit(); + mDhcpStateMachine.doQuit(); mDhcpStateMachine = null; } |