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

Commit 0b432af5 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Update javadoc for MediaRoute2Info types

Link to AudioDeviceInfo and add missing getType references.

Bug: 377888097
Test: view javadoc in AndroidStudio
Flag: DOCS_ONLY
Change-Id: I9e88582cc744dfcd4e43e98ac9f0916fdba8c2f4
parent 3fa794b6
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ public final class MediaRoute2Info implements Parcelable {
     * the device.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_BUILTIN_SPEAKER
     */
    public static final int TYPE_BUILTIN_SPEAKER = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER;

@@ -194,6 +195,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a headset, which is the combination of a headphones and a microphone.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_WIRED_HEADSET
     */
    public static final int TYPE_WIRED_HEADSET = AudioDeviceInfo.TYPE_WIRED_HEADSET;

@@ -201,6 +203,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a pair of wired headphones.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_WIRED_HEADPHONES
     */
    public static final int TYPE_WIRED_HEADPHONES = AudioDeviceInfo.TYPE_WIRED_HEADPHONES;

@@ -208,6 +211,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a bluetooth device, such as a bluetooth speaker or headphones.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_BLUETOOTH_A2DP
     */
    public static final int TYPE_BLUETOOTH_A2DP = AudioDeviceInfo.TYPE_BLUETOOTH_A2DP;

@@ -215,6 +219,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is an HDMI connection.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_HDMI
     */
    public static final int TYPE_HDMI = AudioDeviceInfo.TYPE_HDMI;

@@ -222,6 +227,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is an Audio Return Channel of an HDMI connection.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_HDMI_ARC
     */
    @FlaggedApi(FLAG_ENABLE_AUDIO_POLICIES_DEVICE_AND_BLUETOOTH_CONTROLLER)
    public static final int TYPE_HDMI_ARC = AudioDeviceInfo.TYPE_HDMI_ARC;
@@ -230,24 +236,34 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is an Enhanced Audio Return Channel of an HDMI connection.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_HDMI_EARC
     */
    @FlaggedApi(FLAG_ENABLE_AUDIO_POLICIES_DEVICE_AND_BLUETOOTH_CONTROLLER)
    public static final int TYPE_HDMI_EARC = AudioDeviceInfo.TYPE_HDMI_EARC;

    /**
     * Indicates the route is a digital line connection (for example S/PDIF).
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_LINE_DIGITAL
     */
    @FlaggedApi(FLAG_ENABLE_NEW_WIRED_MEDIA_ROUTE_2_INFO_TYPES)
    public static final int TYPE_LINE_DIGITAL = AudioDeviceInfo.TYPE_LINE_DIGITAL;

    /**
     * Indicates the route is an analog line-level connection.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_LINE_ANALOG
     */
    @FlaggedApi(FLAG_ENABLE_NEW_WIRED_MEDIA_ROUTE_2_INFO_TYPES)
    public static final int TYPE_LINE_ANALOG = AudioDeviceInfo.TYPE_LINE_ANALOG;

    /**
     * Indicates the route is using the auxiliary line-level connectors.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_AUX_LINE
     */
    @FlaggedApi(FLAG_ENABLE_NEW_WIRED_MEDIA_ROUTE_2_INFO_TYPES)
    public static final int TYPE_AUX_LINE = AudioDeviceInfo.TYPE_AUX_LINE;
@@ -256,6 +272,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a USB audio device.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_USB_DEVICE
     */
    public static final int TYPE_USB_DEVICE = AudioDeviceInfo.TYPE_USB_DEVICE;

@@ -263,6 +280,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a USB audio device in accessory mode.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_USB_ACCESSORY
     */
    public static final int TYPE_USB_ACCESSORY = AudioDeviceInfo.TYPE_USB_ACCESSORY;

@@ -270,6 +288,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is the audio device associated with a dock.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_DOCK
     */
    public static final int TYPE_DOCK = AudioDeviceInfo.TYPE_DOCK;

@@ -277,6 +296,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a USB audio headset.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_USB_HEADSET
     */
    public static final int TYPE_USB_HEADSET = AudioDeviceInfo.TYPE_USB_HEADSET;

@@ -284,6 +304,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a hearing aid.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_HEARING_AID
     */
    public static final int TYPE_HEARING_AID = AudioDeviceInfo.TYPE_HEARING_AID;

@@ -291,6 +312,7 @@ public final class MediaRoute2Info implements Parcelable {
     * Indicates the route is a Bluetooth Low Energy (BLE) HEADSET.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_BLE_HEADSET
     */
    public static final int TYPE_BLE_HEADSET = AudioDeviceInfo.TYPE_BLE_HEADSET;

@@ -302,6 +324,7 @@ public final class MediaRoute2Info implements Parcelable {
     * to provide a better experience on multichannel contents.
     *
     * @see #getType
     * @see AudioDeviceInfo#TYPE_MULTICHANNEL_GROUP
     */
    @FlaggedApi(FLAG_ENABLE_MULTICHANNEL_GROUP_DEVICE)
    public static final int TYPE_MULTICHANNEL_SPEAKER_GROUP =