Add getFeatures() for get device supporting features am: cd2af9a0e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109605 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Idddbc0498f0abec1bc4967d4e1e8cab26e3c4910
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user