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

Commit f73bc870 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSession2: Add more detailed documentation for addPlaylistItem()

Bug: 73149584
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: Ifc16e9d4ee210ac901941d8f3a6a228aa3f1ddd8
parent d65bb202
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -735,8 +735,10 @@ public class MediaController2 implements AutoCloseable {
        return mProvider.getPlaylistMetadata_impl();
        return mProvider.getPlaylistMetadata_impl();
    }
    }



    /**
    /**
     * Inserts the media item to the playlist at position index.
     * Adds the media item to the playlist at position index. Index equals or greater than
     * the current playlist size will add the item at the end of the playlist.
     * <p>
     * <p>
     * This will not change the currently playing media item.
     * This will not change the currently playing media item.
     * If index is less than or equal to the current index of the playlist,
     * If index is less than or equal to the current index of the playlist,
+8 −3
Original line number Original line Diff line number Diff line
@@ -228,10 +228,15 @@ public abstract class MediaPlaylistAgent {
    }
    }


    /**
    /**
     * Adds the media item to the playlist at the index
     * Adds the media item to the playlist at position index. Index equals or greater than
     * the current playlist size will add the item at the end of the playlist.
     * <p>
     * This will not change the currently playing media item.
     * If index is less than or equal to the current index of the playlist,
     * the current index of the playlist will be incremented correspondingly.
     *
     *
     * @param index index
     * @param index the index you want to add
     * @param item media item to add
     * @param item the media item you want to add
     */
     */
    public void addPlaylistItem(int index, @NonNull MediaItem2 item) {
    public void addPlaylistItem(int index, @NonNull MediaItem2 item) {
        mProvider.addPlaylistItem_impl(index, item);
        mProvider.addPlaylistItem_impl(index, item);
+2 −1
Original line number Original line Diff line number Diff line
@@ -1648,7 +1648,8 @@ public class MediaSession2 implements AutoCloseable {
    }
    }


    /**
    /**
     * Adds the media item to the playlist at position index.
     * Adds the media item to the playlist at position index. Index equals or greater than
     * the current playlist size will add the item at the end of the playlist.
     * <p>
     * <p>
     * This will not change the currently playing media item.
     * This will not change the currently playing media item.
     * If index is less than or equal to the current index of the play list,
     * If index is less than or equal to the current index of the play list,