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

Commit 009c379c authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

MediaOutputController: Distinguish broadcast check context in logs

This adds context for debug logs in case if there is no local
broadcaster.

Tag: #feature
Bug: 286599762
Test: atest MediaOutputBroadcastDialogTest
Change-Id: I00f79365218a768ae7ff64f6ae46fd6371c27831
parent 9bd6f02e
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -983,7 +983,7 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcast broadcast =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastProfile();
        if (broadcast == null) {
            Log.d(TAG, "getBroadcastMetadata: LE Audio Broadcast is null");
            Log.d(TAG, "getLocalBroadcastMetadataQrCodeString: LE Audio Broadcast is null");
            return "";
        }
        final LocalBluetoothLeBroadcastMetadata metadata =
@@ -1091,7 +1091,7 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcastAssistant assistant =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastAssistantProfile();
        if (assistant == null) {
            Log.d(TAG, "The broadcast assistant profile is null");
            Log.d(TAG, "getConnectedBroadcastSinkDevices: The broadcast assistant profile is null");
            return null;
        }

@@ -1102,7 +1102,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcastAssistant assistant =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastAssistantProfile();
        if (assistant == null) {
            Log.d(TAG, "The broadcast assistant profile is null");
            Log.d(TAG, "isThereAnyBroadcastSourceIntoSinkDevice: The broadcast assistant profile "
                    + "is null");
            return false;
        }
        List<BluetoothLeBroadcastReceiveState> sourceList = assistant.getAllSources(sink);
@@ -1115,7 +1116,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcastAssistant assistant =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastAssistantProfile();
        if (assistant == null) {
            Log.d(TAG, "The broadcast assistant profile is null");
            Log.d(TAG, "addSourceIntoSinkDeviceWithBluetoothLeAssistant: The broadcast assistant "
                    + "profile is null");
            return false;
        }
        assistant.addSource(sink, metadata, isGroupOp);
@@ -1128,7 +1130,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcastAssistant assistant =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastAssistantProfile();
        if (assistant == null) {
            Log.d(TAG, "The broadcast assistant profile is null");
            Log.d(TAG, "registerLeBroadcastAssistantServiceCallback: The broadcast assistant "
                    + "profile is null");
            return;
        }
        Log.d(TAG, "Register LE broadcast assistant callback");
@@ -1140,7 +1143,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
        LocalBluetoothLeBroadcastAssistant assistant =
                mLocalBluetoothManager.getProfileManager().getLeAudioBroadcastAssistantProfile();
        if (assistant == null) {
            Log.d(TAG, "The broadcast assistant profile is null");
            Log.d(TAG, "unregisterLeBroadcastAssistantServiceCallback: The broadcast assistant "
                    + "profile is null");
            return;
        }
        Log.d(TAG, "Unregister LE broadcast assistant callback");