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
This commit is contained in:
Wink Saville
2012-05-29 12:40:46 -07:00
committed by Jean-Baptiste Queru
parent 5418b476be
commit 66f04e9ddb

View File

@@ -110,8 +110,8 @@ public class NsdService extends INsdManager.Stub {
private final EnabledState mEnabledState = new EnabledState(); private final EnabledState mEnabledState = new EnabledState();
@Override @Override
protected String getMessageInfo(Message msg) { protected String getWhatToString(int what) {
return cmdToString(msg.what); return cmdToString(what);
} }
/** /**
@@ -144,7 +144,7 @@ public class NsdService extends INsdManager.Stub {
} else { } else {
setInitialState(mDisabledState); setInitialState(mDisabledState);
} }
setProcessedMessagesSize(25); setLogRecSize(25);
registerForNsdSetting(); registerForNsdSetting();
} }