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

Commit 51b38ff5 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

LeAudioService: Extend dump information

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: compile
Change-Id: I6df84d725f49ac7e99943406379b6a524d52a6b0
parent 30648fb2
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1487,8 +1487,23 @@ public class LeAudioService extends ProfileService {
    @Override
    public void dump(StringBuilder sb) {
        super.dump(sb);
        ProfileService.println(sb, "State machines: ");
        for (LeAudioStateMachine sm : mStateMachines.values()) {
            sm.dump(sb);
        }
        ProfileService.println(sb, "Active Groups information: ");
        ProfileService.println(sb, "  currentlyActiveGroupId: " + getActiveGroupId());
        ProfileService.println(sb, "  mActiveAudioOutDevice: " + mActiveAudioOutDevice);
        ProfileService.println(sb, "  mActiveAudioInDevice: " + mActiveAudioInDevice);

        for (Map.Entry<Integer, LeAudioGroupDescriptor> entry : mGroupDescriptors.entrySet()) {
            LeAudioGroupDescriptor descriptor = entry.getValue();
            Integer groupId = entry.getKey();
            ProfileService.println(sb, "  Group: " + groupId);
            ProfileService.println(sb, "    isActive: " + descriptor.mIsActive);
            ProfileService.println(sb, "    isConnected: " + descriptor.mIsConnected);
            ProfileService.println(sb, "    mActiveContexts: " + descriptor.mActiveContexts);
            ProfileService.println(sb, "    group lead: " + getFirstDeviceFromGroup(groupId));
        }
    }
}