dn.java 3.35 KB
import android.annotation.TargetApi;
import android.content.Intent;
import android.media.Rating;
import android.media.session.MediaSession;
import android.media.session.MediaSession.Callback;
import android.media.session.MediaSession.QueueItem;
import android.os.Bundle;
import android.os.ResultReceiver;
import android.support.annotation.RequiresApi;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

@TargetApi(21)
@RequiresApi(21)
public final class dn
{
  public static void a(Object paramObject, List<Object> paramList)
  {
    if (paramList == null)
    {
      ((MediaSession)paramObject).setQueue(null);
      return;
    }
    ArrayList localArrayList = new ArrayList();
    paramList = paramList.iterator();
    while (paramList.hasNext()) {
      localArrayList.add((MediaSession.QueueItem)paramList.next());
    }
    ((MediaSession)paramObject).setQueue(localArrayList);
  }
  
  public static abstract interface a
    extends dm.a
  {
    public abstract void a();
    
    public abstract void a(long paramLong);
    
    public abstract void a(String paramString, Bundle paramBundle);
    
    public abstract void a(String paramString, Bundle paramBundle, ResultReceiver paramResultReceiver);
    
    public abstract boolean a(Intent paramIntent);
    
    public abstract void b();
    
    public abstract void b(String paramString, Bundle paramBundle);
    
    public abstract void c();
    
    public abstract void c(String paramString, Bundle paramBundle);
    
    public abstract void d();
    
    public abstract void e();
    
    public abstract void f();
    
    public abstract void g();
  }
  
  public static class b<T extends dn.a>
    extends MediaSession.Callback
  {
    protected final T a;
    
    public b(T paramT)
    {
      this.a = paramT;
    }
    
    public void onCommand(String paramString, Bundle paramBundle, ResultReceiver paramResultReceiver)
    {
      this.a.a(paramString, paramBundle, paramResultReceiver);
    }
    
    public void onCustomAction(String paramString, Bundle paramBundle)
    {
      this.a.c(paramString, paramBundle);
    }
    
    public void onFastForward()
    {
      this.a.e();
    }
    
    public boolean onMediaButtonEvent(Intent paramIntent)
    {
      return (this.a.a(paramIntent)) || (super.onMediaButtonEvent(paramIntent));
    }
    
    public void onPause()
    {
      this.a.b();
    }
    
    public void onPlay()
    {
      this.a.a();
    }
    
    public void onPlayFromMediaId(String paramString, Bundle paramBundle)
    {
      this.a.a(paramString, paramBundle);
    }
    
    public void onPlayFromSearch(String paramString, Bundle paramBundle)
    {
      this.a.b(paramString, paramBundle);
    }
    
    public void onRewind()
    {
      this.a.f();
    }
    
    public void onSeekTo(long paramLong)
    {
      this.a.b(paramLong);
    }
    
    public void onSetRating(Rating paramRating)
    {
      this.a.a(paramRating);
    }
    
    public void onSkipToNext()
    {
      this.a.c();
    }
    
    public void onSkipToPrevious()
    {
      this.a.d();
    }
    
    public void onSkipToQueueItem(long paramLong)
    {
      this.a.a(paramLong);
    }
    
    public void onStop()
    {
      this.a.g();
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/dn.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */