Loading android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +15 −5 Original line number Diff line number Diff line Loading @@ -237,7 +237,8 @@ public class LeAudioService extends ProfileService { } private static class LeAudioGroupDescriptor { LeAudioGroupDescriptor(boolean isInbandRingtonEnabled) { LeAudioGroupDescriptor(int groupId, boolean isInbandRingtonEnabled) { mGroupId = groupId; mIsConnected = false; mActiveState = ACTIVE_STATE_INACTIVE; mAllowedSinkContexts = BluetoothLeAudio.CONTEXTS_ALL; Loading @@ -254,6 +255,7 @@ public class LeAudioService extends ProfileService { mInactivatedDueToContextType = false; } Integer mGroupId; Boolean mIsConnected; Boolean mHasFallbackDeviceWhenGettingInactive; Integer mDirection; Loading Loading @@ -287,11 +289,17 @@ public class LeAudioService extends ProfileService { if ((state != ACTIVE_STATE_ACTIVE) && (state != ACTIVE_STATE_INACTIVE) && (state != ACTIVE_STATE_GETTING_ACTIVE)) { Log.e(TAG, "LeAudioGroupDescriptor.setActiveState: Invalid state set: " + state); Log.e( TAG, ("LeAudioGroupDescriptor.setActiveState (groupId: " + mGroupId + "):") + ("Invalid state set: " + state)); return; } Log.d(TAG, "LeAudioGroupDescriptor.setActiveState: " + mActiveState + " -> " + state); Log.d( TAG, ("LeAudioGroupDescriptor.setActiveState (groupId: " + mGroupId + "): ") + (mActiveState + " -> " + state)); mActiveState = state; } Loading @@ -311,7 +319,9 @@ public class LeAudioService extends ProfileService { void updateAllowedContexts(Integer allowedSinkContexts, Integer allowedSourceContexts) { Log.d( TAG, "LeAudioGroupDescriptor.mAllowedSinkContexts: " "LeAudioGroupDescriptor.mAllowedSinkContexts (groupId: " + mGroupId + "): " + mAllowedSinkContexts + " -> " + allowedSinkContexts Loading Loading @@ -4733,7 +4743,7 @@ public class LeAudioService extends ProfileService { LeAudioGroupDescriptor groupDescriptor = getGroupDescriptor(groupId); if (groupDescriptor == null) { mGroupDescriptors.put(groupId, new LeAudioGroupDescriptor(false)); mGroupDescriptors.put(groupId, new LeAudioGroupDescriptor(groupId, false)); } groupDescriptor = getGroupDescriptor(groupId); if (groupDescriptor == null) { Loading Loading
android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +15 −5 Original line number Diff line number Diff line Loading @@ -237,7 +237,8 @@ public class LeAudioService extends ProfileService { } private static class LeAudioGroupDescriptor { LeAudioGroupDescriptor(boolean isInbandRingtonEnabled) { LeAudioGroupDescriptor(int groupId, boolean isInbandRingtonEnabled) { mGroupId = groupId; mIsConnected = false; mActiveState = ACTIVE_STATE_INACTIVE; mAllowedSinkContexts = BluetoothLeAudio.CONTEXTS_ALL; Loading @@ -254,6 +255,7 @@ public class LeAudioService extends ProfileService { mInactivatedDueToContextType = false; } Integer mGroupId; Boolean mIsConnected; Boolean mHasFallbackDeviceWhenGettingInactive; Integer mDirection; Loading Loading @@ -287,11 +289,17 @@ public class LeAudioService extends ProfileService { if ((state != ACTIVE_STATE_ACTIVE) && (state != ACTIVE_STATE_INACTIVE) && (state != ACTIVE_STATE_GETTING_ACTIVE)) { Log.e(TAG, "LeAudioGroupDescriptor.setActiveState: Invalid state set: " + state); Log.e( TAG, ("LeAudioGroupDescriptor.setActiveState (groupId: " + mGroupId + "):") + ("Invalid state set: " + state)); return; } Log.d(TAG, "LeAudioGroupDescriptor.setActiveState: " + mActiveState + " -> " + state); Log.d( TAG, ("LeAudioGroupDescriptor.setActiveState (groupId: " + mGroupId + "): ") + (mActiveState + " -> " + state)); mActiveState = state; } Loading @@ -311,7 +319,9 @@ public class LeAudioService extends ProfileService { void updateAllowedContexts(Integer allowedSinkContexts, Integer allowedSourceContexts) { Log.d( TAG, "LeAudioGroupDescriptor.mAllowedSinkContexts: " "LeAudioGroupDescriptor.mAllowedSinkContexts (groupId: " + mGroupId + "): " + mAllowedSinkContexts + " -> " + allowedSinkContexts Loading Loading @@ -4733,7 +4743,7 @@ public class LeAudioService extends ProfileService { LeAudioGroupDescriptor groupDescriptor = getGroupDescriptor(groupId); if (groupDescriptor == null) { mGroupDescriptors.put(groupId, new LeAudioGroupDescriptor(false)); mGroupDescriptors.put(groupId, new LeAudioGroupDescriptor(groupId, false)); } groupDescriptor = getGroupDescriptor(groupId); if (groupDescriptor == null) { Loading