Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23e08aea authored by tim peng's avatar tim peng Committed by Android (Google) Code Review
Browse files

Merge "Add getFeatures() for get device supporting features"

parents e9897deb f5672292
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ import com.android.settingslib.R;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;

/**
 * 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
     * @return true if it is CarKit device