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

Commit bdb05df7 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MediaStore: Add helper method to create Uri for querying genre for an audio file



Change-Id: Ic08260854ef2555682c1a169e7ceb9ecc91628c6
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 831f8987
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -153459,6 +153459,21 @@
<parameter name="volumeName" type="java.lang.String">
</parameter>
</method>
<method name="getContentUriForAudioId"
 return="android.net.Uri"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="volumeName" type="java.lang.String">
</parameter>
<parameter name="audioId" type="int">
</parameter>
</method>
<field name="CONTENT_TYPE"
 type="java.lang.String"
 transient="false"
+13 −0
Original line number Diff line number Diff line
@@ -1233,6 +1233,19 @@ public final class MediaStore {
                        "/audio/genres");
            }

            /**
             * Get the content:// style URI for querying the genres of an audio file.
             *
             * @param volumeName the name of the volume to get the URI for
             * @param audioId the ID of the audio file for which to retrieve the genres
             * @return the URI to for querying the genres for the audio file
             * with the given the volume and audioID
             */
            public static Uri getContentUriForAudioId(String volumeName, int audioId) {
                return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName +
                        "/audio/media/" + audioId + "/genres");
            }

            /**
             * The content:// style URI for the internal storage.
             */