Add getFeatures() for get device supporting features

-Provide supported features of the route

Bug: 155822415
Test: build pass
Change-Id: Id3a95f608018ecfae30dc0df9217548f90953403
This commit is contained in:
timhypeng
2020-09-14 16:56:17 +08:00
parent 729b60c01c
commit f5672292d8

View File

@@ -46,6 +46,7 @@ import com.android.settingslib.R;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.util.List;
/** /**
* MediaDevice represents a media device(such like Bluetooth device, cast device and phone device). * MediaDevice represents a media device(such like Bluetooth device, cast device and phone device).
@@ -353,6 +354,13 @@ public abstract class MediaDevice implements Comparable<MediaDevice> {
} }
} }
/**
* Gets the supported features of the route.
*/
public List<String> getFeatures() {
return mRouteInfo.getFeatures();
}
/** /**
* Check if it is CarKit device * Check if it is CarKit device
* @return true if it is CarKit device * @return true if it is CarKit device