dn.java
3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
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
*/