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

Commit 2e553209 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk Committed by Grzegorz Kolodziejczyk
Browse files

Add context for LE Audio group descriptor logging

Intention for such change is to make it more precise to locate from
where this log was thrown.

Tag: #feature
Test: atest GoogleBluetoothInstrumentationTests
Bug: 261362580
Change-Id: I9b06acb8e646188ad5e35ba45d295729cab63cfd
parent 8784b063
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -1431,7 +1431,8 @@ public class LeAudioService extends ProfileService {
        synchronized (mGroupLock) {
            LeAudioGroupDescriptor descriptor = getGroupDescriptor(groupId);
            if (descriptor == null || descriptor.mIsActive) {
                Log.e(TAG, "no descriptors for group: " + groupId + " or group already active");
                Log.e(TAG, "handleGroupTransitToActive: no descriptors for group: " + groupId
                        + " or group already active");
                return;
            }

@@ -1449,7 +1450,8 @@ public class LeAudioService extends ProfileService {
        synchronized (mGroupLock) {
            LeAudioGroupDescriptor descriptor = getGroupDescriptor(groupId);
            if (descriptor == null || !descriptor.mIsActive) {
                Log.e(TAG, "no descriptors for group: " + groupId + " or group already inactive");
                Log.e(TAG, "handleGroupTransitToInactive: no descriptors for group: " + groupId
                        + " or group already inactive");
                return;
            }

@@ -1715,7 +1717,7 @@ public class LeAudioService extends ProfileService {
                    descriptor.mAvailableContexts = available_contexts;
                    updateInbandRingtoneForTheGroup(groupId);
                } else {
                    Log.e(TAG, "no descriptors for group: " + groupId);
                    Log.e(TAG, "messageFromNative: no descriptors for group: " + groupId);
                }
            }
        } else if (stackEvent.type == LeAudioStackEvent.EVENT_TYPE_SINK_AUDIO_LOCATION_AVAILABLE) {
@@ -2011,7 +2013,8 @@ public class LeAudioService extends ProfileService {
            if (descriptor != null) {
                descriptor.mIsConnected = true;
            } else {
                Log.e(TAG, "no descriptors for group: " + deviceDescriptor.mGroupId);
                Log.e(TAG, "connectionStateChanged(STATE_CONNECTED): no descriptors for group: "
                        + deviceDescriptor.mGroupId);
            }
        }
        // Check if the device is disconnected - if unbond, remove the state machine
@@ -2027,7 +2030,8 @@ public class LeAudioService extends ProfileService {
            synchronized (mGroupLock) {
                LeAudioGroupDescriptor descriptor = getGroupDescriptor(deviceDescriptor.mGroupId);
                if (descriptor == null) {
                    Log.e(TAG, "no descriptors for group: " + deviceDescriptor.mGroupId);
                    Log.e(TAG, "connectionStateChanged(STATE_DISCONNECTED): no descriptors for "
                            + "group: " + deviceDescriptor.mGroupId);
                    return;
                }