commit | 602fe258758a28d579e6357eca68b634fa6e6897 | [log] [tgz] |
---|---|---|
author | Jack He <siyuanh@google.com> | Mon Feb 26 15:24:54 2018 -0800 |
committer | Jack He <siyuanh@google.com> | Mon Feb 26 16:34:42 2018 -0800 |
tree | 86ea2f632f8ee235248a098a797f15cc2359b0ad | |
parent | af580a5537a5f5d94d028a4ddf17e3a4157564f9 [diff] |
A2DP: Simplify debug log mechanism * Override log() method in StateMachine to log messages gated by DBG flag * Replace all usages of "if (DBG) Log.d(TAG, msg)" with log(msg) * Call StateMachine.setDbg(DBG) in the constructor to enable more logging for StateMachine * Add null check to getCurrentMessages() in logging to avoid unintended NPE Bug: 73899051 Test: connect to and disconnect from A2DP devices Change-Id: Id89f3ba99c97c62dca74fa3901dc3c6f2c352fc1