Loading android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +14 −4 Original line number Original line Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.media.BluetoothProfileConnectionInfo; import android.os.Handler; import android.os.Handler; import android.os.HandlerThread; import android.os.HandlerThread; import android.os.Looper; import android.os.Looper; import android.os.Parcel; import android.os.ParcelUuid; import android.os.ParcelUuid; import android.os.RemoteCallbackList; import android.os.RemoteCallbackList; import android.os.RemoteException; import android.os.RemoteException; Loading Loading @@ -980,6 +981,17 @@ public class LeAudioService extends ProfileService { } } } } BluetoothProfileConnectionInfo getBroadcastProfile(boolean suppressNoisyIntent) { Parcel parcel = Parcel.obtain(); parcel.writeInt(BluetoothProfile.LE_AUDIO_BROADCAST); parcel.writeBoolean(suppressNoisyIntent); parcel.writeInt(-1 /* mVolume */); parcel.writeBoolean(true /* mIsLeOutput */); parcel.setDataPosition(0); return BluetoothProfileConnectionInfo.CREATOR.createFromParcel(parcel); } // Suppressed since this is part of a local process // Suppressed since this is part of a local process @SuppressLint("AndroidFrameworkRequiresPermission") @SuppressLint("AndroidFrameworkRequiresPermission") void messageFromNative(LeAudioStackEvent stackEvent) { void messageFromNative(LeAudioStackEvent stackEvent) { Loading Loading @@ -1178,8 +1190,7 @@ public class LeAudioService extends ProfileService { mActiveAudioOutDevice = null; mActiveAudioOutDevice = null; mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, previousDevice, previousDevice, // TODO: implement createLeAudioBroadcastInfo() getBroadcastProfile(true)); BluetoothProfileConnectionInfo.createLeAudioInfo(false, true)); } } } } Loading Loading @@ -1217,8 +1228,7 @@ public class LeAudioService extends ProfileService { mActiveAudioOutDevice = device; mActiveAudioOutDevice = device; mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, previousDevice, previousDevice, // TODO: implement createLeAudioBroadcastInfo() getBroadcastProfile(false)); BluetoothProfileConnectionInfo.createLeAudioInfo(true, true)); } } } } } } Loading Loading
android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +14 −4 Original line number Original line Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.media.BluetoothProfileConnectionInfo; import android.os.Handler; import android.os.Handler; import android.os.HandlerThread; import android.os.HandlerThread; import android.os.Looper; import android.os.Looper; import android.os.Parcel; import android.os.ParcelUuid; import android.os.ParcelUuid; import android.os.RemoteCallbackList; import android.os.RemoteCallbackList; import android.os.RemoteException; import android.os.RemoteException; Loading Loading @@ -980,6 +981,17 @@ public class LeAudioService extends ProfileService { } } } } BluetoothProfileConnectionInfo getBroadcastProfile(boolean suppressNoisyIntent) { Parcel parcel = Parcel.obtain(); parcel.writeInt(BluetoothProfile.LE_AUDIO_BROADCAST); parcel.writeBoolean(suppressNoisyIntent); parcel.writeInt(-1 /* mVolume */); parcel.writeBoolean(true /* mIsLeOutput */); parcel.setDataPosition(0); return BluetoothProfileConnectionInfo.CREATOR.createFromParcel(parcel); } // Suppressed since this is part of a local process // Suppressed since this is part of a local process @SuppressLint("AndroidFrameworkRequiresPermission") @SuppressLint("AndroidFrameworkRequiresPermission") void messageFromNative(LeAudioStackEvent stackEvent) { void messageFromNative(LeAudioStackEvent stackEvent) { Loading Loading @@ -1178,8 +1190,7 @@ public class LeAudioService extends ProfileService { mActiveAudioOutDevice = null; mActiveAudioOutDevice = null; mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, previousDevice, previousDevice, // TODO: implement createLeAudioBroadcastInfo() getBroadcastProfile(true)); BluetoothProfileConnectionInfo.createLeAudioInfo(false, true)); } } } } Loading Loading @@ -1217,8 +1228,7 @@ public class LeAudioService extends ProfileService { mActiveAudioOutDevice = device; mActiveAudioOutDevice = device; mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice, previousDevice, previousDevice, // TODO: implement createLeAudioBroadcastInfo() getBroadcastProfile(false)); BluetoothProfileConnectionInfo.createLeAudioInfo(true, true)); } } } } } } Loading