34 lines
881 B
Java
34 lines
881 B
Java
package c.i.a.c;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.os.PowerManager;
|
|
import androidx.annotation.Nullable;
|
|
/* compiled from: WakeLockManager */
|
|
public final class s1 {
|
|
@Nullable
|
|
public final PowerManager a;
|
|
@Nullable
|
|
public PowerManager.WakeLock b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public boolean f955c;
|
|
public boolean d;
|
|
|
|
public s1(Context context) {
|
|
this.a = (PowerManager) context.getApplicationContext().getSystemService("power");
|
|
}
|
|
|
|
@SuppressLint({"WakelockTimeout"})
|
|
public final void a() {
|
|
PowerManager.WakeLock wakeLock = this.b;
|
|
if (wakeLock != null) {
|
|
if (!this.f955c || !this.d) {
|
|
wakeLock.release();
|
|
} else {
|
|
wakeLock.acquire();
|
|
}
|
|
}
|
|
}
|
|
}
|