55 lines
1.7 KiB
Java
55 lines
1.7 KiB
Java
package c.i.a.f.d;
|
|
|
|
import android.content.Context;
|
|
import android.util.Log;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import c.i.a.f.e.o.j.a;
|
|
import com.google.android.gms.tasks.Task;
|
|
import java.util.concurrent.Executors;
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */
|
|
public final class f {
|
|
@Nullable
|
|
public static f a;
|
|
public final Context b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final ScheduledExecutorService f1025c;
|
|
public g d = new g(this, null);
|
|
public int e = 1;
|
|
|
|
@VisibleForTesting
|
|
public f(Context context, ScheduledExecutorService scheduledExecutorService) {
|
|
this.f1025c = scheduledExecutorService;
|
|
this.b = context.getApplicationContext();
|
|
}
|
|
|
|
public static synchronized f a(Context context) {
|
|
f fVar;
|
|
synchronized (f.class) {
|
|
if (a == null) {
|
|
a = new f(context, Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1, new a("MessengerIpcClient"))));
|
|
}
|
|
fVar = a;
|
|
}
|
|
return fVar;
|
|
}
|
|
|
|
public final synchronized <T> Task<T> b(q<T> qVar) {
|
|
if (Log.isLoggable("MessengerIpcClient", 3)) {
|
|
String valueOf = String.valueOf(qVar);
|
|
StringBuilder sb = new StringBuilder(valueOf.length() + 9);
|
|
sb.append("Queueing ");
|
|
sb.append(valueOf);
|
|
Log.d("MessengerIpcClient", sb.toString());
|
|
}
|
|
if (!this.d.b(qVar)) {
|
|
g gVar = new g(this, null);
|
|
this.d = gVar;
|
|
gVar.b(qVar);
|
|
}
|
|
return qVar.b.a;
|
|
}
|
|
}
|