diff options
author | Wink Saville <wink@google.com> | 2012-05-29 12:40:46 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-07-02 10:57:11 -0700 |
commit | 095c58b73ac112cc7e00771430765434893d8bc5 (patch) | |
tree | 43c6ccb97dffe45ea697a1d9ad2eb70403b478db /telephony/java/com | |
parent | f632562f7d2e94978d185d192a62eb73925a59a2 (diff) | |
download | frameworks_base-095c58b73ac112cc7e00771430765434893d8bc5.zip frameworks_base-095c58b73ac112cc7e00771430765434893d8bc5.tar.gz frameworks_base-095c58b73ac112cc7e00771430765434893d8bc5.tar.bz2 |
Enhance StateMachine Quitting and logging support. DO NOT MERGE
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
Conflicts:
services/java/com/android/server/NsdService.java
Diffstat (limited to 'telephony/java/com')
-rw-r--r-- | telephony/java/com/android/internal/telephony/DataConnection.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/telephony/java/com/android/internal/telephony/DataConnection.java b/telephony/java/com/android/internal/telephony/DataConnection.java index cc4adfd..02f0d03 100644 --- a/telephony/java/com/android/internal/telephony/DataConnection.java +++ b/telephony/java/com/android/internal/telephony/DataConnection.java @@ -265,7 +265,7 @@ public abstract class DataConnection extends StateMachine { protected DataConnection(PhoneBase phone, String name, int id, RetryManager rm, DataConnectionTracker dct) { super(name); - setProcessedMessagesSize(100); + setLogRecSize(100); if (DBG) log("DataConnection constructor E"); this.phone = phone; this.mDataConnectionTracker = dct; @@ -1215,11 +1215,11 @@ public abstract class DataConnection extends StateMachine { * @return the string for msg.what as our info. */ @Override - protected String getMessageInfo(Message msg) { + protected String getWhatToString(int what) { String info = null; - info = cmdToString(msg.what); + info = cmdToString(what); if (info == null) { - info = DataConnectionAc.cmdToString(msg.what); + info = DataConnectionAc.cmdToString(what); } return info; } |