From 4e386dfec6118745ada8431ad21d9ae2f71876a8 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Tue, 6 Dec 2022 14:52:10 -0800 Subject: [PATCH] Add FSI debug class Bug: 243421660 Test: logging works for local development Change-Id: I54e8bc6542dd3b8b2ea4bffc2bbe63a9534acf35 --- .../statusbar/notification/fsi/FsiDebug.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/SystemUI/src/com/android/systemui/statusbar/notification/fsi/FsiDebug.kt diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/fsi/FsiDebug.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/fsi/FsiDebug.kt new file mode 100644 index 0000000000000..d9e3f8fbf1468 --- /dev/null +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/fsi/FsiDebug.kt @@ -0,0 +1,16 @@ +package com.android.systemui.statusbar.notification.fsi + +class FsiDebug { + + companion object { + private const val debugTag = "FsiDebug" + private const val debug = true + + fun log(s: Any) { + if (!debug) { + return + } + android.util.Log.d(debugTag, "$s") + } + } +} \ No newline at end of file