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

Commit b3deabb7 authored by Bishoy Gendy's avatar Bishoy Gendy
Browse files

Add logs to MR2ServiceImp on session creation request failed

Bug: 304527959
Test: Non functional change
Change-Id: I475cc3c6f17dea4e7d262b5fe966148b5ce3923c
parent 263eeb2a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2486,6 +2486,13 @@ class MediaRouter2ServiceImpl {
        private void onRequestFailedOnHandler(@NonNull MediaRoute2Provider provider,
                long uniqueRequestId, int reason) {
            if (handleSessionCreationRequestFailed(provider, uniqueRequestId, reason)) {
                Slog.w(
                        TAG,
                        TextUtils.formatSimple(
                                "onRequestFailedOnHandler | Finished handling session creation"
                                    + " request failed for provider: %s, uniqueRequestId: %d,"
                                    + " reason: %d",
                                provider.getUniqueId(), uniqueRequestId, reason));
                return;
            }

@@ -2515,6 +2522,12 @@ class MediaRouter2ServiceImpl {

            if (matchingRequest == null) {
                // The failure is not about creating a session.
                Slog.w(
                        TAG,
                        TextUtils.formatSimple(
                                "handleSessionCreationRequestFailed | No matching request found for"
                                    + " provider: %s, uniqueRequestId: %d, reason: %d",
                                provider.getUniqueId(), uniqueRequestId, reason));
                return false;
            }