[Audiosharing] Update media devices section.
1. Filter out the media devices in audio sharing from the section. 2. During the audio sharing, click the media device will lead to stopping the sharing. Flagged with enable_le_audio_sharing Bug: 305620450 Test: atest AvailableMediaBluetoothDeviceUpdaterTest.java Change-Id: I0676fd5aa98e593c6a5458845fc1b1631a5a6698
This commit is contained in:
@@ -31,6 +31,8 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
|
||||
private int mState;
|
||||
private List<Integer> mSupportedProfiles = new ArrayList<>();
|
||||
private List<BluetoothDevice> mMostRecentlyConnectedDevices = new ArrayList<>();
|
||||
private int mIsLeAudioBroadcastSourceSupported;
|
||||
private int mIsLeAudioBroadcastAssistantSupported;
|
||||
|
||||
@Implementation
|
||||
protected List<Integer> getSupportedProfiles() {
|
||||
@@ -67,4 +69,22 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
|
||||
public void setMostRecentlyConnectedDevices(List<BluetoothDevice> list) {
|
||||
mMostRecentlyConnectedDevices = list;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected int isLeAudioBroadcastSourceSupported() {
|
||||
return mIsLeAudioBroadcastSourceSupported;
|
||||
}
|
||||
|
||||
public void setIsLeAudioBroadcastSourceSupported(int isSupported) {
|
||||
mIsLeAudioBroadcastSourceSupported = isSupported;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected int isLeAudioBroadcastAssistantSupported() {
|
||||
return mIsLeAudioBroadcastAssistantSupported;
|
||||
}
|
||||
|
||||
public void setIsLeAudioBroadcastAssistantSupported(int isSupported) {
|
||||
mIsLeAudioBroadcastAssistantSupported = isSupported;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user