Make InputReader logs available dynamically
This will allow InputReader to turn on logs without having to rebuild
and make it easier to debug.
This CL also moved DEBUG_LIGHT_DETAILS from PeripheralController and DEBUG_FOCUS from FocusResolver.
Bug: 211915757
Test: adb shell setprop log.tag.InputReaderRawEvents DEBUG
Test: check that the logs get enabled
Change-Id: Icf9ea0a797cfc5974ebac51ca71b3c20337536c5
diff --git a/services/inputflinger/dispatcher/FocusResolver.cpp b/services/inputflinger/dispatcher/FocusResolver.cpp
index a02b3e8..4da846b 100644
--- a/services/inputflinger/dispatcher/FocusResolver.cpp
+++ b/services/inputflinger/dispatcher/FocusResolver.cpp
@@ -13,24 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
-#define LOG_TAG "FocusResolver"
+#define LOG_TAG "InputDispatcher"
#define ATRACE_TAG ATRACE_TAG_INPUT
#define INDENT " "
#define INDENT2 " "
-// Log debug messages about input focus tracking.
-static constexpr bool DEBUG_FOCUS = false;
-
#include <inttypes.h>
#include <android-base/stringprintf.h>
#include <binder/Binder.h>
#include <ftl/enum.h>
#include <gui/WindowInfo.h>
-#include <log/log.h>
+#include "DebugConfig.h"
#include "FocusResolver.h"
using android::gui::FocusRequest;