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:
committed by
Jean-Baptiste Queru
parent
5418b476be
commit
66f04e9ddb
@@ -110,8 +110,8 @@ public class NsdService extends INsdManager.Stub {
|
||||
private final EnabledState mEnabledState = new EnabledState();
|
||||
|
||||
@Override
|
||||
protected String getMessageInfo(Message msg) {
|
||||
return cmdToString(msg.what);
|
||||
protected String getWhatToString(int what) {
|
||||
return cmdToString(what);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -144,7 +144,7 @@ public class NsdService extends INsdManager.Stub {
|
||||
} else {
|
||||
setInitialState(mDisabledState);
|
||||
}
|
||||
setProcessedMessagesSize(25);
|
||||
setLogRecSize(25);
|
||||
registerForNsdSetting();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user