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: Ief47cc09cd2258a64ba96a7465cb662a9c0be8ec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -344,9 +344,26 @@ public class TileServices extends IQSService.Stub {
|
|||||||
verifyCaller(customTile);
|
verifyCaller(customTile);
|
||||||
return customTile.getQsTile();
|
return customTile.getQsTile();
|
||||||
}
|
}
|
||||||
|
Log.e(TAG, "Tile for token " + token + "not found. "
|
||||||
|
+ "Tiles in map: " + availableTileComponents());
|
||||||
return null;
|
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
|
@Override
|
||||||
public void startUnlockAndRun(IBinder token) {
|
public void startUnlockAndRun(IBinder token) {
|
||||||
CustomTile customTile = getTileForToken(token);
|
CustomTile customTile = getTileForToken(token);
|
||||||
|
|||||||
Reference in New Issue
Block a user