From c33489a60b529c63bda512c6890eff664cdfc3b0 Mon Sep 17 00:00:00 2001 From: Dave Mankoff Date: Wed, 18 Nov 2020 15:48:34 -0500 Subject: More logging when failing to inject SliceProvider. This continues to be an exception that shouldn't be happening. ADding more logging to try to get insight into the problem. Test: manual Bug: 168778439 Change-Id: I2fdaa366c70f1551a768f48f7ac6df966e731fe3 --- .../SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java | 3 ++- .../src/com/android/systemui/keyguard/KeyguardSliceProvider.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java b/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java index bb7906e7c3ae..714d267bb07d 100644 --- a/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java +++ b/packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java @@ -23,6 +23,7 @@ import android.content.BroadcastReceiver; import android.content.ContentProvider; import android.content.Context; import android.content.Intent; +import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -94,7 +95,7 @@ public class SystemUIAppComponentFactory extends AppComponentFactory { } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - // no-op + Log.w(TAG, "No injector for class: " + contentProvider.getClass(), e); } } ); diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java index 37bcb163d6f3..bd3b899adee7 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java @@ -329,7 +329,7 @@ public class KeyguardSliceProvider extends SliceProvider implements Method injectMethod = rootComponent.getClass() .getMethod("inject", getClass()); injectMethod.invoke(rootComponent, this); - Log.w("TAG", "mMediaManager is now: " + mMediaManager); + Log.w(TAG, "mMediaManager is now: " + mMediaManager); } catch (NoSuchMethodException ex) { Log.e(TAG, "Failed to find inject method for KeyguardSliceProvider", ex); } catch (IllegalAccessException | InvocationTargetException ex) { -- cgit v1.2.3-59-g8ed1b