Add entry point at output switcher to do group operation

-Entry point is available only when there are more than 1 connected device
-Add group Slice item when it is available
-Add intent filter in manifest
-Add test case

Bug: 146813761
Test: make -j42 RunSettingsRoboTests
Change-Id: If398b7a31219fd1910503d96fe7593622528c792
This commit is contained in:
Tim Peng
2020-03-04 12:53:47 +08:00
parent af4d55e7dd
commit b4c4c362c5
5 changed files with 278 additions and 49 deletions

View File

@@ -118,8 +118,7 @@ public class MediaOutputGroupSlice implements CustomSliceable {
return listBuilder.build();
}
private void addRow(ListBuilder listBuilder, List<MediaDevice> mediaDevices,
boolean selected) {
private void addRow(ListBuilder listBuilder, List<MediaDevice> mediaDevices, boolean selected) {
for (MediaDevice device : mediaDevices) {
final int maxVolume = device.getMaxVolume();
final IconCompat titleIcon = Utils.createIconWithDrawable(device.getIcon());