Loading media/apex/java/android/media/MediaController2.java +15 −7 Original line number Original line Diff line number Diff line Loading @@ -46,14 +46,14 @@ import android.util.Log; import java.util.concurrent.Executor; import java.util.concurrent.Executor; /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * * Allows an app to interact with an active {@link MediaSession2} or a * Allows an app to interact with an active {@link MediaSession2} or a * {@link MediaSession2Service} which would provide {@link MediaSession2}. Media buttons and other * {@link MediaSession2Service} which would provide {@link MediaSession2}. Media buttons and other * commands can be sent to the session. * commands can be sent to the session. * <p> * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * for consistent behavior across all devices. */ */ public class MediaController2 implements AutoCloseable { public class MediaController2 implements AutoCloseable { static final String TAG = "MediaController2"; static final String TAG = "MediaController2"; Loading Loading @@ -405,6 +405,11 @@ public class MediaController2 implements AutoCloseable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builder for {@link MediaController2}. * Builder for {@link MediaController2}. * <p> * <p> * Any incoming event from the {@link MediaSession2} will be handled on the callback * Any incoming event from the {@link MediaSession2} will be handled on the callback Loading Loading @@ -502,9 +507,12 @@ public class MediaController2 implements AutoCloseable { } } /** /** * Interface for listening to change in activeness of the {@link MediaSession2}. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Interface for listening to change in activeness of the {@link MediaSession2}. */ */ public abstract static class ControllerCallback { public abstract static class ControllerCallback { /** /** Loading media/apex/java/android/media/MediaSession2.java +20 −9 Original line number Original line Diff line number Diff line Loading @@ -52,13 +52,13 @@ import java.util.Objects; import java.util.concurrent.Executor; import java.util.concurrent.Executor; /** /** * Allows a media app to expose its transport controls and playback information in a process to * other processes including the Android framework and other apps. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * <p> * Allows a media app to expose its transport controls and playback information in a process to * other processes including the Android framework and other apps. */ */ public class MediaSession2 implements AutoCloseable { public class MediaSession2 implements AutoCloseable { static final String TAG = "MediaSession2"; static final String TAG = "MediaSession2"; Loading Loading @@ -481,6 +481,11 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builder for {@link MediaSession2}. * Builder for {@link MediaSession2}. * <p> * <p> * Any incoming event from the {@link MediaController2} will be handled on the callback * Any incoming event from the {@link MediaController2} will be handled on the callback Loading Loading @@ -616,9 +621,12 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * Information of a controller. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Information of a controller. */ */ public static final class ControllerInfo { public static final class ControllerInfo { private final RemoteUserInfo mRemoteUserInfo; private final RemoteUserInfo mRemoteUserInfo; Loading Loading @@ -807,9 +815,12 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * Callback to be called for all incoming commands from {@link MediaController2}s. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Callback to be called for all incoming commands from {@link MediaController2}s. */ */ public abstract static class SessionCallback { public abstract static class SessionCallback { /** /** Loading media/apex/java/android/media/MediaSession2Service.java +9 −4 Original line number Original line Diff line number Diff line Loading @@ -44,12 +44,12 @@ import java.util.List; import java.util.Map; import java.util.Map; /** /** * Service containing {@link MediaSession2}. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * <p> * Service containing {@link MediaSession2}. */ */ public abstract class MediaSession2Service extends Service { public abstract class MediaSession2Service extends Service { /** /** Loading Loading @@ -287,6 +287,11 @@ public abstract class MediaSession2Service extends Service { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Returned by {@link #onUpdateNotification(MediaSession2)} for making session service * Returned by {@link #onUpdateNotification(MediaSession2)} for making session service * foreground service to keep playback running in the background. It's highly recommended to * foreground service to keep playback running in the background. It's highly recommended to * show media style notification here. * show media style notification here. Loading media/apex/java/android/media/Session2Command.java +10 −5 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,11 @@ import android.text.TextUtils; import java.util.Objects; import java.util.Objects; /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Define a command that a {@link MediaController2} can send to a {@link MediaSession2}. * Define a command that a {@link MediaController2} can send to a {@link MediaSession2}. * <p> * <p> * If {@link #getCommandCode()} isn't {@link #COMMAND_CODE_CUSTOM}), it's predefined command. * If {@link #getCommandCode()} isn't {@link #COMMAND_CODE_CUSTOM}), it's predefined command. Loading @@ -35,11 +40,6 @@ import java.util.Objects; * Refer to the * Refer to the * <a href="{@docRoot}reference/androidx/media2/SessionCommand2.html">AndroidX SessionCommand</a> * <a href="{@docRoot}reference/androidx/media2/SessionCommand2.html">AndroidX SessionCommand</a> * class for the list of valid commands. * class for the list of valid commands. * <p> * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * for consistent behavior across all devices. */ */ public final class Session2Command implements Parcelable { public final class Session2Command implements Parcelable { /** /** Loading Loading @@ -162,6 +162,11 @@ public final class Session2Command implements Parcelable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Contains the result of {@link Session2Command}. * Contains the result of {@link Session2Command}. */ */ public static final class Result { public static final class Result { Loading media/apex/java/android/media/Session2CommandGroup.java +9 −5 Original line number Original line Diff line number Diff line Loading @@ -28,13 +28,12 @@ import java.util.HashSet; import java.util.Set; import java.util.Set; /** /** * A set of {@link Session2Command} which represents a command group. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * </p> * <p> * A set of {@link Session2Command} which represents a command group. */ */ public final class Session2CommandGroup implements Parcelable { public final class Session2CommandGroup implements Parcelable { private static final String TAG = "Session2CommandGroup"; private static final String TAG = "Session2CommandGroup"; Loading Loading @@ -131,6 +130,11 @@ public final class Session2CommandGroup implements Parcelable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builds a {@link Session2CommandGroup} object. * Builds a {@link Session2CommandGroup} object. */ */ public static final class Builder { public static final class Builder { Loading Loading
media/apex/java/android/media/MediaController2.java +15 −7 Original line number Original line Diff line number Diff line Loading @@ -46,14 +46,14 @@ import android.util.Log; import java.util.concurrent.Executor; import java.util.concurrent.Executor; /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * * Allows an app to interact with an active {@link MediaSession2} or a * Allows an app to interact with an active {@link MediaSession2} or a * {@link MediaSession2Service} which would provide {@link MediaSession2}. Media buttons and other * {@link MediaSession2Service} which would provide {@link MediaSession2}. Media buttons and other * commands can be sent to the session. * commands can be sent to the session. * <p> * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * for consistent behavior across all devices. */ */ public class MediaController2 implements AutoCloseable { public class MediaController2 implements AutoCloseable { static final String TAG = "MediaController2"; static final String TAG = "MediaController2"; Loading Loading @@ -405,6 +405,11 @@ public class MediaController2 implements AutoCloseable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builder for {@link MediaController2}. * Builder for {@link MediaController2}. * <p> * <p> * Any incoming event from the {@link MediaSession2} will be handled on the callback * Any incoming event from the {@link MediaSession2} will be handled on the callback Loading Loading @@ -502,9 +507,12 @@ public class MediaController2 implements AutoCloseable { } } /** /** * Interface for listening to change in activeness of the {@link MediaSession2}. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Interface for listening to change in activeness of the {@link MediaSession2}. */ */ public abstract static class ControllerCallback { public abstract static class ControllerCallback { /** /** Loading
media/apex/java/android/media/MediaSession2.java +20 −9 Original line number Original line Diff line number Diff line Loading @@ -52,13 +52,13 @@ import java.util.Objects; import java.util.concurrent.Executor; import java.util.concurrent.Executor; /** /** * Allows a media app to expose its transport controls and playback information in a process to * other processes including the Android framework and other apps. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * <p> * Allows a media app to expose its transport controls and playback information in a process to * other processes including the Android framework and other apps. */ */ public class MediaSession2 implements AutoCloseable { public class MediaSession2 implements AutoCloseable { static final String TAG = "MediaSession2"; static final String TAG = "MediaSession2"; Loading Loading @@ -481,6 +481,11 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builder for {@link MediaSession2}. * Builder for {@link MediaSession2}. * <p> * <p> * Any incoming event from the {@link MediaController2} will be handled on the callback * Any incoming event from the {@link MediaController2} will be handled on the callback Loading Loading @@ -616,9 +621,12 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * Information of a controller. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Information of a controller. */ */ public static final class ControllerInfo { public static final class ControllerInfo { private final RemoteUserInfo mRemoteUserInfo; private final RemoteUserInfo mRemoteUserInfo; Loading Loading @@ -807,9 +815,12 @@ public class MediaSession2 implements AutoCloseable { } } /** /** * Callback to be called for all incoming commands from {@link MediaController2}s. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Callback to be called for all incoming commands from {@link MediaController2}s. */ */ public abstract static class SessionCallback { public abstract static class SessionCallback { /** /** Loading
media/apex/java/android/media/MediaSession2Service.java +9 −4 Original line number Original line Diff line number Diff line Loading @@ -44,12 +44,12 @@ import java.util.List; import java.util.Map; import java.util.Map; /** /** * Service containing {@link MediaSession2}. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * <p> * Service containing {@link MediaSession2}. */ */ public abstract class MediaSession2Service extends Service { public abstract class MediaSession2Service extends Service { /** /** Loading Loading @@ -287,6 +287,11 @@ public abstract class MediaSession2Service extends Service { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Returned by {@link #onUpdateNotification(MediaSession2)} for making session service * Returned by {@link #onUpdateNotification(MediaSession2)} for making session service * foreground service to keep playback running in the background. It's highly recommended to * foreground service to keep playback running in the background. It's highly recommended to * show media style notification here. * show media style notification here. Loading
media/apex/java/android/media/Session2Command.java +10 −5 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,11 @@ import android.text.TextUtils; import java.util.Objects; import java.util.Objects; /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Define a command that a {@link MediaController2} can send to a {@link MediaSession2}. * Define a command that a {@link MediaController2} can send to a {@link MediaSession2}. * <p> * <p> * If {@link #getCommandCode()} isn't {@link #COMMAND_CODE_CUSTOM}), it's predefined command. * If {@link #getCommandCode()} isn't {@link #COMMAND_CODE_CUSTOM}), it's predefined command. Loading @@ -35,11 +40,6 @@ import java.util.Objects; * Refer to the * Refer to the * <a href="{@docRoot}reference/androidx/media2/SessionCommand2.html">AndroidX SessionCommand</a> * <a href="{@docRoot}reference/androidx/media2/SessionCommand2.html">AndroidX SessionCommand</a> * class for the list of valid commands. * class for the list of valid commands. * <p> * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * for consistent behavior across all devices. */ */ public final class Session2Command implements Parcelable { public final class Session2Command implements Parcelable { /** /** Loading Loading @@ -162,6 +162,11 @@ public final class Session2Command implements Parcelable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Contains the result of {@link Session2Command}. * Contains the result of {@link Session2Command}. */ */ public static final class Result { public static final class Result { Loading
media/apex/java/android/media/Session2CommandGroup.java +9 −5 Original line number Original line Diff line number Diff line Loading @@ -28,13 +28,12 @@ import java.util.HashSet; import java.util.Set; import java.util.Set; /** /** * A set of {@link Session2Command} which represents a command group. * <p> * This API is not generally intended for third party application developers. * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/package-summary.html">Media2 Library</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * for consistent behavior across all devices. * Library</a> for consistent behavior across all devices. * </p> * <p> * A set of {@link Session2Command} which represents a command group. */ */ public final class Session2CommandGroup implements Parcelable { public final class Session2CommandGroup implements Parcelable { private static final String TAG = "Session2CommandGroup"; private static final String TAG = "Session2CommandGroup"; Loading Loading @@ -131,6 +130,11 @@ public final class Session2CommandGroup implements Parcelable { } } /** /** * This API is not generally intended for third party application developers. * Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> * <a href="{@docRoot}reference/androidx/media2/session/package-summary.html">Media2 session * Library</a> for consistent behavior across all devices. * <p> * Builds a {@link Session2CommandGroup} object. * Builds a {@link Session2CommandGroup} object. */ */ public static final class Builder { public static final class Builder { Loading