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

Commit edb158f5 authored by RoboErik's avatar RoboErik Committed by Erik Pasternak
Browse files

Deprecate apis that were replaced by sessions

These classes all have new components in the session APIs.

bug:16218444
Change-Id: Ib64ff0e23503e4c9eb2fd9162a878e1eaba7c4df
parent facc7bce
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -15070,7 +15070,7 @@ package android.media {
    method public android.media.MediaMetadata.Builder putString(java.lang.String, java.lang.String);
  }
  public abstract class MediaMetadataEditor {
  public abstract deprecated class MediaMetadataEditor {
    method public synchronized void addEditableKey(int);
    method public abstract void apply();
    method public synchronized void clear();
@@ -15540,7 +15540,7 @@ package android.media {
    field public static final int RATING_THUMB_UP_DOWN = 2; // 0x2
  }
  public class RemoteControlClient {
  public deprecated class RemoteControlClient {
    ctor public RemoteControlClient(android.app.PendingIntent);
    ctor public RemoteControlClient(android.app.PendingIntent, android.os.Looper);
    method public android.media.RemoteControlClient.MetadataEditor editMetadata(boolean);
@@ -15572,7 +15572,7 @@ package android.media {
    field public static final int PLAYSTATE_STOPPED = 1; // 0x1
  }
  public class RemoteControlClient.MetadataEditor extends android.media.MediaMetadataEditor {
  public deprecated class RemoteControlClient.MetadataEditor extends android.media.MediaMetadataEditor {
    method public synchronized void apply();
    field public static final int BITMAP_KEY_ARTWORK = 100; // 0x64
  }
@@ -15589,7 +15589,7 @@ package android.media {
    method public abstract void onPlaybackPositionUpdate(long);
  }
  public final class RemoteController {
  public final deprecated class RemoteController {
    ctor public RemoteController(android.content.Context, android.media.RemoteController.OnClientUpdateListener) throws java.lang.IllegalArgumentException;
    ctor public RemoteController(android.content.Context, android.media.RemoteController.OnClientUpdateListener, android.os.Looper) throws java.lang.IllegalArgumentException;
    method public boolean clearArtworkConfiguration();
+4 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.media;

import android.graphics.Bitmap;
import android.media.session.MediaSession;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Log;
@@ -26,8 +27,10 @@ import android.util.SparseIntArray;
 * An abstract class for editing and storing metadata that can be published by
 * {@link RemoteControlClient}. See the {@link RemoteControlClient#editMetadata(boolean)}
 * method to instantiate a {@link RemoteControlClient.MetadataEditor} object.
 *
 * @deprecated Use {@link MediaMetadata} instead together with {@link MediaSession}.
 */
public abstract class MediaMetadataEditor {
@Deprecated public abstract class MediaMetadataEditor {

    private final static String TAG = "MediaMetadataEditor";
    /**
+2 −1
Original line number Diff line number Diff line
@@ -40,8 +40,9 @@ import java.util.TimeZone;
   the right get* method to fetch its value.
   
   @hide
   @deprecated Use {@link MediaMetadata}.
 */
public class Metadata
@Deprecated public class Metadata
{
    // The metadata are keyed using integers rather than more heavy
    // weight strings. We considered using Bundle to ship the metadata
+6 −2
Original line number Diff line number Diff line
@@ -63,8 +63,10 @@ import java.util.Iterator;
 * // create and register the remote control client
 * RemoteControlClient myRemoteControlClient = new RemoteControlClient(mediaPendingIntent);
 * myAudioManager.registerRemoteControlClient(myRemoteControlClient);</pre>
 *
 * @deprecated Use {@link MediaSession} instead.
 */
public class RemoteControlClient
@Deprecated public class RemoteControlClient
{
    private final static String TAG = "RemoteControlClient";
    private final static boolean DEBUG = false;
@@ -425,8 +427,10 @@ public class RemoteControlClient
     * has been set, use {@link #apply()} to make it the new metadata that should be displayed
     * for the associated client. Once the metadata has been "applied", you cannot reuse this
     * instance of the MetadataEditor.
     *
     * @deprecated Use {@link MediaMetadata} and {@link MediaSession} instead.
     */
    public class MetadataEditor extends MediaMetadataEditor {
    @Deprecated public class MetadataEditor extends MediaMetadataEditor {

        // only use RemoteControlClient.editMetadata() to get a MetadataEditor instance
        private MetadataEditor() { }
+3 −1
Original line number Diff line number Diff line
@@ -57,8 +57,10 @@ import java.util.List;
 * <p>
 * Registration requires the {@link OnClientUpdateListener} listener to be one of the enabled
 * notification listeners (see {@link android.service.notification.NotificationListenerService}).
 *
 * @deprecated Use {@link MediaController} instead.
 */
public final class RemoteController
@Deprecated public final class RemoteController
{
    private final static int MAX_BITMAP_DIMENSION = 512;
    private final static int TRANSPORT_UNKNOWN = 0;