commit | 5adaf08abbd1569822731837b203328a5fdbca85 | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Tue May 09 14:56:31 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 09 14:56:31 2023 +0000 |
tree | 4de0d785e504ba5aeb880696a5813d8c9cccffcd | |
parent | 9c4684c458923f46c105da7cb7acd0103e3c5f06 [diff] | |
parent | 53466c0060f593f68add4a6451c59e6e277fdcbc [diff] |
Merge "Add logging when tile cannot be found" into udc-dev am: 53466c0060 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23087975 Change-Id: Iee848882c6d1071af8842739020af2bf3499b6e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java b/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java index a07b955..c8691ac 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java +++ b/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
@@ -344,9 +344,26 @@ verifyCaller(customTile); return customTile.getQsTile(); } + Log.e(TAG, "Tile for token " + token + "not found. " + + "Tiles in map: " + availableTileComponents()); return null; } + private String availableTileComponents() { + StringBuilder sb = new StringBuilder("["); + synchronized (mServices) { + mTokenMap.forEach((iBinder, customTile) -> + sb.append(iBinder.toString()) + .append(":") + .append(customTile.getComponent().flattenToShortString()) + .append(":") + .append(customTile.getUser()) + .append(",")); + } + sb.append("]"); + return sb.toString(); + } + @Override public void startUnlockAndRun(IBinder token) { CustomTile customTile = getTileForToken(token);