Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9c16024 authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Expand logging in MR2ProviderWatcher

This change adds info about the provider being added.

Test: Manually (logging change only).
Flag: EXEMPT Logging only
Bug: b/362507305
Change-Id: Ifc9c86d7acd5d2ce56291088f81859eed99ceafd
parent 42a3c29a
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.pm.ServiceInfo;
import android.media.MediaRoute2ProviderService;
import android.os.Handler;
import android.os.UserHandle;
import android.text.TextUtils;
import android.util.Log;
import android.util.Slog;

@@ -162,8 +163,14 @@ final class MediaRoute2ProviderWatcher {
                                    mUserId);
                    Slog.i(
                            TAG,
                            "Enabling proxy for MediaRoute2ProviderService: "
                                    + proxy.mComponentName);
                            TextUtils.formatSimple(
                                    "Enabling proxy for MediaRoute2ProviderService: %s"
                                        + " (isSelfScan=%b, supportsSystemMediaRouting=%b,"
                                        + " userId=%d)",
                                    proxy.mComponentName,
                                    isSelfScanOnlyProvider,
                                    supportsSystemMediaRouting,
                                    mUserId));
                    proxy.start(/* rebindIfDisconnected= */ false);
                    mProxies.add(targetIndex++, proxy);
                    mCallback.onAddProviderService(proxy);