Add remote media slice in volume panel

-Add test cases

Bug: 142772656
Test: make -j42 RunSettingsRoboTests
Change-Id: I62d3054a4343ed2c7fbb0b4d7aeb5a48da194b02
This commit is contained in:
timhypeng
2020-02-04 17:11:38 +08:00
parent cf4e12bbd9
commit b266fa6029
6 changed files with 380 additions and 61 deletions

View File

@@ -146,6 +146,17 @@ public class MediaDeviceUpdateWorker extends SliceBackgroundWorker
return mTopDevice;
}
/**
* Find the active MediaDevice.
*
* @param type the media device type.
* @return MediaDevice list
*
*/
public List<MediaDevice> getActiveMediaDevice(@MediaDevice.MediaDeviceType int type) {
return mLocalMediaManager.getActiveMediaDevice(type);
}
/**
* Request to set volume.
*