IMediaControllerCallback.java
17.8 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
package android.support.v4.media.session;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.os.RemoteException;
import android.support.v4.media.MediaMetadataCompat;
import android.text.TextUtils;
import java.util.List;
public abstract interface IMediaControllerCallback
extends IInterface
{
public abstract void onEvent(String paramString, Bundle paramBundle)
throws RemoteException;
public abstract void onExtrasChanged(Bundle paramBundle)
throws RemoteException;
public abstract void onMetadataChanged(MediaMetadataCompat paramMediaMetadataCompat)
throws RemoteException;
public abstract void onPlaybackStateChanged(PlaybackStateCompat paramPlaybackStateCompat)
throws RemoteException;
public abstract void onQueueChanged(List<MediaSessionCompat.QueueItem> paramList)
throws RemoteException;
public abstract void onQueueTitleChanged(CharSequence paramCharSequence)
throws RemoteException;
public abstract void onSessionDestroyed()
throws RemoteException;
public abstract void onVolumeInfoChanged(ParcelableVolumeInfo paramParcelableVolumeInfo)
throws RemoteException;
public static abstract class Stub
extends Binder
implements IMediaControllerCallback
{
public Stub()
{
attachInterface(this, "android.support.v4.media.session.IMediaControllerCallback");
}
public static IMediaControllerCallback asInterface(IBinder paramIBinder)
{
if (paramIBinder == null) {
return null;
}
IInterface localIInterface = paramIBinder.queryLocalInterface("android.support.v4.media.session.IMediaControllerCallback");
if ((localIInterface != null) && ((localIInterface instanceof IMediaControllerCallback))) {
return (IMediaControllerCallback)localIInterface;
}
return new a(paramIBinder);
}
public IBinder asBinder()
{
return this;
}
public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
throws RemoteException
{
String str = null;
Object localObject2 = null;
Object localObject3 = null;
Object localObject4 = null;
Object localObject5 = null;
Object localObject1 = null;
switch (paramInt1)
{
default:
return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
case 1598968902:
paramParcel2.writeString("android.support.v4.media.session.IMediaControllerCallback");
return true;
case 1:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
str = paramParcel1.readString();
paramParcel2 = (Parcel)localObject1;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (Bundle)Bundle.CREATOR.createFromParcel(paramParcel1);
}
onEvent(str, paramParcel2);
return true;
case 2:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
onSessionDestroyed();
return true;
case 3:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
paramParcel2 = str;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (PlaybackStateCompat)PlaybackStateCompat.CREATOR.createFromParcel(paramParcel1);
}
onPlaybackStateChanged(paramParcel2);
return true;
case 4:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
paramParcel2 = (Parcel)localObject2;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (MediaMetadataCompat)MediaMetadataCompat.CREATOR.createFromParcel(paramParcel1);
}
onMetadataChanged(paramParcel2);
return true;
case 5:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
onQueueChanged(paramParcel1.createTypedArrayList(MediaSessionCompat.QueueItem.CREATOR));
return true;
case 6:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
paramParcel2 = (Parcel)localObject3;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel1);
}
onQueueTitleChanged(paramParcel2);
return true;
case 7:
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
paramParcel2 = (Parcel)localObject4;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (Bundle)Bundle.CREATOR.createFromParcel(paramParcel1);
}
onExtrasChanged(paramParcel2);
return true;
}
paramParcel1.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
paramParcel2 = (Parcel)localObject5;
if (paramParcel1.readInt() != 0) {
paramParcel2 = (ParcelableVolumeInfo)ParcelableVolumeInfo.CREATOR.createFromParcel(paramParcel1);
}
onVolumeInfoChanged(paramParcel2);
return true;
}
static final class a
implements IMediaControllerCallback
{
private IBinder a;
a(IBinder paramIBinder)
{
this.a = paramIBinder;
}
public final IBinder asBinder()
{
return this.a;
}
/* Error */
public final void onEvent(String paramString, Bundle paramBundle)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_3
// 4: aload_3
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_3
// 11: aload_1
// 12: invokevirtual 40 android/os/Parcel:writeString (Ljava/lang/String;)V
// 15: aload_2
// 16: ifnull +33 -> 49
// 19: aload_3
// 20: iconst_1
// 21: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 24: aload_2
// 25: aload_3
// 26: iconst_0
// 27: invokevirtual 50 android/os/Bundle:writeToParcel (Landroid/os/Parcel;I)V
// 30: aload_0
// 31: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 34: iconst_1
// 35: aload_3
// 36: aconst_null
// 37: iconst_1
// 38: invokeinterface 56 5 0
// 43: pop
// 44: aload_3
// 45: invokevirtual 59 android/os/Parcel:recycle ()V
// 48: return
// 49: aload_3
// 50: iconst_0
// 51: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 54: goto -24 -> 30
// 57: astore_1
// 58: aload_3
// 59: invokevirtual 59 android/os/Parcel:recycle ()V
// 62: aload_1
// 63: athrow
// Local variable table:
// start length slot name signature
// 0 64 0 this a
// 0 64 1 paramString String
// 0 64 2 paramBundle Bundle
// 3 56 3 localParcel Parcel
// Exception table:
// from to target type
// 4 15 57 finally
// 19 30 57 finally
// 30 44 57 finally
// 49 54 57 finally
}
/* Error */
public final void onExtrasChanged(Bundle paramBundle)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_2
// 4: aload_2
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_1
// 11: ifnull +34 -> 45
// 14: aload_2
// 15: iconst_1
// 16: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 19: aload_1
// 20: aload_2
// 21: iconst_0
// 22: invokevirtual 50 android/os/Bundle:writeToParcel (Landroid/os/Parcel;I)V
// 25: aload_0
// 26: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 29: bipush 7
// 31: aload_2
// 32: aconst_null
// 33: iconst_1
// 34: invokeinterface 56 5 0
// 39: pop
// 40: aload_2
// 41: invokevirtual 59 android/os/Parcel:recycle ()V
// 44: return
// 45: aload_2
// 46: iconst_0
// 47: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 50: goto -25 -> 25
// 53: astore_1
// 54: aload_2
// 55: invokevirtual 59 android/os/Parcel:recycle ()V
// 58: aload_1
// 59: athrow
// Local variable table:
// start length slot name signature
// 0 60 0 this a
// 0 60 1 paramBundle Bundle
// 3 52 2 localParcel Parcel
// Exception table:
// from to target type
// 4 10 53 finally
// 14 25 53 finally
// 25 40 53 finally
// 45 50 53 finally
}
/* Error */
public final void onMetadataChanged(MediaMetadataCompat paramMediaMetadataCompat)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_2
// 4: aload_2
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_1
// 11: ifnull +33 -> 44
// 14: aload_2
// 15: iconst_1
// 16: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 19: aload_1
// 20: aload_2
// 21: iconst_0
// 22: invokevirtual 67 android/support/v4/media/MediaMetadataCompat:writeToParcel (Landroid/os/Parcel;I)V
// 25: aload_0
// 26: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 29: iconst_4
// 30: aload_2
// 31: aconst_null
// 32: iconst_1
// 33: invokeinterface 56 5 0
// 38: pop
// 39: aload_2
// 40: invokevirtual 59 android/os/Parcel:recycle ()V
// 43: return
// 44: aload_2
// 45: iconst_0
// 46: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 49: goto -24 -> 25
// 52: astore_1
// 53: aload_2
// 54: invokevirtual 59 android/os/Parcel:recycle ()V
// 57: aload_1
// 58: athrow
// Local variable table:
// start length slot name signature
// 0 59 0 this a
// 0 59 1 paramMediaMetadataCompat MediaMetadataCompat
// 3 51 2 localParcel Parcel
// Exception table:
// from to target type
// 4 10 52 finally
// 14 25 52 finally
// 25 39 52 finally
// 44 49 52 finally
}
/* Error */
public final void onPlaybackStateChanged(PlaybackStateCompat paramPlaybackStateCompat)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_2
// 4: aload_2
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_1
// 11: ifnull +33 -> 44
// 14: aload_2
// 15: iconst_1
// 16: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 19: aload_1
// 20: aload_2
// 21: iconst_0
// 22: invokevirtual 72 android/support/v4/media/session/PlaybackStateCompat:writeToParcel (Landroid/os/Parcel;I)V
// 25: aload_0
// 26: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 29: iconst_3
// 30: aload_2
// 31: aconst_null
// 32: iconst_1
// 33: invokeinterface 56 5 0
// 38: pop
// 39: aload_2
// 40: invokevirtual 59 android/os/Parcel:recycle ()V
// 43: return
// 44: aload_2
// 45: iconst_0
// 46: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 49: goto -24 -> 25
// 52: astore_1
// 53: aload_2
// 54: invokevirtual 59 android/os/Parcel:recycle ()V
// 57: aload_1
// 58: athrow
// Local variable table:
// start length slot name signature
// 0 59 0 this a
// 0 59 1 paramPlaybackStateCompat PlaybackStateCompat
// 3 51 2 localParcel Parcel
// Exception table:
// from to target type
// 4 10 52 finally
// 14 25 52 finally
// 25 39 52 finally
// 44 49 52 finally
}
public final void onQueueChanged(List<MediaSessionCompat.QueueItem> paramList)
throws RemoteException
{
Parcel localParcel = Parcel.obtain();
try
{
localParcel.writeInterfaceToken("android.support.v4.media.session.IMediaControllerCallback");
localParcel.writeTypedList(paramList);
this.a.transact(5, localParcel, null, 1);
return;
}
finally
{
localParcel.recycle();
}
}
/* Error */
public final void onQueueTitleChanged(CharSequence paramCharSequence)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_2
// 4: aload_2
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_1
// 11: ifnull +34 -> 45
// 14: aload_2
// 15: iconst_1
// 16: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 19: aload_1
// 20: aload_2
// 21: iconst_0
// 22: invokestatic 86 android/text/TextUtils:writeToParcel (Ljava/lang/CharSequence;Landroid/os/Parcel;I)V
// 25: aload_0
// 26: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 29: bipush 6
// 31: aload_2
// 32: aconst_null
// 33: iconst_1
// 34: invokeinterface 56 5 0
// 39: pop
// 40: aload_2
// 41: invokevirtual 59 android/os/Parcel:recycle ()V
// 44: return
// 45: aload_2
// 46: iconst_0
// 47: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 50: goto -25 -> 25
// 53: astore_1
// 54: aload_2
// 55: invokevirtual 59 android/os/Parcel:recycle ()V
// 58: aload_1
// 59: athrow
// Local variable table:
// start length slot name signature
// 0 60 0 this a
// 0 60 1 paramCharSequence CharSequence
// 3 52 2 localParcel Parcel
// Exception table:
// from to target type
// 4 10 53 finally
// 14 25 53 finally
// 25 40 53 finally
// 45 50 53 finally
}
public final void onSessionDestroyed()
throws RemoteException
{
Parcel localParcel = Parcel.obtain();
try
{
localParcel.writeInterfaceToken("android.support.v4.media.session.IMediaControllerCallback");
this.a.transact(2, localParcel, null, 1);
return;
}
finally
{
localParcel.recycle();
}
}
/* Error */
public final void onVolumeInfoChanged(ParcelableVolumeInfo paramParcelableVolumeInfo)
throws RemoteException
{
// Byte code:
// 0: invokestatic 31 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 3: astore_2
// 4: aload_2
// 5: ldc 33
// 7: invokevirtual 37 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 10: aload_1
// 11: ifnull +34 -> 45
// 14: aload_2
// 15: iconst_1
// 16: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 19: aload_1
// 20: aload_2
// 21: iconst_0
// 22: invokevirtual 92 android/support/v4/media/session/ParcelableVolumeInfo:writeToParcel (Landroid/os/Parcel;I)V
// 25: aload_0
// 26: getfield 18 android/support/v4/media/session/IMediaControllerCallback$Stub$a:a Landroid/os/IBinder;
// 29: bipush 8
// 31: aload_2
// 32: aconst_null
// 33: iconst_1
// 34: invokeinterface 56 5 0
// 39: pop
// 40: aload_2
// 41: invokevirtual 59 android/os/Parcel:recycle ()V
// 44: return
// 45: aload_2
// 46: iconst_0
// 47: invokevirtual 44 android/os/Parcel:writeInt (I)V
// 50: goto -25 -> 25
// 53: astore_1
// 54: aload_2
// 55: invokevirtual 59 android/os/Parcel:recycle ()V
// 58: aload_1
// 59: athrow
// Local variable table:
// start length slot name signature
// 0 60 0 this a
// 0 60 1 paramParcelableVolumeInfo ParcelableVolumeInfo
// 3 52 2 localParcel Parcel
// Exception table:
// from to target type
// 4 10 53 finally
// 14 25 53 finally
// 25 40 53 finally
// 45 50 53 finally
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/media/session/IMediaControllerCallback.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/