MediaSessionCompatApi24.java
2.44 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
package android.support.v4.media.session;
import android.annotation.TargetApi;
import android.media.session.MediaSession;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@TargetApi(24)
@RequiresApi(24)
final class MediaSessionCompatApi24
{
public static String a(Object paramObject)
{
paramObject = (MediaSession)paramObject;
try
{
paramObject = (String)paramObject.getClass().getMethod("getCallingPackage", new Class[0]).invoke(paramObject, new Object[0]);
return (String)paramObject;
}
catch (IllegalAccessException paramObject)
{
Log.e("MediaSessionCompatApi24", "Cannot execute MediaSession.getCallingPackage()", (Throwable)paramObject);
return null;
}
catch (NoSuchMethodException paramObject)
{
for (;;) {}
}
catch (InvocationTargetException paramObject)
{
for (;;) {}
}
}
public static abstract interface Callback
extends MediaSessionCompatApi23.Callback
{
public abstract void onPrepare();
public abstract void onPrepareFromMediaId(String paramString, Bundle paramBundle);
public abstract void onPrepareFromSearch(String paramString, Bundle paramBundle);
public abstract void onPrepareFromUri(Uri paramUri, Bundle paramBundle);
}
static final class a<T extends MediaSessionCompatApi24.Callback>
extends MediaSessionCompatApi23.a<T>
{
public a(T paramT)
{
super();
}
public final void onPrepare()
{
((MediaSessionCompatApi24.Callback)this.a).onPrepare();
}
public final void onPrepareFromMediaId(String paramString, Bundle paramBundle)
{
((MediaSessionCompatApi24.Callback)this.a).onPrepareFromMediaId(paramString, paramBundle);
}
public final void onPrepareFromSearch(String paramString, Bundle paramBundle)
{
((MediaSessionCompatApi24.Callback)this.a).onPrepareFromSearch(paramString, paramBundle);
}
public final void onPrepareFromUri(Uri paramUri, Bundle paramBundle)
{
((MediaSessionCompatApi24.Callback)this.a).onPrepareFromUri(paramUri, paramBundle);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/media/session/MediaSessionCompatApi24.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/