zzk.java
3.98 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
package com.google.android.gms.common.util;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.PowerManager;
public final class zzk
{
private static IntentFilter a = new IntentFilter("android.intent.action.BATTERY_CHANGED");
private static long b;
private static float c = NaN.0F;
@TargetApi(20)
public static boolean zzb(PowerManager paramPowerManager)
{
if (zzt.zzzm()) {
return paramPowerManager.isInteractive();
}
return paramPowerManager.isScreenOn();
}
@TargetApi(20)
public static int zzbd(Context paramContext)
{
int k = 1;
if ((paramContext == null) || (paramContext.getApplicationContext() == null)) {
return -1;
}
Intent localIntent = paramContext.getApplicationContext().registerReceiver(null, a);
if (localIntent == null)
{
i = 0;
if ((i & 0x7) == 0) {
break label72;
}
}
label72:
for (int i = 1;; i = 0)
{
paramContext = (PowerManager)paramContext.getSystemService("power");
if (paramContext != null) {
break label77;
}
return -1;
i = localIntent.getIntExtra("plugged", 0);
break;
}
label77:
int j;
if (zzb(paramContext))
{
j = 1;
if (i == 0) {
break label103;
}
}
label103:
for (i = k;; i = 0)
{
return j << 1 | i;
j = 0;
break;
}
}
/* Error */
public static float zzbe(Context paramContext)
{
// Byte code:
// 0: ldc 2
// 2: monitorenter
// 3: invokestatic 82 android/os/SystemClock:elapsedRealtime ()J
// 6: getstatic 84 com/google/android/gms/common/util/zzk:b J
// 9: lsub
// 10: ldc2_w 85
// 13: lcmp
// 14: ifge +21 -> 35
// 17: getstatic 25 com/google/android/gms/common/util/zzk:c F
// 20: invokestatic 92 java/lang/Float:isNaN (F)Z
// 23: ifne +12 -> 35
// 26: getstatic 25 com/google/android/gms/common/util/zzk:c F
// 29: fstore_1
// 30: ldc 2
// 32: monitorexit
// 33: fload_1
// 34: freturn
// 35: aload_0
// 36: invokevirtual 54 android/content/Context:getApplicationContext ()Landroid/content/Context;
// 39: aconst_null
// 40: getstatic 22 com/google/android/gms/common/util/zzk:a Landroid/content/IntentFilter;
// 43: invokevirtual 58 android/content/Context:registerReceiver (Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
// 46: astore_0
// 47: aload_0
// 48: ifnull +27 -> 75
// 51: aload_0
// 52: ldc 94
// 54: iconst_m1
// 55: invokevirtual 72 android/content/Intent:getIntExtra (Ljava/lang/String;I)I
// 58: istore_2
// 59: aload_0
// 60: ldc 96
// 62: iconst_m1
// 63: invokevirtual 72 android/content/Intent:getIntExtra (Ljava/lang/String;I)I
// 66: istore_3
// 67: iload_2
// 68: i2f
// 69: iload_3
// 70: i2f
// 71: fdiv
// 72: putstatic 25 com/google/android/gms/common/util/zzk:c F
// 75: invokestatic 82 android/os/SystemClock:elapsedRealtime ()J
// 78: putstatic 84 com/google/android/gms/common/util/zzk:b J
// 81: getstatic 25 com/google/android/gms/common/util/zzk:c F
// 84: fstore_1
// 85: goto -55 -> 30
// 88: astore_0
// 89: ldc 2
// 91: monitorexit
// 92: aload_0
// 93: athrow
// Local variable table:
// start length slot name signature
// 0 94 0 paramContext Context
// 29 56 1 f float
// 58 10 2 i int
// 66 4 3 j int
// Exception table:
// from to target type
// 3 30 88 finally
// 35 47 88 finally
// 51 75 88 finally
// 75 85 88 finally
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/util/zzk.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/